/*
Theme Name: The Sunbeam
Theme URI: https://thesunbeam.pub
Author: The Sunbeam
Description: A literary magazine theme with vinyl player, hero rings, and dark mode.
Version: 1.0.0
Text Domain: sunbeam
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,700;1,9..144,300;1,9..144,400;1,9..144,500;1,9..144,700&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Space+Mono:wght@400;700&family=Syne:wght@700;800&family=Outfit:wght@700;800;900&display=swap');

/* ============================================================
   BASE / RESET
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

:root {
  --bg: #faf7f2;
  --text: #2a2825;
  --soft: #8a8580;
  --accent: #c45d3e;
  --accent2: #3e7a6e;
  --accent3: #b08c3e;
  --glow: #e8a24e;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s, color 0.5s;
}

a { color: inherit; text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--glow); }

/* ============================================================
   NAVIGATION (shared)
   ============================================================ */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid rgba(42,40,37,0.08);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.1rem 3rem;
}

.nav-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-star {
  font-size: 0.6em;
  opacity: 0.35;
  transition: opacity 0.3s;
}

.nav-brand:hover .brand-star {
  opacity: 0.7;
}

.nav-left, .nav-right {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }

.nav-left a, .nav-right a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--soft);
  transition: color 0.15s;
}

.nav-left a:hover, .nav-right a:hover { color: var(--glow); }

.mode-toggle {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--soft);
  background: none;
  border: 1px solid rgba(42,40,37,0.12);
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.mode-toggle:hover {
  color: var(--glow);
  border-color: var(--glow);
}

/* ============================================================
   FOOTER (shared)
   ============================================================ */

footer {
  position: relative;
  padding: 1.2rem 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(42,40,37,0.06);
}

.foot-copy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--soft);
  opacity: 0.4;
  white-space: nowrap;
}

.foot-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--soft);
}

.foot-links { display: flex; gap: 2.5rem; }
.foot-links a { font-size: 0.9rem; color: var(--soft); }
.foot-links a:hover { color: var(--glow); }

/* ============================================================
   DARK MODE BASE OVERRIDES (shared)
   ============================================================ */

body.dark {
  --bg: #0a0a0a;
  --text: #39ff14;
  --soft: #1a9e0a;
  --accent: #39ff14;
  --accent2: #39ff14;
  --accent3: #39ff14;
  --glow: #e8a24e;
  font-family: 'Space Mono', monospace;
}

body.dark nav,
body.dark footer {
  border-color: rgba(57,255,20,0.08);
}

body.dark .mode-toggle { border-color: rgba(57,255,20,0.2); }
body.dark .mode-toggle:hover { border-color: var(--glow); color: var(--glow); }

/* ============================================================
   HAMBURGER / MOBILE MENU (shared)
   ============================================================ */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  color: var(--text);
}
.menu-toggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  color: var(--text);
}
.mobile-menu a:hover { color: var(--glow); }
.mobile-menu-close {
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  background: none; border: none; cursor: pointer;
  color: var(--text); font-size: 1.8rem;
}
.mobile-menu .mode-toggle { margin-top: 1rem; }

body.dark .mobile-menu { background: var(--bg); }

/* ============================================================
   RESPONSIVE BASE (shared nav/footer breakpoints)
   ============================================================ */

@media (max-width: 900px) {
  nav, footer { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (max-width: 768px) {
  body { padding-top: 3.2rem; }
  .nav-left, .nav-right { display: none; }
  .menu-toggle { display: block; }
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    grid-template-columns: 1fr;
    padding: 0.9rem 1.2rem;
    justify-items: center;
  }
  .menu-toggle { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); }
  .nav-brand { font-size: 1.1rem; }
  footer { flex-direction: column; gap: 0.8rem; padding: 1.2rem; align-items: center; }
  .foot-links { gap: 0; width: 100%; justify-content: space-evenly; }
  .foot-copy { position: static; transform: none; order: 3; margin-top: 0.3rem; }
}

@media (max-width: 480px) {
  .nav-brand { font-size: 0.95rem; letter-spacing: 0.1em; }
}

/* ============================================================
   HOMEPAGE: HERO RINGS
   ============================================================ */

.hero {
  position: relative;
  height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Spiral rings -- 2 tight rings, big bold text, fast */
.ring {
  position: absolute;
  top: 50%; left: 50%;
  pointer-events: none;
  will-change: transform;
}

.ring a { pointer-events: all; }

.ring text {
  font-family: 'Fraunces', serif;
  fill: var(--text);
}

.ring a { cursor: pointer; }
.ring a tspan { transition: fill 0.15s, opacity 0.15s; }
.ring a:hover tspan { fill: var(--glow); opacity: 1; }

.ring-1 {
  width: min(72vw, 720px);
  height: min(72vw, 720px);
  margin-left: calc(min(72vw, 720px) / -2);
  margin-top: calc(min(72vw, 720px) / -2);
  animation: swirl-cw 20s linear infinite;
}
.ring-1 text { font-size: 32px; font-weight: 400; letter-spacing: -0.01em; }

.ring-2 {
  width: min(58vw, 580px);
  height: min(58vw, 580px);
  margin-left: calc(min(58vw, 580px) / -2);
  margin-top: calc(min(58vw, 580px) / -2);
  animation: swirl-ccw 25s linear infinite;
}
.ring-2 text { font-size: 32px; font-weight: 300; letter-spacing: 0.01em; }

.ring-3 {
  width: min(44vw, 450px);
  height: min(44vw, 450px);
  margin-left: calc(min(44vw, 450px) / -2);
  margin-top: calc(min(44vw, 450px) / -2);
  animation: swirl-cw 30s linear infinite;
}
.ring-3 text { font-size: 32px; font-weight: 400; letter-spacing: 0.02em; }

.ring-4 {
  width: min(32vw, 330px);
  height: min(32vw, 330px);
  margin-left: calc(min(32vw, 330px) / -2);
  margin-top: calc(min(32vw, 330px) / -2);
  animation: swirl-ccw 35s linear infinite;
}
.ring-4 text { font-size: 32px; font-weight: 300; letter-spacing: 0.03em; }

@keyframes swirl-cw  { to { transform: rotate(360deg); } }
@keyframes swirl-ccw { to { transform: rotate(-360deg); } }

/* ============================================================
   HOMEPAGE: HERO CENTER
   ============================================================ */

.hero-center-link {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: clamp(80px, 10vw, 130px);
  height: clamp(80px, 10vw, 130px);
  border-radius: 50%;
  cursor: pointer;
  transition: box-shadow 0.3s;
  background: radial-gradient(circle, rgba(232, 162, 78, 0.08) 0%, transparent 70%);
  animation: easter-pulse 3s ease-in-out infinite;
}

@keyframes easter-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(232, 162, 78, 0.1); }
  50% { box-shadow: 0 0 40px rgba(232, 162, 78, 0.35), 0 0 80px rgba(232, 162, 78, 0.12); }
}

.hero-center-link:hover {
  animation: none;
  box-shadow: 0 0 50px rgba(232, 162, 78, 0.5), 0 0 100px rgba(232, 162, 78, 0.2);
  background: radial-gradient(circle, rgba(232, 162, 78, 0.15) 0%, transparent 70%);
}

body.dark .hero-center-link {
  animation-name: easter-pulse-dark;
}

@keyframes easter-pulse-dark {
  0%, 100% { box-shadow: 0 0 8px rgba(57, 255, 20, 0.1); }
  50% { box-shadow: 0 0 40px rgba(57, 255, 20, 0.4), 0 0 80px rgba(57, 255, 20, 0.15); }
}

body.dark .hero-center-link {
  background: radial-gradient(circle, rgba(57, 255, 20, 0.08) 0%, transparent 70%);
}

body.dark .hero-center-link:hover {
  animation: none;
  box-shadow: 0 0 50px rgba(57, 255, 20, 0.5), 0 0 100px rgba(57, 255, 20, 0.2);
  background: radial-gradient(circle, rgba(57, 255, 20, 0.15) 0%, transparent 70%);
}

.hero-center-img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: clamp(100px, 14vw, 160px);
  height: auto;
}

body.dark .hero-center-img {
  filter: brightness(0) invert(1) sepia(1) saturate(50) hue-rotate(70deg) drop-shadow(0 0 12px rgba(57, 255, 20, 0.4));
}

.hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 300;
  color: var(--soft);
  margin-top: 1.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ============================================================
   HOMEPAGE: SCROLL INDICATOR
   ============================================================ */

.scroll-down {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  animation: fade-bounce 3s ease-in-out infinite;
}

@keyframes fade-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

/* ============================================================
   HOMEPAGE: ISSUE BAR
   ============================================================ */

.issue-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 3rem;
  border-bottom: 1px solid rgba(42,40,37,0.06);
  font-size: 0.85rem;
  color: var(--soft);
}

/* ============================================================
   HOMEPAGE: FEATURE
   ============================================================ */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  border-bottom: 1px solid rgba(42,40,37,0.08);
}

.feature-body {
  padding: 5rem 4rem 5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.label {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.8rem;
}

.feature-hed {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.feature-hed a:hover { color: var(--glow); }

.feature-dek {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--soft);
  max-width: 44ch;
  margin-bottom: 2.5rem;
}

.meta {
  font-size: 0.85rem;
  color: var(--soft);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(42,40,37,0.08);
  display: flex;
  gap: 2rem;
}

.feature-img {
  background: linear-gradient(135deg, #eee8df, #e2dbd0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-img span {
  font-size: 0.9rem;
  color: rgba(42,40,37,0.2);
}

/* ============================================================
   HOMEPAGE: GRID + CARDS
   ============================================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(42,40,37,0.08);
}

.card {
  padding: 3rem;
  border-right: 1px solid rgba(42,40,37,0.06);
  transition: background 0.2s;
}
.card:last-child { border-right: none; }
.card:hover { background: rgba(42,40,37,0.02); }

.card-img {
  width: 100%;
  aspect-ratio: 3/2;
  background: linear-gradient(135deg, #eee8df, #e2dbd0);
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img span {
  font-size: 0.85rem;
  color: rgba(42,40,37,0.15);
}

.card-label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.8rem;
}

.card-hed {
  font-family: 'Fraunces', serif;
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.card-hed a:hover { color: var(--glow); }

.card-dek {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--soft);
  margin-bottom: 1.5rem;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--soft);
}

/* ============================================================
   HOMEPAGE: LISTEN SECTION
   ============================================================ */

.listen {
  border-bottom: 1px solid rgba(42,40,37,0.08);
}

.listen-head {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid rgba(42,40,37,0.06);
}

.listen-head h2 {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 400;
}

.listen-head span {
  font-size: 0.9rem;
  color: var(--soft);
}

/* ============================================================
   HOMEPAGE: VINYL AREA + TURNTABLE
   ============================================================ */

.vinyl-area {
  display: grid;
  grid-template-columns: 280px auto 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 1.5rem 3rem 0;
  position: relative;
  overflow: hidden;
}

.turntable {
  position: relative;
  width: clamp(340px, 48vw, 520px);
  padding-bottom: 1.5rem;
  justify-self: center;
}

.turntable-body {
  position: relative;
  background: #f0ece5;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 2px 30px rgba(42,40,37,0.08), 0 0 0 1px rgba(42,40,37,0.04);
}

.turntable-platter {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border-radius: 50%;
  background: rgba(42,40,37,0.04);
  box-shadow: inset 0 0 0 1px rgba(42,40,37,0.06);
}

.vinyl-wrap {
  position: absolute;
  top: 4%; left: 4%;
  width: 92%; height: 92%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ============================================================
   HOMEPAGE: DISC SVG + DISC LABEL
   ============================================================ */

.disc-svg {
  width: 100%; height: 100%;
  animation: spin 3s linear infinite;
  animation-play-state: paused;
  filter: drop-shadow(0 1px 8px rgba(42,40,37,0.1));
}

.vinyl-wrap.playing .disc-svg {
  animation-play-state: running;
  filter: drop-shadow(0 2px 16px rgba(42,40,37,0.18));
}

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

.disc-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 28%; height: 28%;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(42,40,37,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.disc-label-svg {
  width: 80%;
  height: 80%;
  position: absolute;
  top: 10%;
  left: 10%;
  animation: spin 3s linear infinite;
  animation-play-state: paused;
}

.vinyl-wrap.playing .disc-label-svg {
  animation-play-state: running;
}

.disc-label-svg text {
  font-family: 'Fraunces', serif;
  font-size: 10px;
  font-style: italic;
  fill: var(--text);
  opacity: 0.55;
  letter-spacing: 0.04em;
}

.disc-byline-text {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 8px !important;
  font-style: normal !important;
  opacity: 0.35 !important;
  letter-spacing: 0.06em !important;
}

.disc-label::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text);
  opacity: 0.15;
}

.disc-hover {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.vinyl-wrap:hover .disc-hover { opacity: 0.8; }
.vinyl-wrap.playing:hover .disc-hover { opacity: 0.6; }
.disc-hover svg {
  width: 30px; height: 30px;
  fill: var(--text);
  opacity: 0.5;
}

/* ============================================================
   HOMEPAGE: TONEARM
   ============================================================ */

.tonearm {
  position: absolute;
  top: -5%;
  right: -10%;
  width: 75%;
  height: 75%;
  z-index: 5;
  transform-origin: 82% 12%;
  transform: rotate(-45deg);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.vinyl-wrap.playing ~ .tonearm {
  transform: rotate(var(--arm-angle, -30deg));
}

/* ============================================================
   HOMEPAGE: ORBIT TEXT
   ============================================================ */

.orbit {
  position: absolute;
  top: 50%; left: 50%;
  pointer-events: none;
}
.orbit-1 {
  width: calc(100% + 110px); height: calc(100% + 110px);
  margin: calc(-50% - 55px) 0 0 calc(-50% - 55px);
  animation: orb 22s linear infinite paused;
}
.vinyl-wrap.playing ~ .orbit-1 { animation-play-state: running; }
.orbit-1 text {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  fill: var(--text);
  opacity: 0.4;
  letter-spacing: 0.08em;
}
.vinyl-wrap.playing ~ .orbit-1 text { opacity: 0.7; }

.orbit-2 {
  width: calc(100% + 150px); height: calc(100% + 150px);
  margin: calc(-50% - 75px) 0 0 calc(-50% - 75px);
  animation: orb-r 30s linear infinite paused;
}
.vinyl-wrap.playing ~ .orbit-2 { animation-play-state: running; }
.orbit-2 text {
  font-family: 'DM Sans', sans-serif;
  font-size: 8px;
  fill: var(--soft);
  opacity: 0.12;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.vinyl-wrap.playing ~ .orbit-2 text { opacity: 0.25; }

@keyframes orb { to { transform: rotate(360deg); } }
@keyframes orb-r { to { transform: rotate(-360deg); } }

/* ============================================================
   HOMEPAGE: TURNTABLE STRIP
   ============================================================ */

.turntable-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.8rem;
  padding: 0 0.3rem;
}

.turntable-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(42,40,37,0.1);
}

.turntable-dot.on {
  background: var(--accent);
}

.turntable-speed {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  color: var(--soft);
  letter-spacing: 0.05em;
}

.vinyl-caption {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--soft);
}

/* ============================================================
   HOMEPAGE: TRACKLIST PANEL (left of turntable)
   ============================================================ */

.tracklist-panel {
  padding: 1rem 0;
}

.tp-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 1rem;
}

.tp-track {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.75rem 0 0.4rem;
  cursor: pointer;
  transition: color 0.15s;
}

.tp-track:hover { color: var(--glow); }
.tp-track.is-active { font-weight: 500; }

.tp-track-num {
  font-size: 0.75rem;
  color: var(--soft);
  min-width: 1.2rem;
}

.tp-track-info { flex: 1; }

.tp-track-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  display: block;
}

.tp-track-by {
  font-size: 0.75rem;
  color: var(--soft);
  display: block;
  margin-top: 0.15rem;
}

.tp-track-dur {
  font-size: 0.75rem;
  color: var(--soft);
}

.tp-track-wrap {
  border-bottom: 1px solid rgba(42,40,37,0.06);
  padding-bottom: 0.6rem;
}

.tp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.4rem 0 0.2rem 2rem;
}

.tp-chips .track-marker-chip {
  font-size: 0.65rem;
  padding: 0.2rem 0.55rem;
}

body.dark .tp-track { border-color: rgba(57,255,20,0.06); }
body.dark .tp-track:hover { color: var(--glow); }
body.dark .tp-track-wrap { border-color: rgba(57,255,20,0.06); }

/* ============================================================
   HOMEPAGE: NOW PLAYING PANEL (right of turntable)
   ============================================================ */

.now-playing-panel {
  padding: 1rem 0;
}

.np-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 1.5rem;
}

.np-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.np-byline {
  font-size: 0.9rem;
  color: var(--soft);
  margin-bottom: 2rem;
}

.np-progress {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.np-time {
  font-size: 0.75rem;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
  min-width: 3.2em;
}

.np-time-end { text-align: right; }

.np-bar {
  flex: 1;
  height: 3px;
  background: rgba(42,40,37,0.08);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.np-bar-fill {
  height: 100%;
  background: var(--text);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

body.dark .np-bar { background: rgba(57,255,20,0.12); }
body.dark .np-bar-fill { background: #39ff14; }

/* Chapter markers list */
.np-chapters {
  list-style: none;
}

.np-chapter {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(42,40,37,0.06);
  cursor: pointer;
  transition: color 0.15s;
}

.np-chapter:hover { color: var(--glow); }

.np-chapter.is-active {
  font-weight: 500;
}

.np-chapter-time {
  font-size: 0.75rem;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
  min-width: 3rem;
  flex-shrink: 0;
}

.np-chapter-body {
  flex: 1;
}

.np-chapter-label {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  display: inline;
}

.np-chapter-note {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--soft);
  display: inline;
  margin-left: 0.3rem;
}

body.dark .np-chapter { border-color: rgba(57,255,20,0.06); }
body.dark .np-chapter:hover { color: var(--glow); }

/* ============================================================
   HOMEPAGE: TRACKS
   ============================================================ */

.tracks {
  border-top: 1px solid rgba(42,40,37,0.06);
}

.track {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
  padding: 1.4rem 3rem;
  border-bottom: 1px solid rgba(42,40,37,0.06);
  cursor: pointer;
  transition: background 0.15s;
}
.track:hover { background: rgba(42,40,37,0.025); }
.track.on { background: rgba(42,40,37,0.04); }

.track-name {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-style: italic;
}
.track-name a:hover { color: var(--glow); }

.track-by {
  font-size: 0.85rem;
  color: var(--soft);
  margin-top: 0.2rem;
}

.track-dur {
  font-size: 0.9rem;
  color: var(--soft);
}

.track-btn {
  font-size: 0.85rem;
  color: var(--text);
  background: none;
  border: 1px solid rgba(42,40,37,0.15);
  padding: 0.5rem 1.3rem;
  cursor: pointer;
  transition: all 0.15s;
}
.track-btn:hover,
.track.on .track-btn {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* Track chapter markers */
.track-markers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.track-marker-chip {
  font-size: 0.75rem;
  color: var(--soft);
  background: rgba(42,40,37,0.04);
  border: 1px solid rgba(42,40,37,0.08);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
}

.track-marker-chip:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.track-marker-chip span {
  font-size: 0.65rem;
  opacity: 0.5;
  margin-right: 0.3rem;
}

/* ============================================================
   HOMEPAGE: MINI PLAYER
   ============================================================ */

.mini {
  position: fixed;
  bottom: 1.2rem; left: 1.2rem;
  z-index: 200;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.4rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 0.8rem 0.4rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(42,40,37,0.25);
  max-width: 400px;
  transform: translateY(130%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mini.show { transform: translateY(0); }

.mini-disc {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, #555 0%, #555 30%, transparent 31%), var(--text);
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
  animation: spin 2s linear infinite;
}
.mini.paused .mini-disc { animation-play-state: paused; }

.mini-info { flex: 1; min-width: 0; }
.mini-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  white-space: normal;
  line-height: 1.3;
}
.mini-by {
  font-size: 0.65rem;
  color: rgba(250,247,242,0.4);
  margin-top: 0.1rem;
}

.mini button {
  background: none; border: none; cursor: pointer;
  padding: 0.3rem; display: flex;
}
.mini button svg {
  width: 16px; height: 16px;
  fill: rgba(250,247,242,0.6);
  transition: fill 0.15s;
}
.mini button:hover svg { fill: var(--bg); }

.mini-x svg {
  width: 14px !important; height: 14px !important;
  color: rgba(250,247,242,0.6) !important;
}
.mini-x:hover svg { color: #fff !important; }

/* ============================================================
   HOMEPAGE: SCRUB BAR
   ============================================================ */

.mini-scrub {
  width: 100%;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.mini-time {
  font-size: 0.65rem;
  color: rgba(250,247,242,0.35);
  flex-shrink: 0;
  min-width: 3.2em;
  font-variant-numeric: tabular-nums;
}

.mini-time-end { text-align: right; }

.scrub-track {
  flex: 1;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.scrub-bg {
  width: 100%;
  height: 3px;
  background: rgba(250,247,242,0.12);
  border-radius: 2px;
  position: relative;
  overflow: visible;
}

.scrub-fill {
  height: 100%;
  background: rgba(250,247,242,0.5);
  border-radius: 2px;
  width: 0%;
  position: relative;
}

.scrub-fill::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.15s;
}

.scrub-track:hover .scrub-fill::after {
  opacity: 1;
}

/* Chapter markers on scrub bar */
.scrub-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 9px;
  background: rgba(250,247,242,0.3);
  border-radius: 1px;
  z-index: 1;
  cursor: pointer;
}

.scrub-marker:hover {
  background: var(--bg);
}

.scrub-marker-tip {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.6rem;
  color: rgba(250,247,242,0.6);
  background: rgba(42,40,37,0.9);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.scrub-marker:hover .scrub-marker-tip {
  opacity: 1;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */

/* ── HERO ── */
.article-hero {
  width: 100%;
  height: 70vh;
  min-height: 400px;
  background: linear-gradient(135deg, #e8e2d8, #d8d0c4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero .placeholder {
  font-size: 1rem;
  color: rgba(42,40,37,0.2);
}

/* ── ARTICLE HEADER ── */
.article-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.article-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.article-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.article-dek {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--soft);
  margin-bottom: 2rem;
}

.article-meta {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(42,40,37,0.08);
  border-bottom: 1px solid rgba(42,40,37,0.08);
  font-size: 0.85rem;
  color: var(--soft);
}

.article-author {
  font-weight: 500;
  color: var(--text);
}

/* ── ARTICLE BODY ── */
.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.article-body p {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  line-height: 1.85;
  margin-bottom: 1.8rem;
  color: var(--text);
}

.article-body p:first-child::first-letter {
  font-size: 3.5rem;
  font-weight: 500;
  float: left;
  line-height: 0.8;
  padding-right: 0.12em;
  margin-top: 0.08em;
}

.article-body h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 3rem 0 1.5rem;
  letter-spacing: 0.02em;
}

.article-body blockquote {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 2rem;
  margin: 3rem 0;
}

.article-body figure {
  margin: 3rem -2rem;
}

.article-body figure img {
  width: 100%;
  display: block;
}

.article-body figcaption {
  font-size: 0.8rem;
  color: var(--soft);
  padding: 0.8rem 2rem 0;
}

.article-body .figure-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #e8e2d8, #d8d0c4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(42,40,37,0.2);
  font-size: 0.9rem;
}

/* ── AUDIO PLAYER INLINE (for audio pieces) ── */
.article-audio {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  display: none;
}

.article-audio.is-audio-piece {
  display: block;
}

.audio-player-inline {
  background: var(--text);
  color: var(--bg);
  border-radius: 12px;
  padding: 2rem;
}

.audio-player-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.audio-vinyl-mini {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.15) 20%, transparent 21%, transparent 35%, rgba(255,255,255,0.06) 35%, transparent 36%, transparent 55%, rgba(255,255,255,0.06) 55%, transparent 56%, transparent 100%), var(--accent);
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
  animation: spin 3s linear infinite;
  animation-play-state: paused;
}

.audio-vinyl-mini.spinning { animation-play-state: running; }

.audio-info { flex: 1; }
.audio-info-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
}
.audio-info-by {
  font-size: 0.8rem;
  color: rgba(250,247,242,0.4);
  margin-top: 0.2rem;
}

.audio-play-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(250,247,242,0.3);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
  flex-shrink: 0;
}
.audio-play-btn:hover { border-color: var(--bg); }
.audio-play-btn svg { width: 18px; height: 18px; fill: var(--bg); }

.audio-progress {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.audio-time {
  font-size: 0.75rem;
  color: rgba(250,247,242,0.4);
  font-variant-numeric: tabular-nums;
  min-width: 3em;
}

.audio-bar {
  flex: 1;
  height: 3px;
  background: rgba(250,247,242,0.12);
  border-radius: 2px;
  cursor: pointer;
}

.audio-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--bg);
  border-radius: 2px;
}

/* ── ARTICLE CHAPTERS (for audio) ── */
.article-chapters {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  display: none;
}

.article-chapters.is-audio-piece { display: block; }

.chapters-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 1rem;
}

.chapter-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(42,40,37,0.06);
  cursor: pointer;
  transition: color 0.15s;
}

.chapter-item:hover { color: var(--accent); }

.chapter-time {
  font-size: 0.8rem;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
  min-width: 3rem;
  flex-shrink: 0;
}

.chapter-body { flex: 1; }

.chapter-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 400;
  display: inline;
}

.chapter-note {
  display: inline;
  font-size: 0.85rem;
  color: var(--soft);
  margin-left: 0.3rem;
}

/* ── RELATED ── */
.related {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  border-top: 1px solid rgba(42,40,37,0.08);
}

.related-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.related-card {
  transition: opacity 0.15s;
}

.related-card:hover { opacity: 0.7; }

.related-card-cat {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.5rem;
}

.related-card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.related-card-meta {
  font-size: 0.8rem;
  color: var(--soft);
}

/* ============================================================
   CATEGORY PAGES (stories, essays, criticism — shared)
   ============================================================ */

.category-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 2rem 2rem;
  text-align: center;
}

.category-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.category-dek {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--soft);
  max-width: 540px;
  margin: 0 auto;
}

.category-contents {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(42,40,37,0.08);
}

.content-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(42,40,37,0.06);
  transition: color 0.15s;
}

.content-item:hover { color: var(--glow); }

.content-info { flex: 1; }

.content-title {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.content-dek {
  font-size: 0.9rem;
  color: var(--soft);
  margin-bottom: 0.3rem;
}

.content-by {
  font-size: 0.8rem;
  color: var(--soft);
}

.content-by a:hover { color: var(--glow); }

.content-meta {
  font-size: 0.8rem;
  color: var(--soft);
  flex-shrink: 0;
}

.content-issue {
  font-size: 0.75rem;
  color: var(--accent2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.content-issue a:hover { color: var(--glow); }

/* ============================================================
   ISSUE PAGE
   ============================================================ */

.issue-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 2rem 2rem;
  text-align: center;
}

.issue-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.issue-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.issue-dek {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--soft);
  max-width: 540px;
  margin: 0 auto 2rem;
}

.issue-meta {
  font-size: 0.85rem;
  color: var(--soft);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(42,40,37,0.08);
}

.issue-contents {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}

.contents-section {
  margin-bottom: 3rem;
}

/* ── PAST ISSUES ── */
.past-issues {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.past-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(42,40,37,0.08);
}

.past-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.past-card {
  padding: 1.5rem;
  border: 1px solid rgba(42,40,37,0.08);
  border-radius: 8px;
  transition: border-color 0.15s;
}

.past-card:hover { border-color: var(--glow); }

.past-card-issue {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.5rem;
}

.past-card-theme {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.past-card-date {
  font-size: 0.8rem;
  color: var(--soft);
}

/* ============================================================
   AUTHOR PAGE
   ============================================================ */

.author-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  text-align: center;
}

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8e2d8, #d8d0c4);
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-family: 'Fraunces', serif;
  color: var(--soft);
}

.author-name {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 0.8rem;
}

.author-role {
  font-size: 1rem;
  color: var(--soft);
  margin-bottom: 2rem;
}

.author-bio {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--soft);
  max-width: 540px;
  margin: 0 auto;
}

/* ── WORK LIST ── */
.author-work {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}

.work-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(42,40,37,0.08);
}

.work-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(42,40,37,0.06);
  transition: color 0.15s;
}

.work-item:hover { color: var(--glow); }

.work-cat {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  min-width: 5rem;
  flex-shrink: 0;
}

.work-info { flex: 1; }

.work-title {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.work-dek {
  font-size: 0.9rem;
  color: var(--soft);
}

.work-meta {
  font-size: 0.8rem;
  color: var(--soft);
  flex-shrink: 0;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about { max-width: 680px; margin: 0 auto; padding: 5rem 2rem; }

.about-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

.about p {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  line-height: 1.85;
  margin-bottom: 1.8rem;
}

.about p a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(42,40,37,0.2);
}
.about p a:hover { text-decoration-color: var(--glow); }

.about h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 3rem 0 1.5rem;
  letter-spacing: 0.02em;
}

.about-cta {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid rgba(42,40,37,0.2);
  padding: 0.7rem 1.8rem;
  border-radius: 4px;
  margin-top: 1rem;
  transition: all 0.2s;
}
.about-cta:hover { border-color: var(--glow); color: var(--glow); }

.issues-list {
  margin: 2rem 0;
}

.issue-link {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(42,40,37,0.06);
  transition: color 0.15s;
}
.issue-link:hover { color: var(--glow); }

.issue-link-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  min-width: 5rem;
  flex-shrink: 0;
}

.issue-link-title {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  flex: 1;
}

.issue-link-date {
  font-size: 0.85rem;
  color: var(--soft);
  flex-shrink: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.5rem 0 3rem;
}

.team-member {
  padding: 1.5rem;
  border: 1px solid rgba(42,40,37,0.06);
  border-radius: 8px;
}

.team-name {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.team-role {
  font-size: 0.85rem;
  color: var(--soft);
}

/* ============================================================
   LAB PAGE: LAYOUT
   ============================================================ */

.page-lab body,
body.page-lab {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Account for WP admin bar when logged in */
.admin-bar.page-lab {
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
}

body.page-lab .lab {
  min-height: 0;
}

/* Lab brand under vinyl */
.lab-brand {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--soft);
  white-space: nowrap;
}
.lab-brand:hover { color: var(--glow); }
body.dark .lab-brand { color: var(--soft); }
body.dark .lab-brand:hover { color: var(--glow); }

/* Lab mobile nav — hidden on desktop */
.lab-mobile-nav { display: none; }

/* Lab hint badge */
.lab-hint {
  position: fixed;
  top: 2.5rem;
  left: 3rem;
  z-index: 50;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  color: #e74c3c;
  animation: hint-fade-out 0.6s 10s ease forwards;
}

.lab-hint span {
  display: inline-block;
  animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes hint-fade-out {
  to { opacity: 0; }
}

body.dark .lab-hint { color: #c084fc; font-family: 'Space Mono', monospace; }

.lab {
  flex: 1;
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  align-items: center;
  justify-items: center;
  padding: 2rem;
  gap: 2rem;
}

/* ── LAB: VINYL STAGE ── */
.vinyl-stage {
  width: min(80vh, 80vw);
  height: min(80vh, 80vw);
  position: relative;
}

.lab .disc-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 20px rgba(42,40,37,0.12));
  animation: spin 3s linear infinite;
  animation-play-state: paused;
}

.lab .disc-svg.spinning {
  animation-play-state: running;
  filter: drop-shadow(0 4px 30px rgba(42,40,37,0.2));
}

.lab-tonearm {
  position: absolute;
  top: -5%;
  right: -10%;
  width: 75%;
  height: 75%;
  z-index: 5;
  transform-origin: 82% 12%;
  transform: rotate(-45deg);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.lab-tonearm.playing {
  transform: rotate(var(--lab-arm, -33deg));
}

/* ── LAB: SIDE PANELS ── */
.side-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.picker-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.picker-group label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
}

.picker-group input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(42,40,37,0.1);
  border-radius: 50%;
  cursor: pointer;
  background: none;
  padding: 0;
  transition: border-color 0.2s;
}

.picker-group input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.picker-group input[type="color"]::-webkit-color-swatch { border: none; border-radius: 50%; }
.picker-group input[type="color"]::-moz-color-swatch { border: none; border-radius: 50%; }
.picker-group input[type="color"]:hover { border-color: var(--glow); }

.label-input {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--text);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(42,40,37,0.15);
  padding: 0.3rem 0;
  width: 200px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}

.label-input:focus { border-color: var(--glow); }

body.dark .label-input {
  color: var(--text);
  border-color: rgba(57,255,20,0.2);
}
body.dark .label-input:focus { border-color: var(--glow); }

.side-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
  background: none;
  border: 1px solid rgba(42,40,37,0.15);
  padding: 0.5rem 1.4rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  max-width: 140px;
}

.side-btn:hover { color: var(--glow); border-color: var(--glow); }
.side-btn.active { color: var(--text); border-color: var(--text); }

.desktop-only { display: flex; }
.button-row { display: none; }

/* ── LAB: SPIN BUTTONS ── */
.spin-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 105px;
  height: 105px;
}

.spin-burst {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: burst-spin 8s linear infinite;
  transition: transform 0.3s;
  pointer-events: none;
}

.spin-wrap:hover .spin-burst {
  transform: scale(1.1);
}

@keyframes burst-spin {
  to { transform: rotate(360deg); }
}

body.is-spinning .spin-burst {
  animation-play-state: paused;
}

.spin-btn {
  position: relative;
  z-index: 2;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--bg);
  border: none;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(42,40,37,0.1);
}

.spin-btn:hover { background: var(--text); color: var(--bg); }
.spin-btn.active { background: var(--text); color: var(--bg); }

.rand-burst { animation: burst-spin-r 4s linear infinite; }
@keyframes burst-spin-r { to { transform: rotate(-360deg); } }

.rand-btn { font-size: 0.9rem; }

/* Desktop Splat — big and irresistible */
.side-colors .spin-wrap {
  width: 160px;
  height: 160px;
  align-self: center;
  margin-left: 1.5rem;
}
.side-colors .spin-wrap .spin-btn {
  width: 90px;
  height: 90px;
  font-size: 1.3rem;
  box-shadow: 0 4px 20px rgba(196, 93, 62, 0.25);
  animation: splat-pulse 2s ease-in-out infinite;
}

@keyframes splat-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(196, 93, 62, 0.25); transform: scale(1); }
  50% { box-shadow: 0 6px 30px rgba(196, 93, 62, 0.4); transform: scale(1.05); }
}

.side-colors .spin-wrap:hover .spin-btn {
  animation: none;
  transform: scale(1.1);
  box-shadow: 0 8px 40px rgba(196, 93, 62, 0.5);
}

.side-colors .spin-wrap:hover .spin-burst {
  transform: scale(1.3);
}

body.dark .spin-burst polygon { fill: #39ff14; }
body.dark .spin-btn { background: #0a0a0a; color: #39ff14; box-shadow: 0 0 12px rgba(57,255,20,0.15); }
body.dark .spin-btn:hover, body.dark .spin-btn.active { background: #39ff14; color: #0a0a0a; }

/* ── LAB: BOTTOM BAR ── */
.bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  border-top: 1px solid rgba(42,40,37,0.06);
  flex-shrink: 0;
  position: relative;
}

.back-link {
  font-size: 0.85rem;
  color: var(--soft);
}

.bottom-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--soft);
}

.bottom-credit {
  font-size: 0.6rem;
  color: var(--soft);
  opacity: 0.5;
}

/* Lab mode toggle override (slightly smaller) */
.bottom-bar .mode-toggle {
  font-size: 0.65rem;
  padding: 0.3rem 0.7rem;
}

/* ============================================================
   HOMEPAGE: RESPONSIVE OVERRIDES
   ============================================================ */

@media (max-width: 900px) {
  .issue-bar, .feature-body, .listen-head, .track {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .feature { grid-template-columns: 1fr; }
  .feature-img { min-height: 260px; }
  .grid { grid-template-columns: 1fr; }
  .card { border-right: none; border-bottom: 1px solid rgba(42,40,37,0.06); padding: 2rem 1.5rem; }
  .track { grid-template-columns: 1fr auto; }
  .track-dur { display: none; }
  .vinyl-area { padding: 2rem 1.5rem 3rem; grid-template-columns: 1fr; }
  .turntable { order: 1; }
  .now-playing-panel { order: 2; }
  .tracklist-panel { order: 3; }
  .mini {
    left: 0; right: 0; bottom: 0;
    max-width: none;
    border-radius: 0;
    padding: 0.6rem 1rem 0.5rem;
    box-shadow: 0 -2px 10px rgba(42,40,37,0.15);
  }
  .ring text { font-size: 22px !important; }
  /* Article responsive */
  .article-header, .article-body, .article-audio, .article-chapters, .related {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .article-body figure { margin-left: -1.5rem; margin-right: -1.5rem; }
  .related-grid { grid-template-columns: 1fr; }
  /* Category responsive */
  .category-header, .category-contents { padding-left: 1.5rem; padding-right: 1.5rem; }
  /* Issue responsive */
  .issue-header, .issue-contents, .past-issues { padding-left: 1.5rem; padding-right: 1.5rem; }
  .past-grid { grid-template-columns: 1fr; }
  /* Author responsive */
  .author-header, .author-work { padding-left: 1.5rem; padding-right: 1.5rem; }
  .work-item { flex-direction: column; gap: 0.3rem; }
  .work-meta { margin-top: 0.3rem; }
  /* About responsive */
  .about { padding-left: 1.5rem; padding-right: 1.5rem; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* On homepage mobile: no padding-top, nav is sticky not fixed */
  body.home { padding-top: 0; }
  body.home nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  /* Hero rings: BIGGER on mobile, shift center up */
  .hero { height: 100dvh; align-items: center; padding-top: 0; margin-top: 0; }
  .ring-1 { width: 140vw; height: 140vw; margin-left: -70vw; margin-top: -70vw; }
  .ring-2 { width: 115vw; height: 115vw; margin-left: -57.5vw; margin-top: -57.5vw; }
  .ring-3 { width: 90vw; height: 90vw; margin-left: -45vw; margin-top: -45vw; }
  .ring-4 { width: 68vw; height: 68vw; margin-left: -34vw; margin-top: -34vw; }
  .ring text { font-size: 32px !important; }
  .scroll-down { bottom: 2.5rem; z-index: 50; }
  .scroll-down svg { width: 28px; height: 16px; }
  /* Issue bar */
  .issue-bar { padding: 0.6rem 1.2rem; font-size: 0.75rem; }
  /* Feature */
  .feature-body { padding: 2.5rem 1.2rem; }
  .feature-hed { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  .feature-dek { font-size: 1.1rem; }
  /* Cards */
  .card { padding: 1.5rem 1.2rem; }
  .card-hed { font-size: 1.5rem; }
  /* Listen */
  .listen-head { padding: 1rem 1.2rem; }
  .listen-head h2 { font-size: 1.6rem; }
  .turntable { width: clamp(280px, 85vw, 400px); }
  /* Footer -- already handled in shared responsive */
  /* Article responsive */
  .article-body p { font-size: 1rem; line-height: 1.75; }
  .article-body blockquote { font-size: 1.3rem; }
  .article-title { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  .article-dek { font-size: 1.1rem; }
  .article-header { padding: 2.5rem 1.2rem 1.5rem; }
  .article-body { padding: 2rem 1.2rem 3rem; }
}

@media (max-width: 480px) {
  .ring text { font-size: 28px !important; }
  .feature-hed { font-size: 1.6rem; }
  .card-hed { font-size: 1.3rem; }
  .label, .card-label { font-size: 0.75rem; }
  .meta, .card-meta { font-size: 0.75rem; }
  .article-body p { font-size: 0.95rem; }
  .article-title { font-size: 1.6rem; }
}

/* ============================================================
   HOMEPAGE: DARK MODE OVERRIDES
   ============================================================ */

body.dark .ring text,
body.dark .feature-hed,
body.dark .card-hed,
body.dark .listen-head h2,
body.dark .track-name,
body.dark .feature-dek,
body.dark .card-dek,
body.dark .disc-label-svg text,
body.dark .vinyl-caption {
  font-family: 'Space Mono', monospace;
}

body.dark .ring text tspan[font-family] {
  font-family: 'Space Mono', monospace !important;
}

body.dark .hero-title {
  font-family: 'Space Mono', monospace;
}

/* Dark mode ring text -- all lime, contrast via weight */
body.dark .ring text {
  fill: #39ff14;
  font-size: 28px !important;
  font-weight: 300;
  opacity: 0.4;
}

body.dark .ring text tspan[font-weight="700"],
body.dark .ring text tspan[font-weight="600"] {
  font-weight: 700;
  opacity: 1;
}

body.dark .ring text tspan[font-weight="500"] {
  font-weight: 500;
  opacity: 0.7;
}

/* Subtle scanline overlay */
body.dark .hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 10;
}

/* Glow on text */
body.dark .ring-1 text {
  filter: drop-shadow(0 0 8px rgba(57, 255, 20, 0.3));
}

/* Dark turntable */
body.dark .turntable-body {
  background: #111;
  box-shadow: 0 2px 30px rgba(57, 255, 20, 0.06), 0 0 0 1px rgba(57, 255, 20, 0.1);
}

body.dark .turntable-platter {
  background: rgba(57, 255, 20, 0.03);
  box-shadow: inset 0 0 0 1px rgba(57, 255, 20, 0.08);
}

body.dark .disc-label {
  background: #0a0a0a;
  border-color: rgba(57, 255, 20, 0.15);
}

body.dark .disc-label-svg text {
  fill: #39ff14;
}

body.dark .feature-img,
body.dark .card-img {
  background: linear-gradient(135deg, #111, #0a0a0a);
}

body.dark .feature-img span,
body.dark .card-img span {
  color: rgba(57, 255, 20, 0.15);
}

/* Dark borders */
body.dark .issue-bar,
body.dark .feature,
body.dark .grid,
body.dark .listen,
body.dark .tracks .track {
  border-color: rgba(57, 255, 20, 0.08);
}

body.dark .card {
  border-color: rgba(57, 255, 20, 0.06);
}

body.dark .card:hover {
  background: rgba(57, 255, 20, 0.03);
}

/* Dark mini player */
body.dark .mini {
  background: #111;
  border: 1px solid rgba(57, 255, 20, 0.15);
  box-shadow: 0 4px 20px rgba(57, 255, 20, 0.08);
  color: #f0f0f0;
}

body.dark .mini-name { color: #f0f0f0; }
body.dark .mini-by { color: rgba(240,240,240,0.5); }
body.dark .mini-time { color: rgba(240,240,240,0.4); }
body.dark .mini button svg { fill: rgba(240,240,240,0.7); }
body.dark .mini button:hover svg { fill: #f0f0f0; }
body.dark .mini-x svg { fill: rgba(240,240,240,0.4) !important; }

body.dark .scrub-bg { background: rgba(57, 255, 20, 0.12); }
body.dark .scrub-fill { background: rgba(57, 255, 20, 0.5); }

body.dark .track-btn {
  color: #39ff14;
  border-color: rgba(57, 255, 20, 0.2);
}

body.dark .track-btn:hover,
body.dark .track.on .track-btn {
  background: #39ff14;
  color: #0a0a0a;
  border-color: #39ff14;
}

body.dark .track-marker-chip {
  color: #1a9e0a;
  background: rgba(57, 255, 20, 0.04);
  border-color: rgba(57, 255, 20, 0.1);
}

body.dark .track-marker-chip:hover {
  background: #39ff14;
  color: #0a0a0a;
  border-color: #39ff14;
}

body.dark .mode-toggle:hover {
  border-color: #39ff14;
}

/* ============================================================
   ARTICLE: DARK MODE
   ============================================================ */

body.dark .article-title,
body.dark .article-dek,
body.dark .article-body p,
body.dark .article-body blockquote,
body.dark .chapter-title,
body.dark .related-card-title,
body.dark .audio-info-title,
body.dark .nav-brand,
body.dark .foot-brand {
  font-family: 'Space Mono', monospace;
}

body.dark .article-hero {
  background: linear-gradient(135deg, #111, #0a0a0a);
}

body.dark .article-hero .placeholder { color: rgba(57,255,20,0.15); }

body.dark .article-body p:first-child::first-letter {
  color: #39ff14;
}

body.dark .article-body blockquote {
  border-left-color: #39ff14;
}

body.dark .article-body .figure-placeholder {
  background: linear-gradient(135deg, #111, #0a0a0a);
  color: rgba(57,255,20,0.15);
}

body.dark .article-meta,
body.dark .chapter-item,
body.dark .related {
  border-color: rgba(57,255,20,0.08);
}

body.dark .audio-player-inline {
  background: #111;
  border: 1px solid rgba(57,255,20,0.15);
}

/* ============================================================
   CATEGORY / ISSUE / AUTHOR / ABOUT: DARK MODE
   ============================================================ */

/* Category pages */
body.dark .category-title, body.dark .category-dek, body.dark .content-title {
  font-family: 'Space Mono', monospace;
}

body.dark .content-item, body.dark .section-label {
  border-color: rgba(57,255,20,0.08);
}

/* Issue page -- uses #ccff00 glow */
body.dark.page-issue {
  --glow: #ccff00;
}

body.dark .issue-title, body.dark .content-title, body.dark .issue-dek, body.dark .past-card-theme {
  font-family: 'Space Mono', monospace;
}

body.dark .issue-meta,
body.dark .past-label, body.dark .past-card {
  border-color: rgba(57,255,20,0.08);
}

body.dark .past-card:hover { border-color: var(--glow); }

/* Author page -- uses #ccff00 glow */
body.dark.page-author {
  --glow: #ccff00;
}

body.dark .author-name,
body.dark .author-bio,
body.dark .work-title {
  font-family: 'Space Mono', monospace;
}

body.dark .author-avatar {
  background: linear-gradient(135deg, #111, #0a0a0a);
  border: 1px solid rgba(57,255,20,0.15);
}

body.dark .work-item, body.dark .work-label {
  border-color: rgba(57,255,20,0.08);
}

/* About page */
body.dark .about-title, body.dark .about p, body.dark .issue-link-title, body.dark .team-name { font-family: 'Space Mono', monospace; }
body.dark .issue-link, body.dark .team-member { border-color: rgba(57,255,20,0.08); }
body.dark .about-cta { border-color: rgba(57,255,20,0.2); }
body.dark .about-cta:hover { border-color: var(--glow); color: var(--glow); }
body.dark .about p a { text-decoration-color: rgba(57,255,20,0.2); }
body.dark .about p a:hover { text-decoration-color: var(--glow); }

/* ============================================================
   LAB: DARK MODE
   ============================================================ */

body.dark .lab .disc-svg { filter: drop-shadow(0 2px 20px rgba(57,255,20,0.12)); }
body.dark .lab .disc-svg.spinning { filter: drop-shadow(0 4px 30px rgba(57,255,20,0.2)); }
body.dark .bottom-bar { border-color: rgba(57,255,20,0.08); }
body.dark .side-btn { border-color: rgba(57,255,20,0.2); }
body.dark .side-btn:hover { color: var(--glow); border-color: var(--glow); }
body.dark .side-btn.active { color: #39ff14; border-color: #39ff14; }
body.dark .picker-group input[type="color"] { border-color: rgba(57,255,20,0.15); }
body.dark .picker-group input[type="color"]:hover { border-color: var(--glow); }

/* ============================================================
   LAB: RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .desktop-only { display: none !important; }

  .page-lab body,
  body.page-lab {
    display: block;
    overflow-y: auto;
    height: auto;
  }

  .lab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    gap: 2rem;
  }

  /* 1. Vinyl first */
  .vinyl-stage {
    order: 1;
    width: min(80vw, 400px);
    height: min(80vw, 400px);
  }

  /* 2. Splat + Spin buttons */
  .button-row {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }

  /* 3. Color pickers */
  .side-colors {
    order: 3;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
  }

  /* Reset desktop splat sizing on mobile */
  .side-colors .spin-wrap { width: 105px; height: 105px; margin-left: 0; }
  .side-colors .spin-wrap .spin-btn { width: 62px; height: 62px; font-size: 0.9rem; animation: none; box-shadow: 0 2px 8px rgba(42,40,37,0.1); }

  /* 4. Controls stacked */
  .side-controls {
    order: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 300px;
    width: 100%;
  }

  .side-controls .picker-group { width: 100%; }
  .side-controls .label-input { width: 100%; }
  .side-controls .side-btn { max-width: 100%; width: 100%; }

  /* Hide bottom bar on mobile — masthead handles navigation */
  .bottom-bar { display: none; }

  /* Remove WP admin bar padding on lab page mobile */
  .admin-bar.page-lab { margin-top: -46px; padding-top: 46px; }
  @media (min-width: 783px) {
    .admin-bar.page-lab { margin-top: 0; padding-top: 0; }
  }

  /* Mobile nav for lab */
  .lab-mobile-nav {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    padding: 0.9rem 1.2rem;
    background: var(--bg);
    border-bottom: 1px solid rgba(42,40,37,0.08);
    position: relative;
  }
  .lab-mobile-nav .menu-toggle {
    display: block;
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
  }
  .lab-mobile-nav .nav-brand { font-size: 1.1rem; }

  /* Hide bottom bar on mobile since we have masthead */
  .bottom-bar { display: none; }

  /* Hint text — static, centered, below nav on mobile */
  .lab-hint {
    position: static;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.8rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .bottom-brand { font-size: 0.7rem; letter-spacing: 0.1em; }
}
