/* ======================================================================
   Novel Bitches — main.css
   Atelier × Witchy. Cinzel + EB Garamond + Italianno on midnight + parchment.
   ====================================================================== */

/* ───────────────────────── 0. TOKENS ───────────────────────── */
:root {
  --night:         #0e0814;
  --night-soft:    #160c1e;
  --dusk:          #1f1428;
  --parchment:     #e8dcc4;
  --parchment-dim: #b9a98c;
  --candle:        #d4a056;
  --candle-bright: #e8b966;
  --wine:          #8b3a2a;
  --moss:          #4a5a3f;
  --amethyst:      #4a2c5a;
  --muted:         #7a6c54;
  --rule:          rgba(212, 160, 86, 0.35);
  --rule-soft:     rgba(212, 160, 86, 0.18);
  --live-red:      #d23a2a;

  /* Year-shelf spine palette — cycles in groups of 4 */
  --spine-1: var(--candle);
  --spine-2: var(--wine);
  --spine-3: var(--moss);
  --spine-4: var(--amethyst);

  /* Layout */
  --pad-x:        56px;
  --pad-y:        56px;
  --pad-x-mobile: 20px;
  --pad-y-mobile: 40px;
}

/* ───────────────────────── 1. RESET / BASE ───────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--night);
  color: var(--parchment);
  font-family: 'EB Garamond', Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { overflow-x: hidden; position: relative; min-height: 100vh; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; }

a { color: inherit; }

/* Skip link for keyboard users */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  padding: 8px 12px; background: var(--candle); color: var(--night);
  font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.2em;
  z-index: 9999;
}
.skip-link:focus { left: 16px; top: 16px; }
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px;
  overflow: hidden;
}

/* candlelight + grain — the witchy atmosphere */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 1100px 700px at 80% 0%, rgba(212, 160, 86, 0.10), transparent 65%),
    radial-gradient(ellipse 900px 600px at 10% 100%, rgba(139, 58, 42, 0.08), transparent 65%);
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.85 0 0 0 0 0.7 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

.page { position: relative; z-index: 2; }

/* ───────────────────────── 2. NAV ───────────────────────── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--pad-x);
  border-bottom: 1px solid var(--rule);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 8, 20, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.masthead { display: flex; align-items: center; gap: 12px; }
.nav-logo {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-logo img { width: 100%; height: 100%; object-fit: contain; }
.seal {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--candle);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-family: 'EB Garamond', serif; font-weight: 600; font-style: italic;
  color: var(--candle);
  box-shadow: 0 0 16px rgba(212, 160, 86, 0.18);
  text-transform: none; letter-spacing: 0;
}
.wordmark {
  font-family: 'EB Garamond', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--parchment);
  text-transform: none;
  text-decoration: none;
}
.wordmark em { font-style: italic; color: var(--candle); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-family: 'Cinzel', serif; font-weight: 500;
  color: var(--parchment-dim); text-decoration: none;
  font-size: 11px; letter-spacing: 0.22em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--candle); }

/* ───────────────────────── 3. ISSUE BAR ───────────────────────── */
.issue {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  align-items: baseline;
  padding: 14px var(--pad-x);
  border-bottom: 1px solid var(--rule);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--parchment-dim);
}
.issue-left   { text-align: left; }
.issue-center { text-align: center; }
.issue-right  {
  text-align: right;
  font-style: italic; text-transform: none; letter-spacing: 0.04em;
  font-family: 'EB Garamond', serif; font-size: 13px;
}
.issue-right .quote-glyph { color: var(--candle); margin: 0 0.15em; }

/* ───────────────────────── 4. HERO ───────────────────────── */
.hero {
  padding: 72px var(--pad-x) 56px;
  border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 48px; align-items: end;
  position: relative;
}
.hero-headline {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: clamp(5rem, 12vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--parchment);
}
.hero-headline .l1 {
  display: block;
  text-shadow: 0 0 80px rgba(232, 220, 196, 0.12);
}
.hero-headline .l2 {
  font-family: 'Italianno', cursive;
  font-style: italic; font-weight: 400;
  font-size: 1.55em; line-height: 0.7;
  color: var(--candle);
  letter-spacing: 0;
  display: block;
  margin-top: 0.05em;
  margin-left: -0.05em;
  text-shadow: 0 0 50px rgba(212, 160, 86, 0.35);
}
.hero-right { display: flex; flex-direction: column; gap: 18px; padding-bottom: 14px; }
.hero-dek {
  font-family: 'EB Garamond', serif;
  font-style: italic; font-weight: 400;
  font-size: 22px; line-height: 1.4;
  color: var(--parchment);
  max-width: 28ch;
}
.hero-meta {
  display: flex; flex-direction: column; gap: 8px;
  font-family: 'Cinzel', serif; font-weight: 500;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--parchment-dim);
  padding-top: 4px; border-top: 1px solid var(--rule-soft);
}

/* ───────────────────────── 5. CTAs ───────────────────────── */
.cta {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  background: var(--candle);
  color: var(--night);
  font-family: 'Cinzel', serif; font-weight: 600;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  border: none; cursor: pointer;
}
.cta:hover {
  background: var(--candle-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 160, 86, 0.3);
}
.cta-ghost {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 22px;
  background: transparent;
  color: var(--candle);
  font-family: 'Cinzel', serif; font-weight: 600;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--candle);
  transition: all 0.2s;
}
.cta-ghost:hover { background: var(--candle); color: var(--night); }

/* ───────────────────────── 6. MARQUEE ───────────────────────── */
.marquee-wrap {
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  overflow: hidden;
  font-family: 'EB Garamond', serif;
  font-style: italic; font-weight: 400;
  font-size: 16px;
  color: var(--parchment-dim);
  position: relative;
}
.marquee-wrap::before, .marquee-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px;
  pointer-events: none; z-index: 2;
}
.marquee-wrap::before { left: 0;  background: linear-gradient(to right, var(--night), transparent); }
.marquee-wrap::after  { right: 0; background: linear-gradient(to left,  var(--night), transparent); }
.marquee {
  display: flex;
  width: max-content;
  animation: nb-marquee 50s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
.marquee-row {
  display: flex; gap: 48px; padding-right: 48px;
  white-space: nowrap;
}
.marquee-row .glyph { color: var(--candle); margin-right: 0.5em; }
@keyframes nb-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ───────────────────────── 7. SECTION FRAME ───────────────────────── */
.site-main > section,
.container-pad {
  padding: var(--pad-y) var(--pad-x);
  border-bottom: 1px solid var(--rule);
}

.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px; gap: 24px; flex-wrap: wrap;
}
.eyebrow {
  font-family: 'Cinzel', serif; font-weight: 500;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--candle);
}
.archive-link {
  font-family: 'Cinzel', serif; font-weight: 500;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--candle); text-decoration: none;
  border-bottom: 1px solid var(--candle);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.archive-link:hover { color: var(--candle-bright); border-color: var(--candle-bright); }

/* ───────────────────────── 8. REVEAL ───────────────────────── */
.reveal-grid {
  display: grid; grid-template-columns: 320px 1fr; gap: 48px;
  align-items: flex-start;
}

.book-frame {
  width: 320px; height: 460px;
  background: var(--night-soft);
  border: 1px solid var(--rule);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  overflow: hidden;
}
.book-frame::before {
  content: '';
  position: absolute; inset: 6px;
  border: 1px solid var(--rule-soft);
  pointer-events: none;
  z-index: 2;
}
.book-frame-image {
  position: absolute; inset: 12px;
  width: calc(100% - 24px); height: calc(100% - 24px);
  object-fit: cover;
}
.book-cover {
  position: absolute; inset: 12px;
  background:
    radial-gradient(ellipse at center, rgba(212, 160, 86, 0.18) 0%, transparent 70%),
    linear-gradient(155deg, var(--dusk) 0%, var(--night-soft) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(212, 160, 86, 0.4);
}
.book-cover-glyph {
  font-family: 'Italianno', cursive;
  font-size: 2.5rem; color: var(--candle);
  margin-bottom: 1rem; line-height: 0.7;
}
.book-cover-title {
  font-family: 'Cinzel', serif; font-weight: 500;
  font-size: 1.6rem; line-height: 1.15;
  letter-spacing: 0.04em;
  margin-bottom: 1.4rem;
  color: var(--parchment);
}
.book-cover-author {
  font-family: 'EB Garamond', serif; font-style: italic;
  font-size: 1rem; color: var(--candle);
}
.book-cover-author::before { content: '— '; }
.book-cover-author::after  { content: ' —'; }

.reveal-right { display: flex; flex-direction: column; gap: 18px; }
.book-title {
  font-family: 'Cinzel', serif; font-weight: 400;
  font-size: 44px; line-height: 1.0;
  letter-spacing: 0.01em;
  color: var(--parchment);
  margin: 0;
}
.book-title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.book-title a:hover { color: var(--candle); }
.book-author {
  font-family: 'EB Garamond', serif; font-style: italic;
  font-size: 18px; color: var(--parchment-dim);
}
.book-blurb {
  font-family: 'EB Garamond', serif;
  font-size: 15px; line-height: 1.75;
  color: var(--parchment-dim);
  max-width: 540px;
}
.book-blurb p + p { margin-top: 1em; }

/* ───────────────────────── 9. YEAR SHELF ───────────────────────── */
.shelf-wrap { margin-top: 48px; }
.shelf-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
}
.shelf-progress {
  font-family: 'Cinzel', serif; font-weight: 500;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--muted);
}
.shelf {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  list-style: none;
}
.spine {
  height: 140px;
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 10px;
  font-family: 'Cinzel', serif; font-weight: 600;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.spine.revealed {
  color: var(--night);
}
.spine.revealed::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: rgba(0, 0, 0, 0.22);
}
.spine.revealed:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(212, 160, 86, 0.18);
}
.spine.locked {
  background: var(--night-soft);
  border: 1px dashed rgba(212, 160, 86, 0.35);
  color: var(--muted);
  cursor: not-allowed;
}
.spine.locked .lock {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  font-family: 'Italianno', cursive;
  font-size: 22px; color: var(--muted);
  line-height: 0.7;
}

/* ───────────────────────── 10. RETREAT ───────────────────────── */
.retreat-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px;
  align-items: stretch;
}
.retreat-photo {
  height: 460px;
  border: 1px solid var(--rule);
  background:
    radial-gradient(ellipse 600px 400px at 50% 30%, rgba(212, 160, 86, 0.15), transparent 70%),
    linear-gradient(180deg, var(--dusk) 0%, var(--night) 100%);
  position: relative; overflow: hidden;
}
.retreat-photo--has-image {
  background-size: cover;
  background-position: center;
}
.retreat-photo svg { width: 100%; height: 100%; }
.retreat-photo-tag {
  position: absolute; top: 16px; left: 16px;
  font-family: 'Cinzel', serif; font-weight: 500;
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--candle);
  background: rgba(14, 8, 20, 0.7);
  padding: 6px 10px;
  backdrop-filter: blur(6px);
}
.retreat-body { display: flex; flex-direction: column; gap: 14px; padding: 8px 0; }
.retreat-title {
  font-family: 'Cinzel', serif; font-weight: 400;
  font-size: 64px; line-height: 1.0;
  letter-spacing: 0.005em;
  margin: 0;
  color: var(--parchment);
}
.retreat-title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.retreat-title a:hover { color: var(--candle); }
.retreat-blurb {
  font-family: 'EB Garamond', serif;
  font-size: 15px; line-height: 1.75;
  color: var(--parchment-dim);
  max-width: 460px;
}
.retreat-meta {
  display: flex; gap: 32px;
  margin-top: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  flex-wrap: wrap;
}
.retreat-meta-cell .label {
  font-family: 'Cinzel', serif; font-weight: 500;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--parchment-dim);
  margin-bottom: 6px;
}
.retreat-meta-cell .value {
  font-family: 'EB Garamond', serif;
  font-size: 19px; color: var(--parchment);
  letter-spacing: 0.01em;
}
.retreat-meta-cell .value.spots-low { color: var(--wine); font-style: italic; }
.price-pill {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--candle);
  align-self: flex-start;
  font-family: 'EB Garamond', serif;
  font-size: 14px;
  color: var(--parchment);
  background: rgba(212, 160, 86, 0.06);
  margin-top: 8px;
  flex-wrap: wrap;
}
.price-pill .from   { font-style: italic; color: var(--parchment-dim); }
.price-pill .amount {
  font-family: 'Cinzel', serif; font-weight: 500;
  font-size: 22px; color: var(--candle);
}
.price-pill .deposit {
  font-family: 'Cinzel', serif; font-weight: 500;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--parchment-dim);
}

/* ───────────────────────── 11. LIVE ───────────────────────── */
.live-header { gap: 32px; }
.live-title-block { display: flex; flex-direction: column; gap: 10px; }
.live-status {
  font-family: 'Cinzel', serif; font-weight: 400;
  font-size: 56px; line-height: 1.0;
  letter-spacing: -0.005em;
  color: var(--parchment);
  margin: 0;
}
.live-status .live-now {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--live-red);
}
.live-dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--live-red);
  display: inline-block;
  box-shadow: 0 0 12px rgba(210, 58, 42, 0.7);
  animation: nb-pulse 1.6s ease-in-out infinite;
}
@keyframes nb-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}
.live-status .em-dash { color: var(--candle); margin: 0 0.2em; font-style: italic; }
.live-status .episode {
  font-family: 'Italianno', cursive; font-style: italic;
  font-size: 1.45em; color: var(--candle); letter-spacing: 0;
}

.live-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px;
}
.live-tile {
  position: relative; overflow: hidden;
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: all 0.25s;
}
.live-tile:hover {
  border-color: var(--candle);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(212, 160, 86, 0.15);
}
.live-tile.primary { aspect-ratio: 16/9; }
.live-tile.small   { aspect-ratio: 16/10; }
.live-tile-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px;
  background: linear-gradient(180deg, rgba(14, 8, 20, 0.55) 0%, transparent 35%, rgba(14, 8, 20, 0.95) 100%);
}
.live-tile-tag {
  font-family: 'Cinzel', serif; font-weight: 600;
  font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--candle);
}
.live-tile-tag.is-live {
  color: var(--parchment);
  background: var(--live-red); padding: 5px 9px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
}
.live-tile-tag.is-live .live-dot { width: 7px; height: 7px; }
.live-tile-title {
  font-family: 'EB Garamond', serif; font-style: italic;
  font-size: 18px; line-height: 1.3;
  color: var(--parchment);
}
.live-tile.primary .live-tile-title { font-size: 24px; max-width: 80%; }
.live-tile-stack { display: flex; flex-direction: column; gap: 12px; }

/* ───────────────────────── 12. FOOTER ───────────────────────── */
.site-footer {
  padding: 40px var(--pad-x);
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  font-family: 'Cinzel', serif; font-weight: 500;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--parchment-dim);
  gap: 20px;
}
.site-footer .left   { text-align: left; }
.site-footer .center { text-align: center; }
.site-footer .right  { text-align: right; }
.site-footer a {
  color: var(--parchment-dim); text-decoration: none; transition: color 0.2s;
}
.site-footer a:hover { color: var(--candle); }

/* ───────────────────────── 13. PAGE/POST ───────────────────────── */
.page-title {
  font-family: 'Cinzel', serif; font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.005em; line-height: 1;
  color: var(--parchment);
  margin: 0;
}
.page-content {
  max-width: 70ch;
  font-size: 1.1rem; line-height: 1.75;
  color: var(--parchment-dim);
}
.page-content p + p { margin-top: 1em; }
.page-content a { color: var(--candle); }

/* ───────────────────────── 14. ANIMATIONS ───────────────────────── */
@keyframes nb-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade { opacity: 0; animation: nb-fade-up 1s ease forwards; }
.fade-1 { animation-delay: 0.1s; }
.fade-2 { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .marquee, .live-dot, .fade { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ───────────────────────── 15. RESPONSIVE ───────────────────────── */
@media (max-width: 900px) {
  :root { --pad-x: var(--pad-x-mobile); --pad-y: var(--pad-y-mobile); }

  .nav { padding: 16px 20px; gap: 12px; flex-wrap: wrap; }
  .nav-links { display: none; }
  .wordmark { font-size: 18px; }

  .issue { padding: 10px 20px; grid-template-columns: 1fr; gap: 4px; text-align: center; font-size: 9px; }
  .issue-left, .issue-center, .issue-right { text-align: center; }
  .issue-right { display: none; }

  .hero { padding: 40px 20px 36px; grid-template-columns: 1fr; gap: 28px; }
  .hero-headline { font-size: clamp(4.5rem, 18vw, 6rem); }
  .hero-right { padding-bottom: 0; }
  .hero-dek { font-size: 18px; }

  .site-main > section, .container-pad { padding: 40px 20px; }

  .reveal-grid { grid-template-columns: 1fr; gap: 28px; }
  .book-frame { width: 100%; max-width: 320px; height: auto; aspect-ratio: 320/460; margin: 0 auto; }
  .book-title { font-size: 32px; }

  .shelf { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .spine { height: 96px; }

  .retreat-grid { grid-template-columns: 1fr; }
  .retreat-photo { height: 280px; }
  .retreat-title { font-size: 42px; }
  .retreat-meta { flex-wrap: wrap; gap: 18px; }

  .live-row { grid-template-columns: 1fr; }
  .live-tile-stack { flex-direction: row; }
  .live-tile-stack .live-tile { flex: 1; }
  .live-status { font-size: 32px; }

  .site-footer { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .site-footer .left, .site-footer .center, .site-footer .right { text-align: center; }
}

/* ───────────────────────── 16. COUNTDOWN ───────────────────────── */
/* When .episode is acting as a countdown, use Cinzel + numeric tabular
   figures so the seconds tick smoothly instead of jittering width. */
.live-status .episode.is-countdown {
	font-family: 'Cinzel', serif;
	font-weight: 500;
	font-style: normal;
	font-size: 0.62em;
	letter-spacing: 0.12em;
	color: var(--candle);
	font-variant-numeric: tabular-nums;
	text-transform: uppercase;
	vertical-align: 0.15em;
}

/* ───────────────────────── 17. SPINE COVERS ───────────────────────── */
.spine.revealed.has-cover {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: var(--parchment);
}
.spine.revealed.has-cover::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(14, 8, 20, 0.9) 0%, rgba(14, 8, 20, 0.25) 38%, transparent 60%);
	pointer-events: none;
}
.spine.revealed.has-cover .spine-label {
	position: relative; z-index: 2;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* ───────────────────────── 18. MOBILE HERO REFINEMENTS ───────────────────────── */
@media (max-width: 900px) {
	/* Trim the cursive line so "Dangerously." doesn't blow past the viewport */
	.hero-headline .l2 {
		font-size: 1.15em;
	}

	/* Tighten the right column so it reads as part of the hero, not stranded text */
	.hero-right {
		gap: 14px;
	}
	.hero-dek {
		font-size: 17px;
		line-height: 1.5;
		max-width: none;
	}
	.hero-meta {
		font-size: 10px;
		gap: 6px;
		padding-top: 12px;
	}
}

/* ───────────────────────── 19. SINGLE PAGE SHARED ───────────────────────── */

.single-back {
	padding: 24px var(--pad-x) 0;
}
.back-link {
	display: inline-block;
	font-family: 'Cinzel', serif; font-weight: 500;
	font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--parchment-dim); text-decoration: none;
	transition: color 0.2s;
}
.back-link:hover { color: var(--candle); }

.single-title {
	font-family: 'Cinzel', serif; font-weight: 400;
	font-size: clamp(2.6rem, 6vw, 4.8rem);
	line-height: 1.0; letter-spacing: -0.005em;
	color: var(--parchment);
	margin: 0;
}
.single-byline {
	font-family: 'EB Garamond', serif; font-style: italic;
	font-size: 22px; color: var(--parchment-dim);
	margin-top: 8px;
}
.single-byline-name { color: var(--candle); font-style: normal; font-weight: 500; }

.single-actions {
	display: flex; flex-wrap: wrap; gap: 12px;
	margin-top: 24px;
}

.single-prose, .live-extra-content {
	padding: 32px var(--pad-x) 56px;
	border-bottom: 1px solid var(--rule);
}
.prose-inner, .prose-body {
	max-width: 70ch;
	font-family: 'EB Garamond', serif;
	font-size: 19px; line-height: 1.75;
	color: var(--parchment);
}
.prose-inner p, .prose-body p { margin: 0 0 1em; }
.prose-inner p:first-of-type::first-letter,
.prose-body p:first-of-type::first-letter {
	font-family: 'Cinzel', serif; font-weight: 500;
	font-size: 4.5em; float: left; line-height: 0.85;
	margin: 0.05em 0.12em 0 0; color: var(--candle);
}
.prose-inner a, .prose-body a { color: var(--candle); }


/* ───────────────────────── 20. SINGLE BOOK ───────────────────────── */

.book-hero {
	display: grid; grid-template-columns: 360px 1fr;
	gap: 56px;
	padding: 24px var(--pad-x) 56px;
	border-bottom: 1px solid var(--rule);
	align-items: start;
}
.book-hero-cover { display: flex; justify-content: center; }
.book-hero-cover .book-frame {
	width: 360px; height: 520px;
}
.book-hero-info { display: flex; flex-direction: column; gap: 14px; }
.book-stats {
	display: flex; gap: 32px; flex-wrap: wrap;
	margin-top: 12px;
	padding: 16px 0;
	border-top: 1px solid var(--rule-soft);
	border-bottom: 1px solid var(--rule-soft);
}
.book-stats > div { min-width: 0; }
.book-stats dt {
	font-family: 'Cinzel', serif; font-weight: 500;
	font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
	color: var(--parchment-dim);
	margin-bottom: 4px;
}
.book-stats dd {
	font-family: 'EB Garamond', serif;
	font-size: 18px; color: var(--parchment);
	margin: 0;
}

.single-stream {
	padding: 56px var(--pad-x);
	border-bottom: 1px solid var(--rule);
}
.video-frame {
	position: relative;
	max-width: 1100px; margin: 0 auto;
	aspect-ratio: 16/9;
	border: 1px solid var(--rule);
	overflow: hidden;
	background: var(--night-soft);
}
.video-frame iframe {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	border: 0;
}

.single-nav {
	display: grid; grid-template-columns: 1fr 1fr;
	gap: 16px;
	padding: 56px var(--pad-x);
}
.single-nav-card {
	display: flex; flex-direction: column; gap: 8px;
	padding: 24px;
	border: 1px solid var(--rule);
	background: var(--night-soft);
	text-decoration: none;
	transition: all 0.25s;
}
.single-nav-card:hover {
	border-color: var(--candle);
	background: rgba(212, 160, 86, 0.05);
	transform: translateY(-2px);
}
.single-nav-card.next { text-align: right; }
.single-nav-label {
	font-family: 'Cinzel', serif; font-weight: 500;
	font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
	color: var(--candle);
}
.single-nav-title {
	font-family: 'Cinzel', serif; font-weight: 400;
	font-size: 22px; color: var(--parchment);
	line-height: 1.2;
}
.single-nav-author {
	font-family: 'EB Garamond', serif; font-style: italic;
	font-size: 15px; color: var(--parchment-dim);
}


/* ───────────────────────── 21. SINGLE RETREAT ───────────────────────── */

.retreat-hero-full {
	position: relative;
	min-height: 70vh;
	display: flex; align-items: flex-end;
	padding: 96px var(--pad-x) 56px;
	background-color: var(--dusk);
	background-size: cover;
	background-position: center;
	border-bottom: 1px solid var(--rule);
}
.retreat-hero-full::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(14, 8, 20, 0.4) 0%, rgba(14, 8, 20, 0.85) 80%, rgba(14, 8, 20, 0.95) 100%);
	pointer-events: none;
}
.retreat-hero-overlay {
	position: relative; z-index: 2;
	display: flex; flex-direction: column; gap: 14px;
}
.retreat-h1 {
	font-family: 'Cinzel', serif; font-weight: 400;
	font-size: clamp(3rem, 7vw, 5.5rem);
	line-height: 1; letter-spacing: -0.005em;
	color: var(--parchment);
	margin: 0;
}
.retreat-hero-meta {
	font-family: 'EB Garamond', serif; font-style: italic;
	font-size: 22px; color: var(--candle);
	display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.retreat-hero-meta .dot { color: var(--parchment-dim); }

.retreat-pitch {
	display: grid; grid-template-columns: 1.5fr 1fr;
	gap: 56px;
	padding: 56px var(--pad-x);
	border-bottom: 1px solid var(--rule);
	align-items: start;
}
.pitch-prose .lede {
	font-family: 'EB Garamond', serif; font-style: italic;
	font-size: 26px; line-height: 1.45;
	color: var(--parchment);
	margin: 0 0 1em;
}
.pitch-prose .prose-body { font-size: 17px; }

.pitch-inclusions {
	background: var(--night-soft);
	border: 1px solid var(--rule);
	padding: 28px;
}
.aside-title {
	font-family: 'Cinzel', serif; font-weight: 500;
	font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
	color: var(--candle);
	margin: 0 0 18px;
}
.pitch-inclusions ul {
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-direction: column; gap: 10px;
}
.pitch-inclusions li {
	font-family: 'EB Garamond', serif;
	font-size: 16px; color: var(--parchment);
	display: flex; align-items: baseline; gap: 12px;
}
.pitch-inclusions .check { color: var(--candle); font-size: 0.8em; }

.retreat-gallery {
	padding: 56px var(--pad-x);
	border-bottom: 1px solid var(--rule);
}
.gallery-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-auto-rows: 200px;
	gap: 8px;
}
.gallery-tile {
	overflow: hidden;
	border: 1px solid var(--rule);
	background: var(--night-soft);
	display: block;
}
.gallery-tile:nth-child(1) { grid-row: span 2; grid-column: span 1; }
.gallery-tile:nth-child(4) { grid-column: span 2; }
.gallery-tile img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}
.gallery-tile:hover img { transform: scale(1.04); }

.retreat-rooms {
	padding: 56px var(--pad-x);
	border-bottom: 1px solid var(--rule);
}
.rooms-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 24px;
}
.room-card {
	background: var(--night-soft);
	border: 1px solid var(--rule);
	display: flex; flex-direction: column;
	transition: all 0.2s;
}
.room-card:not(.is-booked):hover {
	border-color: var(--candle);
	transform: translateY(-2px);
	box-shadow: 0 14px 40px rgba(212, 160, 86, 0.12);
}
.room-card.is-booked { opacity: 0.55; }
.room-image {
	position: relative;
	aspect-ratio: 4/3;
	overflow: hidden;
	background: var(--dusk);
}
.room-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.room-image-placeholder svg { width: 60%; height: 60%; }
.room-booked-banner {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	background: rgba(14, 8, 20, 0.7);
	color: var(--parchment);
	font-family: 'Cinzel', serif; font-weight: 600;
	font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase;
	backdrop-filter: blur(2px);
}
.room-body {
	padding: 20px 22px 22px;
	display: flex; flex-direction: column; gap: 10px;
	flex: 1;
}
.room-name {
	font-family: 'Cinzel', serif; font-weight: 400;
	font-size: 22px; color: var(--parchment);
	line-height: 1.2; margin: 0;
}
.room-desc {
	font-family: 'EB Garamond', serif;
	font-size: 15px; line-height: 1.5;
	color: var(--parchment-dim);
	margin: 0;
}
.room-footer {
	margin-top: auto;
	display: flex; align-items: center; justify-content: space-between;
	padding-top: 14px;
	border-top: 1px solid var(--rule-soft);
}
.room-price {
	font-family: 'Cinzel', serif; font-weight: 500;
	font-size: 18px; color: var(--candle);
}
.room-price del {
	color: var(--parchment-dim); margin-right: 6px;
	font-size: 0.85em; opacity: 0.7;
}
.room-cta {
	padding: 10px 16px; font-size: 10px;
}
.room-cta-disabled {
	font-family: 'Cinzel', serif; font-weight: 500;
	font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--parchment-dim);
}
.rooms-tba {
	padding: 32px;
	border: 1px dashed var(--rule);
	background: var(--night-soft);
	text-align: center;
	font-family: 'EB Garamond', serif; font-style: italic;
	font-size: 18px; color: var(--parchment-dim);
}

/* Payment timeline */
.retreat-payment {
	padding: 56px var(--pad-x);
	border-bottom: 1px solid var(--rule);
}
.payment-intro {
	font-family: 'EB Garamond', serif;
	font-size: 19px; line-height: 1.7;
	color: var(--parchment);
	max-width: 70ch;
	margin: 0 0 32px;
}
.payment-intro strong { color: var(--candle); font-weight: 500; }
.payment-timeline {
	list-style: none; padding: 0; margin: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1px;
	background: var(--rule);
	border: 1px solid var(--rule);
}
.payment-step {
	background: var(--night-soft);
	padding: 18px 16px;
	display: flex; flex-direction: column; gap: 6px;
}
.payment-step.is-deposit { background: rgba(212, 160, 86, 0.08); }
.payment-step .step-num {
	font-family: 'Cinzel', serif; font-weight: 600;
	font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
	color: var(--candle);
}
.payment-step .step-label {
	font-family: 'EB Garamond', serif;
	font-size: 14px; color: var(--parchment-dim);
}
.payment-step .step-amount {
	font-family: 'Cinzel', serif; font-weight: 500;
	font-size: 22px; color: var(--parchment);
	margin-top: 4px;
}
.payment-step.is-deposit .step-amount { color: var(--candle); }
.payment-note {
	font-family: 'EB Garamond', serif; font-size: 14px;
	color: var(--parchment-dim);
	margin-top: 18px;
	max-width: 70ch;
}

/* Accordions */
.retreat-itinerary, .retreat-rules {
	padding: 56px var(--pad-x);
	border-bottom: 1px solid var(--rule);
}
.accordion { display: flex; flex-direction: column; gap: 4px; }
.accordion details, .retreat-rules details {
	border: 1px solid var(--rule);
	background: var(--night-soft);
}
.accordion details + details { border-top: 0; }
.accordion summary, .retreat-rules summary {
	cursor: pointer;
	padding: 18px 22px;
	font-family: 'Cinzel', serif; font-weight: 500;
	font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--parchment);
	list-style: none;
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px;
}
.accordion summary::-webkit-details-marker, .retreat-rules summary::-webkit-details-marker { display: none; }
.accordion summary::after, .retreat-rules summary::after {
	content: '+'; color: var(--candle);
	font-family: 'Cinzel', serif; font-size: 22px; font-weight: 300;
	transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(45deg); }
.accordion-body {
	padding: 0 22px 22px;
	font-family: 'EB Garamond', serif;
	font-size: 16px; line-height: 1.65;
	color: var(--parchment-dim);
}
.accordion-body p { margin: 0 0 0.8em; }
.accordion-body.prose-body { font-size: 17px; }

/* Mobile sticky CTA */
.retreat-sticky-cta {
	display: none;
}


/* ───────────────────────── 22. LIVE PAGE ───────────────────────── */

.page-live { padding-bottom: 0; }

.live-page-header {
	padding: 56px var(--pad-x) 32px;
	border-bottom: 1px solid var(--rule);
	display: flex; flex-direction: column; gap: 14px;
}
.live-page-header .eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 12px;
}
.live-page-title {
	font-family: 'Cinzel', serif; font-weight: 400;
	font-size: clamp(2.4rem, 5vw, 4rem);
	line-height: 1.0; letter-spacing: -0.005em;
	color: var(--parchment); margin: 0;
}
.live-page-title .is-countdown {
	color: var(--candle);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}
.live-page-title .next-date {
	display: block;
	font-family: 'EB Garamond', serif; font-style: italic;
	font-size: 0.45em; color: var(--parchment-dim);
	margin-top: 14px; letter-spacing: 0;
}

.live-stage {
	padding: 32px var(--pad-x);
	border-bottom: 1px solid var(--rule);
	display: grid; grid-template-columns: 1fr;
	gap: 16px;
}
.live-stage.has-chat {
	grid-template-columns: 1fr 360px;
}
.live-stage--empty {
	font-family: 'EB Garamond', serif; font-style: italic;
	font-size: 18px; color: var(--parchment-dim);
	text-align: center; padding: 80px 20px;
}
.live-stage-video .video-frame { aspect-ratio: 16/9; }
.live-stage-chat {
	display: flex; flex-direction: column; gap: 8px;
}
.chat-frame {
	flex: 1; min-height: 480px;
	border: 1px solid var(--rule);
	background: #fff;
	overflow: hidden;
}
.chat-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.chat-note {
	font-family: 'EB Garamond', serif; font-style: italic;
	font-size: 13px; color: var(--parchment-dim);
	margin: 0; line-height: 1.5;
}
.live-stage-chat--note .chat-no-id {
	border: 1px dashed var(--rule);
	padding: 24px;
	font-family: 'EB Garamond', serif; font-style: italic;
	color: var(--parchment-dim); font-size: 15px;
	display: flex; flex-direction: column; gap: 14px;
	align-items: flex-start;
}

.live-platforms {
	padding: 40px var(--pad-x);
	border-bottom: 1px solid var(--rule);
}
.platforms-row {
	display: flex; flex-wrap: wrap; gap: 12px;
}
.platform-chip {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 12px 20px;
	border: 1px solid var(--rule);
	background: var(--night-soft);
	color: var(--parchment);
	text-decoration: none;
	font-family: 'Cinzel', serif; font-weight: 500;
	font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
	transition: all 0.2s;
}
.platform-chip:hover {
	border-color: var(--candle);
	color: var(--candle);
	transform: translateY(-1px);
}
.platform-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px;
	font-family: 'EB Garamond', serif; font-weight: 700;
	font-size: 14px;
	border-radius: 50%;
	background: var(--candle); color: var(--night);
}
.platform-youtube  .platform-icon { background: #ff0000; color: #fff; }
.platform-facebook .platform-icon { background: #1877f2; color: #fff; }
.platform-twitch   .platform-icon { background: #9146ff; color: #fff; }
.platform-x        .platform-icon { background: #000; color: #fff; }
.platform-live-dot {
	width: 8px; height: 8px;
	background: var(--live-red); border-radius: 50%;
	animation: nb-pulse 1.6s ease-in-out infinite;
}

.live-recent {
	padding: 56px var(--pad-x);
	border-bottom: 1px solid var(--rule);
}
.recent-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}
.recent-tile {
	aspect-ratio: 16/10;
	position: relative; overflow: hidden;
	border: 1px solid var(--rule);
	background-size: cover; background-position: center;
	text-decoration: none;
	transition: all 0.25s;
}
.recent-tile:hover {
	border-color: var(--candle);
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(212, 160, 86, 0.15);
}
.recent-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 30%, rgba(14, 8, 20, 0.92) 100%);
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: 16px;
	gap: 6px;
}
.recent-tag {
	font-family: 'Cinzel', serif; font-weight: 500;
	font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
	color: var(--candle);
}
.recent-title {
	font-family: 'EB Garamond', serif; font-style: italic;
	font-size: 17px; line-height: 1.3;
	color: var(--parchment);
}


/* ───────────────────────── 23. PHASE 3 RESPONSIVE ───────────────────────── */

@media (max-width: 1100px) {
	.live-stage.has-chat { grid-template-columns: 1fr; }
	.live-stage-chat .chat-frame { min-height: 380px; }
}

@media (max-width: 900px) {
	.book-hero {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.book-hero-cover .book-frame {
		width: 100%; max-width: 320px;
		height: auto; aspect-ratio: 320/460;
		margin: 0 auto;
	}
	.single-stream, .single-prose, .live-extra-content,
	.single-back, .single-nav,
	.retreat-pitch, .retreat-gallery, .retreat-rooms,
	.retreat-payment, .retreat-itinerary, .retreat-rules,
	.live-page-header, .live-stage, .live-platforms, .live-recent {
		padding-left: var(--pad-x-mobile);
		padding-right: var(--pad-x-mobile);
	}
	.single-back { padding-top: 16px; }

	.retreat-pitch {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.gallery-grid {
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: 140px;
	}
	.gallery-tile:nth-child(1), .gallery-tile:nth-child(4) {
		grid-row: auto; grid-column: auto;
	}
	.rooms-grid {
		grid-template-columns: 1fr;
	}
	.payment-timeline {
		grid-template-columns: 1fr 1fr;
	}
	.single-nav {
		grid-template-columns: 1fr;
	}
	.single-nav-card.next { text-align: left; }

	.retreat-hero-full {
		min-height: 50vh;
		padding: 80px var(--pad-x-mobile) 32px;
	}
	.retreat-hero-meta { font-size: 17px; }

	.retreat-sticky-cta {
		display: flex;
		position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
		padding: 12px 16px;
		background: rgba(14, 8, 20, 0.96);
		backdrop-filter: blur(10px);
		border-top: 1px solid var(--rule);
		align-items: center; justify-content: space-between;
		gap: 12px;
	}
	.retreat-sticky-cta .sticky-info {
		display: flex; align-items: baseline; gap: 6px;
	}
	.retreat-sticky-cta .from {
		font-family: 'EB Garamond', serif; font-style: italic;
		font-size: 13px; color: var(--parchment-dim);
	}
	.retreat-sticky-cta .amount {
		font-family: 'Cinzel', serif; font-weight: 500;
		font-size: 22px; color: var(--candle);
	}
	.retreat-sticky-cta .cta {
		padding: 12px 16px; font-size: 10px;
	}
	/* Add room for the sticky bar so the footer is reachable */
	body.single-retreat-page main { padding-bottom: 80px; }
}

/* ───────────────────────── 24. ARCHIVE HEADER ───────────────────────── */

.archive-page { /* hook */ }

.archive-header {
	padding: 80px var(--pad-x) 56px;
	border-bottom: 1px solid var(--rule);
	max-width: 920px;
}
.archive-header .eyebrow {
	display: inline-block;
	margin-bottom: 16px;
}
.archive-title {
	font-family: 'Cinzel', serif; font-weight: 400;
	font-size: clamp(3rem, 7vw, 5.5rem);
	line-height: 1.0; letter-spacing: -0.005em;
	color: var(--parchment);
	margin: 0 0 18px;
}
.archive-title .script {
	font-family: 'Italianno', cursive;
	font-style: italic; font-weight: 400;
	font-size: 1.4em; color: var(--candle);
	letter-spacing: 0;
	display: inline-block;
	line-height: 0.85;
	margin-left: -0.04em;
}
.archive-dek {
	font-family: 'EB Garamond', serif;
	font-style: italic;
	font-size: 21px; line-height: 1.55;
	color: var(--parchment-dim);
	max-width: 60ch;
	margin: 0;
}

.archive-empty {
	padding: 80px var(--pad-x);
	text-align: center;
	font-family: 'EB Garamond', serif; font-style: italic;
	font-size: 19px; color: var(--parchment-dim);
}


/* ───────────────────────── 25. REVEALS ARCHIVE ───────────────────────── */

.archive-year {
	padding: 56px var(--pad-x);
	border-bottom: 1px solid var(--rule);
}
.archive-year-header {
	display: flex; align-items: baseline; justify-content: space-between;
	margin-bottom: 28px; gap: 20px; flex-wrap: wrap;
}
.archive-year-num {
	font-family: 'Cinzel', serif; font-weight: 400;
	font-size: clamp(3rem, 6vw, 4.6rem);
	line-height: 1; letter-spacing: 0.01em;
	color: var(--parchment);
	margin: 0;
}
.archive-year-meta {
	font-family: 'Cinzel', serif; font-weight: 500;
	font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
	color: var(--parchment-dim);
}


/* ───────────────────────── 26. RETREATS ARCHIVE ───────────────────────── */

.archive-section {
	padding: 56px var(--pad-x);
	border-bottom: 1px solid var(--rule);
}

.retreat-card-grid {
	display: grid; gap: 32px;
}
.retreat-card-grid.is-upcoming {
	grid-template-columns: 1fr;
}
.retreat-card-grid.is-past {
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 22px;
}

.retreat-card {
	background: var(--night-soft);
	border: 1px solid var(--rule);
	overflow: hidden;
	transition: all 0.25s;
}
.retreat-card:hover {
	border-color: var(--candle);
	transform: translateY(-2px);
	box-shadow: 0 14px 40px rgba(212, 160, 86, 0.15);
}
.retreat-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}
.retreat-card-photo {
	position: relative;
	overflow: hidden;
	background: var(--dusk);
}
.retreat-card-photo img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}
.retreat-card-photo--no-image {
	background:
		radial-gradient(ellipse 350px 240px at 50% 30%, rgba(212, 160, 86, 0.18), transparent 65%),
		linear-gradient(180deg, var(--dusk) 0%, var(--night) 100%);
	display: flex; align-items: center; justify-content: center;
}
.moon-placeholder {
	width: 50%; max-width: 110px; aspect-ratio: 1;
	display: flex; align-items: center; justify-content: center;
	opacity: 0.85;
}
.moon-placeholder svg { width: 100%; height: 100%; }

.retreat-card-tag {
	position: absolute; top: 14px; left: 14px;
	font-family: 'Cinzel', serif; font-weight: 500;
	font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
	color: var(--candle);
	background: rgba(14, 8, 20, 0.7);
	padding: 6px 10px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

/* Big card — for upcoming */
.retreat-card--big .retreat-card-link {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	align-items: stretch;
	min-height: 360px;
}
.retreat-card--big .retreat-card-photo {
	min-height: 320px;
}
.retreat-card--big .retreat-card-body {
	padding: 36px 40px 32px;
	display: flex; flex-direction: column; gap: 14px;
}
.retreat-card--big .retreat-card-title {
	font-family: 'Cinzel', serif; font-weight: 400;
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	line-height: 1.1; letter-spacing: 0.01em;
	color: var(--parchment);
	margin: 0;
}
.retreat-card--big .retreat-card-dates {
	font-family: 'Italianno', cursive; font-style: italic;
	font-size: 1.9rem; color: var(--candle);
	line-height: 1; letter-spacing: 0;
}
.retreat-card--big .retreat-card-summary {
	font-family: 'EB Garamond', serif;
	font-size: 17px; line-height: 1.6;
	color: var(--parchment-dim);
	margin: 0;
}
.retreat-card--big .retreat-card-cta {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--rule-soft);
	font-family: 'Cinzel', serif; font-weight: 600;
	font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
	color: var(--candle);
}

/* Small card — for past */
.retreat-card--small .retreat-card-photo {
	aspect-ratio: 4/3;
}
.retreat-card--small .retreat-card-body {
	padding: 18px 22px 22px;
}
.retreat-card--small .retreat-card-title {
	font-family: 'Cinzel', serif; font-weight: 400;
	font-size: 19px;
	line-height: 1.25; letter-spacing: 0.01em;
	color: var(--parchment);
	margin: 0 0 8px;
}
.retreat-card--small .retreat-card-dates {
	font-family: 'EB Garamond', serif; font-style: italic;
	font-size: 15px;
	color: var(--candle);
	line-height: 1.3;
}
.retreat-card--small .retreat-card-location {
	font-family: 'Cinzel', serif; font-weight: 500;
	font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
	color: var(--parchment-dim);
	margin-top: 8px;
}


/* ───────────────────────── 27. ARCHIVE RESPONSIVE ───────────────────────── */

@media (max-width: 900px) {
	.archive-header {
		padding: 48px var(--pad-x-mobile) 32px;
	}
	.archive-year, .archive-section {
		padding: 32px var(--pad-x-mobile);
	}
	.archive-empty { padding: 56px var(--pad-x-mobile); }

	.retreat-card--big .retreat-card-link {
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.retreat-card--big .retreat-card-photo {
		min-height: 0;
		aspect-ratio: 16/10;
	}
	.retreat-card--big .retreat-card-body {
		padding: 24px 22px 22px;
	}
	.retreat-card-grid.is-past {
		grid-template-columns: 1fr 1fr;
		gap: 14px;
	}
	.retreat-card--small .retreat-card-body {
		padding: 14px 16px 16px;
	}
	.retreat-card--small .retreat-card-title { font-size: 16px; }
	.retreat-card--small .retreat-card-dates  { font-size: 13px; }
	.retreat-card--small .retreat-card-location { font-size: 9px; letter-spacing: 0.25em; }
}

@media (max-width: 480px) {
	.retreat-card-grid.is-past {
		grid-template-columns: 1fr;
	}
}

/* ─── TABLET (601-900px) — keep card layouts bigger ─────────────────
 * iPad portrait sits at 768px. The phone-stacked layout was making
 * the big retreat card feel cramped at that size. Give it a wider
 * photo and split the past grid into 3 columns where there's room.
 * ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) and (min-width: 601px) {
	.retreat-card-grid.is-past {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
	.retreat-card--big .retreat-card-photo {
		aspect-ratio: 16/8;
	}
}

/* ─── PHONE (≤600px) — typography pass + script-line wrap ──────── */
@media (max-width: 600px) {
	/* Archive header */
	.archive-header {
		padding: 36px var(--pad-x-mobile) 28px;
	}
	.archive-title {
		font-size: clamp(2.2rem, 9vw, 3rem);
		margin-bottom: 14px;
		line-height: 1.05;
	}
	.archive-title .script {
		display: block;        /* break onto its own line so it doesn't fight the regular size */
		margin-left: 0;
		margin-top: -0.05em;
		font-size: 1.5em;
		line-height: 0.9;
	}
	.archive-dek {
		font-size: 16px;
		line-height: 1.55;
	}

	/* Year sections */
	.archive-year, .archive-section {
		padding: 28px var(--pad-x-mobile);
	}
	.archive-year-header {
		margin-bottom: 20px;
		gap: 8px;
	}
	.archive-year-num {
		font-size: 2.6rem;
	}
	.archive-year-meta {
		font-size: 9px;
		letter-spacing: 0.22em;
	}

	/* Big retreat card */
	.retreat-card-grid { gap: 22px; }
	.retreat-card--big .retreat-card-photo {
		aspect-ratio: 16/10;
	}
	.retreat-card--big .retreat-card-body {
		padding: 20px 18px 20px;
		gap: 10px;
	}
	.retreat-card--big .retreat-card-title {
		font-size: 1.55rem;
		line-height: 1.15;
	}
	.retreat-card--big .retreat-card-dates {
		font-size: 1.6rem;
	}
	.retreat-card--big .retreat-card-summary {
		font-size: 15px;
		line-height: 1.55;
	}
	.retreat-card--big .retreat-card-cta {
		font-size: 10px;
	}

	/* Small retreat cards — stay 2-up, just tighter */
	.retreat-card-grid.is-past {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
	.retreat-card--small .retreat-card-body {
		padding: 12px 14px 14px;
	}
	.retreat-card--small .retreat-card-title {
		font-size: 14px;
		line-height: 1.25;
		margin-bottom: 6px;
	}
	.retreat-card--small .retreat-card-dates {
		font-size: 12px;
	}
	.retreat-card--small .retreat-card-location {
		font-size: 8px;
		letter-spacing: 0.2em;
		margin-top: 6px;
	}
}

/* ─── PHONE (≤420px) — drop to 1-col, bump small cards back up ───
 * At 1 column there's actual width again, so card type can breathe.
 * ──────────────────────────────────────────────────────────────── */
@media (max-width: 420px) {
	.retreat-card-grid.is-past {
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.retreat-card--small .retreat-card-title { font-size: 17px; line-height: 1.25; margin-bottom: 8px; }
	.retreat-card--small .retreat-card-dates  { font-size: 14px; }
	.retreat-card--small .retreat-card-location { font-size: 9px; letter-spacing: 0.25em; }
}

/* ─── Strip default link underlines from card-wrapping anchors ───
 * Some mobile browsers / CSS minifiers fail to propagate
 * text-decoration:none from a parent <a> to its block-level
 * descendants. Be explicit about every descendant type.
 * ─────────────────────────────────────────────────────────────── */
.retreat-card-link,
.retreat-card-link:hover,
.retreat-card-link:focus,
.retreat-card-link:visited,
.retreat-card-link h1,
.retreat-card-link h2,
.retreat-card-link h3,
.retreat-card-link h4,
.retreat-card-link p,
.retreat-card-link span,
.retreat-card-link div,
.archive-page .retreat-card a,
.archive-page .retreat-card a:hover,
.archive-page .retreat-card a:focus,
.archive-page .retreat-card a:visited {
	text-decoration: none;
	-webkit-text-decoration: none;
	color: inherit;
}


/* ─── Re-assert the photo container as positioning context ─────── */
.retreat-card .retreat-card-photo {
	position: relative;
}


/* ─── Re-assert the location tag's overlay positioning + styling ─ */
.retreat-card .retreat-card-tag {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	font-family: 'Cinzel', serif;
	font-weight: 500;
	font-size: 9px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--candle);
	background: rgba(14, 8, 20, 0.75);
	padding: 6px 10px;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	pointer-events: none;
}

/* ───────────────────────── 28. ABOUT — SHARED ───────────────────────── */

.page-about { /* hook */ }

.about-h2 {
	font-family: 'Cinzel', serif; font-weight: 400;
	font-size: clamp(2rem, 4vw, 3.2rem);
	line-height: 1.05; letter-spacing: -0.005em;
	color: var(--parchment);
	margin: 0;
}
.about-h2--inline {
	font-size: clamp(1.7rem, 3vw, 2.4rem);
}


/* ───────────────────────── 29. ABOUT HERO ───────────────────────── */

.about-hero {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: 56px;
	align-items: center;
	padding: 80px var(--pad-x) 72px;
	border-bottom: 1px solid var(--rule);
}
.about-hero-text { display: flex; flex-direction: column; gap: 24px; }
.about-hero-title {
	font-family: 'Cinzel', serif; font-weight: 400;
	font-size: clamp(3rem, 6.5vw, 5.5rem);
	line-height: 0.92; letter-spacing: -0.005em;
	color: var(--parchment);
	margin: 0;
}
.about-hero-title .l1 { display: block; }
.about-hero-title .l2 {
	display: block;
	font-family: 'Italianno', cursive;
	font-style: italic; font-weight: 400;
	font-size: 1.55em; line-height: 0.85;
	color: var(--candle);
	letter-spacing: 0;
	margin-top: 0.05em;
	margin-left: -0.04em;
	text-shadow: 0 0 50px rgba(212, 160, 86, 0.35);
}
.about-hero-dek {
	font-family: 'EB Garamond', serif;
	font-style: italic;
	font-size: 22px; line-height: 1.5;
	color: var(--parchment);
	margin: 0;
	max-width: 36ch;
}

.about-hero-photo {
	border: 1px solid var(--rule);
	background: var(--night-soft);
	overflow: hidden;
	aspect-ratio: 5/4;
	position: relative;
}
.about-hero-photo img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}
.about-hero-photo.is-placeholder {
	background: var(--dusk);
}
.hero-photo-placeholder { width: 100%; height: 100%; }
.hero-photo-placeholder svg { width: 100%; height: 100%; display: block; }


/* ───────────────────────── 30. ORIGIN STORY ───────────────────────── */

.about-origin {
	padding: 72px var(--pad-x);
	border-bottom: 1px solid var(--rule);
}
.origin-grid {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 72px;
	align-items: start;
}
.origin-heading-col {
	display: flex; flex-direction: column; gap: 14px;
	position: sticky; top: 96px;
}
.origin-body-col {
	font-size: 19px;
	line-height: 1.75;
}
.origin-body-col p:first-of-type::first-letter {
	font-family: 'Cinzel', serif; font-weight: 500;
	font-size: 4.5em; float: left; line-height: 0.85;
	margin: 0.05em 0.12em 0 0; color: var(--candle);
}


/* ───────────────────────── 31. STATS STRIP ───────────────────────── */

.about-stats {
	padding: 56px var(--pad-x);
	border-bottom: 1px solid var(--rule);
}
.about-stats .section-header {
	margin-bottom: 28px;
}
.stats-grid {
	list-style: none; padding: 0; margin: 0;
	display: grid;
	gap: 1px;
	background: var(--rule);
	border: 1px solid var(--rule);
}
.stats-grid[data-count="1"] { grid-template-columns: 1fr; }
.stats-grid[data-count="2"] { grid-template-columns: 1fr 1fr; }
.stats-grid[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
.stats-grid[data-count="4"] { grid-template-columns: repeat(4, 1fr); }
.stat-cell {
	background: var(--night-soft);
	padding: 32px 28px;
	display: flex; flex-direction: column; gap: 10px;
}
.stat-value {
	font-family: 'Cinzel', serif; font-weight: 500;
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	line-height: 1;
	color: var(--candle);
	letter-spacing: -0.005em;
}
.stat-label {
	font-family: 'Cinzel', serif; font-weight: 500;
	font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
	color: var(--parchment-dim);
}


/* ───────────────────────── 32. HOSTS ───────────────────────── */

.about-hosts {
	padding: 72px var(--pad-x);
	border-bottom: 1px solid var(--rule);
}
.hosts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 36px;
}
.host-card {
	background: var(--night-soft);
	border: 1px solid var(--rule);
	display: flex; flex-direction: column;
	transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.host-card:hover {
	border-color: var(--candle);
	transform: translateY(-2px);
	box-shadow: 0 16px 44px rgba(212, 160, 86, 0.12);
}
.host-portrait {
	aspect-ratio: 4/5;
	background: var(--dusk);
	overflow: hidden;
	position: relative;
}
.host-portrait img {
	width: 100%; height: 100%;
	object-fit: cover; display: block;
}
.host-portrait--placeholder svg { width: 100%; height: 100%; display: block; }

.host-body {
	padding: 26px 28px 28px;
	display: flex; flex-direction: column; gap: 12px;
	flex: 1;
}
.host-role {
	font-family: 'Cinzel', serif; font-weight: 500;
	font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
	color: var(--candle);
}
.host-name {
	font-family: 'Cinzel', serif; font-weight: 400;
	font-size: 1.9rem; line-height: 1; letter-spacing: 0.005em;
	color: var(--parchment);
	margin: 0;
}
.host-genre {
	font-family: 'EB Garamond', serif; font-style: italic;
	font-size: 17px; color: var(--parchment-dim);
	margin: 0;
}
.host-bio {
	font-family: 'EB Garamond', serif;
	font-size: 16px; line-height: 1.65;
	color: var(--parchment);
}
.host-bio p { margin: 0 0 0.75em; }
.host-bio p:last-child { margin-bottom: 0; }
.host-meta {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--rule-soft);
	display: flex; flex-direction: column; gap: 10px;
}
.host-meta-row {
	display: flex; flex-direction: column; gap: 4px;
}
.host-meta-row--socials {
	flex-direction: row; gap: 18px; flex-wrap: wrap;
}
.host-meta-label {
	font-family: 'Cinzel', serif; font-weight: 500;
	font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase;
	color: var(--parchment-dim);
}
.host-meta-value {
	font-family: 'EB Garamond', serif; font-style: italic;
	font-size: 15px; color: var(--candle);
}
.host-social {
	font-family: 'Cinzel', serif; font-weight: 500;
	font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
	color: var(--candle); text-decoration: none;
	border-bottom: 1px solid var(--candle);
	padding-bottom: 2px;
	transition: color 0.2s;
}
.host-social:hover { color: var(--candle-bright); border-color: var(--candle-bright); }


/* ───────────────────────── 33. THEME BLOCK ───────────────────────── */

.about-theme-block {
	padding: 72px var(--pad-x);
	border-bottom: 1px solid var(--rule);
	background:
		radial-gradient(ellipse 800px 500px at 80% 30%, rgba(212, 160, 86, 0.10), transparent 60%),
		linear-gradient(180deg, var(--night) 0%, var(--night-soft) 100%);
}
.theme-grid {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 72px;
	align-items: start;
}
.theme-heading-col { display: flex; flex-direction: column; gap: 14px; }
.theme-body-col {
	font-size: 19px; line-height: 1.7;
}
.theme-body-col em {
	font-family: 'Italianno', cursive;
	font-style: italic; font-weight: 400;
	font-size: 1.6em;
	color: var(--candle); letter-spacing: 0;
	line-height: 0.7;
	vertical-align: -0.04em;
}


/* ───────────────────────── 34. CTA ───────────────────────── */

.about-cta {
	padding: 96px var(--pad-x);
	border-bottom: 1px solid var(--rule);
	background:
		radial-gradient(ellipse 700px 400px at 30% 20%, rgba(139, 58, 42, 0.18), transparent 60%),
		linear-gradient(180deg, var(--night) 0%, var(--dusk) 100%);
	text-align: center;
}
.about-cta-inner {
	max-width: 760px; margin: 0 auto;
	display: flex; flex-direction: column; gap: 24px;
	align-items: center;
}
.about-cta-heading {
	font-family: 'Cinzel', serif; font-weight: 400;
	font-size: clamp(2.4rem, 5vw, 4rem);
	line-height: 1; letter-spacing: -0.005em;
	color: var(--parchment);
	margin: 0;
}
.about-cta-body {
	font-family: 'EB Garamond', serif; font-style: italic;
	font-size: 21px; line-height: 1.55;
	color: var(--parchment-dim);
	margin: 0;
	max-width: 50ch;
}
.about-cta-actions {
	display: flex; flex-wrap: wrap; gap: 14px;
	justify-content: center;
	margin-top: 8px;
}

.about-extra-content {
	padding: 56px var(--pad-x);
	border-bottom: 1px solid var(--rule);
}
.about-extra-content .prose-body { max-width: 70ch; margin: 0 auto; }


/* ───────────────────────── 35. ABOUT RESPONSIVE ───────────────────────── */

@media (max-width: 1100px) {
	.origin-grid, .theme-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.origin-heading-col { position: static; top: auto; }
	.stats-grid[data-count="4"] { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
	.about-hero {
		grid-template-columns: 1fr;
		gap: 36px;
		padding: 48px var(--pad-x-mobile) 56px;
	}
	.about-hero-title { font-size: clamp(2.6rem, 11vw, 4rem); }
	.about-hero-title .l2 { font-size: 1.35em; }
	.about-hero-dek { font-size: 18px; max-width: none; }

	.about-origin, .about-stats, .about-hosts, .about-theme-block, .about-cta, .about-extra-content {
		padding-left: var(--pad-x-mobile);
		padding-right: var(--pad-x-mobile);
	}
	.about-origin       { padding-top: 48px; padding-bottom: 48px; }
	.about-stats        { padding-top: 40px; padding-bottom: 40px; }
	.about-hosts        { padding-top: 48px; padding-bottom: 48px; }
	.about-theme-block  { padding-top: 48px; padding-bottom: 48px; }
	.about-cta          { padding-top: 64px; padding-bottom: 64px; }

	.hosts-grid { grid-template-columns: 1fr; gap: 24px; }
	.host-card { max-width: 480px; margin: 0 auto; width: 100%; }

	.stats-grid[data-count="3"],
	.stats-grid[data-count="4"] { grid-template-columns: 1fr 1fr; }
	.stat-cell { padding: 24px 20px; }
}

@media (max-width: 480px) {
	.stats-grid[data-count="3"] { grid-template-columns: 1fr; }
	.stats-grid[data-count="4"] { grid-template-columns: 1fr 1fr; }
}

/* ───────────────────────── 36. ROOM CARD FOOTER (stack) ───────────────────────── */

/* Reserve button drops to its own line below the price, full-width.
 * Override the earlier rule by repeating the selector + the new declarations. */
.retreat-rooms .room-card .room-footer {
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}
.retreat-rooms .room-card .room-cta,
.retreat-rooms .room-card .room-cta-disabled {
	text-align: center;
	width: 100%;
	justify-content: center;
}
.retreat-rooms .room-card .room-price {
	display: block;
}


/* ───────────────────────── 37. RULES DISCLOSURE ───────────────────────── */

.retreat-rules .rules-disclosure {
	margin-top: 16px;
	font-family: 'EB Garamond', serif;
	font-style: italic;
	font-size: 14px;
	color: var(--parchment-dim);
}


/* ───────────────────────── 38. HOMEPAGE LIVE — centered layout ───────────────────────── */

/* Override the earlier .live-row rule on homepage only.
 * Old layout: hero (1.4fr) + 2 vertical stacks (1fr 1fr) in a single row.
 * New layout: hero centered max-width above, 4-up recents below. */
.live-row.is-centered {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.live-row.is-centered .live-tile.primary {
	max-width: 960px;
	width: 100%;
	margin: 0 auto;
	aspect-ratio: 16/9;
}
.live-row.is-centered .live-recents {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
.live-row.is-centered .live-recents .live-tile.small {
	aspect-ratio: 16/10;
}

@media (max-width: 1100px) {
	.live-row.is-centered .live-recents {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.live-row.is-centered .live-recents {
		grid-template-columns: 1fr;
	}
}


/* ───────────────────────── 39. COUNTDOWN — tabular numerals ───────────────────────── */

/* Phase 2 had a partial rule; the new ticker shows HH:MM:SS so we need
 * tabular figures so the digits don't jitter as they tick. */
.live-status .episode.is-countdown {
	font-family: 'Cinzel', serif;
	font-weight: 500;
	font-style: normal;
	font-size: 0.55em;
	letter-spacing: 0.08em;
	color: var(--candle);
	font-variant-numeric: tabular-nums;
	text-transform: uppercase;
	vertical-align: 0.18em;
	display: inline-block;
}


/* ───────────────────────── 40. CHECKOUT — RETREAT AGREEMENTS ───────────────────────── */

.nb-agreements {
	margin: 28px 0 24px;
	padding: 22px 24px;
	background: rgba(212, 160, 86, 0.06);
	border: 1px solid var(--candle);
	border-left-width: 4px;
}
.nb-agreements-title {
	font-family: 'Cinzel', serif;
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--candle);
	margin: 0 0 8px;
}
.nb-agreements-intro {
	font-family: 'EB Garamond', serif;
	font-size: 15px;
	line-height: 1.55;
	color: var(--parchment);
	margin: 0 0 16px;
}
.nb-agreements-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.nb-agreement {
	background: var(--night-soft);
	border: 1px solid var(--rule-soft);
}
.nb-agreement details {
	border: 0;
	background: transparent;
}
.nb-agreement-summary {
	cursor: pointer;
	list-style: none;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	font-family: 'Cinzel', serif;
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--parchment);
}
.nb-agreement-summary::-webkit-details-marker { display: none; }
.nb-agreement-summary::marker { content: ''; }
.nb-agreement-summary::after { content: none; }

.nb-agreement-checkbox {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--candle);
	cursor: pointer;
	flex-shrink: 0;
}
.nb-agreement-title-label {
	cursor: pointer;
	display: inline;
}
.nb-agreement-title-text {
	letter-spacing: 0.1em;
}
.nb-agreement-toggle {
	font-family: 'Cinzel', serif;
	font-weight: 500;
	font-size: 10px;
	letter-spacing: 0.22em;
	color: var(--candle);
	transition: transform 0.2s;
	flex-shrink: 0;
}
.nb-agreement details[open] .nb-agreement-toggle {
	color: var(--parchment-dim);
}
.nb-agreement details[open] .nb-agreement-toggle::before {
	content: 'collapse ↑';
}
.nb-agreement details[open] .nb-agreement-toggle {
	font-size: 0;
}
.nb-agreement details[open] .nb-agreement-toggle::before {
	font-size: 10px;
}
.nb-agreement-body {
	padding: 4px 18px 18px 52px;
	border-top: 1px solid var(--rule-soft);
	font-family: 'EB Garamond', serif;
	font-size: 15px;
	line-height: 1.65;
	color: var(--parchment-dim);
	background: var(--night);
}
.nb-agreement-body p { margin: 0 0 0.85em; }
.nb-agreement-body p:last-child { margin-bottom: 0; }
.nb-agreement-body ul, .nb-agreement-body ol {
	padding-left: 1.4em; margin: 0 0 0.85em;
}
.nb-agreement-body strong { color: var(--parchment); }
.nb-agreement-body a { color: var(--candle); }

.nb-agreements-note {
	margin: 14px 0 0;
	font-family: 'EB Garamond', serif;
	font-size: 14px;
	color: var(--wine);
}

/* Disabled Place Order button */
#place_order.nb-disabled,
#place_order:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

@media (max-width: 600px) {
	.nb-agreement-summary {
		font-size: 12px;
		padding: 12px 14px;
		gap: 10px;
	}
	.nb-agreement-body {
		padding-left: 14px;
	}
	.nb-agreements {
		padding: 18px 16px;
	}
}

/* Force the new layout regardless of inherited grid rules */
body .live-row.is-centered,
body section .live-row.is-centered {
	display: flex !important;
	flex-direction: column !important;
	grid-template-columns: none !important;
	gap: 18px !important;
}

body .live-row.is-centered .live-tile.primary {
	max-width: 960px !important;
	width: 100% !important;
	margin: 0 auto !important;
	aspect-ratio: 16 / 9 !important;
	height: auto !important;
}

body .live-row.is-centered .live-recents {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 14px !important;
	width: 100% !important;
}

body .live-row.is-centered .live-recents .live-tile.small {
	aspect-ratio: 16 / 10 !important;
	height: auto !important;
	width: auto !important;
}

@media (max-width: 1100px) {
	body .live-row.is-centered .live-recents {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 600px) {
	body .live-row.is-centered .live-recents {
		grid-template-columns: 1fr !important;
	}
}

/* === BEGIN nb-reading-schedule === */
/* Phase 9: per-book reading schedule + giveaway badges + coming-up-next spine. */

.single-schedule {
	max-width: 880px;
	margin: 4rem auto;
	padding: 0 1.25rem;
}
.schedule-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.75rem;
	margin-top: 1.5rem;
}
@media (max-width: 720px) {
	.schedule-grid { grid-template-columns: 1fr; gap: 1.25rem; }
	.single-schedule { margin: 3rem auto; }
}

.schedule-half {
	background: var(--night-soft, #1a1a24);
	border: 1px solid var(--rule, #3a3a48);
	padding: 1.5rem 1.5rem 1.75rem;
	transition: border-color 220ms ease;
}
.schedule-half:hover { border-color: var(--candle, #d4a056); }

.schedule-half-header {
	display: flex;
	align-items: baseline;
	gap: 0.85rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--rule-soft, #2a2a36);
	margin-bottom: 1rem;
}
.schedule-half-num {
	font-family: 'Cinzel', serif;
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--candle, #d4a056);
	letter-spacing: 0.05em;
	line-height: 1;
}
.schedule-half-title {
	font-family: 'Cinzel', serif;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--parchment, #f0e8d6);
}

.schedule-row {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 0.6rem 0;
}
.schedule-row + .schedule-row {
	border-top: 1px solid var(--rule-soft, #2a2a36);
	margin-top: 0.2rem;
}
.schedule-label {
	font-family: 'Cinzel', serif;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--parchment-dim, #b9a98c);
}
.schedule-value {
	font-family: 'EB Garamond', serif;
	font-size: 1.05rem;
	line-height: 1.45;
	color: var(--parchment, #f0e8d6);
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	align-items: center;
}

.giveaway-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.18rem 0.6rem;
	font-family: 'Cinzel', serif;
	font-size: 0.66rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--candle, #d4a056);
	border: 1px solid var(--candle, #d4a056);
	background: rgba(212, 160, 86, 0.06);
	line-height: 1.45;
	white-space: nowrap;
}

.schedule-video { margin-top: 1.25rem; }
.schedule-video .video-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--rule-soft, #2a2a36);
}
.schedule-video .video-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.schedule-giveaway-blurb {
	max-width: 720px;
	margin: 2.25rem auto 0;
	padding: 1.1rem 1.5rem;
	border: 1px dashed var(--candle, #d4a056);
	background: rgba(212, 160, 86, 0.04);
	font-family: 'EB Garamond', serif;
	font-style: italic;
	font-size: 1.05rem;
	line-height: 1.55;
	color: var(--parchment, #f0e8d6);
	text-align: center;
}
.schedule-giveaway-blurb::before {
	content: '\2726';
	color: var(--candle, #d4a056);
	margin-right: 0.5rem;
}

/* Coming-up-next spine treatment in the year shelf (homepage). */
.shelf .spine.is-next {
	position: relative;
	box-shadow: 0 0 0 2px var(--candle, #d4a056), 0 0 16px rgba(212, 160, 86, 0.32);
	z-index: 1;
}
.shelf .spine.is-next .spine-next-tag {
	position: absolute;
	top: 6px;
	left: 50%;
	transform: translateX(-50%);
	font-family: 'Cinzel', serif;
	font-size: 0.55rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--night, #0d0d14);
	background: var(--candle, #d4a056);
	padding: 2px 6px;
	line-height: 1;
	z-index: 2;
	white-space: nowrap;
	pointer-events: none;
}

/* "Coming up: <Title>" inline callout in the shelf header */
.shelf-coming-up {
	display: inline;
	color: var(--parchment-dim, #b9a98c);
}
.shelf-coming-up a {
	color: var(--candle, #d4a056);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 180ms ease;
}
.shelf-coming-up a:hover { border-bottom-color: var(--candle, #d4a056); }

@media (max-width: 720px) {
	.shelf-coming-up { display: block; margin-top: 0.25rem; }
	.shelf-coming-up::before { content: ''; }
}

/* === END nb-reading-schedule === */


/* === BEGIN nb-reading-schedule-v2 === */
/* Phase 9.1: hover glow on next-up spine + mobile shelf-header refinement.
 * Hover values mirror the existing `.spine.revealed:hover` (0 8px 24px /
 * 0.18 opacity, -3px lift) so the next-up spine animates the same as its
 * neighbours, with the gold ring preserved on top. Transition timing comes
 * from the base `.spine` rule (0.18s) — no override here. */

.shelf .spine.is-next:hover,
.shelf .spine.is-next:focus-visible {
	transform: translateY(-3px);
	box-shadow:
		0 0 0 2px var(--candle),
		0 8px 24px rgba(212, 160, 86, 0.18);
}

/* Dual-rendering of the "Coming up" callout. The inline span (inside
 * .shelf-progress) shows on desktop; the block sibling (after .shelf-header)
 * shows on mobile, full-width below the header row. Mobile typography
 * matches .shelf-progress (Cinzel 11px / 0.25em / --muted). */
.shelf-coming-up--block { display: none; }

@media (max-width: 720px) {
	.shelf-coming-up--inline { display: none; }
	.shelf-coming-up--block {
		display: block;
		margin-top: 8px;
		text-align: right;
		font-family: 'Cinzel', serif;
		font-weight: 500;
		font-size: 11px;
		letter-spacing: 0.25em;
		text-transform: uppercase;
		color: var(--muted);
	}
	.shelf-coming-up--block a {
		color: var(--candle);
		text-decoration: none;
		border-bottom: 1px solid transparent;
		transition: border-color 180ms ease;
	}
	.shelf-coming-up--block a:hover { border-bottom-color: var(--candle); }
	.shelf-coming-up--block em {
		font-family: 'EB Garamond', serif;
		font-style: italic;
		font-weight: 400;
		text-transform: none;
		letter-spacing: 0;
		font-size: 16px;
	}
}

/* === END nb-reading-schedule-v2 === */


/* === BEGIN nb-reading-schedule-v3 === */
/* Phase 9.2: mobile shelf-header spacing tightened + Reading Schedule
 * placeholder for future books that don't have a schedule filled in yet. */

@media (max-width: 720px) {
	.shelf-coming-up--block {
		margin-top: -4px;     /* pull up ~12px (consume part of header's 16px margin-bottom) */
		margin-bottom: 14px;  /* breathing room before the shelf grid */
	}
}

.single-schedule--placeholder .schedule-coming-soon {
	max-width: 720px;
	margin: 1.5rem auto 0;
	padding: 1.25rem 1.5rem;
	border: 1px dashed var(--rule);
	background: var(--night-soft);
	font-family: 'EB Garamond', serif;
	font-style: italic;
	font-size: 1.05rem;
	line-height: 1.55;
	color: var(--parchment-dim);
	text-align: center;
}

/* === END nb-reading-schedule-v3 === */


/* === BEGIN nb-nav-actions v2 === */
/* Phase 9.5: cart-count badge moved off the label (positions on the icon
 * itself), and the mobile drawer set to flex-start + scrollable so all
 * primary links are reachable on tall content / short viewports. */

.nav-end {
	display: flex;
	align-items: center;
	gap: 28px;
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 4px;
}

.nav-action {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px;
	color: var(--parchment-dim);
	text-decoration: none;
	font-family: 'Cinzel', serif;
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	transition: color 0.2s;
}
.nav-action:hover,
.nav-action:focus-visible { color: var(--candle); outline: none; }

/* Icon wrapper provides a positioning context for the cart-count badge so
 * it floats off the icon corner instead of the whole label-bearing button. */
.nav-action-icon {
	position: relative;
	display: inline-flex;
	line-height: 0;
}
.nav-action-icon svg { display: block; flex-shrink: 0; }

.nav-cart-count {
	position: absolute;
	top: -7px;
	right: -8px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: var(--candle);
	color: var(--night);
	font-family: 'Cinzel', serif;
	font-weight: 600;
	font-size: 9px;
	letter-spacing: 0;
	line-height: 18px;
	text-align: center;
	box-sizing: border-box;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-cart-count[data-empty="1"] {
	opacity: 0;
	transform: scale(0.7);
	pointer-events: none;
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--rule);
	color: var(--parchment);
	cursor: pointer;
	padding: 10px;
	line-height: 0;
	transition: border-color 0.2s, color 0.2s;
}
.nav-toggle:hover,
.nav-toggle:focus-visible { border-color: var(--candle); color: var(--candle); outline: none; }
.nav-toggle-bars {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 18px;
}
.nav-toggle-bars span {
	display: block;
	height: 2px;
	background: currentColor;
	transition: transform 0.22s ease, opacity 0.22s ease;
}

/* Mobile drawer — full-screen, scrollable column */
@media (max-width: 900px) {
	.nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: relative;
		z-index: 101;
	}

	.nav-end {
		position: fixed;
		top: 0; left: 0; right: 0; bottom: 0;
		flex-direction: column;
		justify-content: flex-start;
		align-items: center;
		gap: 28px;
		padding: 88px 24px 40px;
		background: rgba(14, 8, 20, 0.97);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
		box-sizing: border-box;
		z-index: 100;
		opacity: 0;
		pointer-events: none;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		transition: opacity 0.22s ease;
	}
	body.nav-drawer-open .nav-end {
		opacity: 1;
		pointer-events: auto;
	}
	body.nav-drawer-open { overflow: hidden; }

	/* Override the breakpoint rule that hides .nav-links — show inside drawer. */
	.nav-end .nav-links {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 18px;
		margin: 0;
		padding: 0;
	}
	.nav-end .nav-links a {
		font-size: 14px;
		letter-spacing: 0.25em;
		color: var(--parchment);
	}

	.nav-end .nav-actions {
		gap: 28px;
		padding-top: 22px;
		margin-top: 4px;
		border-top: 1px solid var(--rule-soft);
		width: 100%;
		max-width: 280px;
		justify-content: center;
	}
	.nav-end .nav-action {
		flex-direction: column;
		gap: 6px;
		padding: 12px;
		font-size: 10px;
	}
	.nav-end .nav-action-icon svg { width: 26px; height: 26px; }
	.nav-end .nav-cart-count { top: -6px; right: -10px; }

	/* Burger → X */
	body.nav-drawer-open .nav-toggle-bars span:nth-child(1) {
		transform: translateY(6px) rotate(45deg);
	}
	body.nav-drawer-open .nav-toggle-bars span:nth-child(2) {
		opacity: 0;
	}
	body.nav-drawer-open .nav-toggle-bars span:nth-child(3) {
		transform: translateY(-6px) rotate(-45deg);
	}
}

/* === END nb-nav-actions v2 === */


/* === BEGIN nb-nav-actions v3 === */
/* Phase 9.5.1: drop backdrop-filter on .nav at mobile widths.
 *
 * Why: `backdrop-filter` (like `filter` and `transform`) creates a new
 * containing block for fixed-position descendants. With it on .nav, the
 * .nav-end drawer's `position: fixed; top:0; bottom:0` was anchoring to
 * .nav itself (~70px tall) rather than the viewport — collapsing the
 * drawer to a thin strip with everything scrolling inside it.
 *
 * Desktop keeps the frosted-glass sticky nav. On mobile the .nav element
 * is barely visible behind the dark drawer anyway, so dropping the blur
 * is visually invisible. */
@media (max-width: 900px) {
	.nav {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}
/* === END nb-nav-actions v3 === */


/* === BEGIN nb-nav-actions v4 === */
/* Phase 9.5.2: explicit dvh height + safe-area-aware bottom padding for the
 * mobile drawer. `top:0; bottom:0` resolves against the layout viewport on
 * iOS Safari (= max viewport, URL bar collapsed). When the URL bar is
 * showing, the visible viewport is smaller than the layout viewport, and
 * the drawer's bottom edge falls short of where the user can actually see.
 * 100dvh tracks the visible viewport and fills it exactly. */
@media (max-width: 900px) {
	.nav-end {
		bottom: auto;
		height: 100vh;                   /* fallback */
		height: 100dvh;                  /* dynamic — tracks URL bar */
		padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
	}
}
/* === END nb-nav-actions v4 === */


/* === BEGIN nb-cart-badge-after-label === */
/* Phase 9.6.1: badge is now a sibling of the label (DOM-after-label),
 * so the absolute-positioning we used to anchor it to the icon corner
 * is wrong. Override to inline-flex after the label, with display:none
 * for the empty state instead of opacity:0 (which left a click-area gap). */

.nav-action .nav-cart-count {
	position: static !important;
	top: auto !important;
	right: auto !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	transform: none !important;
	margin-left: 8px;
}

.nav-action .nav-cart-count[data-empty="1"] {
	display: none !important;
	opacity: 1 !important;
	transform: none !important;
	pointer-events: auto !important;
}

/* In the mobile drawer the icon is bigger; keep the badge proportionate
 * but still inline rather than corner-pinned. */
@media (max-width: 900px) {
	.nav-end .nav-action .nav-cart-count {
		margin-left: auto;          /* push badge to the right edge of the row */
		min-width: 22px;
		height: 22px;
		font-size: 11px;
	}
}
/* === END nb-cart-badge-after-label === */


/* === BEGIN nb-mobile-cart-bubble === */
/* Phase 9.7.2: revert mobile drawer cart badge to corner-pinned.
 *
 * 9.6.1 made the badge inline-flex after the label so desktop renders
 * "ACCOUNT [icon]  CART [icon] [1]" cleanly. But on the mobile drawer,
 * .nav-action is `flex-direction: column` (icon on top, label below),
 * which puts the inline badge on a third row underneath the label —
 * looks like a wrap. Pin to the .nav-action's top-right corner there
 * instead. Desktop unchanged. */

@media (max-width: 900px) {
	.nav-end .nav-action .nav-cart-count {
		position: absolute !important;
		top: 4px !important;
		right: 4px !important;
		left: auto !important;
		bottom: auto !important;
		margin: 0 !important;
		min-width: 18px;
		height: 18px;
		padding: 0 5px;
		font-size: 9px;
		line-height: 18px;
	}
	.nav-end .nav-action .nav-cart-count[data-empty="1"] {
		display: none !important;
	}
}
/* === END nb-mobile-cart-bubble === */
