@font-face {
  font-family: "Parclo Serif";
  src: url("../fonts/ParcloSerifStudent-BlackItalic.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Departure Mono";
  src: url("../fonts/DepartureMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #18181b;
  --panel: rgba(39, 39, 42, 0.62);
  --panel-soft: rgba(39, 39, 42, 0.34);
  --line: rgba(255, 255, 255, 0.14);
  --dash: rgba(255, 255, 255, 0.17);
  --text: #eeeeef;
  --muted: #a1a1aa;
  --faint: #71717a;
  --accent: #ffbf00;
  --accent-soft: rgba(255, 191, 0, 0.16);
  --radius: 8px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Departure Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #ebe6df;
  --panel: rgba(255, 255, 255, 0.46);
  --panel-soft: rgba(255, 255, 255, 0.28);
  --line: rgba(24, 24, 27, 0.18);
  --dash: rgba(24, 24, 27, 0.22);
  --text: #202124;
  --muted: #5f6368;
  --faint: #858585;
}

html {
  min-height: 100%;
  background: var(--bg);
  font-family: var(--sans);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

.misc-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 47% 18%, rgba(255,255,255,0.028), transparent 28rem),
    radial-gradient(circle at 79% 48%, rgba(255,255,255,0.018), transparent 34rem),
    var(--bg);
}

.misc-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  mix-blend-mode: soft-light;
}

.topbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1136px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 28px 0 46px;
}

.brand {
  justify-self: start;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text);
  font-size: 16px;
}

.topnav a,
.topnav span {
  opacity: 0.88;
  transition: color 160ms ease, opacity 160ms ease;
}

.topnav a:hover,
.topnav a.is-active {
  color: var(--accent);
  opacity: 1;
}

.quick-actions {
  justify-self: end;
  display: flex;
  gap: 8px;
}

.quick-actions button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1136px, calc(100vw - 48px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.hero {
  padding: 18px 0 32px;
}

.hero--center {
  text-align: center;
}

.page-title {
  margin: 0;
  font-family: "Parclo Serif", Georgia, serif;
  font-size: clamp(4.2rem, 8.2vw, 6rem);
  font-style: italic;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.42;
}

.hero--center p {
  margin-left: auto;
  margin-right: auto;
}

.divider {
  border-top: 1px solid var(--line);
}

.misc-section {
  padding: 28px 0 30px;
  border-top: 1px solid var(--line);
}

.misc-section:last-of-type {
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading a:hover {
  color: var(--accent);
}

.section-subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.06rem;
}

.collection-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.preview-stage {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 12px;
  perspective: 800px;
}

.collection-list {
  min-width: 0;
}

.favorite-line {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.96rem;
}

.favorite-line a {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.star {
  color: var(--accent);
}

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

.list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  margin: 0 -8px;
  padding: 7px 8px;
  border-bottom: 1px dashed var(--dash);
  border-radius: 4px;
  color: #d4d4d8;
  transition: background 160ms ease, color 160ms ease;
}

.list-row:last-child {
  border-bottom-color: transparent;
}

.list-row[hidden] {
  display: none;
}

.list-row:hover,
.list-row.is-active {
  background: var(--panel);
  color: var(--text);
}

.row-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.row-icon {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 1rem;
}

.row-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.row-meta {
  color: var(--faint);
}

.tag-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  padding: 3px 7px;
  background: rgba(255,255,255,0.10);
  color: #d4d4d8;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1;
}

.tag--orange { background: rgba(154, 75, 32, 0.52); color: #ffc78e; }
.tag--cyan { background: rgba(8, 106, 129, 0.48); color: #8eeaff; }
.tag--violet { background: rgba(91, 54, 145, 0.55); color: #d2b6ff; }
.tag--pink { background: rgba(126, 49, 126, 0.55); color: #ffc7f5; }
.tag--blue { background: rgba(39, 92, 130, 0.55); color: #abe0ff; }
.tag--red { background: rgba(137, 47, 47, 0.58); color: #ffc0bd; }
.tag--green { background: rgba(24, 105, 76, 0.58); color: #a3ffd4; }
.tag--amber { background: rgba(136, 79, 28, 0.58); color: #ffcf72; }

.more-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.93rem;
}

.more-line button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.more-line button:hover {
  color: var(--text);
}

.album-object {
  position: relative;
  width: 164px;
  height: 164px;
  transform: rotateY(-9deg) rotateX(1deg);
  transition: transform 240ms ease;
}

.album-object:hover {
  transform: rotateY(-14deg) rotateX(1deg) translateY(-2px);
}

.album-disc {
  position: absolute;
  right: -52px;
  top: 12px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.85) 0 17%, transparent 18%),
    repeating-radial-gradient(circle, #0b0b0d 0 4px, #1e1e22 5px 7px);
  box-shadow: 0 15px 34px rgba(0,0,0,0.28);
}

.album-disc img {
  position: absolute;
  inset: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  object-fit: cover;
}

.album-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 3px;
  background: #222;
  box-shadow: 0 18px 38px rgba(0,0,0,0.38);
}

.album-cover img,
.book-preview img,
.shelf-book img,
.library-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-preview {
  position: relative;
  width: 142px;
  height: 216px;
  transform: rotateY(-12deg);
  transform-style: preserve-3d;
  transition: transform 240ms ease;
}

.book-preview:hover {
  transform: rotateY(-17deg) translateY(-2px);
}

.book-preview::before {
  content: "";
  position: absolute;
  inset: 4px -10px 4px 12px;
  border-radius: 5px;
  background: #efefef;
  transform: translateZ(-10px);
  box-shadow: 12px 13px 28px rgba(0,0,0,0.28);
}

.book-preview img {
  position: relative;
  z-index: 2;
  border-radius: 5px;
  box-shadow: inset 10px 0 22px rgba(0,0,0,0.24);
}

.quote-card {
  width: min(240px, 100%);
  min-height: 192px;
  padding: 28px 24px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  color: #d4d4d8;
}

.quote-mark {
  display: block;
  color: #9ca3af;
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 0.65;
}

.quote-card p {
  margin: 18px 0;
  font-size: 1.04rem;
  font-style: italic;
  line-height: 1.5;
}

.quote-card cite {
  color: var(--faint);
  font-style: normal;
}

.monitor-preview {
  width: 218px;
}

.monitor-screen {
  display: grid;
  place-items: center;
  height: 140px;
  border: 5px solid #c6c8ca;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(140deg, #26313b, #34424e);
  color: #d9dde0;
  box-shadow: 0 18px 34px rgba(0,0,0,0.25);
}

.monitor-base {
  width: 88px;
  height: 40px;
  margin: -1px auto 0;
  border-radius: 0 0 50% 50%;
  background: #c6c8ca;
}

.youtube {
  color: #ff5b5b;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(1136px, calc(100vw - 48px));
  margin: 48px auto 0;
  padding: 32px 0 34px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
}

.footer-line {
  height: 17px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 18px 0 8px;
  color: var(--text);
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

.utility-panel,
.command-panel {
  position: fixed;
  z-index: 30;
  display: none;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  background: rgba(24, 24, 27, 0.94);
  box-shadow: 0 24px 70px rgba(0,0,0,0.42);
  backdrop-filter: blur(14px);
}

.utility-panel.is-open,
.command-panel.is-open {
  display: block;
}

.utility-panel {
  top: 72px;
  right: calc((100vw - min(1136px, calc(100vw - 48px))) / 2);
  width: 220px;
  padding: 8px;
}

.utility-panel a,
.utility-panel button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
}

.utility-panel a:hover,
.utility-panel button:hover {
  background: rgba(255,255,255,0.10);
}

.command-panel {
  top: 92px;
  left: 50%;
  width: min(520px, calc(100vw - 36px));
  transform: translateX(-50%);
  padding: 10px;
}

.command-panel input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.08);
  outline: none;
}

.command-results {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.command-results a {
  padding: 10px 12px;
  border-radius: 6px;
}

.command-results a:hover {
  background: rgba(255,255,255,0.10);
}

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.tabs {
  display: flex;
  gap: 34px;
  margin: 12px 0 18px;
  border-bottom: 1px solid var(--line);
}

.tab {
  padding: 14px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
}

.tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.ipod-note {
  margin: 24px 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.library-layout {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.ipod {
  padding: 16px 18px 26px;
  border-radius: 34px 34px 0 0;
  background: linear-gradient(120deg, #f2f2f0, #cfcfcd);
  color: #1f2933;
  box-shadow: 0 22px 52px rgba(0,0,0,0.34);
}

.ipod-screen {
  overflow: hidden;
  border: 4px solid #26313b;
  border-radius: 9px;
  background: #ccd8e2;
}

.ipod-status {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 0.74rem;
}

.ipod-title {
  padding: 8px 12px;
  background: rgba(255,255,255,0.45);
  text-align: center;
  font-weight: 700;
}

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

.ipod-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid rgba(31,41,51,0.14);
  font-size: 1rem;
}

.ipod-list li.is-active {
  background: linear-gradient(#5a94cd, #3972aa);
  color: white;
}

.ipod-footer {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 0.86rem;
  color: #374151;
}

.wheel {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 45px auto 0;
  border-radius: 50%;
  background: #444;
  color: #d1d5db;
}

.wheel::after {
  content: "";
  position: absolute;
  inset: 78px;
  border-radius: 50%;
  background: #e8e8e8;
}

.wheel span {
  position: absolute;
  font-weight: 700;
}

.wheel .menu { top: 44px; left: 50%; transform: translateX(-50%); }
.wheel .prev { left: 48px; top: 50%; transform: translateY(-50%); }
.wheel .next { right: 48px; top: 50%; transform: translateY(-50%); }

.playlist-head {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: start;
  margin: 4px 0 24px;
}

.library-art {
  overflow: hidden;
  width: 116px;
  height: 116px;
  border-radius: 6px;
}

.playlist-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.playlist-head p {
  margin: 0 0 12px;
  color: var(--muted);
}

.spotify-link {
  color: #28c76f;
}

.round-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 2rem;
}

.tracklist-title {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.tracklist li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 48px;
  gap: 14px;
  align-items: start;
  padding: 11px 0;
}

.tracklist strong {
  display: block;
  font-size: 1.14rem;
  font-weight: 500;
}

.tracklist span {
  color: var(--muted);
}

.shelf-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.search-input {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 18px 22px;
  background: #fff1dc;
  color: #334155;
  font-size: 1.04rem;
  outline: none;
}

.book-count {
  margin: 26px 0 0;
  color: var(--muted);
}

.shelf-panel h2 {
  margin: 0 0 28px;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 34px 38px;
}

.shelf-book {
  overflow: hidden;
  aspect-ratio: 0.67;
  border-radius: 5px;
  background: rgba(255,255,255,0.10);
  box-shadow: 0 20px 34px rgba(0,0,0,0.24);
  transition: transform 180ms ease, filter 180ms ease;
}

.shelf-book:hover {
  transform: translateY(-4px);
  filter: brightness(1.06);
}

.quote-wall {
  width: min(730px, 100%);
  margin: 0 auto;
  padding-top: 30px;
}

.big-quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 42px;
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
}

.big-quote p {
  margin: 0;
  font-family: "Parclo Serif", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.55rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.big-quote p::first-letter {
  float: left;
  padding-right: 10px;
  font-size: 4.4em;
  line-height: 0.75;
}

.big-quote cite {
  align-self: center;
  color: var(--muted);
  font-style: normal;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 28px 0 14px;
}

.filter-pills button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  color: var(--muted);
}

.filter-pills button.is-active {
  background: var(--text);
  color: var(--bg);
}

.showing-text {
  color: var(--muted);
}

.channel-group {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.channel-group h2 {
  margin: 0 0 22px;
  font-size: 2rem;
  text-transform: uppercase;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.channel-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 7px;
  background: rgba(255,255,255,0.055);
  transition: transform 180ms ease, border-color 180ms ease;
}

.channel-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.32);
}

.channel-thumb {
  height: 142px;
  background:
    radial-gradient(circle at 38% 30%, rgba(255,255,255,0.06), transparent 24%),
    linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
}

.channel-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: rgba(0,0,0,0.18);
}

.channel-card h3 {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
    row-gap: 18px;
  }

  .topnav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .quick-actions {
    grid-column: 2;
  }

  .collection-layout,
  .library-layout,
  .shelf-layout {
    grid-template-columns: 1fr;
  }

  .preview-stage {
    min-height: 200px;
  }

  .playlist-head {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .book-grid,
  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar,
  .page-shell,
  .site-footer {
    width: min(100% - 32px, 1136px);
  }

  .page-title {
    font-size: clamp(3.2rem, 17vw, 4.6rem);
  }

  .list-row {
    grid-template-columns: 1fr;
  }

  .tag-stack {
    justify-content: flex-start;
  }

  .book-grid,
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .big-quote {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
