:root {
  --white: #ffffff;
  --black: #000000;
  --bgPage: #0a0814;
  --bgCard: #15111f;
  --bgPanel: #1c1729;
  --textMain: #e6e1f5;
  --textMuted: #a599c2;
  --grayLine: rgba(196, 181, 253, 0.16);
  --purple: #b388ff;
  --purpleDark: #9d6bff;
  --purpleSoft: rgba(179, 136, 255, 0.14);
  --purpleMid: #c4b5fd;
  --topbarBg: #0a0712;
  --focusColor: #b388ff;
  --bannerBg: rgb(215, 172, 252);
  --termGreen: #7ef29c;
  --dotRgb: 179, 136, 255;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: var(--bgPage);
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bgPage);
  color: var(--textMain);
  font-family: "jetbrains mono", "fira code", "cascadia code", ui-monospace, "sf mono", consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
}

a {
  color: var(--purple);
}

a:visited {
  color: var(--purpleDark);
}

a:hover {
  background: var(--purpleSoft);
  color: var(--purpleMid);
}

a:focus-visible {
  outline: 2px solid var(--focusColor);
  outline-offset: 1px;
}

.skipLink {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skipLink:focus-visible {
  position: static;
  left: auto;
  width: auto;
  height: auto;
  overflow: visible;
  display: block;
  padding: 6px 12px;
  background: var(--purple);
  color: var(--bgPage);
  font-size: 12px;
}

.pageFrame {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bgPage);
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 20px;
  background: var(--topbarBg);
  border-bottom: 1px solid var(--grayLine);
}

.topbarBrand {
  white-space: nowrap;
}

.brandLink {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  font-weight: bold;
  font-size: 15px;
  letter-spacing: 1px;
  text-decoration: none;
}

.brandLink:hover {
  background: transparent;
  color: var(--white);
}

.brandLogo {
  height: 30px;
  width: auto;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .brandLogo {
    animation: spin 6s linear infinite;
  }
}

.brandName {
  padding-left: 6px;
  color: var(--purpleMid);
}

.topbarNav {
  text-align: right;
}

.topbarNav nav {
  display: inline;
}

.navLink {
  padding: 1px 3px;
  color: #b7aed6;
}

.navLink:hover {
  background: transparent;
  color: var(--purpleMid);
}

.navLink.current {
  color: var(--white);
  font-weight: bold;
  text-decoration: underline;
  text-decoration-color: var(--purple);
}

.navSeparator {
  color: #4a4064;
  padding: 0 2px;
}

.viewerCount {
  display: block;
  margin-top: 3px;
  color: #8478a3;
  font-size: 11px;
  text-align: right;
}

.topbarClock {
  display: block;
  color: #8478a3;
  font-size: 11px;
  text-align: right;
}

.bannerStrip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 14px 20px;
  background: var(--bannerBg);
}

.bannerImg {
  display: block;
  height: 56px;
  width: auto;
}

.bannerImg.tuxImg {
  height: 74px;
}

.wikiLayout {
  display: flex;
  align-items: stretch;
  flex: 1 0 auto;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bgCard);
}

.sidebar {
  flex: 0 0 220px;
  padding: 20px 16px 20px 24px;
  background: var(--bgCard);
}

.sidebarBox {
  margin: 0 0 12px;
  padding: 10px;
  background: var(--bgPanel);
  border-radius: 8px;
  border: 1px solid var(--grayLine);
}

.sidebarBox h3 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: bold;
  color: var(--purpleMid);
}

.sidebarList {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebarList li {
  margin: 2px 0;
}

.sidebarList li::before {
  content: "> ";
  color: var(--termGreen);
}

.sidebarList a {
  color: var(--textMain);
  text-decoration: none;
}

.sidebarList a:hover {
  background: transparent;
  color: var(--purple);
  text-decoration: underline;
}

.sidebarList a.current {
  color: var(--purple);
  font-weight: bold;
}

main {
  flex: 1;
  min-width: 0;
  padding: 16px 24px 12px;
}

h1 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 19px;
  font-weight: bold;
}

h2 {
  margin: 6px 0 4px;
  color: var(--purpleMid);
  font-size: 14px;
  font-weight: bold;
}

p {
  margin: 0 0 8px;
}

.intro {
  color: var(--textMain);
  padding-left: 1.4em;
  text-indent: -1.4em;
}

.intro::before {
  content: "$ ";
  color: var(--termGreen);
  font-weight: bold;
}

.footnote {
  color: var(--textMuted);
  font-size: 11px;
}

hr {
  margin: 8px 0;
  border: 0;
  border-top: 1px solid var(--grayLine);
}

.infoBox {
  margin: 0 0 4px;
  padding: 14px;
  background: var(--bgPanel);
  border-radius: 8px;
  border: 1px solid var(--grayLine);
}

.infoBox h2 {
  margin-top: 0;
  color: var(--purpleMid);
}

.infoBox p {
  color: var(--textMain);
}

.homeSection {
  margin: 0;
}

.plainList {
  margin: 4px 0 8px;
  padding-left: 4px;
  list-style: none;
}

.plainList li {
  margin: 3px 0;
}

.plainList li::before {
  content: "» ";
  color: var(--termGreen);
}


.repoStats {
  margin: 0;
}

.statRow {
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.statCell {
  display: inline-block;
  min-width: 100px;
  padding: 7px 12px;
  background: var(--bgPanel);
  color: var(--textMain);
  text-align: center;
  border-radius: 8px;
  border: 1px solid var(--grayLine);
}

.statValue {
  display: block;
  font-weight: bold;
  color: var(--purpleMid);
}

.statLabel {
  display: block;
  font-size: 11px;
  color: var(--textMuted);
}

.reposBox {
  padding: 12px 14px 14px;
  background: var(--bgPanel);
  border-radius: 8px;
  border: 1px solid var(--grayLine);
}

.statusText {
  margin: 0;
  padding: 4px 2px;
  color: var(--textMuted);
}

.repoRowsWrap {
  overflow-x: auto;
}

.repoRow {
  display: grid;
  grid-template-columns: 1.4fr 2.4fr 1fr 0.7fr 0.7fr 0.9fr 1.4fr;
}

.repoCell {
  padding: 5px 8px;
  min-width: 0;
  overflow-wrap: anywhere;
  background: transparent;
  color: var(--textMain);
  border-bottom: 1px solid var(--grayLine);
}

.repoHeader .repoCell {
  background: rgba(179, 136, 255, 0.1);
  color: var(--purpleMid);
  font-weight: bold;
  border-bottom: 1px solid var(--grayLine);
}

.repoCell.cellNum {
  text-align: right;
}

.repoRows a {
  color: var(--purple);
}

.repoRows a:visited {
  color: var(--purpleDark);
}

.siteFooter {
  padding: 14px 20px 18px;
  background: var(--topbarBg);
  border-top: 1px solid var(--grayLine);
  text-align: center;
  font-size: 12px;
}

.siteFooter p {
  margin: 2px 0;
  color: var(--textMuted);
}

.copyright {
  display: block;
  margin-top: 10px;
  color: #6c6188;
  font-size: 11px;
}

@media (max-width: 720px) {
  body {
    font-size: 13px;
  }

  main {
    padding: 12px 12px 4px;
  }

  .splitGrid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .topbar {
    padding: 8px 12px;
  }

  .topbarNav {
    text-align: left;
  }

  .viewerCount {
    margin-top: 4px;
    text-align: left;
  }

  .topbarClock {
    text-align: left;
  }

  .wikiLayout {
    flex-direction: column;
  }

  .sidebar {
    flex-basis: auto;
    padding: 12px 12px 0;
  }

  .statCell {
    min-width: 44%;
  }

  .repoRowsWrap {
    overflow-x: visible;
  }

  .repoHeader {
    display: none;
  }

  .repoRow {
    grid-template-columns: 1fr;
    margin-bottom: 10px;
    background: var(--bgPanel);
    border-radius: 8px;
    border: 1px solid var(--grayLine);
  }

  .repoCell {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    background: transparent;
    border-bottom: none;
  }

  .repoCell::before {
    content: attr(data-label);
    font-weight: bold;
    color: var(--purpleMid);
  }

  .repoCell.cellNum {
    text-align: right;
  }
}

.splitGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.nowSection {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--grayLine);
  background: var(--bgPanel);
  padding: 12px;
  margin: 2px 0 4px;
}

.waveField {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

.artBackdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.5);
  opacity: 0;
}

.artBackdrop.live {
  opacity: 0.6;
}

.nowContent {
  position: relative;
  z-index: 1;
}

.nowState {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--purpleMid);
  font-size: 11px;
}

.nowBody {
  display: flex;
  align-items: center;
  gap: 12px;
}

.artWrap {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bgCard);
  border: 1px solid var(--grayLine);
}

.albumArt {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artWrap.hasArt .albumArt {
  display: block;
}

.nowText {
  min-width: 0;
}

.nowTrack {
  color: var(--textMain);
  font-weight: bold;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nowArtist {
  margin-top: 2px;
  color: var(--textMuted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recentList {
  margin-top: 10px;
}

.listItem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid var(--grayLine);
}

.itemArt {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bgCard);
}

.itemBody {
  flex: 1;
  min-width: 0;
}

.itemTitle {
  color: var(--textMain);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.itemMeta {
  color: var(--textMuted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.itemAside {
  flex: 0 0 auto;
  color: var(--textMuted);
  font-size: 11px;
}

.emptyNote {
  color: var(--textMuted);
  font-size: 12px;
  padding: 6px 0;
}

.repoLink {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--grayLine);
  color: inherit;
  text-decoration: none;
}

.repoLink:hover {
  background: var(--purpleSoft);
}

.repoDot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--termGreen);
}
