/* Booknium public brand site — warm editorial reading identity */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FBF8F1;
  --bg-warm: #F4EDE0;
  --bg-deep: #EDE3D4;
  --bg-night: #1A120C;
  --text: #292725;
  --text-muted: #5C564F;
  --text-light: #8C8077;
  --accent: #6F5142;
  --accent-dark: #4A3328;
  --gold: #9B7D5A;
  --gold-light: #C4A97A;
  --border: #DDD5C8;
  --border-warm: #CFC5B4;
  --surface: #FAF6EE;
  --radius: 10px;
  --radius-sm: 6px;
  --max: 1080px;
  --narrow: 720px;
  --hero-font: "Cormorant Garamond", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --body-font: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --ui-font: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent-dark);
  color: #fff;
  padding: 8px 16px;
  font-family: var(--ui-font);
  font-size: 14px;
  z-index: 1000;
  text-decoration: none;
}
.skip-nav:focus { top: 0; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
.wrap--narrow { max-width: var(--narrow); }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  font-family: var(--hero-font);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1;
}
.wordmark:hover { color: var(--accent-dark); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--border-warm);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  font-family: var(--ui-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--accent-dark); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-dark); color: #fff !important; }

.nav-signin {
  display: inline-flex;
  align-items: center;
  color: var(--accent-dark) !important;
  padding: 7px 13px !important;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}
.nav-signin:hover { background: rgba(0, 0, 0, 0.04); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 28px 20px;
    gap: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-signin,
  .nav-cta {
    margin-top: 10px;
    justify-content: center;
  }
  .nav-cta { border-bottom: none !important; }
  .nav-signin { border-bottom: 1px solid var(--accent) !important; }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--ui-font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.15s, color 0.15s, transform 0.1s, border-color 0.15s;
  cursor: pointer;
}
.btn:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: #F5EDE0;
  border-color: rgba(245, 237, 224, 0.45);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.btn--secondary {
  background: transparent;
  color: var(--accent-dark);
  border-color: var(--border-warm);
}
.btn--secondary:hover {
  border-color: var(--gold);
  color: var(--accent-dark);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ── Home hero ──────────────────────────────────────────── */
.home-hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  color: #F5EDE0;
  background:
    linear-gradient(
      to bottom,
      rgba(18, 10, 4, 0.45) 0%,
      rgba(18, 10, 4, 0.38) 40%,
      rgba(18, 10, 4, 0.62) 72%,
      rgba(26, 18, 12, 0.92) 100%
    ),
    url("../assets/images/hero-desktop.jpg") center 28% / cover no-repeat #1A120C;
  overflow: hidden;
}
.home-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 96px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 28px 100px;
  animation: hero-rise 0.9s ease-out both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand-mark {
  font-family: var(--hero-font);
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero-headline {
  font-family: var(--hero-font);
  font-size: clamp(28px, 4.8vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  max-width: 16ch;
  margin-bottom: 18px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.28);
}
.hero-lede {
  font-size: clamp(17px, 2.2vw, 19px);
  color: rgba(240, 228, 208, 0.88);
  max-width: 38ch;
  line-height: 1.65;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

@media (max-width: 640px) {
  /* Phone: the library image stands alone; the copy sits beneath it on paper. */
  .home-hero {
    display: block;
    min-height: 0;
    color: var(--text);
    background: var(--bg);
  }
  .home-hero::before {
    content: "";
    display: block;
    height: min(112vw, 520px);
    background: url("../assets/images/hero-mobile.jpg") center 30% / cover no-repeat var(--bg-night);
  }
  .home-hero::after { bottom: auto; top: calc(min(112vw, 520px) - 72px); height: 72px; }
  .home-hero-inner { padding: 8px 20px 48px; }
  .home-hero .brand-mark,
  .home-hero .hero-headline,
  .home-hero .hero-lede { text-shadow: none; }
  .home-hero .brand-mark { font-size: 40px; margin-bottom: 12px; color: var(--accent-dark); }
  .home-hero .hero-headline { font-size: 30px; color: var(--text); }
  .home-hero .hero-lede { color: var(--text-muted); font-size: 17px; }
  .home-hero .btn--ghost {
    color: var(--accent-dark);
    border-color: var(--border-warm);
  }
  .home-hero .btn-row { margin-top: 22px; }
  .home-hero .btn-row .btn { flex: 1 1 100%; text-align: center; }
  .header-inner { padding: 12px 18px; }
  .wrap { padding: 0 18px; }
}

/* ── Story sections ─────────────────────────────────────── */
.story {
  padding: 88px 0;
  border-bottom: 1px solid var(--border);
}
.story--warm { background: var(--bg-warm); }
.story--deep { background: var(--bg-deep); }
.story--surface { background: var(--surface); }
.story--split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.story--split.reverse { direction: rtl; }
.story--split.reverse > * { direction: ltr; }

@media (max-width: 820px) {
  .story { padding: 64px 0; }
  .story--split,
  .story--split.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 28px;
  }
}

.eyebrow {
  display: block;
  font-family: var(--ui-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.story h2 {
  font-family: var(--hero-font);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--accent-dark);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.story p {
  color: var(--text-muted);
  max-width: 42ch;
  margin-bottom: 14px;
}
.story p:last-child { margin-bottom: 0; }
.story-art {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(41, 39, 37, 0.14);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}
.story-art:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 56px rgba(41, 39, 37, 0.18);
}
.story-art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.story-link {
  display: inline-flex;
  margin-top: 18px;
  font-family: var(--ui-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(111, 81, 66, 0.35);
  padding-bottom: 2px;
}
.story-link:hover {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* ── Closing CTA ────────────────────────────────────────── */
.closing {
  padding: 96px 0;
  text-align: center;
  background:
    linear-gradient(160deg, #EFE7D9 0%, #F6F1E8 48%, #FBF8F1 100%);
  border-bottom: 1px solid var(--border);
}
.closing h2 {
  font-family: var(--hero-font);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.closing p {
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 auto 28px;
}

/* ── Interior pages ─────────────────────────────────────── */
.page-hero {
  padding: 72px 0 48px;
  background:
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
/* Compact hero for policy / disclosure pages — less vertical waste on phones */
.page-hero--legal {
  padding: 40px 0 24px;
}
.page-hero h1 {
  font-family: var(--hero-font);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.page-hero--legal h1 {
  font-size: clamp(28px, 6vw, 40px);
  margin-bottom: 8px;
}
.page-hero .lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 48ch;
}
.page-hero--legal .lede {
  font-size: 15px;
  margin: 0;
}

/* Atmospheric room hero — product pages enter a world, not a doc */
.room-hero {
  position: relative;
  min-height: min(58vh, 520px);
  display: flex;
  align-items: flex-end;
  color: #F5EDE0;
  overflow: hidden;
  border-bottom: none;
  background-color: #1A120C;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}
.room-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18, 10, 4, 0.35) 0%,
    rgba(18, 10, 4, 0.28) 42%,
    rgba(18, 10, 4, 0.58) 70%,
    rgba(26, 18, 12, 0.9) 100%
  );
  pointer-events: none;
}
.room-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 72px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.room-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 28px 64px;
}
.room-hero .eyebrow { color: var(--gold-light); }
.room-hero h1 {
  color: #F5EDE0;
  text-shadow: 0 2px 18px rgba(0,0,0,0.3);
  max-width: 16ch;
}
.room-hero .lede {
  color: rgba(240, 228, 208, 0.88);
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
  max-width: 38ch;
}

/* Internal visual worlds live in assets/BOOKNIUM_VISUAL_REGISTRY.md.
   These class names are not public labels. */
.room-hero--discover { background-image: url("../assets/worlds/portal-library-wide.jpg"); background-position: center 42%; }
.room-hero--library { background-image: url("../assets/images/dark-academia.jpg"); background-position: center 38%; }
.room-hero--community { background-image: url("../assets/images/clubhouse.jpg"); background-position: center 40%; }
.room-hero--audiobooks { background-image: url("../assets/images/listening-dusk.jpg"); background-position: center 45%; }
.room-hero--find { background-image: url("../assets/worlds/threshold-arch-wide.jpg"); background-position: center 48%; }
.room-hero--marketplace { background-image: url("../assets/images/marketplace.jpg"); background-position: center 35%; }
.room-hero--authors { background-image: url("../assets/worlds/stone-library-wide.jpg"); background-position: center 40%; }
.room-hero--about { background-image: url("../assets/images/cottage-nook.jpg"); background-position: center 42%; }

@media (max-width: 640px) {
  .room-hero--discover {
    background-image: url("../assets/worlds/portal-library-mobile.jpg");
    background-position: center 36%;
  }
  .room-hero--find {
    background-image: url("../assets/worlds/threshold-arch-mobile.jpg");
    background-position: center 46%;
  }
  .room-hero--authors {
    background-image: url("../assets/worlds/stone-library-mobile.jpg");
    background-position: center 38%;
  }
  .room-hero--audiobooks {
    background-image: url("../assets/images/listening-dusk-mobile.jpg");
    background-position: center 28%;
  }
}

@media (max-width: 640px) {
  .room-hero { min-height: min(52vh, 460px); }
  .room-hero-inner { padding: 72px 20px 56px; }
}

/* Atmosphere band — full-width visual pause between rooms */
.atmosphere {
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.atmosphere figure {
  margin: 0;
  overflow: hidden;
}
.atmosphere img {
  width: 100%;
  max-height: min(48vh, 420px);
  object-fit: cover;
  aspect-ratio: 21 / 9;
}
.atmosphere figcaption {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 28px 20px;
  font-family: var(--ui-font);
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
}

/* Cover shelf / stack — natural aspect; never crop-to-fill as a cover */
.cover-shelf {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 2.5vw, 22px);
  padding: 28px 0 8px;
  flex-wrap: wrap;
}
.cover-shelf__item {
  width: clamp(88px, 14vw, 132px);
  flex: 0 0 auto;
}
.cover-shelf__item img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  object-position: bottom center;
  background: var(--bg-warm);
  box-shadow: 0 12px 28px rgba(41, 39, 37, 0.16);
  border-radius: 2px;
}
.cover-stack {
  position: relative;
  width: min(220px, 55vw);
  margin: 0 auto;
  aspect-ratio: 2 / 3;
}
.cover-stack img {
  position: absolute;
  width: 78%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(41, 39, 37, 0.18);
  border-radius: 2px;
  background: var(--bg-warm);
}
.cover-stack img:nth-child(1) { left: 0; top: 8%; transform: rotate(-6deg); z-index: 1; }
.cover-stack img:nth-child(2) { left: 12%; top: 0; transform: rotate(2deg); z-index: 2; }
.cover-stack img:nth-child(3) { right: 0; top: 10%; transform: rotate(7deg); z-index: 3; }

/* Cover + caption vignette */
.cover-vignette {
  display: grid;
  grid-template-columns: minmax(100px, 160px) 1fr;
  gap: 28px;
  align-items: center;
  max-width: 640px;
  margin: 0 auto;
}
.cover-vignette__art img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  box-shadow: 0 14px 36px rgba(41, 39, 37, 0.16);
  border-radius: 2px;
  background: var(--bg-warm);
}
.cover-vignette__caption {
  font-family: var(--hero-font);
  font-size: clamp(20px, 2.8vw, 26px);
  font-style: italic;
  font-weight: 500;
  color: var(--accent-dark);
  line-height: 1.35;
  max-width: 28ch;
}
.cover-vignette__note {
  margin-top: 10px;
  font-family: var(--ui-font);
  font-size: 14px;
  color: var(--text-muted);
  max-width: 36ch;
}
@media (max-width: 560px) {
  .cover-vignette {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .cover-vignette__art { max-width: 140px; }
}

/* Experience glimpse — feeling, not fake UI dashboard */
.glimpse {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.glimpse__cell {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  min-height: 200px;
  background: var(--bg-deep);
}
.glimpse__cell img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.glimpse__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 48px 16px 16px;
  background: linear-gradient(to top, rgba(26, 18, 12, 0.88), transparent);
  color: #F5EDE0;
  font-family: var(--hero-font);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}
.glimpse__label span {
  display: block;
  margin-top: 4px;
  font-family: var(--ui-font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(240, 228, 208, 0.78);
}
.glimpse--pair { grid-template-columns: 1fr 1fr; }
@media (max-width: 820px) {
  .glimpse,
  .glimpse--pair { grid-template-columns: 1fr; }
  .glimpse__cell { min-height: 180px; }
  .glimpse__cell img { min-height: 180px; aspect-ratio: 16 / 9; }
}

/* Journey composition — editorial steps, not SaaS cards */
.journey {
  display: grid;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
  counter-reset: journey;
}
.journey__step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.journey__step:last-child { border-bottom: none; }
.journey__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hero-font);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  background: var(--surface);
}
.journey__step h3 {
  font-family: var(--hero-font);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 6px;
}
.journey__step p {
  margin: 0;
  color: var(--text-muted);
  max-width: 48ch;
  font-size: 16px;
}

/* Quiet distinction strip — typographic truth, not a warning box */
.distinction {
  padding: 48px 0;
  background: var(--bg-night);
  color: rgba(245, 237, 224, 0.9);
  text-align: center;
}
.distinction__intro {
  font-family: var(--ui-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 28px;
}
.distinction__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 6px;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}
.distinction__item {
  font-family: var(--hero-font);
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 500;
  color: #F5EDE0;
  padding: 4px 10px;
}
.distinction__neq {
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: 600;
  color: rgba(196, 169, 122, 0.7);
  letter-spacing: 0.08em;
}
.distinction__foot {
  margin-top: 24px;
  font-size: 15px;
  color: rgba(240, 228, 208, 0.65);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* Format belonging — library “one reading life” without checklist */
.format-life {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.format-life__pane {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  min-height: 260px;
}
.format-life__pane img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}
.format-life__copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 56px 18px 18px;
  background: linear-gradient(to top, rgba(26, 18, 12, 0.9), transparent);
  color: #F5EDE0;
}
.format-life__copy h3 {
  font-family: var(--hero-font);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #F5EDE0;
}
.format-life__copy p {
  margin: 0;
  font-size: 14px;
  color: rgba(240, 228, 208, 0.82);
  max-width: none;
}
.format-life__pane--quiet {
  background: linear-gradient(160deg, #3D2A36 0%, #1E161C 100%);
  display: flex;
  align-items: flex-end;
  min-height: 260px;
}
.format-life__pane--quiet .format-life__copy {
  position: relative;
  inset: auto;
  width: 100%;
  background: none;
  padding: 28px 20px;
}
@media (max-width: 820px) {
  .format-life { grid-template-columns: 1fr; }
  .format-life__pane { min-height: 200px; }
  .format-life__pane img { min-height: 200px; aspect-ratio: 16 / 9; }
  .format-life__pane--quiet { min-height: 160px; }
}

/* Curated-object composition — marketplace atmosphere */
.curated {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.curated__still {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(41, 39, 37, 0.14);
}
.curated__still img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.curated__copy h2 {
  font-family: var(--hero-font);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.curated__copy p {
  color: var(--text-muted);
  max-width: 40ch;
  margin-bottom: 12px;
}
@media (max-width: 820px) {
  .curated { grid-template-columns: 1fr; gap: 24px; }
}

/* Author-presence composition */
.author-presence {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.author-presence__art {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(41, 39, 37, 0.14);
}
.author-presence__art img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.author-presence__title {
  font-family: var(--hero-font);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.author-presence__lede {
  color: var(--text-muted);
  max-width: 42ch;
  margin-bottom: 8px;
}
.author-presence__points {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.author-presence__points li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  max-width: 42ch;
}
.author-presence__points li:last-child { border-bottom: none; }
.author-presence__points strong {
  display: block;
  font-family: var(--hero-font);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 4px;
}
@media (max-width: 820px) {
  .author-presence { grid-template-columns: 1fr; }
  .author-presence__art { max-width: 360px; }
}

/* Restrained mission closing */
.mission-close {
  padding: 72px 0;
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.mission-close h2 {
  font-family: var(--hero-font);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.mission-close p {
  color: var(--text-muted);
  max-width: 40ch;
  margin: 0 auto 22px;
}

/* Quiet end matter — About / Contact operator details */
.end-matter {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-family: var(--ui-font);
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}
.end-matter a { color: var(--accent); }
.end-matter p { margin-bottom: 8px; max-width: 48ch; color: var(--text-light); }

.quiet-line {
  margin-top: 32px;
  font-family: var(--ui-font);
  font-size: 13px;
  color: var(--text-light);
  max-width: 52ch;
  line-height: 1.55;
}

.prose {
  padding: 56px 0 88px;
}
.prose--legal {
  padding: 32px 0 72px;
}
.prose h2 {
  font-family: var(--hero-font);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  color: var(--accent-dark);
  margin: 2em 0 0.6em;
  letter-spacing: -0.01em;
}
.prose--legal h2 {
  font-size: clamp(20px, 4vw, 26px);
  margin: 1.55em 0 0.45em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--hero-font);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 1.6em 0 0.5em;
}
.prose p, .prose li {
  color: var(--text-muted);
  margin-bottom: 1em;
  max-width: 62ch;
}
.prose--legal p, .prose--legal li {
  font-size: 16px;
  line-height: 1.6;
  max-width: 60ch;
}
.prose ul, .prose ol {
  padding-left: 1.2em;
  margin-bottom: 1.2em;
}
.prose li { margin-bottom: 0.45em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.note {
  margin: 28px 0;
  padding: 18px 20px;
  background: rgba(155, 125, 90, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-muted);
}

@media (max-width: 430px) {
  .page-hero--legal {
    padding: 28px 0 18px;
  }
  .prose--legal {
    padding: 24px 0 56px;
  }
}

.paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.path {
  padding: 20px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.path h3 {
  font-family: var(--hero-font);
  font-size: 20px;
  color: var(--accent-dark);
  margin: 0 0 8px;
}
.path p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  max-width: none;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 48px 28px 36px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand {
  font-family: var(--hero-font);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.footer-tag {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 28ch;
  line-height: 1.5;
}
.footer-col h3 {
  font-family: var(--ui-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-family: var(--ui-font);
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--accent-dark); text-decoration: underline; }

.footer-meta {
  max-width: var(--max);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--ui-font);
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.55;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-footer { padding: 40px 18px 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Pull quote — editorial voice, not a card ───────────── */
.pull-quote {
  padding: 72px 28px;
  text-align: center;
  background-color: var(--bg-warm);
  background-image:
    linear-gradient(rgba(244, 237, 224, 0.94), rgba(244, 237, 224, 0.94)),
    url("../assets/worlds/linen.jpg");
  background-size: auto, 720px;
  border-bottom: 1px solid var(--border);
}
.pull-quote__text {
  font-family: var(--hero-font);
  font-size: clamp(28px, 4.6vw, 44px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
  color: var(--accent-dark);
  max-width: 18ch;
  margin: 0 auto 14px;
  letter-spacing: -0.02em;
}
.pull-quote__attr {
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── DNA moment — Discover’s centrepiece ────────────────── */
.dna-moment {
  padding: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-night);
  color: #F5EDE0;
}
.dna-moment__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: min(62vh, 560px);
}
.dna-moment__art {
  margin: 0;
  overflow: hidden;
  min-height: 280px;
}
.dna-moment__art img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center 18%;
  aspect-ratio: 4 / 3;
}
.dna-emblem {
  width: 84px;
  height: 84px;
  object-fit: cover;
  margin-bottom: 18px;
  border: 1px solid rgba(196, 169, 122, 0.45);
}
.glimpse__cell img.world-grove { object-position: center 58%; }
.glimpse__cell img.world-gothic { object-position: center 42%; }
.dna-moment__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 40px;
  background:
    linear-gradient(160deg, #1F1610 0%, #16100C 55%, #1A120C 100%);
}
.dna-moment__copy .eyebrow { color: var(--gold-light); }
.dna-moment__copy h2 {
  font-family: var(--hero-font);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: #F5EDE0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.dna-moment__copy p {
  color: rgba(240, 228, 208, 0.78);
  max-width: 36ch;
  margin-bottom: 12px;
}
.dna-moment__copy p:last-child { margin-bottom: 0; }
.dna-moment__action {
  margin-top: 22px;
  margin-bottom: 0;
}
.dna-moment__action .btn--primary {
  background: var(--accent);
  color: #FBF8F1;
  border-color: var(--accent);
}
.dna-moment__action .btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* Discover-only: compact DNA shell — no ghost min-heights */
.dna-moment--focused .dna-moment__grid {
  min-height: 0 !important;
  align-items: stretch;
  grid-template-columns: 1fr 1fr;
}
.dna-moment--focused .dna-moment__art {
  min-height: 0 !important;
  max-height: 420px;
}
.dna-moment--focused .dna-moment__art img {
  aspect-ratio: auto;
  min-height: 0 !important;
  height: 420px;
  max-height: 420px;
  width: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.dna-moment--focused .dna-moment__copy {
  padding: 36px 32px;
}
.discover-payoff {
  padding: 48px 0;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
}
.mission-close.mission-close--tight {
  padding: 48px 0;
}

@media (max-width: 820px) {
  .dna-moment__grid { grid-template-columns: 1fr; }
  .dna-moment__copy { padding: 40px 24px 48px; }
  .dna-moment__art img { aspect-ratio: 16 / 10; min-height: 220px; object-position: center 22%; }
  .dna-moment--focused .dna-moment__art {
    max-height: none;
  }
  .dna-moment--focused .dna-moment__art img {
    aspect-ratio: 16 / 10;
    min-height: 0 !important;
    height: auto;
    max-height: 280px;
  }
  .dna-moment--focused .dna-moment__copy { padding: 32px 24px 40px; }
  .discover-payoff { padding: 40px 0; }
  .mission-close.mission-close--tight { padding: 40px 0; }
}
@media (max-width: 640px) {
  .dna-emblem { width: 64px; height: 64px; }
}

/* ── Literary edition fallbacks (not fabricated covers) ─── */
.edition-shelf {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(12px, 2.8vw, 20px);
  padding: 36px 8px 12px;
  flex-wrap: wrap;
}
.edition-card {
  width: clamp(92px, 15vw, 128px);
  aspect-ratio: 2 / 3;
  border-radius: 2px 4px 4px 2px;
  padding: 18px 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow:
    2px 0 0 rgba(255, 255, 255, 0.08) inset,
    0 14px 32px rgba(41, 39, 37, 0.18);
  color: #F5EDE0;
  text-decoration: none;
}
.edition-card__spine {
  font-family: var(--hero-font);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 600;
  line-height: 1.2;
  writing-mode: horizontal-tb;
  letter-spacing: -0.01em;
}
.edition-card__note {
  font-family: var(--ui-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.72;
}
.edition-card--physical {
  background: linear-gradient(145deg, #5A4034 0%, #3D2A22 100%);
}
.edition-card--ebook {
  background: linear-gradient(145deg, #6B5A48 0%, #44362C 100%);
}
.edition-card--audio {
  background: linear-gradient(145deg, #4A3D52 0%, #2E2636 100%);
}
.edition-card--borrow {
  background: linear-gradient(145deg, #4A5548 0%, #2F362F 100%);
}
.edition-card--secondhand {
  background: linear-gradient(145deg, #6E5340 0%, #463528 100%);
}
.edition-shelf__caption {
  text-align: center;
  margin-top: 18px;
  font-family: var(--ui-font);
  font-size: 13px;
  color: var(--text-light);
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Status ribbon — library life states, conceptual not fake data */
.status-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}
.status-ribbon span {
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
  border: 1px solid var(--border-warm);
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 999px;
}

/* Path mosaic — Find a Book formats without SaaS cards */
.path-mosaic {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 28px;
}
.path-mosaic__item {
  background: var(--surface);
  padding: 28px 18px;
  text-align: center;
}
.path-mosaic__item h3 {
  font-family: var(--hero-font);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 6px;
}
.path-mosaic__item p {
  margin: 0 auto;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 16ch;
}
@media (max-width: 900px) {
  .path-mosaic { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .path-mosaic { grid-template-columns: 1fr; }
}

/* Ritual strip — marketplace “what kind of night” */
.ritual-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(251, 248, 241, 0.94), rgba(251, 248, 241, 0.94)),
    url("../assets/worlds/linen.jpg");
  background-size: auto, 720px;
}
.ritual-strip__item {
  padding: 40px 28px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.ritual-strip__item:last-child { border-right: none; }
.ritual-strip__item h3 {
  font-family: var(--hero-font);
  font-size: 24px;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 8px;
}
.ritual-strip__item p {
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 22ch;
}
@media (max-width: 720px) {
  .ritual-strip { grid-template-columns: 1fr; }
  .ritual-strip__item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 28px 22px;
  }
  .ritual-strip__item:last-child { border-bottom: none; }
}

/* Soft trust aside — quiet qualification, not defence */
.trust-aside {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--ui-font);
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.55;
  max-width: 52ch;
}
.trust-aside a { color: var(--accent); }

/* Home world rail — visual invitation without identical sections */
.world-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.world-rail a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  min-height: 220px;
  text-decoration: none;
  color: #F5EDE0;
}
.world-rail a img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  transition: transform 0.5s ease;
}
.world-rail a:hover img { transform: scale(1.04); }
.world-rail a span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 48px 14px 14px;
  background: linear-gradient(to top, rgba(26, 18, 12, 0.9), transparent);
  font-family: var(--hero-font);
  font-size: 22px;
  font-weight: 600;
}
@media (max-width: 820px) {
  .world-rail { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .world-rail { grid-template-columns: 1fr; }
  .world-rail a { min-height: 180px; }
  .world-rail a img { min-height: 180px; aspect-ratio: 16 / 9; }
}

/* Focus for nav links */
.site-nav a:focus-visible,
.footer-col a:focus-visible,
.wordmark:focus-visible,
.story-link:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

img[loading="lazy"] { content-visibility: auto; }

/* Quiet centred payoff — less ivory void, no forced imagery */
.wrap--payoff {
  max-width: 640px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.wrap--payoff h2 {
  margin-bottom: 14px;
}
.wrap--payoff p {
  margin-left: auto;
  margin-right: auto;
}
.payoff-note {
  margin-top: 22px;
  font-family: var(--ui-font);
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.55;
  max-width: 48ch;
}
.payoff-note a { color: var(--accent); }

/* Community belonging — typography instead of repeated rooms */
.belonging {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-warm, #F6F1E8);
}
.belonging__item {
  padding: 40px 28px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.belonging__item:last-child { border-right: none; }
.belonging__item h3 {
  font-family: var(--hero-font);
  font-size: 24px;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 8px;
}
.belonging__item p {
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 22ch;
}
@media (max-width: 720px) {
  .belonging { grid-template-columns: 1fr; }
  .belonging__item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 28px 22px;
  }
  .belonging__item:last-child { border-bottom: none; }
}

/* Find format taxonomy — labels, not fake book objects */
.format-taxonomy {
  list-style: none;
  margin: 32px auto 0;
  padding: 0;
  max-width: 560px;
  border-top: 1px solid var(--border);
}
.format-taxonomy li {
  display: grid;
  grid-template-columns: 18px minmax(88px, 120px) 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
}
.format-taxonomy__mark {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
  margin-top: 6px;
  justify-self: center;
}
.format-taxonomy strong {
  font-family: var(--hero-font);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-dark);
}
.format-taxonomy li > span:last-child {
  font-size: 15px;
  color: var(--text-muted);
}
@media (max-width: 480px) {
  .format-taxonomy li {
    grid-template-columns: 18px 1fr;
    gap: 10px 14px;
  }
  .format-taxonomy strong { grid-column: 2; }
  .format-taxonomy li > span:last-child {
    grid-column: 2;
    margin-top: -4px;
  }
}

/* Authors arc — creation → presence → readers */
.author-arc {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.author-arc__step {
  flex: 1;
  text-align: center;
  padding: 8px 20px;
  max-width: 220px;
}
.author-arc__label {
  display: block;
  font-family: var(--ui-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.author-arc__step p {
  margin: 0 auto;
  font-family: var(--hero-font);
  font-size: 20px;
  font-weight: 500;
  color: var(--accent-dark);
  line-height: 1.35;
  max-width: 16ch;
}
.author-arc__rule {
  width: 1px;
  align-self: stretch;
  background: var(--border-warm);
  flex: 0 0 1px;
}
@media (max-width: 720px) {
  .author-arc {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 36px 22px;
  }
  .author-arc__rule {
    width: 48px;
    height: 1px;
    align-self: center;
  }
  .author-arc__step { max-width: none; }
}

/* Lighter pull-quote variant for mid-page interludes */
.pull-quote--light {
  background-color: var(--bg);
  background-image: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pull-quote--light .pull-quote__text {
  color: var(--accent-dark);
}
.pull-quote--light .pull-quote__attr {
  color: var(--text-light);
}

/* ── Public beta signup page ─────────────────────────────── */
/* Continuous paper environment — no alternating colour strips.
   CP001 / BD001 not shipped: licence evidence unverified. */

.page-beta {
  background: #FBF8F1;
  color: var(--text);
}

.page-beta .site-header {
  background: rgba(251, 248, 241, 0.92);
}

.brand-mark--ink {
  font-family: var(--hero-font);
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent-dark);
  line-height: 1;
  margin-bottom: 18px;
}

.beta-hero {
  padding: 0 0 clamp(12px, 2vw, 20px);
  text-align: left;
}

.beta-hero-plate {
  margin: 0;
}

.beta-hero-plate img {
  width: 100%;
  height: min(68vh, 620px);
  object-fit: cover;
  object-position: center 62%;
}

.beta-hero-copy {
  padding-top: clamp(28px, 4vw, 44px);
  padding-bottom: clamp(8px, 1.6vw, 18px);
}

.beta-hero h1 {
  font-family: var(--hero-font);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--accent-dark);
  margin: 12px 0 18px;
  max-width: 12ch;
}

.beta-hero .lede {
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  color: var(--text-muted);
  max-width: 38ch;
}

/* After the hero: one paper passage, then the room returns.
   Same cozy-library palette as the sign-in atmosphere, without a second photograph. */

.beta-mark {
  margin: 0;
  font-size: 13px;
  line-height: 1;
  color: var(--gold);
}

.beta-pages {
  padding: clamp(4px, 1vw, 12px) 0 0;
}

.beta-quire,
.beta-hinge__inner,
.beta-door__frame {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: clamp(24px, 4vw, 56px);
  padding-right: clamp(24px, 4vw, 56px);
}

.beta-quire {
  padding-top: clamp(18px, 2.4vw, 28px);
  padding-bottom: clamp(6px, 1vw, 12px);
}

.beta-pages .beta-mark {
  margin-bottom: 2px;
}

.beta-leaf {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  column-gap: clamp(20px, 3vw, 44px);
  align-items: start;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-top: 1px solid rgba(155, 125, 90, 0.38);
}

.beta-leaf:first-of-type {
  border-top: none;
  padding-top: clamp(12px, 1.6vw, 18px);
}

.beta-leaf > .eyebrow {
  margin: 0.45rem 0 0;
}

.beta-leaf__main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(148px, 0.7fr);
  gap: clamp(18px, 2.5vw, 40px);
  align-items: end;
  min-width: 0;
}

.beta-leaf__main--prose {
  grid-template-columns: minmax(0, 1fr);
  max-width: 40rem;
  gap: 10px;
  align-items: start;
}

.beta-pages h2,
.beta-hinge h2 {
  font-family: var(--hero-font);
  font-weight: 500;
  font-size: clamp(2.05rem, 3.1vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--accent-dark);
  margin: 0 0 12px;
  text-wrap: balance;
}

#people-heading {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.85rem, 2.7vw, 2.4rem);
  max-width: 20em;
  margin-bottom: 12px;
}

.beta-leaf__copy p,
.beta-leaf__main--prose > p:not(.beta-aside-line),
.beta-hinge__copy > p:not(.beta-aside-line) {
  font-size: clamp(1.06rem, 1.2vw, 1.18rem);
  line-height: 1.62;
  color: var(--text);
  margin: 0;
  max-width: 42em;
}

.beta-aside-line {
  margin: 0 0 12px;
  max-width: 12em;
  font-family: var(--hero-font);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--accent-dark);
  text-wrap: balance;
}

.beta-poem {
  margin: 0;
  padding: 2px 0 4px 18px;
  border-left: 1px solid var(--gold-light);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--hero-font);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  line-height: 1.12;
  color: var(--accent-dark);
}

/* The turn: here is Booknium → here is why you are invited. */
.beta-hinge {
  background: #F3EBE0;
  border-top: 1px solid rgba(155, 125, 90, 0.45);
  border-bottom: 1px solid rgba(155, 125, 90, 0.28);
}

.beta-hinge__inner {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  column-gap: clamp(20px, 3vw, 44px);
  align-items: start;
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.beta-hinge__spine .eyebrow {
  margin-bottom: 0;
}

.beta-hinge__spine .beta-mark {
  margin-bottom: 12px;
}

.beta-hinge h2 {
  font-size: clamp(2.25rem, 3.8vw, 3.25rem);
  max-width: 16ch;
  margin-bottom: 8px;
}

.beta-hinge .beta-aside-line {
  font-size: clamp(2.05rem, 3.4vw, 2.95rem);
  color: #6B3A32;
  margin-bottom: 16px;
}

.beta-hinge__copy > p:not(.beta-aside-line) {
  max-width: 38em;
  color: var(--text-muted);
}

/* Arrival: the library's wood and shadow, with the request on paper. */
.beta-door {
  scroll-margin-top: 72px;
  background: #1A120C;
  color: #F6EFE4;
}

.beta-door__frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.beta-door .beta-mark {
  color: #C4A97A;
  margin-bottom: 14px;
}

.beta-door .eyebrow {
  color: #C4A97A;
}

.beta-door h2 {
  font-family: var(--hero-font);
  font-weight: 500;
  font-size: clamp(2.7rem, 4.4vw, 4.05rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: #F6EFE4;
  margin: 0 0 18px;
}

.beta-door__invite p:last-child,
.beta-door__invite p:has(+ .beta-door__already) {
  margin: 0;
  max-width: 34em;
  font-size: clamp(1.02rem, 1.2vw, 1.12rem);
  line-height: 1.6;
  color: rgba(246, 239, 228, 0.78);
}

.beta-door__invite .beta-door__already {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(196, 169, 122, 0.35);
  font-size: 0.98rem;
}

.beta-door__already a {
  color: #E3CFA6;
  font-weight: 600;
  text-underline-offset: 3px;
}

.beta-sheet {
  min-width: 0;
  background: #F7F2E8;
  color: var(--text);
  border: 1px solid #C4A97A;
  padding: 22px 22px 20px;
}

.beta-sheet__seal-mark {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  line-height: 1;
}

@media (min-width: 1440px) {
  .beta-quire,
  .beta-hinge__inner,
  .beta-door__frame {
    max-width: 1180px;
  }
}

@media (min-width: 1800px) {
  .beta-quire,
  .beta-hinge__inner,
  .beta-door__frame {
    max-width: 1240px;
  }
}

.beta-signup {
  margin-top: 0;
  display: flex;
  flex-direction: column;
}

.beta-signup[hidden],
.beta-state[hidden],
.beta-club__note[hidden] {
  display: none !important;
}

.beta-field {
  margin-bottom: 18px;
}

.beta-field label {
  display: block;
  font-family: var(--ui-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.beta-field input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #CDBFA8;
  border-radius: 2px;
  background: #FFFCF7;
  color: var(--text);
  font-family: var(--ui-font);
  font-size: 16px; /* iOS: avoid zoom */
  line-height: 1.4;
}

.beta-field input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 169, 122, 0.28);
}

.beta-field input[aria-invalid="true"] {
  border-color: #8B3A2F;
}

.beta-field-error {
  margin-top: 8px;
  font-family: var(--ui-font);
  font-size: 14px;
  color: #8B3A2F;
}

/* Book Club cohort — editorial extension of the signup form (not a survey card). */
.beta-club {
  margin: 4px 0 18px;
  padding: 0;
  border: none;
  min-width: 0;
}

.beta-club__legend {
  display: block;
  font-family: var(--ui-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 6px;
  padding: 0;
}

.beta-club__support {
  margin: 0 0 6px;
  font-family: var(--ui-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.beta-club__quiet {
  margin: 0 0 12px;
  font-family: var(--ui-font);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-light);
}

.beta-club__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.beta-club__option {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  font-family: var(--ui-font);
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
  cursor: pointer;
}

.beta-club__option input {
  margin-top: 0;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #5C2E24;
}

.beta-club__option input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.beta-club__note {
  margin-top: 14px;
}

.beta-club__note label {
  display: block;
  font-family: var(--ui-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.beta-club__note input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #CDBFA8;
  border-radius: 2px;
  background: #FFFCF7;
  color: var(--text);
  font-family: var(--ui-font);
  font-size: 16px;
  line-height: 1.4;
}

.beta-club__note input[type="text"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 169, 122, 0.28);
}

.beta-club__note-hint {
  margin: 8px 0 0;
  font-family: var(--ui-font);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-light);
}

.beta-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-family: var(--ui-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 6px 0 4px;
  cursor: pointer;
}

.beta-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #5C2E24;
}

.beta-consent {
  font-family: var(--ui-font);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-light);
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.beta-consent strong {
  color: var(--text-muted);
  font-weight: 600;
}

.beta-consent a {
  color: var(--accent);
}

/* The seal — culmination of the invitation, on the paper. */
.beta-signup__seal {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(196, 169, 122, 0.7);
}

.beta-submit {
  margin-top: 0;
  width: 100%;
  min-height: 52px;
  padding-left: 22px;
  padding-right: 22px;
  border: none;
  border-radius: 2px;
  font-size: 16px;
  letter-spacing: 0.02em;
  background: #5C2E24;
  color: #F8F1E6;
}

.beta-submit:hover {
  background: #4A241C;
  color: #F8F1E6;
  transform: none;
}

.beta-submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.beta-state {
  padding: 4px 0 8px;
}

.beta-state h3 {
  font-family: var(--hero-font);
  font-weight: 500;
  font-size: 1.55rem;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.beta-state p {
  margin-bottom: 0;
}

.beta-state--success h3 {
  font-size: clamp(2rem, 3vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.beta-state--success h3::before {
  content: "✦";
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0;
  color: var(--gold);
  margin-bottom: 12px;
}

.beta-sheet:has(.beta-state--success:not([hidden])) .beta-sheet__seal-mark {
  display: none;
}

.beta-state--success p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}

.beta-state--error {
  font-family: var(--ui-font);
  font-size: 15px;
  color: #8B3A2F;
  background: rgba(139, 58, 47, 0.08);
  border: 1px solid rgba(139, 58, 47, 0.22);
  border-radius: 2px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.beta-colophon {
  text-align: center;
  padding: clamp(44px, 6vw, 64px) 24px clamp(36px, 5vw, 48px);
  border-top: 1px solid var(--border);
  background: transparent;
}

.page-beta .beta-colophon {
  background: #FBF8F1;
  border-top: none;
  padding: clamp(32px, 4vw, 44px) 24px clamp(28px, 3.5vw, 36px);
}

.beta-colophon .brand-mark--ink {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 5vw, 2.75rem);
  text-shadow: none;
}

.beta-colophon__line {
  font-family: var(--hero-font);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  color: var(--accent-dark);
  margin: 0 0 16px;
}

.beta-colophon__mail {
  margin: 0 0 18px;
  font-family: var(--ui-font);
  font-size: 16px;
}

.beta-colophon__mail a {
  color: var(--accent-dark);
  text-decoration: none;
}

.beta-colophon__mail a:hover {
  text-decoration: underline;
}

.beta-colophon__links {
  margin: 0;
  font-family: var(--ui-font);
  font-size: 15px;
  color: var(--text-light);
}

.beta-colophon__links a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 8px;
}

.beta-colophon__links a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.beta-colophon__legal {
  max-width: 42em;
  margin: 22px auto 0;
  font-family: var(--ui-font);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-light);
}

.beta-colophon__legal + .beta-colophon__legal {
  margin-top: 8px;
}

.beta-colophon__legal a {
  color: var(--text-muted);
}

.beta-colophon a:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .beta-leaf,
  .beta-hinge__inner,
  .beta-door__frame,
  .beta-leaf__main {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  .beta-leaf {
    padding: 18px 0 20px;
  }
  .beta-leaf > .eyebrow {
    margin-top: 0;
  }
  .beta-poem {
    border-left: none;
    border-top: 1px solid var(--gold-light);
    padding: 12px 0 0;
    margin-top: 6px;
  }
  .beta-hinge__inner {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .beta-hinge h2,
  .beta-hinge .beta-aside-line {
    max-width: none;
  }
  .beta-door__frame {
    padding-top: 32px;
    padding-bottom: 28px;
    row-gap: 20px;
  }
  .beta-hero-plate img {
    height: auto;
    aspect-ratio: 1400 / 989;
    object-position: center center;
  }
}

@media (max-width: 430px) {
  .beta-hero-copy {
    padding-top: 22px;
    padding-bottom: 2px;
  }
  .beta-hero h1 {
    max-width: none;
  }
  .beta-quire,
  .beta-hinge__inner,
  .beta-door__frame {
    padding-left: 20px;
    padding-right: 20px;
  }
  .beta-sheet {
    padding: 16px 16px 14px;
  }
  .beta-pages h2,
  #people-heading,
  .beta-hinge h2 {
    font-size: 1.85rem;
  }
  .beta-door h2 {
    font-size: 2.35rem;
  }
  .beta-aside-line,
  .beta-hinge .beta-aside-line {
    font-size: 1.7rem;
  }
}

@media (max-width: 320px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .brand-mark--ink { font-size: 2.1rem; }
  .beta-quire,
  .beta-hinge__inner,
  .beta-door__frame {
    padding-left: 16px;
    padding-right: 16px;
  }
  .beta-pages h2,
  .beta-hinge h2,
  #people-heading { font-size: 1.65rem; }
  .beta-door h2 { font-size: 2rem; }
}

/* ── Beta Reader Welcome (/beta/welcome/) ──
   Accepted-reader chapter: You're in.
   Visual continuity with the richer Booknium Beta experience —
   immersive / cream / warm / immersive rhythm — not a plain document.
   Functional truth stays current; do not resurrect old beta signup logic. */

.page-beta-welcome {
  background: var(--bg);
}

.page-beta-welcome .site-header {
  background: rgba(251, 248, 241, 0.95);
}

/* Immersive arrival — same world as public Beta hero language */
.page-beta-welcome .bw-arrival {
  position: relative;
  text-align: center;
  padding: clamp(88px, 12vw, 120px) 24px clamp(100px, 14vw, 128px);
  overflow: hidden;
  border-bottom: none;
  background:
    linear-gradient(
      to bottom,
      rgba(18, 10, 4, 0.68) 0%,
      rgba(18, 10, 4, 0.62) 48%,
      rgba(18, 10, 4, 0.5) 78%,
      rgba(18, 10, 4, 0.28) 100%
    ),
    url("../assets/images/hero-desktop.jpg") center 35% / cover no-repeat #1E120A;
}

.page-beta-welcome .bw-arrival::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.page-beta-welcome .bw-arrival__copy {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 42rem;
  padding: 12px 28px 4px;
  background: radial-gradient(ellipse at center, rgba(18, 10, 4, 0.62) 0%, rgba(18, 10, 4, 0.34) 58%, rgba(18, 10, 4, 0) 78%);
}

.page-beta-welcome .bw-arrival__brand {
  font-family: var(--hero-font);
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #F5EDE0;
  margin: 0 0 18px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.page-beta-welcome .bw-arrival__eyebrow {
  display: inline-block;
  font-family: var(--ui-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(196, 169, 122, 0.18);
  border: 1px solid rgba(196, 169, 122, 0.38);
  padding: 5px 13px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.page-beta-welcome .bw-arrival__youre-in {
  font-family: var(--hero-font);
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #F5EDE0;
  margin: 0 0 10px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

.page-beta-welcome .bw-arrival h1 {
  font-family: var(--hero-font);
  font-size: clamp(1.55rem, 3.6vw, 2.15rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
  color: rgba(245, 237, 224, 0.95);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.22);
}

.page-beta-welcome .bw-arrival__editorial {
  font-family: var(--hero-font);
  font-size: clamp(1.15rem, 2.6vw, 1.35rem);
  font-style: italic;
  color: rgba(245, 237, 224, 0.92);
  margin: 0 auto 14px;
  max-width: 28rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
}

.page-beta-welcome .bw-arrival__body {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(245, 237, 224, 0.96);
  max-width: 28rem;
  margin: 0 auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 14px rgba(0, 0, 0, 0.45);
}

@media (max-width: 480px) {
  .page-beta-welcome .bw-arrival {
    padding: 76px 18px 96px;
    background-image:
      linear-gradient(
        to bottom,
        rgba(18, 10, 4, 0.7) 0%,
        rgba(18, 10, 4, 0.64) 48%,
        rgba(18, 10, 4, 0.52) 78%,
        rgba(18, 10, 4, 0.3) 100%
      ),
      url("../assets/images/hero-mobile.jpg") center 30% / cover no-repeat;
  }
}

/* Section rhythm */
.page-beta-welcome .bw-section {
  padding: clamp(52px, 7vw, 72px) 0;
  border-bottom: 1px solid var(--border);
}

.page-beta-welcome .bw-section--warm {
  background: var(--bg-warm);
}

.page-beta-welcome .bw-section--surface {
  background: var(--surface);
}

.page-beta-welcome .bw-section--quiet {
  padding: clamp(44px, 6vw, 56px) 0;
}

.page-beta-welcome .bw-label {
  display: block;
  font-family: var(--ui-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.page-beta-welcome .bw-heading {
  font-family: var(--hero-font);
  font-size: clamp(1.55rem, 3.8vw, 1.95rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--accent-dark);
  margin: 0 0 16px;
  max-width: 22ch;
}

.page-beta-welcome .bw-intro,
.page-beta-welcome .bw-path {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 24px;
  max-width: 36rem;
  line-height: 1.6;
}

.page-beta-welcome .bw-letter p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 14px;
  max-width: 38rem;
}

.page-beta-welcome .bw-letter p:last-child {
  margin-bottom: 0;
}

.page-beta-welcome .bw-jump {
  margin: 22px 0 0;
  font-family: var(--ui-font);
  font-size: 0.9rem;
}

.page-beta-welcome .bw-jump a {
  color: var(--text-light);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.page-beta-welcome .bw-jump a:hover {
  color: var(--accent);
}

/* Recognition bookplate */
.page-beta-welcome .bw-bookplate {
  margin-top: 8px;
  border: 1.5px solid rgba(155, 125, 90, 0.5);
  border-radius: 3px;
  padding: 36px 32px 30px;
  background: rgba(155, 125, 90, 0.05);
  position: relative;
  max-width: 560px;
}

.page-beta-welcome .bw-bookplate::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(155, 125, 90, 0.18);
  border-radius: 1px;
  pointer-events: none;
}

.page-beta-welcome .bw-bookplate__emblem {
  display: block;
  margin: 0 auto 14px;
  width: 52px;
  height: 52px;
}

.page-beta-welcome .bw-bookplate__title {
  font-family: var(--hero-font);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  text-align: center;
}

.page-beta-welcome .bw-bookplate__sub {
  font-family: var(--ui-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin: 0 0 20px;
}

.page-beta-welcome .bw-bookplate__divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.page-beta-welcome .bw-bookplate__divider::before,
.page-beta-welcome .bw-bookplate__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(155, 125, 90, 0.32);
}

.page-beta-welcome .bw-bookplate__divider-mark {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.18em;
  font-family: var(--ui-font);
  line-height: 1;
}

.page-beta-welcome .bw-bookplate__body {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.65;
  margin: 0;
}

.page-beta-welcome .bw-bookplate__note {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Use like a reader — three invitations */
.page-beta-welcome .bw-invites {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 28px;
}

.page-beta-welcome .bw-invite {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.page-beta-welcome .bw-invite:last-child {
  border-bottom: none;
}

.page-beta-welcome .bw-invite__title {
  font-family: var(--hero-font);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 6px;
}

.page-beta-welcome .bw-invite p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 36rem;
}

.page-beta-welcome .bw-checklist {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-beta-welcome .bw-checklist li {
  position: relative;
  padding: 12px 14px 12px 2.75rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: rgba(255, 252, 247, 0.72);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--text);
}

.page-beta-welcome .bw-checklist li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 15px;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--gold);
  border-radius: 2px;
  background: #fff;
}

.page-beta-welcome .bw-discord-cta {
  margin: 8px 0 0;
}

.page-beta-welcome .bw-discord-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #1c140c;
  color: #f6efe4;
  font-family: var(--ui-font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.page-beta-welcome .bw-discord-cta a:hover,
.page-beta-welcome .bw-discord-cta a:focus-visible {
  background: #3a2a1c;
  color: #f6efe4;
}

@media (max-width: 480px) {
  .page-beta-welcome .bw-discord-cta a {
    width: 100%;
  }
}

.page-beta-welcome .bw-reader-credo {
  margin: 8px 0 20px;
  padding: 22px 24px;
  background: rgba(155, 125, 90, 0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-width: 36rem;
}

.page-beta-welcome .bw-reader-credo__line {
  font-family: var(--hero-font);
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 600;
  font-style: italic;
  color: var(--accent-dark);
  line-height: 1.35;
  margin: 0;
}

.page-beta-welcome .bw-reader-credo__line + .bw-reader-credo__line {
  margin-top: 4px;
}

.page-beta-welcome .bw-aside {
  font-family: var(--ui-font);
  font-size: 0.92rem;
  color: var(--text-muted);
  border-left: 2px solid var(--gold-light);
  padding: 2px 0 2px 14px;
  margin: 0;
  max-width: 36rem;
  line-height: 1.55;
}

/* Immersive Beta Readers' Room */
.page-beta-welcome .bw-section--room {
  position: relative;
  background:
    linear-gradient(rgba(14, 8, 3, 0.7), rgba(14, 8, 3, 0.72)),
    url("../assets/images/cozy-library.jpg") center 45% / cover no-repeat #110A04;
  border-top: 1px solid rgba(155, 125, 90, 0.25);
  border-bottom: 1px solid rgba(155, 125, 90, 0.25);
}

.page-beta-welcome .bw-section--room .wrap {
  position: relative;
  z-index: 1;
}

.page-beta-welcome .bw-section--room .bw-label {
  color: var(--gold-light);
  opacity: 0.9;
}

.page-beta-welcome .bw-section--room .bw-heading {
  color: #F2E8D8;
  max-width: 16ch;
}

.page-beta-welcome .bw-room-path {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ui-font);
  font-size: 13px;
  color: rgba(235, 220, 196, 0.78);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(155, 125, 90, 0.38);
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

.page-beta-welcome .bw-room-path strong {
  color: #EFE3CC;
}

.page-beta-welcome .bw-room-path__arrow {
  color: var(--gold-light);
  font-size: 11px;
}

.page-beta-welcome .bw-room-copy {
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(230, 214, 188, 0.86);
  max-width: 34rem;
  margin: 0 0 14px;
}

.page-beta-welcome .bw-room-copy:last-child {
  margin-bottom: 0;
}

.page-beta-welcome .bw-room-copy strong {
  color: #EFE3CC;
}

/* Feedback */
.page-beta-welcome .bw-label-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-beta-welcome .bw-label-list li {
  position: relative;
  padding-left: 1.1rem;
  font-family: var(--hero-font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-dark);
  line-height: 1.35;
}

.page-beta-welcome .bw-label-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.25em;
  font-size: 0.55rem;
  color: var(--gold);
}

.page-beta-welcome .bw-love {
  font-family: var(--hero-font);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--accent-dark);
  line-height: 1.5;
  margin: 0 0 12px;
  max-width: 34rem;
}

.page-beta-welcome .bw-secondary-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 28px;
  max-width: 36rem;
}

.page-beta-welcome .bw-wrong {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.page-beta-welcome .bw-wrong h3 {
  font-family: var(--hero-font);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 10px;
}

.page-beta-welcome .bw-wrong > p {
  margin: 0 0 10px;
  color: var(--text);
  max-width: 36rem;
  line-height: 1.55;
}

.page-beta-welcome .bw-three,
.page-beta-welcome .bw-steps {
  list-style: none;
  counter-reset: bw-three;
  margin: 10px 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-beta-welcome .bw-three li,
.page-beta-welcome .bw-steps li {
  counter-increment: bw-three;
  position: relative;
  padding-left: 2rem;
  font-family: var(--ui-font);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.45;
}

.page-beta-welcome .bw-three li::before,
.page-beta-welcome .bw-steps li::before {
  content: counter(bw-three, decimal);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--hero-font);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.page-beta-welcome .bw-callout {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.page-beta-welcome .bw-callout h4 {
  font-family: var(--hero-font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 8px;
}

.page-beta-welcome .bw-callout p {
  margin: 0 0 8px;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.page-beta-welcome .bw-callout p:last-child {
  margin-bottom: 0;
}

/* Getting Help — strong findable treatment */
.page-beta-welcome .bw-section--help {
  background:
    linear-gradient(180deg, rgba(237, 227, 212, 0.65), rgba(251, 248, 241, 0.35));
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
}

.page-beta-welcome .bw-help-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .page-beta-welcome .bw-help-panels {
    grid-template-columns: 1fr 1fr;
  }
}

.page-beta-welcome .bw-help-panel {
  background: var(--bg);
  border: 1.5px solid var(--border-warm);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
}

.page-beta-welcome .bw-help-panel__badge {
  display: block;
  font-family: var(--ui-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.page-beta-welcome .bw-help-panel__title {
  font-family: var(--hero-font);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 8px;
}

.page-beta-welcome .bw-help-panel p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.page-beta-welcome .bw-help-panel a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.page-beta-welcome .bw-help-note {
  margin: 20px 0 0;
  font-size: 0.94rem;
  color: var(--text-muted);
  max-width: 38rem;
  line-height: 1.55;
}

/* Quiet FAQ */
.page-beta-welcome .bw-faq {
  margin-top: 4px;
}

.page-beta-welcome .bw-faq__item {
  border-bottom: 1px solid var(--border);
}

.page-beta-welcome .bw-faq details summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--ui-font);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}

.page-beta-welcome .bw-faq details summary::-webkit-details-marker {
  display: none;
}

.page-beta-welcome .bw-faq details summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  line-height: 1;
}

.page-beta-welcome .bw-faq details[open] summary::after {
  content: "−";
}

.page-beta-welcome .bw-faq details summary:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
  border-radius: 2px;
}

.page-beta-welcome .bw-faq__answer {
  padding: 0 0 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 38rem;
}

.page-beta-welcome .bw-faq__answer a {
  color: var(--accent);
}

/* Closing thank-you — real presence */
.page-beta-welcome .bw-closing {
  padding: clamp(64px, 10vw, 104px) 0 clamp(56px, 9vw, 88px);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(196, 169, 122, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
}

.page-beta-welcome .bw-closing__brand {
  font-family: var(--hero-font);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent-dark);
  margin: 0 0 10px;
  line-height: 1;
}

.page-beta-welcome .bw-closing h2 {
  font-family: var(--hero-font);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 18px;
}

.page-beta-welcome .bw-closing__letter {
  font-size: clamp(1.05rem, 2.4vw, 1.18rem);
  line-height: 1.7;
  color: var(--text);
  max-width: 32rem;
  margin: 0 auto 22px;
}

.page-beta-welcome .bw-closing__cta {
  font-family: var(--hero-font);
  font-size: clamp(1.3rem, 3.2vw, 1.7rem);
  font-style: italic;
  font-weight: 500;
  color: var(--accent-dark);
  margin: 0 auto 28px;
  max-width: 26rem;
  line-height: 1.35;
}

.page-beta-welcome .bw-closing__cta a {
  color: inherit;
  text-underline-offset: 0.18em;
}

.page-beta-welcome .bw-closing__meta {
  font-family: var(--ui-font);
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.page-beta-welcome .bw-closing__meta a {
  color: var(--accent);
}

.page-beta-welcome .beta-colophon {
  border-top: 1px solid var(--border);
}

@media (max-width: 430px) {
  .page-beta-welcome .bw-heading {
    max-width: none;
  }
  .page-beta-welcome .bw-bookplate {
    padding: 28px 20px 24px;
  }
  .page-beta-welcome .bw-section--room .bw-heading {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-beta-welcome .bw-faq details summary::after {
    transition: none;
  }
}

@media print {
  .page-beta-welcome .site-header,
  .page-beta-welcome .nav-toggle,
  .page-beta-welcome .beta-colophon {
    display: none !important;
  }
  .page-beta-welcome {
    background: #fff !important;
  }
  .page-beta-welcome .bw-arrival,
  .page-beta-welcome .bw-section--room {
    background: transparent !important;
    color: #000 !important;
  }
  .page-beta-welcome .bw-arrival h1,
  .page-beta-welcome .bw-arrival__youre-in,
  .page-beta-welcome .bw-arrival__brand,
  .page-beta-welcome .bw-arrival__editorial,
  .page-beta-welcome .bw-arrival__body,
  .page-beta-welcome .bw-section--room .bw-heading,
  .page-beta-welcome .bw-room-copy {
    color: #000 !important;
    text-shadow: none !important;
  }
  .page-beta-welcome .bw-section,
  .page-beta-welcome .bw-section--warm,
  .page-beta-welcome .bw-section--surface,
  .page-beta-welcome .bw-section--help,
  .page-beta-welcome .bw-closing {
    background: transparent !important;
    border: none !important;
    padding: 14px 0 !important;
    break-inside: avoid;
  }
}

/* Beta page club-note field (1 Oct 2026): 16px input stops iOS zoom-on-focus. */
.page-beta .beta-club__note input {min-width:0; font-size: 16px;}

