:root {
  --paper: #F6F0E8;
  --paper-dim: #ECE0CE;
  --ink: #2B2130;
  --ink-soft: #5B4B5E;
  --heather: #6B4E71;
  --heather-deep: #453048;
  --gold: #B8912F;
  --gold-soft: #DFC98A;
  --rust: #A8483A;
  --slate: #7C6C7F;
  --display: 'Fraunces', serif;
  --body: 'Source Serif 4', serif;
  --ui: 'Inter', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.fade-in { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- FLASH MESSAGES ---------- */
.flashes { list-style: none; margin: 0; padding: 10px 6vw 0; }
.flash { max-width: 900px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 4px; font-family: var(--ui); font-size: 13.5px; }
.flash-success { background: var(--accent-soft, #e6f6ee); color: #187a3d; border: 1px solid #b7e4c7; }
.flash-error { background: #fbe9e7; color: #c8382c; border: 1px solid #f3c2ba; }
.flash-dismiss { background: none; border: none; font-size: 16px; cursor: pointer; color: inherit; opacity: 0.7; }

/* ---------- NAV ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 6vw; font-family: var(--ui); position: sticky; top: 0; background: rgba(246,240,232,0.92); backdrop-filter: blur(6px); z-index: 40; border-bottom: 1px solid var(--paper-dim); }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-mark { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 19px; cursor: pointer; text-decoration: none; color: var(--ink); }
.nav-logo { width: 32px; height: 32px; object-fit: cover; object-position: center 22%; border-radius: 50%; position: relative; top: -1px; }
.nav-social { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.nav-social a { display: flex; color: inherit; }
.nav-social a:hover { color: var(--heather-deep); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); }
.nav-links a { text-decoration: none; cursor: pointer; }
.nav-links a:hover { color: var(--heather-deep); }
.nav-links .nav-cta { font-weight: 700; color: var(--rust); }
.nav-links .nav-join { font-weight: 700; color: var(--paper); background: var(--heather-deep); padding: 7px 14px; border-radius: 20px; }
.nav-links .nav-join:hover { background: var(--heather); color: var(--paper); }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); cursor: pointer; padding: 4px; }

/* ---------- HERO ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; padding: 6vh 6vw 7vh; align-items: center; }
.eyebrow { font-family: var(--ui); font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rust); margin-bottom: 14px; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4vw, 50px); line-height: 1.08; margin: 0 0 18px; color: var(--heather-deep); }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--rust); }
.hero p.lede { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 48ch; margin: 0 0 26px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-social { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.hero-social-label { font-family: var(--ui); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.hero-social a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ui); font-size: 13.5px; font-weight: 600; color: var(--heather-deep); text-decoration: none; }
.hero-social a:hover { color: var(--rust); }
.btn { font-family: var(--ui); font-weight: 600; font-size: 14px; padding: 12px 22px; border-radius: 3px; border: 1px solid transparent; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-primary { background: var(--heather-deep); color: var(--paper); }
.btn-primary:hover { background: var(--heather); }
.btn-ghost { background: transparent; border-color: var(--ink-soft); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.hero-note { margin-top: 18px; font-family: var(--ui); font-size: 12px; color: var(--slate); max-width: 46ch; line-height: 1.5; }

.hero-covers { display: flex; gap: 16px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.hero-covers img { width: 130px; height: auto; border-radius: 2px 5px 5px 2px; box-shadow: 0 16px 30px rgba(69,48,72,0.32); cursor: pointer; }
.hero-covers a { display: block; }
.hero-covers .c1 { transform: rotate(-6deg) translateY(10px); }
.hero-covers .c2 { transform: rotate(2deg) translateY(-8px); }
.hero-covers .c3 { transform: rotate(-2deg) translateY(4px); }

/* ---------- STRIP ---------- */
.strip { background: var(--heather-deep); color: var(--paper); font-family: var(--ui); font-size: 12.5px; padding: 11px 6vw; display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; }
.strip span { color: var(--gold-soft); font-weight: 600; }
.strip a { color: inherit; text-decoration: none; }
.strip a:hover { text-decoration: underline; }

/* ---------- SECTIONS ---------- */
.section { padding: 8vh 6vw; max-width: 1180px; margin: 0 auto; }
.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head h2 { font-family: var(--display); font-size: clamp(24px, 3vw, 33px); font-weight: 600; color: var(--heather-deep); margin: 0 0 12px; }
.section-head p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; margin: 0; }
.arc-section-head { max-width: 100%; }
.arc-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.arc-title-row h2 { margin: 0; }
.arc-title-row .eyebrow { margin-bottom: 4px; }
.arc-logo { width: 69px; height: 69px; object-fit: cover; object-position: center 22%; border-radius: 50%; flex-shrink: 0; }

/* ---------- FILTERS ---------- */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: -18px 0 26px; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip { font-family: var(--ui); font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 20px; background: var(--paper-dim); color: var(--ink-soft); border: 1px solid transparent; cursor: pointer; }
.filter-chip:hover { border-color: var(--gold-soft); }
.filter-chip.active { background: var(--heather-deep); color: var(--paper); }
.search-box { font-family: var(--ui); font-size: 13px; padding: 8px 14px; border-radius: 20px; border: 1px solid var(--paper-dim); background: var(--paper); color: var(--ink); min-width: 190px; }
.search-box:focus { outline: none; border-color: var(--gold); }
.no-results { display: none; font-family: var(--ui); font-size: 13.5px; color: var(--slate); padding: 30px 0; text-align: center; }
.no-results.show { display: block; }

/* ---------- LIBRARY ---------- */
.library-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.lib-card { background: var(--paper-dim); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.15s ease; }
.lib-card:hover { transform: translateY(-4px); }
.lib-card.filtered-out { display: none; }
.lib-cover-wrap { position: relative; aspect-ratio: 2/3; overflow: hidden; background: var(--heather-deep); display: flex; align-items: center; justify-content: center; }
.lib-cover-wrap img { width: 100%; height: 100%; object-fit: contain; }
.lib-body { padding: 12px 13px 15px; display: flex; flex-direction: column; flex: 1; }
.lib-body .lib-title { font-family: var(--display); font-size: 13.5px; font-weight: 600; line-height: 1.25; color: var(--heather-deep); margin-bottom: 4px; }
.lib-body .genre-tag { font-family: var(--ui); font-size: 9.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--rust); display: block; margin-bottom: 6px; }
.rating-row { display: flex; align-items: baseline; gap: 5px; text-decoration: none; margin-bottom: 6px; }
.rating-row .stars { color: var(--gold); font-size: 11px; letter-spacing: 1px; }
.rating-row .rating-num { font-family: var(--ui); font-size: 10px; color: var(--slate); }
.rating-row:hover .rating-num { text-decoration: underline; }
.preorder-badge { display: inline-block; font-family: var(--ui); font-size: 10px; font-weight: 700; color: var(--rust); background: var(--accent-soft, #f3e6d8); border: 1px solid var(--gold-soft); border-radius: 3px; padding: 2px 7px; margin-bottom: 6px; }
.ku-badge { display: block; width: fit-content; max-width: 100%; box-sizing: border-box; font-family: var(--ui); font-size: 8.5px; letter-spacing: -0.01em; font-weight: 700; color: var(--heather-deep); background: var(--accent-soft, #e6f0e9); border: 1px solid var(--heather); border-radius: 20px; padding: 3px 7px; margin: 8px auto 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; cursor: pointer; }
.ku-badge:hover { background: var(--heather-deep); border-color: var(--heather-deep); color: var(--paper); }
.lib-body .blurb { font-family: var(--ui); font-size: 11.5px; color: var(--ink-soft); line-height: 1.4; margin: 0 0 8px; }
.lib-body .lib-links { display: flex; gap: 10px; justify-content: center; margin-top: auto; }
.lib-body a.action { font-family: var(--ui); font-size: 11px; font-weight: 700; color: var(--heather-deep); text-decoration: none; }
.lib-body a.action:hover { text-decoration: underline; }

/* ---------- AUDIOBOOKS ---------- */
.audio-wrap { background: #C9A6C4; padding: 8vh 6vw; }
.audio-wrap + .newsletter-wrap { padding-top: 6vh; }
.audio-wrap .section-head { margin-bottom: 12px; }
.audio-wrap .section-head .eyebrow, .audio-wrap .section-head p { color: var(--ink); }
.audio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.audio-card { background: var(--paper); border-radius: 4px; padding: 20px; display: flex; flex-direction: column; border-left: 3px solid var(--gold); }
.audio-card-top { display: flex; gap: 16px; align-items: center; }
.audio-card img { width: 72px; height: 72px; object-fit: contain; border-radius: 3px; flex-shrink: 0; }
.audio-card .audio-title { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--heather-deep); margin: 0 0 5px; }
.audio-card .audio-meta { font-family: var(--ui); font-size: 11.5px; color: var(--slate); line-height: 1.5; margin: 0; }
.audio-card .audio-meta strong { color: var(--ink); }
.audio-card .audio-body { flex: 1; min-width: 0; }
.audio-native-player { width: 100%; margin-top: 12px; height: 34px; }
.audio-sample-link { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-weight: 700; }

/* ---------- ABOUT / BIO ---------- */
.about-wrap { display: grid; grid-template-columns: 0.55fr 1.45fr; gap: 36px; align-items: center; }
.about-portrait { border-radius: 4px; aspect-ratio: 1/1; overflow: hidden; }
.about-logo { width: 100%; height: 100%; object-fit: cover; }
.about-text p { font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 16px; }
.about-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.tag { font-family: var(--ui); font-size: 11.5px; font-weight: 600; padding: 6px 13px; border-radius: 20px; background: var(--paper-dim); color: var(--heather-deep); border: 1px solid var(--gold-soft); }

/* ---------- READER ---------- */
.reader-wrap { background: var(--heather-deep); padding: 8vh 6vw; }
.reader-wrap.reader-page { padding: 4vh 6vw; }
.reader-wrap.reader-embed { padding: 18px 3vw 0; min-height: 100vh; }
.reader-wrap.reader-embed .book-frame { width: 100%; }
/* zoom:0.9 shrinks the reader card visually without changing the real
   viewport height, so a short page's min-height:100vh floor can undershoot
   the bottom edge -- give the page itself the same purple so any gap
   still reads as background, not a stray paper-colored strip. Scoped to
   the reader specifically (not just .embed) since other pages -- like the
   ARC form -- use the same lightbox but shouldn't be zoomed/dark. */
body.reader-embed-body { zoom: 0.9; background: var(--heather-deep); }

.reader-controls { display: flex; align-items: center; justify-content: center; gap: 20px; max-width: 800px; margin: 0 auto 20px; flex-wrap: wrap; }
.reader-controls .book-select { margin: 0; }

.book-select { font-family: var(--ui); font-size: 12.5px; color: var(--slate); text-align: center; margin: 0 auto 20px; max-width: 720px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.book-select select { font-family: var(--ui); font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 3px; border: 1px solid var(--gold-soft); background: var(--paper); color: var(--heather-deep); cursor: pointer; }

.book-frame-shell { position: relative; max-width: 720px; margin: 0 auto; }
.reader-wrap.reader-embed .book-frame-shell { width: 100%; }
/* This button appears over both the dark reader lightbox and the light
   ARC form page, so it uses gold (not paper/heather) to stay visible
   against either background instead of blending into whichever it's on. */
.embed-close { position: absolute; top: -14px; right: -14px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--gold); color: var(--heather-deep); font-weight: 700; font-size: 13px; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.35); }
.embed-close:hover { background: var(--gold-soft); }

/* Not overflow:hidden -- a fixed-height clip here previously cut off
   longer pages/settings rows; corners are rounded per-child instead. */
.book-frame {
  max-width: 720px; margin: 0 auto; background-color: var(--reader-bg, var(--paper));
  border-radius: 3px; box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  --reader-bg: var(--paper); --reader-surface: var(--paper-dim); --reader-ink: var(--ink);
  --reader-ink-soft: var(--slate); --reader-heather: var(--heather-deep); --reader-scale: 1;
}
.book-frame.theme-sepia { --reader-bg: #F0E4C8; --reader-surface: #E4D3A8; --reader-ink: #3B2E1A; --reader-ink-soft: #6B5A3A; --reader-heather: #5C4423; }
.book-frame.theme-night { --reader-bg: #1E1A24; --reader-surface: #29222F; --reader-ink: #E8E0EA; --reader-ink-soft: #B3A4B8; --reader-heather: #D8C98A; }

.book-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; border-bottom: 1px solid var(--reader-surface); font-family: var(--ui); font-size: 12.5px; color: var(--reader-ink-soft); background: var(--reader-bg); gap: 10px; flex-wrap: wrap; border-radius: 3px 3px 0 0; }
.book-toolbar .title-tag { font-weight: 600; color: var(--reader-ink); }
.book-toolbar .toolbar-buy { font-weight: 700; color: var(--rust); text-decoration: none; white-space: nowrap; }
.book-toolbar .toolbar-buy:hover { text-decoration: underline; }

.reader-settings { display: flex; align-items: center; justify-content: space-between; padding: 8px 22px; background: var(--reader-surface); font-family: var(--ui); gap: 10px; flex-wrap: wrap; }
.reader-settings .settings-group { display: flex; align-items: center; gap: 6px; }
.reader-settings .settings-label { font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--reader-ink-soft); margin-right: 4px; }
.font-btn { width: 26px; height: 26px; border-radius: 3px; border: 1px solid var(--reader-ink-soft); background: transparent; color: var(--reader-ink); cursor: pointer; font-size: 12px; line-height: 1; }
.font-btn:hover { background: var(--reader-heather); color: var(--reader-bg); }
.font-btn:disabled { opacity: 0.35; cursor: default; }
.theme-swatch { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; border: 2px solid rgba(124, 108, 127, 0.35); }
.theme-swatch[data-theme="paper"] { background: #F6F0E8; }
.theme-swatch[data-theme="sepia"] { background: #F0E4C8; }
.theme-swatch[data-theme="night"] { background: #1E1A24; }
.theme-swatch.active { border-color: var(--gold); }
.theme-swatch:disabled { opacity: 0.5; cursor: default; }

#flip-region { transition: opacity 0.16s ease, transform 0.16s ease; }
.flip-out-next { opacity: 0; transform: translateX(-14px); }
.flip-out-prev { opacity: 0; transform: translateX(14px); }
.flip-in-next { opacity: 0; transform: translateX(14px); animation: flip-in-next-kf 0.24s ease forwards; }
.flip-in-prev { opacity: 0; transform: translateX(-14px); animation: flip-in-prev-kf 0.24s ease forwards; }
@keyframes flip-in-next-kf { to { opacity: 1; transform: translateX(0); } }
@keyframes flip-in-prev-kf { to { opacity: 1; transform: translateX(0); } }

.reader-disclaimer { font-family: var(--ui); font-size: 10.5px; letter-spacing: 0.02em; text-align: center; color: var(--reader-ink-soft); background: var(--reader-surface); padding: 7px 22px; border-top: 1px solid var(--reader-surface); }
.progress-track { height: 3px; background: var(--reader-surface); }
.progress-fill { height: 100%; background: var(--gold); transition: width 0.4s ease; }
.page { position: relative; padding: 42px 46px 26px; background: var(--reader-bg); }
#flip-region > *:last-child { border-radius: 0 0 3px 3px; }
.page-gated .page-content { filter: blur(9px); user-select: none; pointer-events: none; }
.reader-gate { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; padding: 30px; }
.reader-gate.reader-gate-hidden { display: none; }
.reader-gate-box { background: var(--reader-bg); border: 1px solid var(--reader-surface); border-radius: 6px; padding: 28px 30px; max-width: 380px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.reader-gate-title { font-family: var(--ui); font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust); margin-bottom: 10px; }
.reader-gate-text { font-family: var(--ui); font-size: 13.5px; color: var(--reader-ink); line-height: 1.5; margin: 0 0 18px; }
.page-chapter { font-family: var(--ui); font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rust); margin-bottom: 14px; }
.page p { font-size: calc(17px * var(--reader-scale)); line-height: 1.75; color: var(--reader-ink); margin: 0 0 16px; }
.page-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px 22px; border-top: 1px solid var(--reader-surface); font-family: var(--ui); background: var(--reader-bg); border-radius: 0 0 3px 3px; flex-wrap: wrap; gap: 10px; }
#reader-page.page-gated ~ .page-nav #keep-reading-link { pointer-events: none; opacity: 0.45; cursor: not-allowed; }
.nav-btn { font-family: var(--ui); font-weight: 600; font-size: 13.5px; padding: 9px 18px; border-radius: 3px; border: 1px solid var(--reader-heather); background: transparent; color: var(--reader-heather); cursor: pointer; text-decoration: none; display: inline-block; }
.nav-btn:hover { background: var(--reader-heather); color: var(--reader-bg); }
.nav-btn.disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.page-nav .page-count { font-size: 12.5px; color: var(--reader-ink-soft); }
.reader-pagenav .nav-btn { font-size: 11.5px; padding: 5px 11px; }
.unlock-banner { background: var(--gold-soft); padding: 14px 22px; font-family: var(--ui); font-size: 13.5px; color: var(--heather-deep); text-align: center; }
.unlock-banner p { margin: 0; }
.unlock-banner a { font-weight: 700; text-decoration: underline; }
.unlock-banner .unlock-list-line { font-size: 12px; margin-top: 6px; opacity: 0.85; }

.reader-lightbox { display: none; position: fixed; inset: 0; z-index: 100; background: var(--heather-deep); }
.reader-lightbox.show { display: block; }
#reader-lightbox-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: none; background: var(--paper); }

/* ---------- REVIEWS ---------- */
.reviews-wrap { background: var(--paper-dim); }
.audio-wrap + .reviews-wrap { margin-top: 6vh; }
.reviews-track { display: flex; gap: 20px; overflow-x: hidden; scroll-behavior: smooth; scrollbar-width: none; }
.reviews-track::-webkit-scrollbar { display: none; }
.review-card { background: var(--paper); border-radius: 6px; padding: 26px 24px; box-shadow: 0 10px 26px rgba(69,48,72,0.08); flex: 0 0 340px; }
.review-stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; margin-bottom: 10px; }
.review-quote { font-family: var(--body); font-size: 15.5px; line-height: 1.6; color: var(--ink); margin: 0 0 14px; font-style: italic; }
.review-attribution { font-family: var(--ui); font-size: 12.5px; color: var(--slate); }
.review-name { font-weight: 700; color: var(--heather-deep); }
.review-book { margin-left: 6px; }
.reviews-nav { display: flex; justify-content: center; gap: 14px; margin-top: 20px; }
.reviews-nav-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold-soft); background: var(--paper); color: var(--heather-deep); font-size: 19px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.reviews-nav-btn:hover { background: var(--heather-deep); color: var(--paper); border-color: var(--heather-deep); }

.reader-reviews { padding: 18px 22px 4px; display: flex; flex-direction: column; gap: 14px; }
.reader-review-card { background: var(--reader-surface); border-radius: 6px; padding: 16px 18px; }
.reader-review-card .review-quote { font-size: 14px; margin-bottom: 8px; color: var(--reader-ink); }
.reader-review-card .review-attribution { color: var(--reader-ink-soft); }
.reader-review-card .review-name { color: var(--reader-heather); }

/* ---------- NEWSLETTER ---------- */
.newsletter-wrap { padding: 0 6vw 8vh; }
.reviews-wrap + .newsletter-wrap { padding-top: 6vh; }
.newsletter-card { max-width: 900px; margin: 0 auto; background: linear-gradient(120deg, var(--heather-deep), var(--heather)); border-radius: 8px; padding: 44px 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; color: var(--paper); }
.newsletter-card .eyebrow { color: var(--gold-soft); }
.newsletter-card h3 { font-family: var(--display); font-size: clamp(20px, 2.4vw, 27px); font-weight: 600; margin: 0 0 10px; }
.newsletter-card p { font-size: 14.5px; line-height: 1.6; color: #E7DCE9; margin: 0; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form .input-row { display: flex; gap: 8px; }
.newsletter-form input[type="email"] { flex: 1; font-family: var(--ui); font-size: 13.5px; padding: 12px 14px; border-radius: 3px; border: none; min-width: 0; }
.newsletter-form button { font-family: var(--ui); font-weight: 700; font-size: 13.5px; padding: 12px 18px; border-radius: 3px; border: none; background: var(--gold); color: var(--heather-deep); cursor: pointer; white-space: nowrap; }
.newsletter-form button:hover { background: var(--gold-soft); }
.newsletter-form .fine-print { font-family: var(--ui); font-size: 10.5px; color: #D8CBDA; }

/* ---------- CONTACT FORM ---------- */
.contact-form { display: flex; flex-direction: column; gap: 6px; }
.contact-field-hp { position: absolute; left: -9999px; top: -9999px; }
.contact-label { font-family: var(--ui); font-size: 12px; font-weight: 700; color: var(--heather-deep); margin-top: 12px; }
.contact-input, .contact-textarea { font-family: var(--ui); font-size: 14px; padding: 11px 13px; border-radius: 3px; border: 1px solid var(--paper-dim); background: var(--paper); color: var(--ink); }
.contact-input:focus, .contact-textarea:focus { outline: none; border-color: var(--gold); }
.contact-textarea { resize: vertical; font-family: var(--body); }
.contact-form .btn { margin-top: 18px; align-self: flex-start; }
.contact-fine-print { font-family: var(--ui); font-size: 11.5px; color: var(--slate); margin-top: 10px; }
.newsletter-success { display: none; font-family: var(--ui); font-size: 14px; font-weight: 600; color: var(--gold-soft); }
.newsletter-success.show { display: block; }
.newsletter-form.hide { display: none; }

/* ---------- ARC SIGNUP ---------- */
.arc-page { max-width: 820px; }
/* In the lightbox this becomes a floating card on a tinted body (see
   body.arc-embed-body below) so the close button -- anchored to the
   card's own corner via the default .embed-close positioning -- sits
   right next to the form instead of off at the browser's edge. */
body.arc-embed-body { background: var(--paper-dim); }
.arc-page-embed { position: relative; background: var(--paper); border-radius: 8px; box-shadow: 0 20px 50px rgba(69,48,72,0.18); margin: 4vh auto; padding: 6vh 6vw; max-width: 760px; }
.arc-form { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; }
.arc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.arc-field { display: flex; flex-direction: column; margin-bottom: 14px; }
.arc-field .contact-label { margin-top: 0; }
.arc-hint { font-family: var(--ui); font-size: 11.5px; color: var(--slate); margin: 2px 0 6px; }
/* The two hints in a row are rarely the same length -- reserve room for
   the taller one so both fields' input boxes still line up underneath. */
.arc-row .arc-hint { min-height: 2.4em; }
.arc-required { color: var(--rust); }
.arc-options { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.arc-option { display: flex; align-items: flex-start; gap: 8px; font-family: var(--ui); font-size: 13.5px; color: var(--ink); cursor: pointer; line-height: 1.5; }
.arc-option input[type="radio"], .arc-option input[type="checkbox"] { margin-top: 3px; accent-color: var(--heather-deep); flex-shrink: 0; }
.arc-option-other { flex-wrap: wrap; }
.arc-other-input { flex: 1; min-width: 160px; padding: 6px 10px; font-size: 13px; }
.arc-form .btn { margin-top: 20px; align-self: flex-start; }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-page-inner { max-width: 480px; }
.error-page-inner .eyebrow { font-family: var(--display); font-size: 56px; font-weight: 600; color: var(--gold); letter-spacing: 0; text-transform: none; margin-bottom: 6px; }
.error-page-inner h2 { font-family: var(--display); font-size: clamp(22px, 3vw, 28px); font-weight: 600; color: var(--heather-deep); margin: 0 0 12px; }
.error-page-inner p { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 26px; }
.error-page-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- LEGAL PAGES ---------- */
.legal-page { max-width: 720px; }
.legal-body h3 { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--heather-deep); margin: 28px 0 10px; }
.legal-body h3:first-child { margin-top: 0; }
.legal-body p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 14px; }
.legal-body ul { margin: 0 0 14px; padding-left: 22px; }
.legal-body li { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 8px; }
.legal-body a { color: var(--heather-deep); font-weight: 600; }

footer { padding: 34px 6vw 90px; font-family: var(--ui); font-size: 12.5px; color: var(--slate); border-top: 1px solid var(--paper-dim); }
footer .footer-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
footer .footer-links-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
footer .footer-links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; color: var(--heather-deep); }
footer .footer-links a:hover { color: var(--rust); }
footer .footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px 20px; }
footer .footer-privacy { justify-self: center; }
footer .footer-credit { justify-self: end; text-align: right; }
footer .disclosure { font-size: 11px; color: var(--slate); opacity: 0.85; }

/* ---------- STICKY MOBILE BAR ---------- */
.sticky-mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(69,48,72,0.96); backdrop-filter: blur(6px); color: var(--paper); padding: 12px 16px; font-family: var(--ui); align-items: center; justify-content: space-between; gap: 10px; z-index: 50; box-shadow: 0 -6px 20px rgba(0,0,0,0.25); }
.sticky-mobile-bar.show { display: flex; }
.sticky-mobile-bar .smb-text { font-size: 12.5px; }
.sticky-mobile-bar .smb-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sticky-mobile-bar .smb-cta { font-family: var(--ui); font-weight: 700; font-size: 12px; padding: 8px 14px; border-radius: 3px; border: none; background: var(--gold); color: var(--heather-deep); cursor: pointer; text-decoration: none; }
.sticky-mobile-bar .smb-close { background: none; border: none; color: var(--paper); font-size: 16px; cursor: pointer; opacity: 0.7; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-covers { order: -1; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--paper-dim); box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    padding: 6px 6vw 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--paper-dim); }
  .nav-links .nav-join, .nav-links .nav-cta { margin-top: 10px; text-align: center; border-bottom: none; }
  .library-grid { grid-template-columns: repeat(3, 1fr); }
  .audio-grid { grid-template-columns: 1fr; }
  .about-wrap { grid-template-columns: 1fr; }
  .about-portrait { max-width: 220px; margin: 0 auto; }
  .page { padding: 32px 22px 22px; }
  .newsletter-card { grid-template-columns: 1fr; padding: 32px 26px; }
}
@media (min-width: 981px) { .sticky-mobile-bar { display: none !important; } }
@media (max-width: 560px) {
  .library-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { margin-top: 0; }
  .arc-row { grid-template-columns: 1fr; gap: 0; }
  .arc-page-embed { padding: 6vh 5vw; margin: 0; }
  .arc-page-embed .embed-close { top: 12px; right: 12px; }
  .footer-links-label { display: none; }
  .footer-links { flex-wrap: nowrap; justify-content: center; gap: 14px; }
  .hero-social-label { display: none; }
  .hero-social { flex-wrap: nowrap; gap: 14px; }
  footer .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; }
  footer .footer-privacy, footer .footer-credit { justify-self: center; text-align: center; }
}
