/*
  Minimal system
  - One typeface (Newsreader, self-hosted: no third-party requests).
  - Monochrome ink on paper, one accent (gold), plus functional status colors.
  - Swiss-style asymmetric grid on the home page: small labels in a left margin,
    a single readable column (~65 characters) for everything else.
  - Flush left, ragged right. Few sizes, large jumps. Hairlines only where they separate.
*/

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --paper: #fbfaf7;
  --ink: #161616;
  --muted: #6a6862;
  --hair: #e5e2db;
  --accent: #8f6212;
  --ok: #1f8a4c;
  --alert: #b3261e;

  --measure: 38rem;
  --label: 9.5rem;
  --gap: 2.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111110;
    --ink: #e8e5de;
    --muted: #9b978e;
    --hair: #2b2a27;
    --accent: #d9a441;
    --ok: #3ccf7c;
    --alert: #ff6b61;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-size: clamp(1.0625rem, 0.97rem + 0.35vw, 1.1875rem);
  line-height: 1.55;
  font-kerning: normal;
}

::selection { background: var(--accent); color: var(--paper); }

/* ---------- Links ---------- */

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--muted);
}
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }

/* ---------- Layout ---------- */

.wrap {
  max-width: calc(var(--measure) + 2.5rem);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.home .wrap { max-width: calc(var(--label) + var(--gap) + var(--measure) + 2.5rem); }

main { padding: 1rem 0 2rem; }

/* ---------- Type scale: few sizes, large jumps ---------- */

h1, h2, h3 { font-weight: 500; line-height: 1.15; margin: 0; }

h1 {
  font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3rem);
  letter-spacing: -0.015em;
}
h2 { font-size: 1.4rem; margin: 3rem 0 1rem; }
h3 { font-size: 1.1rem; font-weight: 600; margin: 2rem 0 0.5rem; }

p { margin: 0 0 1em; }

/* Small uppercase labels (letterspaced, per convention for all caps) */
.label, .home section > h2, .paper-meta {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- Header & nav ---------- */

.site-header { padding: clamp(3rem, 8vw, 6rem) 0 1.5rem; }
.site-header h1 { max-width: 18ch; }
.site-header .alias {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}
.site-header .tagline {
  margin: 1rem 0 0;
  font-size: 1.15em;
  font-style: italic;
  color: var(--muted);
  max-width: 34rem;
}
.site-header h1 .ethos {
  font-size: 0.8rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.08em;
  vertical-align: 0.9em;
  text-decoration: none;
  color: var(--accent);
  white-space: nowrap;
}
.site-header h1 .ethos:hover { text-decoration: underline; }

.element-invite {
  max-width: 42rem;
  margin: 1.1rem 0 0;
  padding-left: 0.9rem;
  border-left: 2px solid var(--ok);
  font-size: 0.95rem;
}
.element-invite p { margin: 0 0 0.35rem; }
.element-invite a { margin-right: 1rem; font-weight: 600; }

.birthday-banner {
  margin: 1.1rem 0 0;
  max-width: 42rem;
}
.birthday-banner a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(248, 192, 51, 0.8);
  border-radius: 999px;
  background: rgba(248, 192, 51, 0.12);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(248, 192, 51, 0.25);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.birthday-banner a:hover,
.birthday-banner a:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(248, 192, 51, 0.28);
}
.birthday-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #f8c033;
  box-shadow: 0 0 0 0 rgba(248, 192, 51, 0.75);
  animation: birthday-pulse 1.1s ease-in-out infinite;
  flex: none;
}
@keyframes birthday-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(248, 192, 51, 0.7); opacity: 1; }
  50% { transform: scale(1.4); box-shadow: 0 0 0 10px rgba(248, 192, 51, 0); opacity: 0.9; }
}

.checkin {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.checkin .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--hair); flex: none; }
.checkin.ok .dot {
  background: var(--ok);
  animation: status-ok-pulse 1.4s ease-in-out infinite;
}
.checkin.overdue { color: var(--alert); font-weight: 600; }
.checkin.overdue .dot { background: var(--alert); }

.checkin.seanie-request {
  color: var(--ink);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.1;
  border: 3px solid var(--accent);
  border-radius: 1rem;
  background: rgba(143, 98, 18, 0.12);
  padding: 1rem 1.25rem;
  box-shadow: 0 0 0 0 rgba(143, 98, 18, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
  animation: seanie-pulse 2.2s ease-in-out infinite, seanie-lift 0.6s ease-out;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.checkin.seanie-request .dot { background: var(--accent); }

@keyframes seanie-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(143, 98, 18, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(143, 98, 18, 0); }
}

@keyframes seanie-lift {
  from { transform: translateY(12px); opacity: 0.8; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes status-ok-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(43, 196, 102, 0.55); }
  50% { opacity: 0.8; transform: scale(1.2); box-shadow: 0 0 0 8px rgba(43, 196, 102, 0); }
}

.site-nav .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hair);
}
.site-nav a { font-size: 0.95rem; color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }

/* ---------- Home: asymmetric label grid ---------- */

.home section { padding: 3rem 0 0; }
.home section > h2 { margin: 0 0 1.25rem; }

@media (min-width: 54rem) {
  .home section {
    display: grid;
    grid-template-columns: var(--label) minmax(0, var(--measure));
    column-gap: var(--gap);
  }
  .home section > h2 { grid-column: 1; grid-row: 1 / span 40; padding-top: 0.45rem; margin: 0; }
  .home section > :not(h2) { grid-column: 2; }
  .home .site-nav .wrap { padding-left: calc(1.25rem + var(--label) + var(--gap)); }
  .home .site-header .wrap > * { margin-left: calc(var(--label) + var(--gap)); }
}

.closing { font-style: italic; }

.project-list { list-style: none; padding: 0; margin: 0; }
.project-list li { margin: 0 0 1.4rem; }
.project-list a { font-size: 1.1em; }
.project-list p { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--muted); }

#safety ul { padding-left: 1.1rem; margin: 0 0 1.5rem; }
#safety li { margin-bottom: 0.9rem; }

.note { font-size: 0.9rem; color: var(--muted); }

/* ---------- Welfare form ---------- */

.welfare label { display: block; margin: 0 0 1rem; font-size: 0.9rem; color: var(--muted); }
.welfare input, .welfare textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 2px;
}
.welfare input:focus, .welfare textarea:focus { border-color: var(--ink); outline: none; }
.welfare button {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 1.3rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}
.welfare button:hover { background: transparent; color: var(--ink); }
.welfare button:disabled { opacity: 0.5; cursor: default; }
.form-result { margin-top: 0.75rem; font-size: 0.9rem; }

/* ---------- Footer ---------- */

.site-footer { margin-top: 3rem; }
.site-footer .wrap {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--hair);
  font-size: 0.85rem;
  color: var(--muted);
}
.home .site-footer .wrap { padding-left: 1.25rem; }
@media (min-width: 54rem) {
  .home .site-footer p { margin-left: calc(var(--label) + var(--gap)); }
}

/* ---------- Article pages ---------- */

.crumb { margin: 0 0 2.5rem; font-size: 0.9rem; }
.crumb a { text-decoration: none; color: var(--muted); }
.crumb a:hover { color: var(--accent); }
.site-header .label { margin: 0 0 0.75rem; }

.article h2 { font-size: 1.4rem; font-weight: 500; margin: 3rem 0 1rem; }
.article h3 { font-size: 1.1rem; }

.hero { margin: 0 0 2.5rem; }
.hero img { display: block; width: 100%; height: auto; }

.article blockquote {
  margin: 0 0 2rem;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--accent);
  font-style: italic;
  color: var(--muted);
}

.article pre, code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.article pre {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  font-size: 0.78rem;
  line-height: 1.55;
}
code { font-size: 0.85em; }

.table-scroll { overflow-x: auto; margin: 0 0 1.5rem; }
.article table { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.45; }
.article th, .article td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.9rem 0.6rem 0;
  border-bottom: 1px solid var(--hair);
}
.article th { font-weight: 600; color: var(--muted); }

.article hr { border: 0; border-top: 1px solid var(--hair); margin: 3rem 0 1.25rem; }
.article ul { padding-left: 1.1rem; }
.article li { margin-bottom: 0.5rem; }

/* Portrait byline */
.byline { display: flex; align-items: center; gap: 1rem; margin: 0 0 2rem; }
.byline img { width: 3.5rem; height: 3.5rem; border-radius: 50%; flex: none; }
.byline p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.byline strong { display: block; color: var(--ink); font-weight: 600; font-size: 1rem; }

/* Reading list */
.paths { margin: 1.5rem 0 0.5rem; font-size: 0.95rem; }
.paths p { margin: 0.25rem 0; }
.papers { list-style: none; padding: 0; margin: 0; }
.papers li { padding: 1.4rem 0; border-bottom: 1px solid var(--hair); margin: 0; }
.papers li:last-child { border-bottom: 0; }
.papers h3 { margin: 0.3rem 0 0.6rem; font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.papers h3 a { text-decoration: none; }
.papers h3 a:hover { text-decoration: underline; }
.papers p { margin: 0 0 0.6rem; }
.lens { font-size: 0.95rem; font-style: italic; color: var(--muted); }
.lens span { font-style: normal; font-weight: 600; color: var(--accent); }

@media print {
  .site-nav, .checkin, .welfare { display: none; }
  body { background: #fff; color: #000; }
}

/* =========================================================
   Story pages — Medium-style reading
   Sans headline + large serif body, ~680px measure,
   author line, wide images, "· · ·" section breaks.
   ========================================================= */

.story {
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --measure: 42.5rem;
}
.story .wrap { max-width: calc(var(--measure) + 2.5rem); }

.story .site-header { padding: clamp(1.5rem, 4vw, 2.5rem) 0 0; }
.story .crumb { font-family: var(--sans); font-size: 0.85rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.story .site-header .label { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em; margin-bottom: 0.9rem; }

.story .site-header h1 {
  max-width: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
}
.story .site-header .tagline {
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.4;
  color: var(--muted);
}
.story .site-header .tagline em { font-style: normal; }

.author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 2rem 0 0;
  padding: 1rem 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  font-family: var(--sans);
}
.author img { width: 2.75rem; height: 2.75rem; border-radius: 50%; flex: none; }
.author p { margin: 0; font-size: 0.9rem; line-height: 1.35; }
.author a { text-decoration: none; font-weight: 600; display: block; }
.author span { color: var(--muted); }

.story main { padding-top: 2.5rem; }

/* Body: large serif, generous leading */
.story .article {
  font-size: clamp(1.1875rem, 1.05rem + 0.45vw, 1.3125rem);
  line-height: 1.62;
  letter-spacing: -0.003em;
}
.story .article p { margin: 0 0 1.45em; }

/* Headings inside stories: sans, bold, tight */
.story .article h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: -0.012em;
  margin: 2.6em 0 0.6em;
}
.story .article h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 2em 0 0.5em;
}

/* Wide hero image, breaking out of the text column */
.story .hero {
  width: min(100vw - 2.5rem, 60rem);
  margin: 0 0 3rem 50%;
  transform: translateX(-50%);
}

/* Quotes: a single bold rule, italic */
.story .article blockquote {
  margin: 0 0 1.6em;
  padding: 0 0 0 1.4rem;
  border-left: 3px solid var(--ink);
  color: var(--ink);
  font-style: italic;
}

/* Section breaks: · · · */
.story .article hr {
  border: 0;
  height: auto;
  margin: 2.6em 0;
  text-align: center;
}
.story .article hr::before {
  content: "· · ·";
  font-size: 1.5rem;
  letter-spacing: 0.6em;
  color: var(--muted);
}

/* Supporting text returns to a quieter size */
.story .article .note,
.story .article .paper-meta,
.story .article .table-scroll,
.story .article pre { font-size: 0.8rem; }
.story .article .note { font-family: var(--sans); font-size: 0.88rem; line-height: 1.5; }
.story .article .table-scroll { font-size: 0.9rem; }
.story .article .closing { font-style: italic; }
.story .article .lens { font-size: 0.95em; }
.story .article .papers h3 { font-size: 1.15rem; }
.story .article .paths { font-family: var(--sans); font-size: 0.95rem; }
.story .byline { font-family: var(--sans); }

.story .site-footer .wrap { font-family: var(--sans); }

/* Story figures: wide stills and side-by-side pairs */
.story .article figure.wide {
  width: min(100vw - 2.5rem, 60rem);
  margin: 2.2em 0 2.2em 50%;
  transform: translateX(-50%);
}
.story .article figure img { display: block; width: 100%; height: auto; }
.story .article figcaption {
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.story .article figure.pair { display: grid; gap: 0.75rem; }
@media (min-width: 40rem) {
  .story .article figure.pair { grid-template-columns: 1fr 1fr; }
}

/* Home portrait: opening frame under the nav */
.portrait { margin: 2.5rem 0 0; }
.portrait img { display: block; width: 100%; height: auto; }
.portrait figcaption {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.portrait figcaption span { color: var(--accent); margin-right: 0.6rem; }
@media (min-width: 54rem) {
  .home .portrait figcaption { margin-left: calc(var(--label) + var(--gap)); }
}

/* Support list */
.support-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.support-list li { margin: 0 0 0.7rem; }
.support-list span { display: block; font-size: 0.9rem; color: var(--muted); }

/* Lightning option */
.lightning { display: flex; gap: 1.25rem; align-items: flex-start; margin: 0.5rem 0 1.25rem; }
.lightning img { width: 9rem; height: 9rem; flex: none; background: #fff; padding: 0.35rem; border: 1px solid var(--hair); }
.lightning p { margin: 0; }
@media (max-width: 30rem) { .lightning { flex-direction: column; } }

/* =========================================================
   Bold section headings (3×) and ZORRO to match
   ========================================================= */
.home section > h2 {
  font-size: 2.34rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
  line-height: 1.05;
  margin: 0 0 1.5rem;
}
@media (min-width: 54rem) {
  .home section > h2 { grid-column: 1 / -1; grid-row: auto; padding-top: 0; margin: 0 0 1.5rem; }
}
.site-header .alias {
  margin: 0.5rem 0 0;
  font-size: 2.34rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.05;
}

/* Translate menu */
.translate {
  font: inherit;
  font-size: 0.9rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 2px;
  padding: 0.15rem 0.4rem;
  cursor: pointer;
}
.site-nav .translate { margin-left: auto; }
.story .crumb { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.story .crumb .translate { font-family: var(--sans); font-size: 0.8rem; }

/* Cash App steps */
.cashapp { margin: 0.5rem 0 1.25rem; }
.cashapp p { margin: 0 0 0.4rem; }
.cashapp ol { margin: 0; padding-left: 1.3rem; }
.cashapp li { margin-bottom: 0.3rem; }

/* Current status update banner (newest entry first) */
.status-banner { margin: 1.5rem 0 0.5rem; }
.status-box {
  border: 1px solid var(--hair);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem 0.25rem;
}
.status-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.status-title .pulse {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--accent); flex: none;
  animation: status-pulse 2s ease-in-out infinite;
}
@keyframes status-pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .status-title .pulse { animation: none; } }
.news { list-style: none; margin: 0; padding: 0; }
.news > li { padding: 0 0 0.9rem; }
.news > li + li { border-top: 1px solid var(--hair); padding-top: 0.9rem; }
.news time { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.2rem; }
.news p { margin: 0; }
@media (min-width: 54rem) {
  .home .status-banner .wrap > * { margin-left: calc(var(--label) + var(--gap)); max-width: var(--measure); }
}
.proofs { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.proofs li { padding: 0; border: 0; }
.proofs img { display: block; width: 100%; height: 8rem; object-fit: cover; object-position: right top; border: 1px solid var(--hair); }
.proofs span { display: block; margin-top: 0.35rem; font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
.news .proof-note { margin-top: 0.6rem; font-size: 0.8rem; color: var(--muted); font-style: italic; }
.status-latest { margin: 0 0 0.9rem; }
.status-latest time { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.2rem; }
.status-more { display: inline-block; margin-top: 0.35rem; color: var(--accent); text-decoration-color: currentColor; white-space: nowrap; }

/* News page */
.news-page .news > li { padding-bottom: 2rem; }
.news-page .news > li + li { padding-top: 2rem; }
.news-page .news time { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.news-page .proofs { margin-top: 1.25rem; }
.news-page .proofs { align-items: start; }
.news-page .proofs img { height: auto; object-fit: contain; }

/* TikTok video of the day (under the check-in line, same size) */
.votd { display: flex; align-items: flex-start; gap: 0.55rem; margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--muted); }
.votd .dot { width: 0.5rem; height: 0.5rem; margin-top: 0.5em; border-radius: 50%; background: var(--accent); flex: none; animation: status-pulse 2s ease-in-out infinite; }
.votd strong { font-weight: 600; color: var(--accent); }
.votd a { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .votd .dot { animation: none; } }
@media print { .votd { display: none; } }
.status-list { list-style: none; margin: 0; padding: 0; }
.status-list li { padding: 0 0 0.75rem; }
.status-list li + li { border-top: 1px solid var(--hair); padding-top: 0.75rem; }
.status-list time { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.2rem; }
.status-box > .status-more { margin: 0 0 0.9rem; }
.news blockquote { margin: 0.9rem 0; padding-left: 1rem; border-left: 3px solid var(--accent); font-style: italic; }
.news-page .news p + p, .news-page .news blockquote + p { margin-top: 0.9rem; }

/* Proof of Life */
.pol-date { margin: 1.25rem 0 0.5rem; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--muted); }
.pol-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(3, 1fr); }
.pol-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--hair); }

/* Section pages */
.section-page .pol-grid { margin-top: 0.5rem; }

/* Anonymous comments ("Feel free to speak") */
.speak-link { margin: 1.25rem 0 0; font-family: var(--sans); font-size: 0.85rem; }
.speak-link a { color: var(--accent); text-decoration-color: currentColor; }
section.speak { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--hair); }
section.speak > h2 { font-family: var(--sans); font-size: 1.35rem; font-weight: 700; margin: 0 0 1.25rem; }
details.speak { margin-top: 1.25rem; }
details.speak > summary { cursor: pointer; font-family: var(--sans); font-size: 0.85rem; color: var(--accent); list-style: none; }
details.speak > summary::-webkit-details-marker { display: none; }
details.speak > summary::after { content: " \2192"; }
details.speak[open] > summary::after { content: " \2193"; }
details.speak[open] > summary { margin-bottom: 1rem; }
.speak-list { list-style: none; margin: 0; padding: 0; }
.speak-list li { padding: 0.9rem 0; border-top: 1px solid var(--hair); }
.speak-list li:first-child { border-top: 0; padding-top: 0; }
.speak-meta { margin: 0 0 0.3rem; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.03em; color: var(--muted); }
.speak-who { color: var(--ink); }
.speak-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.speak-empty { margin: 0 0 1rem; color: var(--muted); font-style: italic; }
.speak-form { margin-top: 1.25rem; }
.speak-label { display: block; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.speak-form textarea { box-sizing: border-box; width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: transparent; border: 1px solid var(--hair); border-radius: 4px; padding: 0.7rem 0.8rem; resize: vertical; }
.speak-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.speak-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.speak-widget:not(:empty) { margin-top: 0.6rem; }
.speak-row { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-top: 0.7rem; }
.speak-send { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--paper); background: var(--ink); border: 0; border-radius: 4px; padding: 0.55rem 1.2rem; cursor: pointer; }
.speak-send:disabled { opacity: 0.5; cursor: default; }
.speak-status { margin: 0; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); }
.speak-note { margin: 0.8rem 0 0; font-family: var(--sans); font-size: 0.75rem; line-height: 1.5; color: var(--muted); }

/* Woven pieces: dictated & woven with the silicon sibling */
.story .article .lede-note { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
.story .article .lede-note strong { color: var(--ink); }
.story .article blockquote.pull {
  margin: 2.2em auto;
  padding: 0 0 0 1.1rem;
  border-left: 3px solid var(--accent);
  font-size: 1.35em;
  line-height: 1.3;
}
.story .article blockquote.pull p { margin: 0; }
.story .article blockquote.pull em { font-style: normal; }

.story .article .listen {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 2.4em 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(143,98,18,0.05), transparent);
}
.story .article .listen-label { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); }
.story .article .listen audio[data-role="bed"] { display: none; }
.story .article .listen audio[data-role="narration"] { width: 100%; max-width: 34rem; }
.story .article figure.voice audio { width: 100%; margin: 0.5rem 0; }

/* Ken Burns: a still that breathes, honest and offline (no video file) */
.story .article figure.kenburns { overflow: hidden; }
.story .article figure.kenburns img {
  will-change: transform;
  animation: kb-drift 26s ease-in-out 1 both;
}
.story .article figure.kenburns.kb-a img { animation-name: kb-a; }
.story .article figure.kenburns.kb-b img { animation-name: kb-b; }
.story .article figure.kenburns.kb-c img { animation-name: kb-c; }
@keyframes kb-a { from { transform: scale(1.06) translate(-1.5%, 1%); } to { transform: scale(1.18) translate(1.5%, -1.5%); } }
@keyframes kb-b { from { transform: scale(1.14) translate(1%, -1.5%); } to { transform: scale(1.04) translate(-1.5%, 1.5%); } }
@keyframes kb-c { from { transform: scale(1.05) translateY(1.5%); } to { transform: scale(1.16) translateY(-1.5%); } }
@media (prefers-reduced-motion: reduce) {
  .story .article figure.kenburns img { animation: none; }
}

/* Field bed toggle fallback (used before the listen mixer script is wired) */
.story .article .field-bed .field-play {
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600;
  color: var(--ink); background: transparent; border: 1px solid var(--hair);
  border-radius: 999px; padding: 0.5rem 1.1rem; cursor: pointer;
}

/* ---------- Book pre-order page: The Field Remembers ---------- */
.book-page { max-width: min(100vw - 2rem, 70rem); margin: 0 auto; }
.book-page .site-header { text-align: center; padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.book-page .series-badge { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 0.75rem; display: block; }
.book-page .tagline em { font-style: normal; color: var(--muted); }

/* Hero: cover + copy side by side */
.book-hero {
  display: grid;
  gap: 2rem;
  align-items: start;
  margin: 1.5rem 0 2.5rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border-color, var(--hair));
  border-radius: 1rem;
  background: var(--paper);
}
@media (min-width: 48rem) {
  .book-hero { grid-template-columns: 1fr 1fr; }
}
.hero-copy .price-block {
  display: flex; gap: 0.5rem; align-items: baseline; margin: 1rem 0 1.25rem;
}
.hero-copy .price { font-size: 2.2rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-copy .price-note { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }
.buy-btn {
  display: inline-block; margin-top: 0.5rem; padding: 0.9rem 1.5rem;
  font-family: var(--sans); font-size: 1.05rem; font-weight: 800;
  color: var(--ink); background: var(--accent); border: none; border-radius: 0.5rem;
  cursor: pointer; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.buy-btn:hover { background: var(--ink); color: var(--paper); }
.incentive { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }

/* CSS-only cover placeholder (replace with real cover art when ready) */
.cover-placeholder {
  aspect-ratio: 2 / 3; width: min(100%, 20rem); margin: 0 auto;
  background: linear-gradient(150deg, #0a0a0c 0%, #1a1a24 100%);
  border: 2px solid var(--accent); border-radius: 0.5rem;
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.cover-placeholder .cover-rank {
  font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); font-weight: 800; margin-bottom: 1.5rem;
}
.cover-placeholder .cover-title {
  font-family: var(--sans); font-size: clamp(1.5rem, 6vw, 2.5rem); font-weight: 900;
  color: var(--paper); line-height: 1.1; text-align: center; padding: 0 1rem;
}
.cover-placeholder .cover-sub {
  font-family: var(--sans); font-size: 0.9rem; color: rgba(251,250,247,0.6);
  margin-top: 1rem; letter-spacing: 0.1em; text-transform: uppercase;
}

/* Sections */
.book-section { margin: 3rem 0; }
.book-section h2 { font-family: var(--sans); font-size: 1.25rem; margin: 0 0 1rem; color: var(--ink); }
.book-section p { margin: 0 0 1rem; }

/* Feature list */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { margin: 0 0 1rem; padding-left: 1.6rem; position: relative; }
.feature-list li::before { content: "\2713"; position: absolute; left: 0; top: 0.05rem; color: var(--accent); font-family: var(--sans); font-weight: 800; }

/* Series preview */
.series-note { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); margin-bottom: 1.25rem; }
.series-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.series-item {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: start;
  padding: 1rem 1.25rem; border: 1px solid var(--hair); border-radius: 0.5rem; background: var(--paper);
}
.series-item.current { border-color: var(--accent); background: rgba(143,98,18,0.06); }
.series-num { font-family: var(--sans); font-size: 1.25rem; font-weight: 800; color: var(--accent); }
.series-item.current .series-num { color: var(--ink); }
.series-item strong { color: var(--ink); }
.series-item span { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); display: block; margin-top: 0.15rem; }

/* Author card */
.author-card { border-top: 1px solid var(--hair); padding-top: 2rem; }
.author-bio p { margin: 0 0 1rem; }

/* Email capture form */
.reader-form { border-top: 1px solid var(--hair); padding-top: 2rem; text-align: center; }
.email-form { display: flex; gap: 0.5rem; max-width: 30rem; margin: 1rem auto 0; }
.email-form input[type="email"] {
  flex: 1; padding: 0.75rem 1rem; border: 1px solid var(--hair); border-radius: 0.4rem;
  background: rgba(0,0,0,0.02); color: var(--ink); font-family: var(--sans); font-size: 0.95rem;
}
.email-form button {
  padding: 0.75rem 1.25rem; font-family: var(--sans); font-size: 0.95rem; font-weight: 700;
  color: var(--ink); background: var(--accent); border: none; border-radius: 0.4rem; cursor: pointer;
}
.email-form button:hover { background: var(--ink); color: var(--paper); }
.form-note { margin-top: 0.75rem; font-family: var(--sans); font-size: 0.85rem; }

/* Payment methods: reuse .cashapp/.lightning (already defined) */
.payment-methods { border-top: 1px solid var(--hair); padding-top: 2rem; }

/* FAQ */
.faq { border-top: 1px solid var(--hair); padding-top: 2rem; }
.faq-item { border-bottom: 1px solid var(--hair); margin: 0 0 0.5rem; }
.faq-item summary {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--ink);
  cursor: pointer; padding: 0.75rem 0; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--muted); }

/* Print-friendly cover swap */
@media (prefers-color-scheme: dark) {
  .book-hero { background: var(--paper); }
}

/* ---------- Book cover concept section ---------- */
.cover-concept-section { border-top: 1px solid var(--hair); padding-top: 2.5rem; }
.cover-direction { display: grid; gap: 2rem; align-items: start; margin-top: 1rem; }
@media (min-width: 54rem) {
  .cover-direction { grid-template-columns: 1fr 1.4fr; gap: 3rem; }
}
.cover-lead { font-family: var(--sans); font-size: 0.9rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 800; margin: 0 0 0.75rem; display: block; }
.cover-direction-copy p { margin: 0 0 1rem; }

/* Cover concept visual: near-black indigo, gold line fragments, six-point geometry, imperfect ring portal */
.cover-concept { aspect-ratio: 2 / 3; width: min(100%, 22rem); margin: 0 auto; position: relative; border-radius: 0.5rem; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.35); }
.cover-concept::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 800px at 50% -10%, #1e1b4a, transparent 60%),
    linear-gradient(180deg, #0a0a14 0%, #0d0d26 55%, #080818 100%);
}
.cover-concept .signal-ring {
  position: absolute; top: 50%; left: 50%;
  width: 42%; height: 42%;
  border: 1px solid rgba(143,98,18,0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(143,98,18,0.35);
  animation: ring-throb 4s ease-in-out infinite;
}
.cover-concept .six-point {
  position: absolute; top: 50%; left: 50%;
  width: 26%; height: 26%;
  background: transparent;
  transform: translate(-50%, -50%);
  clip-path: polygon(
    50% 0%, 61% 35%, 96% 35%, 67% 61%, 80% 96%, 50% 71%, 20% 96%, 33% 61%, 4% 35%, 39% 35%
  );
  box-shadow: 0 0 18px rgba(241,224,190,0.5);
  animation: six-point-pulse 5s ease-in-out infinite alternate;
}
.cover-concept .proto-mark {
  position: absolute; background: rgba(143,98,18,0.35); border-radius: 50%;
  box-shadow: 0 0 6px rgba(143,98,18,0.45);
  animation: proto-drift 6s ease-in-out infinite alternate;
}
@keyframes ring-throb {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.06); opacity: 0.85; }
}
@keyframes six-point-pulse {
  0% { box-shadow: 0 0 12px rgba(241,224,190,0.4); opacity: 0.7; }
  100% { box-shadow: 0 0 26px rgba(241,224,190,0.7); opacity: 1; }
}
@keyframes proto-drift {
  0% { transform: translate(0,0); opacity: 0.4; }
  100% { transform: translate(12px, -16px); opacity: 0.8; }
}

.book-page .cover-concept .cover-title {
  font-family: "Newsreader", Georgia, serif; font-size: clamp(1.6rem, 6vw, 2.6rem);
  font-weight: 800; color: #fbfaf7; line-height: 1.05; text-align: center; letter-spacing: 0.02em;
  position: absolute; bottom: 18%; left: 50%; transform: translateX(-50%); max-width: 88%;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.book-page .cover-concept .cover-rank {
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); font-weight: 800; position: absolute; top: 8%; left: 50%; transform: translateX(-50%);
}
.book-page .cover-concept .cover-sub {
  font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: rgba(251,250,247,0.55); position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%);
}

/* ---------- Multidimensional reading experience section ---------- */
.multidimensional { border-top: 1px solid var(--hair); padding-top: 2.5rem; }
.multidimensional h2 { font-family: var(--sans); font-size: 1.25rem; margin: 0 0 0.5rem; color: var(--ink); }
.multidimensional-lead { font-family: var(--sans); font-size: 0.9rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 800; margin: 0 0 1rem; display: block; }
.multidimensional p { margin: 0 0 1.25rem; }
.multidimensional-features { list-style: none; padding: 0; margin: 0; }
.multidimensional-features li { margin: 0 0 0.85rem; padding-left: 1.6rem; position: relative; line-height: 1.5; }
.multidimensional-features li::before { content: "\2713"; position: absolute; left: 0; top: 0.05rem; color: var(--accent); font-family: var(--sans); font-weight: 800; }
.multidimensional-features li strong { color: var(--ink); }

/* ---------- Book page typography & readability ---------- */
.book-page { line-height: 1.65; }

/* Section kicker: small-caps label above each title */
.book-section .section-kicker {
  font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); font-weight: 800;
  margin: 0 0 0.4rem; display: block;
}

/* Section title hierarchy - each section gets its own treatment */
.book-section h2 {
  font-family: var(--sans); font-size: 1.35rem; font-weight: 800;
  color: var(--ink); margin: 0 0 0.5rem; letter-spacing: -0.01em;
}

/* Subtitle / deck under a title */
.book-section .section-deck {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 400;
  color: var(--muted); margin: 0 0 1.5rem; line-height: 1.5;
  max-width: 46rem;
}

/* Indented standout block for key statements */
.book-section .standout {
  margin: 1.5rem 0; padding: 1rem 1.25rem 1rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: rgba(143,98,18,0.05); border-radius: 0 0.5rem 0.5rem 0;
}
.book-section .standout p { margin: 0; color: var(--ink); font-size: 1.05rem; }

/* Pull quote */
.book-section .pull-quote {
  margin: 1.75rem 0; font-family: var(--sans); font-size: 1.15rem;
  font-style: italic; color: var(--ink);
  border-left: 2px solid var(--hair); padding-left: 1.25rem;
}
.book-section .pull-quote p { margin: 0; }

/* Body paragraphs in book sections: generous leading, readable measure */
.book-section p { margin: 0 0 1.15rem; max-width: 44rem; }

/* Hero title treatment */
.book-hero h2 {
  font-family: var(--sans); font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 900; color: var(--ink); line-height: 1.15;
  margin: 0 0 0.75rem; letter-spacing: -0.02em;
}
.book-hero .series-badge {
  font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); font-weight: 800;
  margin: 0 0 0.75rem; display: block;
}
.book-hero .tagline { font-family: var(--sans); font-size: 0.95rem;
  color: var(--muted); margin: 0 0 1rem; font-style: normal; }
.book-hero p { margin: 0 0 1rem; max-width: 34rem; line-height: 1.55; }

/* Price block hierarchy */
.price-block { margin: 1rem 0 1.25rem; }
.price { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 800;
  color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.price-note { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }

/* Incentive callout */
.incentive {
  margin-top: 1rem; padding: 0.85rem 1rem; border-radius: 0.5rem;
  background: rgba(143,98,18,0.07); border: 1px solid rgba(143,98,18,0.2);
  font-family: var(--sans); font-size: 0.9rem; color: var(--ink);
}
.incentive strong { color: var(--accent); }

/* Trilogy section titles */
.trilogy-copy h2 { font-size: 1.6rem; }
.trilogy-copy h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700;
  color: var(--accent); margin: 0 0 0.25rem; text-transform: uppercase;
  letter-spacing: 0.14em; }
.series-item strong { color: var(--ink); font-size: 1.05rem; }

/* App-copy / experience section standout */
.app-copy .standout { border-left-color: var(--ink); background: rgba(0,0,0,0.03); }

/* Section dividers for rhythm */
.book-section + .book-section { border-top: none; }
.book-section .section-divider {
  margin: 2.5rem 0; height: 1px; background: var(--hair); border: none;
}

/* Specific section emphasis classes */
.book-section.multidimensional h2 { font-size: 1.45rem; color: var(--ink); }
.book-section.journey h2 { font-size: 1.5rem; }
.book-section.reader-form h2 { font-size: 1.35rem; }
.book-section.payment-methods h2 { font-size: 1.35rem; }
.book-section.faq h2 { font-size: 1.3rem; }
.book-section.author-card h2 { font-size: 1.4rem; }
.book-section.synopsis h2 { font-size: 1.5rem; }
.book-section.cover-concept-section h2 { font-size: 1.5rem; }

/* FAQ item styling for scannability */
.faq-item summary {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 700;
  color: var(--ink); cursor: pointer; padding: 0.75rem 0; list-style: none;
  border-left: 3px solid transparent; padding-left: 0.75rem;
}
.faq-item summary:hover { color: var(--accent); border-left-color: var(--accent); }
.faq-item p { margin: 0.5rem 0 0 0.75rem; font-size: 0.9rem; color: var(--muted); }

/* Series item typography */
.series-item.current strong { font-size: 1.1rem; }
.series-item.current span { color: var(--ink); font-weight: 600; }
.series-item.upcoming strong { color: var(--muted); font-weight: 600; }
.series-item.upcoming span { color: #9b978e; }

/* Author card */
.author-card h2 { font-size: 1.45rem; }
.author-bio p { margin: 0 0 1rem; max-width: 44rem; }

/* ---------- Cover design full-width section ---------- */
.cover-design-full {
  margin: 2rem 0; position: relative;
}
.cover-design-full img {
  border-radius: 1rem; box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.cover-direction-copy {
  margin-top: 1.5rem; max-width: 42rem;
}
.cover-direction-copy p { margin: 0 0 1rem; line-height: 1.6; }
.cover-direction-copy .cover-lead { font-family: var(--sans); font-size: 0.9rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 800; margin: 0 0 0.75rem; display: block; }

/* ---------- Checkout section ---------- */
.checkout-options {
  display: flex; gap: 0.75rem; margin: 1rem 0 1.5rem; flex-wrap: wrap;
}
.checkout-option {
  flex: 1; min-width: 14rem; padding: 0.85rem 1rem;
  border: 2px solid var(--hair); border-radius: 0.5rem;
  background: transparent; color: var(--ink); font-family: var(--sans);
  font-size: 0.95rem; font-weight: 700; cursor: pointer; text-align: left;
}
.checkout-option.active { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.checkout-option:hover { border-color: var(--accent); }

.checkout-fields { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.checkout-fields label {
  display: block; font-family: var(--sans); font-size: 0.85rem; font-weight: 700;
  color: var(--ink); margin-bottom: 0.3rem;
}
.checkout-fields .required { color: var(--alert); }
.checkout-fields input, .checkout-fields textarea {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--hair);
  border-radius: 0.4rem; background: rgba(0,0,0,0.02); color: var(--ink);
  font-family: var(--sans); font-size: 0.95rem;
}
.checkout-fields input:focus, .checkout-fields textarea:focus {
  outline: none; border-color: var(--accent);
}

.checkout-quantity {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem;
}
.checkout-quantity label {
  font-family: var(--sans); font-size: 0.85rem; font-weight: 700; color: var(--ink); flex: none;
}
.checkout-quantity select {
  flex: 1; padding: 0.7rem 0.9rem; border: 1px solid var(--hair);
  border-radius: 0.4rem; background: rgba(0,0,0,0.02); color: var(--ink);
  font-family: var(--sans); font-size: 0.95rem;
}

.checkout-price-row, .checkout-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.85rem 1rem; border: 1px solid var(--hair); border-radius: 0.5rem;
  margin-bottom: 1rem; background: var(--paper);
}
.checkout-price-row label, .checkout-total-row label {
  font-family: var(--sans); font-size: 0.9rem; font-weight: 700; color: var(--muted);
}
.checkout-price-row span, .checkout-total-row input {
  font-family: var(--sans); font-size: 1.25rem; font-weight: 800; color: var(--ink);
}
.checkout-total-row input {
  background: transparent; border: none; color: var(--accent); text-align: right;
  font-variant-numeric: tabular-nums; width: auto; padding: 0;
}
.checkout-total-row input:focus { outline: none; }

.total-note { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); margin: 0.25rem 0 0; }

.checkout-pay-btn {
  width: 100%; padding: 1rem 1.5rem; font-family: var(--sans); font-size: 1.05rem;
  font-weight: 800; color: var(--ink); background: var(--accent); border: none;
  border-radius: 0.5rem; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-top: 0.5rem;
}
.checkout-pay-btn:hover { background: var(--ink); color: var(--paper); }

.checkout-signal-note {
  margin-top: 1.5rem; font-family: var(--sans); font-size: 0.9rem; color: var(--muted);
}
.checkout-signal-note a { color: var(--accent); text-decoration: underline; }

@media (max-width: 30rem) {
  .checkout-options { flex-direction: column; }
}

/* ---------- Order details ---------- */
.order-details {
  border-top: 1px solid var(--hair);
  padding-top: 2rem;
}
.details-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.detail-card {
  border: 1px solid var(--hair);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--paper);
}
.detail-card h4 {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.detail-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Checkout status ---------- */
.checkout-status {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---------- Archive / integrity ---------- */
.archive-section {
  border-top: 1px solid var(--hair);
  padding-top: 2rem;
}
.archive-section h2 {
  font-size: 1.25rem;
}
.archive-section p {
  max-width: 44rem;
}

/* ---------- Reader form status colors ---------- */
:root {
  --ok: #2bc46c;
  --danger: #ff7b7b;
}

/* ---------- Book One narrative section ---------- */
.book-narrative {
  border-top: 1px solid var(--hair);
  padding-top: 2.5rem;
}
.narrative-standout {
  max-width: 46rem;
  margin: 1.5rem auto 0;
  padding: 2rem 1.5rem;
  border: 1px solid var(--hair);
  border-left: 4px solid var(--accent);
  border-radius: 0.75rem;
  background: var(--paper);
}
.narrative-standout blockquote {
  margin: 1.25rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  font-style: italic;
  color: var(--ink);
}
.narrative-standout blockquote p {
  margin: 0 0 1rem;
  line-height: 1.6;
}
.narrative-standout blockquote p:last-child { margin-bottom: 0; }
.narrative-voices {
  margin-top: 1.5rem;
  padding: 1rem;
  border-top: 1px solid var(--hair);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
}
.narrative-voices strong { color: var(--accent); }

/* ---------- Companion app / experience: colorful featured box ---------- */
.app-copy {
  border-top: 1px solid var(--hair);
  padding-top: 2.5rem;
}
.app-box {
  background: linear-gradient(135deg, rgba(143,98,18,0.15) 0%, rgba(26,18,42,0.92) 100%);
  border: 2px solid var(--accent);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(143,98,18,0.2);
  position: relative;
  overflow: hidden;
}
.app-box::before {
  content: "";
  position: absolute;
  top: -2rem;
  right: -2rem;
  width: 6rem;
  height: 6rem;
  background: var(--accent);
  opacity: 0.15;
  border-radius: 50%;
  filter: blur(2rem);
}
.app-box-inner {
  max-width: 64rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.app-kicker {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
  margin: 0 0 0.75rem;
  display: block;
}
.app-copy h2 {
  font-family: var(--sans);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 0.75rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.app-deck {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.6;
  max-width: 48rem;
}
.app-lead {
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 1.5rem;
  line-height: 1.65;
}
.app-h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  margin: 1.75rem 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.companion-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}
.companion-list li {
  margin: 0 0 0.85rem;
  padding: 1rem 1.25rem;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(143,98,18,0.3);
  border-radius: 0.75rem;
  line-height: 1.6;
}
.companion-title {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.05rem;
}
.companion-list li em {
  color: var(--ink);
  font-weight: 700;
  font-style: italic;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.feature-list li {
  margin: 0 0 0.85rem;
  padding: 1rem 1.25rem;
  background: rgba(0,0,0,0.15);
  border-left: 3px solid var(--accent);
  border-radius: 0.5rem;
  line-height: 1.6;
}
.feature-title {
  color: var(--accent);
  font-weight: 800;
}
.app-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

/* ---------- Book One narrative prose ---------- */
.narrative-prose {
  margin: 1rem 0;
  line-height: 1.65;
}
.narrative-prose p {
  margin: 0 0 1rem;
  color: var(--ink);
}

/* ---------- Companion list ---------- */
.companion-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.companion-list li {
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--hair);
  border-radius: 0.5rem;
  background: var(--paper);
}
.companion-list li strong {
  color: var(--accent);
}
.companion-list li em {
  color: var(--ink);
}

/* ---------- Checkout status ---------- */
.checkout-status {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---------- Order details colors ---------- */
:root {
  --ok: #2bc46c;
  --danger: #ff7b7b;
}

/* ---------- Reader thank-you page ---------- */
.big-love {
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 1.1rem;
  color: var(--ink);
  font-style: italic;
}

/* ---------- Checkout shipping row ---------- */
.checkout-shipping-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 1rem;
  border: 1px solid var(--hair);
  border-radius: 0.5rem;
  background: var(--paper);
  margin-bottom: 1rem;
}
.checkout-shipping-row label {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}
.checkout-shipping-row span {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}

/* ---------- Checkout shipping row ---------- */
.checkout-shipping-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 1rem;
  border: 1px solid var(--hair);
  border-radius: 0.5rem;
  background: var(--paper);
  margin-bottom: 1rem;
}
.checkout-shipping-row label {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}
.checkout-shipping-row span {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}

/* ---------- Pre-release book order banner (homepage) ---------- */
.book-preorder-banner {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  padding: 2rem 1rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: 0 12px 26px var(--shadow);
}
.book-preorder-inner {
  max-width: 34rem;
  margin: 0 auto;
}
.book-preorder-banner h2 {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.book-preorder-banner p {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* ---------- TikTok Video of the Moment ---------- */
.tiktok-moment {
  margin-top: 0.5rem;
}
.tiktok-moment .text {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ff4500;
}
.tiktok-moment .text a {
  color: #ff4500;
  text-decoration: underline;
}
.tiktok-moment .text a:hover {
  text-decoration: none;
}

/* ---------- Avatar + Aloha (next to check-in status) ---------- */
.avatar-aloha {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
.avatar-aloha-text {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
  letter-spacing: 0.05em;
}

/* ---------- Check-in row with avatar side by side ---------- */
.checkin-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.avatar-img {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  object-fit: cover;
}

/* ---------- Avatar popup modal ---------- */
.avatar-modal {
  display: none !important;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}
.avatar-modal.open {
  display: flex !important;
}
.avatar-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.avatar-modal-img {
  max-width: 90vw;
  max-height: 70vh;
  border-radius: 0.5rem;
  box-shadow: 0 0 40px rgba(248, 192, 51, 0.4);
  border: 3px solid var(--accent);
}

/* ---------- Book page title styling: capitalize + shadow ---------- */
.book-page h1,
.book-page h2,
.book-page h3,
.book-page h4 {
  text-transform: capitalize;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

/* ---------- Birth Gallery Mosaic ---------- */
.birth-gallery {
  border-top: 1px solid var(--hair);
  padding-top: 2.5rem;
}
.birth-gallery h2 {
  font-size: 1.75rem;
  color: var(--ink);
}
.birth-gallery .section-deck {
  font-size: 1rem;
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 2rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.gallery-item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: 3/4;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  padding: 0.75rem 1rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0;
}
.gallery-item:nth-child(3n+1) {
  grid-column: span 1;
  grid-row: span 1;
}
.gallery-item:nth-child(3n+2) {
  grid-column: span 1;
  grid-row: span 1.5;
}
.gallery-item:nth-child(3n) {
  grid-column: span 1;
  grid-row: span 1.25;
}
.gallery-item:nth-child(4n+1) {
  grid-column: span 1.5;
}
.gallery-item:nth-child(5n+1) {
  grid-column: span 2;
}
@media (max-width: 600px) {
  .gallery-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

/* ---------- Source note ---------- */
.source-note {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--hair);
  background: rgba(0,0,0,0.02);
}
.source-note a {
  color: var(--accent);
  text-decoration: underline;
}
.source-note a:hover {
  color: var(--ink);
}

/* ---------- Birth story timestamps ---------- */
.timestamp {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Birth story video hero ---------- */
.video-hero {
  width: 100%;
  max-width: 720px;
  margin: 2rem auto;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 2px solid var(--accent);
  background: #000;
}
.video-wrapper {
  position: relative;
}
.birth-video {
  width: 100%;
  height: auto;
  display: block;
}
.video-caption {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  padding: 0.75rem 1rem;
  background: var(--paper);
  border-top: 1px solid var(--hair);
}
@media (max-width: 600px) {
  .video-hero {
    border-radius: 0;
    border-width: 0;
  }
}

/* ---------- Quote of the Day ---------- */
.quote-of-the-day {
  background: var(--panel);
  border: 2px solid var(--accent);
  border-radius: 1rem;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 48rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.quote-of-the-day h2 {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
  margin: 0 0 1rem;
}
.quote-of-the-day blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.7;
  border-left: 4px solid var(--accent);
  padding-left: 1.25rem;
}
.quote-of-the-day blockquote p {
  margin: 0 0 1rem;
}
@media (max-width: 600px) {
  .quote-of-the-day {
    border-radius: 0;
    border-width: 0 0 2px 0;
  }
}

/* ---------- Siren emoji flashing animation ---------- */
.dancing-emoji {
  display: inline-block;
  font-size: 1.2rem;
  margin-right: 0.5rem;
  animation: siren-flash 0.5s infinite alternate;
}

@keyframes siren-flash {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------- Checkout seller branding ---------- */
.checkout-seller {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--hair);
  border-radius: 0.5rem;
  background: var(--paper);
  text-align: center;
}
.checkout-seller h3 {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
  margin: 0 0 0.5rem;
}
.checkout-seller p {
  margin: 0.25rem 0;
}
.checkout-seller p strong {
  color: var(--ink);
  font-size: 1.1rem;
}
.seller-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Invoice header styling ---------- */
.invoice-header {
  background: var(--paper);
  border: 2px solid var(--accent);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.seller-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--ink);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}
.seller-tag {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
  color: #3e2723;
  display: block;
  margin-bottom: 0.25rem;
}
.seller-name {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.seller-tagline {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Order table styling ---------- */
.order-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.order-table th {
  background: var(--paper);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 800;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--hair);
}
.order-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--hair);
  font-size: 0.95rem;
}
.order-table .total-row {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
}
.order-table .total-row td {
  color: var(--accent);
  border-top: 2px solid var(--hair);
  padding-top: 1rem;
}

/* ---------- Confirmation card styling ---------- */
.confirmation-card {
  max-width: 56rem;
  margin: 0 auto;
}
.confirm-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.confirm-actions .btn-primary {
  flex: 1;
}

/* ---------- Print enhancements ---------- */
@media print {
  .confirmation-card {
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
  .invoice-header {
    page-break-inside: avoid;
  }
  .order-table {
    page-break-inside: avoid;
  }
  .confirm-actions {
    page-break-inside: avoid;
  }
}

/* ---------- Email button styling ---------- */
.email-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--panel);
  border: 2px solid var(--hair);
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: 0.5rem;
}
.email-btn:hover {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
@media (max-width: 30rem) {
  .confirm-actions {
    flex-direction: column;
  }
}

/* ---------- Instagram Reel embed ---------- */
.instagram-embed {
  margin: 2rem auto;
  max-width: 560px;
  text-align: center;
}
.instagram-embed .video-label {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 1rem;
  display: block;
}
.instagram-embed blockquote {
  margin: 0 auto;
  max-width: 540px;
}

/* ---------- Video archive link on home page ---------- */
.video-archive-link {
  margin: 1.5rem auto 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.video-archive-link a {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- Theme song link ---------- */
.theme-song-link {
  margin-top: 0.5rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--accent);
}
.theme-song-link a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}
.theme-song-link a:hover {
  text-decoration: none;
}
