/* Hooked to Books TV — homepage redesign "a private library at midnight"
   Translated from design/design_handoff_homepage (hifi). Homepage-only
   stylesheet; articles pages keep style.css. */

:root {
  --brown: #1a1510;
  --brown2: #231c14;
  --brown3: #2c2317;
  --brown4: #362b1c;
  --gold: #c4a35a;
  --gold-soft: #d8bd82;
  --gold-deep: #a8863f;
  --cream: #f1e9d9;
  --cream-dim: #c9bda3;
  --cream-dimmer: #8f8571;
  --line: rgba(196, 163, 90, 0.26);
  --line-soft: rgba(196, 163, 90, 0.14);
  --live-red: #d65440;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(120% 90% at 80% -5%, #241c12 0%, var(--brown) 46%) var(--brown);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
a:hover { color: var(--gold-soft); }
::selection { background: rgba(196, 163, 90, 0.3); color: #fff; }
img { max-width: 100%; }

@keyframes htb-flicker {
  0%, 100% { opacity: 0.92; transform: scale(1); }
  18% { opacity: 1; }
  22% { opacity: 0.85; }
  47% { opacity: 1; transform: scale(1.015); }
  68% { opacity: 0.9; }
  82% { opacity: 1; }
}
@keyframes htb-rain { to { background-position: 0 640px, 0 900px; } }
@keyframes htb-livepulse {
  0% { box-shadow: 0 0 0 0 rgba(214, 84, 64, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(214, 84, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 84, 64, 0); }
}
@keyframes htb-livedot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* ---------- shared ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 26px; }
.kicker {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 0;
  color: var(--cream);
}
.section-head { text-align: center; margin-bottom: 34px; }
.pill-outline {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  border-radius: 999px;
}
.pill-outline:hover { background: rgba(196, 163, 90, 0.12); color: var(--gold-soft); }
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--live-red);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 6px;
  animation: htb-livepulse 2.2s ease-out infinite;
}
.live-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; display: inline-block; }
.blink-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--live-red); display: inline-block;
  animation: htb-livedot 1.6s ease-in-out infinite;
}

/* ---------- nav ---------- */
.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 5;
}
.nav-wordmark { display: flex; align-items: baseline; gap: 9px; color: var(--cream); }
.nav-wordmark:hover { color: var(--cream); }
.nav-wordmark .name { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: 0.3px; }
.nav-wordmark .tv {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.32em;
  color: var(--gold); text-transform: uppercase; transform: translateY(-2px);
}
.nav-right { display: flex; align-items: center; gap: 26px; }
.nav-links { display: none; gap: 26px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--cream-dim); }
.nav-links a:hover { color: var(--gold-soft); }
.nav-sub { font-size: 13px; padding: 9px 16px; }
@media (min-width: 820px) { .nav-links { display: flex; } }

/* ---------- hero ---------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 26px 70px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02; margin: 0 0 20px;
  color: var(--cream); letter-spacing: -0.5px;
}
.hero-sub { font-size: 17px; line-height: 1.65; color: var(--cream-dim); max-width: 30em; margin: 0 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.cta-solid {
  background: var(--gold); color: #241a0c; font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 9px;
}
.cta-solid:hover { background: var(--gold-soft); color: #241a0c; }
.cta-solid .glyph { font-size: 11px; }
.cta-outline { font-size: 15px; padding: 14px 26px; }

/* finder panel (wraps the live AI widget) */
.finder-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(54, 43, 28, 0.5), rgba(35, 28, 20, 0.5));
  border-radius: 16px;
  padding: 16px;
  max-width: 520px;
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.8);
}
.finder-prompt {
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--gold-soft); margin: 2px 4px 12px;
}
/* book-finder.js injected widget, restyled to the redesign spec */
.bf-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--cream); border-radius: 10px;
  padding: 6px 6px 6px 14px;
}
.bf-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold-deep);
  box-shadow: 0 0 8px rgba(196, 163, 90, 0.8);
}
.bf-input {
  flex: 1; border: 0; background: transparent;
  font-family: var(--sans); font-size: 14px; color: #2c2317;
  outline: none; min-width: 0; padding: 8px 0;
}
.bf-input::placeholder { color: #6b5f49; }
.bf-btn {
  background: var(--gold-deep); color: #241a0c; font-weight: 600; font-size: 14px;
  font-family: var(--sans); border: 0; padding: 10px 18px; border-radius: 8px;
  cursor: pointer; white-space: nowrap; transition: background 0.2s ease;
}
.bf-btn:hover { background: var(--gold); }
.bf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bf-chip {
  background: rgba(196, 163, 90, 0.08);
  border: 1px solid var(--line-soft);
  color: var(--cream-dim);
  font-size: 12.5px; font-family: var(--sans);
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.bf-chip:hover { border-color: var(--gold); color: var(--cream); }
.bf-answer {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--brown3), var(--brown2));
  border-radius: 12px;
  padding: 18px 18px 12px;
  font-size: 14px; line-height: 1.6; color: var(--cream-dim);
}
.bf-answer p { margin: 0 0 0.9em; }
.bf-answer a { text-decoration: underline; text-underline-offset: 3px; }
.bf-answer strong { color: var(--cream); }
.bf-kicker {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 9px;
}
.bf-loading { font-style: italic; color: var(--cream-dimmer); }
.bf-note { font-size: 11.5px; color: var(--cream-dimmer); margin: 10px 4px 0; }

/* window into the reading room */
.room {
  position: relative;
  aspect-ratio: 5 / 6;
  min-height: 420px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #20180f 0%, #130f0a 100%);
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), inset 0 0 60px rgba(0, 0, 0, 0.5);
}
.room-muntin { position: absolute; inset: 16px; border: 1px solid rgba(196, 163, 90, 0.16); border-radius: 10px; pointer-events: none; }
.room-bar { position: absolute; left: 50%; top: 16px; bottom: 16px; width: 1px; background: rgba(196, 163, 90, 0.1); }
.room-rain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.7;
  background:
    repeating-linear-gradient(101deg, transparent 0 12px, rgba(200, 215, 235, 0.05) 12px 13px),
    repeating-linear-gradient(101deg, transparent 0 26px, rgba(200, 215, 235, 0.07) 26px 27px);
  background-size: auto 640px, auto 900px;
  animation: htb-rain 2.4s linear infinite;
}
.room-glow {
  position: absolute; right: 8%; top: 6%; width: 70%; height: 60%;
  background: radial-gradient(circle at 62% 30%, rgba(224, 180, 96, 0.42) 0%, rgba(196, 143, 60, 0.16) 34%, transparent 62%);
  animation: htb-flicker 5s ease-in-out infinite;
  pointer-events: none;
}
.room-screen {
  position: absolute; left: 9%; top: 11%; width: 52%;
  border: 2px solid rgba(196, 163, 90, 0.4); border-radius: 6px;
  padding: 5px; background: #0d0a07;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.9);
  display: block;
}
.room-screen-inner {
  position: relative; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden;
  background: linear-gradient(135deg, #2a2116, #171009);
}
.room-screen-inner iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}
.room-screen-glow { position: absolute; inset: 0; background: radial-gradient(circle at 70% 40%, rgba(224, 180, 96, 0.28), transparent 60%); }
.room-screen .live-chip { position: absolute; left: 9px; top: 9px; font-size: 10px; padding: 4px 9px; border-radius: 5px; }
.room-screen .live-chip .dot { width: 5px; height: 5px; }
.room-play {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(196, 163, 90, 0.9); color: #241a0c;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.room-svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 56%; }

/* ---------- now playing ---------- */
.now { padding: 60px 0; }
.mantel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--brown3), var(--brown2));
  padding: 14px;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}
.mantel-top { border-top: 3px solid rgba(196, 163, 90, 0.5); border-radius: 12px 12px 0 0; padding-top: 14px; }
.mantel-stream {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #2c2216 0%, #100b06 70%);
}
.mantel-stream iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mantel-stream .live-chip { position: absolute; left: 16px; top: 16px; font-size: 11px; padding: 5px 11px; z-index: 3; pointer-events: none; }
.mantel-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 8px 6px;
}
.mantel-title { font-family: var(--serif); font-size: 22px; color: var(--cream); margin-bottom: 5px; }
.mantel-status { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--cream-dim); }
.mantel-status .muted { color: var(--cream-dimmer); }
.mantel-status .live-inline { display: inline-flex; align-items: center; gap: 6px; }
.mantel-cta { font-size: 14px; padding: 11px 20px; }

/* ---------- latest videos ---------- */
.videos { padding: 50px 0 30px; }
.videos-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 20px; margin-bottom: 30px; flex-wrap: wrap;
}
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card {
  display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, rgba(54, 43, 28, 0.35), rgba(35, 28, 20, 0.25));
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px 12px 16px;
  color: var(--cream);
}
.video-card:hover { border-color: var(--line); color: var(--cream); }
.video-thumb {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, #2a2116, #171009);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-thumb-placeholder { display: flex; align-items: center; justify-content: center; color: var(--gold); }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(26, 21, 16, 0.75); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s ease;
}
.video-card:hover .video-play { opacity: 1; }
.video-title { font-family: var(--serif); font-size: 17px; font-weight: 500; line-height: 1.3; margin: 0 4px; }

/* ---------- shelves ---------- */
.shelves { padding: 50px 0 30px; }
.shelves-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 20px; margin-bottom: 30px; flex-wrap: wrap;
}
.shelves-all { font-size: 14px; font-weight: 600; }
.shelf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.shelf {
  display: block; padding: 20px 20px 0;
  background: linear-gradient(180deg, rgba(54, 43, 28, 0.35), rgba(35, 28, 20, 0.25));
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  color: var(--cream);
}
.shelf:hover { border-color: var(--line); color: var(--cream); }
.shelf-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.shelf-name { font-family: var(--serif); font-size: 20px; }
.shelf-count { font-size: 12px; color: var(--cream-dimmer); }
.spines { display: flex; align-items: flex-end; gap: 5px; height: 132px; position: relative; }
.spine {
  flex: 1;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 22%, transparent 80%, rgba(0, 0, 0, 0.3));
  border-radius: 3px 3px 0 0;
  border-top: 2px solid rgba(240, 225, 190, 0.28);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 9px;
  transform-origin: bottom center;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
  cursor: pointer;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.06);
}
.spine:hover { transform: translateY(-14px) rotate(-4deg); }
.spine span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 9.5px; letter-spacing: 0.04em;
  color: rgba(241, 233, 217, 0.82); font-weight: 600; white-space: nowrap;
}
.shelf-wood {
  height: 9px;
  background: linear-gradient(180deg, #3a2c1a, #241a10);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.8);
}
.shelf-open { padding: 12px 0 18px; font-size: 13px; color: var(--gold); font-weight: 500; }

/* ---------- featured guides ---------- */
.guides { padding: 50px 0; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide-card {
  display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, var(--brown3), var(--brown2));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  color: var(--cream);
  min-height: 172px;
}
.guide-card:hover { border-color: var(--gold); color: var(--cream); }
.guide-tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.guide-title { font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.guide-hook { font-size: 14px; line-height: 1.55; color: var(--cream-dim); flex: 1; }
.guide-read { font-size: 13px; font-weight: 600; color: var(--gold); }

/* ---------- curated picks ---------- */
.picks { padding: 50px 0; }
.pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pick { display: flex; flex-direction: column; }
.pick-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(240, 225, 190, 0.16);
  box-shadow:
    0 22px 40px -24px rgba(0, 0, 0, 0.9),
    inset 3px 0 0 rgba(0, 0, 0, 0.25),
    inset 6px 0 0 rgba(255, 255, 255, 0.05);
  background: linear-gradient(145deg, var(--brown3), rgba(0, 0, 0, 0.4));
  display: block;
}
.pick-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-title { font-family: var(--serif); font-size: 17px; line-height: 1.2; color: var(--cream); margin: 14px 0 3px; }
.pick-author { font-size: 12.5px; color: var(--cream-dimmer); margin: 0 0 8px; }
.pick-why { font-size: 13px; line-height: 1.55; color: var(--cream-dim); margin: 0 0 14px; flex: 1; }
.pick-buy {
  align-self: flex-start;
  background: var(--gold); color: #241a0c;
  font-size: 13px; font-weight: 600;
  padding: 9px 16px; border-radius: 8px;
}
.pick-buy:hover { background: var(--gold-soft); color: #241a0c; }
.picks-wood {
  height: 12px;
  background: linear-gradient(180deg, #3a2c1a, #241a10);
  border-radius: 3px;
  margin-top: 26px;
  box-shadow: 0 12px 22px -10px rgba(0, 0, 0, 0.85);
}
.picks-disclosure { font-size: 11px; color: var(--cream-dimmer); text-align: center; margin-top: 16px; }
.pick-cat {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin: 34px 0 18px;
}
.pick-cat:first-of-type { margin-top: 0; }

/* ---------- newsletter ---------- */
.newsletter { max-width: 820px; margin: 0 auto; padding: 50px 26px 70px; }
.newsletter-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: radial-gradient(120% 120% at 20% 0%, #2c2317 0%, var(--brown2) 60%);
  padding: 48px 40px;
  overflow: hidden;
  text-align: center;
}
.newsletter-glow {
  position: absolute; left: -40px; top: -40px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(224, 180, 96, 0.14), transparent 65%);
  animation: htb-flicker 5s ease-in-out infinite;
  pointer-events: none;
}
.newsletter-card .kicker, .newsletter-card h2, .newsletter-card p, .newsletter-card form { position: relative; }
.newsletter-card h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 0 0 14px; color: var(--cream);
}
.newsletter-sub { font-size: 15px; line-height: 1.6; color: var(--cream-dim); max-width: 34em; margin: 0 auto 26px; }
.newsletter-form {
  display: flex; gap: 10px; max-width: 440px; margin: 0 auto;
  background: var(--cream); border-radius: 10px; padding: 6px 6px 6px 16px;
}
.newsletter-input {
  flex: 1; border: 0; background: transparent;
  font-size: 14px; font-family: var(--sans); color: #2c2317;
  outline: none; min-width: 0;
}
.newsletter-input::placeholder { color: #6b5f49; }
.newsletter-btn {
  background: var(--gold-deep); color: #241a0c;
  font-weight: 600; font-size: 14px; font-family: var(--sans);
  border: 0; padding: 11px 20px; border-radius: 8px;
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s ease;
}
.newsletter-btn:hover { background: var(--gold); }
.newsletter-done { color: var(--gold); font-size: 16px; font-weight: 600; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); background: #140f0a; }
.silhouette-wrap { max-width: 1120px; margin: 0 auto; padding: 0 26px; }
.silhouette { display: flex; align-items: flex-end; gap: 4px; height: 56px; opacity: 0.5; }
.silhouette span { flex: 1; border-radius: 2px 2px 0 0; }
.silhouette-wood { height: 6px; background: #3a2c1a; border-radius: 2px; }
.footer-main {
  max-width: 1120px; margin: 0 auto; padding: 38px 26px;
  display: flex; flex-wrap: wrap; gap: 28px;
  justify-content: space-between; align-items: flex-start;
}
.footer-brand { max-width: 22em; }
.footer-wordmark { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--cream); margin-bottom: 10px; }
.footer-wordmark .tv { color: var(--gold); font-size: 11px; letter-spacing: 0.3em; }
.footer-tagline { font-size: 13px; line-height: 1.6; color: var(--cream-dimmer); margin: 0; }
.footer-cols { display: flex; gap: 52px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.footer-col a { font-size: 14px; color: var(--cream-dim); }
.footer-col a:hover { color: var(--gold-soft); }
.footer-legal { max-width: 1120px; margin: 0 auto; padding: 0 26px 34px; border-top: 1px solid var(--line-soft); }
.footer-legal p { font-size: 11.5px; line-height: 1.6; color: var(--cream-dimmer); padding-top: 20px; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  /* min-height + aspect-ratio otherwise forces a 350px min-width that
     overflows narrow viewports */
  .room { min-height: 0; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .pick-grid { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .shelf-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .newsletter-card { padding: 38px 22px; }
}

/* Newsletter inline states (Kit wire) */
.newsletter-done { color: var(--cream, #f1e9d9); font-size: 16px; line-height: 1.6; padding: 12px 0; }
.newsletter-error { color: #d65440; font-size: 13.5px; margin-top: 10px; flex-basis: 100%; }

/* Slim Now Playing band — the player lives in the hero window now */
.mantel-slim { border-top: 3px solid rgba(196, 163, 90, 0.5); max-width: 760px; margin: 0 auto; }
.mantel-slim .mantel-meta { padding-top: 4px; }

/* ===== Reading-room accounts: modal, hamburger, My Shelf (2026-07-10) ===== */

/* Mobile hamburger — nav-links become a dropdown panel under the bar */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-burger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger-open span:nth-child(2) { opacity: 0; }
.nav-burger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 819px) {
  .nav-burger { display: flex; }
  .nav-right { gap: 12px; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--brown2);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  }
  .nav-links-open { display: flex; }
  .nav-links a {
    padding: 14px 26px;
    font-size: 15px;
    color: var(--cream);
    border-bottom: 1px solid rgba(196, 163, 90, 0.08);
  }
  .nav-links a:last-child { border-bottom: none; }
}

/* Account modal — branded, never a native dialog */
.rr-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 7, 4, 0.78);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* iOS Safari only delivers click events to elements that look clickable */
  cursor: pointer;
}
/* display:flex above would override the hidden attribute's UA display:none */
.rr-overlay[hidden] { display: none; }
.rr-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: var(--brown2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 30px 26px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.6);
  cursor: auto;
}
.rr-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--cream-dimmer);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(201, 162, 39, 0.25);
}
.rr-close:hover { color: var(--gold-soft); }
.rr-kicker {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.rr-title {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--cream);
  margin: 0 0 8px;
}
.rr-sub {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--cream-dim);
  margin: 0 0 18px;
}
.rr-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 4px;
}
.rr-tab {
  flex: 1;
  padding: 8px 0;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--cream-dimmer);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.rr-tab-active { background: var(--gold); color: var(--brown); }
.rr-form { display: flex; flex-direction: column; gap: 10px; }
.rr-input {
  background: var(--brown);
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 14px;
  font-size: 16px;
  font-family: var(--sans);
  outline: none;
}
.rr-input:focus { border-color: var(--gold); }
.rr-error {
  font-size: 13px;
  color: var(--live-red);
  background: rgba(214, 84, 64, 0.08);
  border: 1px solid rgba(214, 84, 64, 0.25);
  border-radius: 8px;
  padding: 10px 12px;
}
.rr-submit {
  background: var(--gold);
  color: var(--brown);
  border: none;
  border-radius: 9px;
  padding: 13px 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.rr-submit:hover { background: var(--gold-soft); }
.rr-submit:disabled { opacity: 0.6; cursor: default; }
.rr-fine {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: var(--cream-dimmer);
  text-align: center;
}

/* Ask-bar extras: related guides + saved-to-shelf */
.bf-related {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bf-related-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dimmer);
}
.bf-related-link {
  font-size: 12.5px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-soft);
}
.bf-related-link:hover { background: rgba(196, 163, 90, 0.12); }
.bf-saved {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--cream-dimmer);
}
.bf-saved a { color: var(--gold-soft); }

/* My Shelf page */
.shelf-page { padding: 120px 0 80px; min-height: 70vh; }
.shelf-page .container { max-width: 760px; margin: 0 auto; padding: 0 22px; }
.shelf-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}
.shelf-kicker { margin-bottom: 6px; }
.shelf-title {
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 48px);
  color: var(--cream);
  margin: 0 0 6px;
}
.shelf-sub { font-size: 13.5px; color: var(--cream-dimmer); margin: 0; }
.shelf-actions { display: flex; align-items: center; gap: 12px; }
.shelf-logout {
  background: none;
  border: none;
  color: var(--cream-dimmer);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.shelf-logout:hover { color: var(--gold-soft); }
.shelf-list { display: flex; flex-direction: column; gap: 26px; }
.shelf-entry {
  background: var(--brown2);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 26px 28px;
}
.shelf-entry-date {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.shelf-entry-q {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  color: var(--cream);
  margin: 0 0 12px;
}
.shelf-entry-a { font-size: 14.5px; line-height: 1.7; color: var(--cream-dim); }
.shelf-entry-a p { margin: 0 0 12px; }
.shelf-entry-a p:last-child { margin-bottom: 0; }
.shelf-entry-a strong { color: var(--cream); }
.shelf-empty {
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--cream-dim);
}
.shelf-empty p { margin: 0 0 18px; font-family: var(--serif); font-size: 19px; }
.shelf-empty .btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--brown);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
.footer-legal-simple { padding: 26px 0; text-align: center; font-size: 12px; color: var(--cream-dimmer); }
.nav-sub { white-space: nowrap; }
.shelf-entry-pending { border-color: rgba(196, 163, 90, 0.55); }
.shelf-entry-pending .bf-loading { color: var(--gold-soft); }
@keyframes rr-breathe { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }
.shelf-entry-pending .bf-loading { animation: rr-breathe 2.2s ease-in-out infinite; }

/* ── Bookmark Engine (shared: homepage embed + /studio) ─────────────── */
.ask{display:flex;gap:10px;max-width:680px;flex-wrap:wrap}
.ask input{flex:1;min-width:220px;padding:15px 18px;font-size:16px;border-radius:12px;border:1px solid var(--line);background:var(--brown2);color:var(--cream)}
.ask input:focus{outline:none;border-color:var(--gold)}
.ask button{padding:15px 26px;font-size:15px;font-weight:700;border:none;border-radius:12px;cursor:pointer;background:linear-gradient(135deg,var(--gold),var(--gold-deep));color:#1a1510}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 0}
.chip{font-size:12.5px;color:var(--cream-dim);border:1px solid var(--line);border-radius:99px;padding:7px 14px;cursor:pointer;background:none}
.chip:hover{color:var(--gold-soft);border-color:var(--gold)}
.scrub-note{display:none;max-width:640px;margin:14px 0 0;font-size:13px;line-height:1.55;color:var(--cream-dim);background:rgba(201,162,39,.07);border:1px solid rgba(201,162,39,.25);border-radius:10px;padding:12px 16px}
.board{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:18px;max-width:860px;margin:30px 0 0}
.bm-card{background:var(--brown2);border:1px solid var(--line);border-radius:12px;padding:14px;text-align:center}
.bm-card svg{width:100%;height:auto;border-radius:6px;box-shadow:0 10px 34px rgba(0,0,0,.45)}
.actions{display:flex;gap:12px;margin:26px 0 0;flex-wrap:wrap}
.btn2{padding:14px 26px;font-size:15px;font-weight:700;border-radius:12px;cursor:pointer;border:1px solid var(--line);background:none;color:var(--cream)}
.btn2:hover{border-color:var(--gold);color:var(--gold-soft)}
.btn-dl{background:linear-gradient(135deg,var(--gold),#a87f1c);color:#1a1510;border:none}
.btn-dl:hover{color:#1a1510;filter:brightness(1.06)}
.fine{margin:16px 0 0;font-size:12.5px;color:var(--cream-dimmer)}
.fine a{color:var(--gold-soft)}
@media (max-width:560px){.board{grid-template-columns:repeat(2,1fr)}}
