/* Layout: a lamp-lit bookshelf. Hero = copy beside a shelf of spines; then a ledger of steps, a postage slip for costs, a library card for "why own it".
   From design/landing-draft.html. Fonts are served from this site (no third parties). */
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/young-serif-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/literata-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/literata-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --bg: #eceff1;
  --surface: #f8f9f9;
  --ink: #1b2430;
  --muted: #56616e;
  --cloth: #2f5d50;
  --cloth-ink: #f3f1ea;
  --lamp: #c98219;
  --line: rgba(27, 36, 48, 0.14);
  --shelf: #6b4a2f;
  --s1: #2f5d50; --s2: #8c2f39; --s3: #d9a441; --s4: #31475e; --s5: #b9c4b0; --s6: #5b3a5e;
  --display: "Young Serif", "Georgia", serif;
  --body: "Literata", "Georgia", "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11161d; --surface: #19212b; --ink: #e9e6de; --muted: #a3acb6;
    --cloth: #7bb39d; --cloth-ink: #0f1a16; --lamp: #f0b04a;
    --line: rgba(233, 230, 222, 0.14); --shelf: #8a6643;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11161d; --surface: #19212b; --ink: #e9e6de; --muted: #a3acb6;
  --cloth: #7bb39d; --cloth-ink: #0f1a16; --lamp: #f0b04a;
  --line: rgba(233, 230, 222, 0.14); --shelf: #8a6643;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; max-width: 62ch; }
.eyebrow {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--lamp);
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.logo { font-family: var(--display); font-size: 1.6rem; text-decoration: none; display: flex; align-items: baseline; gap: 2px; }
.logo span { color: var(--lamp); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  background: var(--cloth); color: var(--cloth-ink);
  border: 0; border-radius: 999px; padding: 0.75rem 1.4rem; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; padding-block: 40px 0; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; padding-bottom: 56px; }
.hero-copy .lede { font-size: 1.2rem; color: var(--muted); }
.price-note { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
.price-note b { color: var(--ink); font-weight: 500; }

form.waitlist { display: flex; flex-wrap: wrap; gap: 10px; }
form.waitlist input, form.waitlist select {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.7rem 1.1rem; min-width: 0;
}
form.waitlist input { flex: 1 1 14rem; }
form.waitlist select { flex: 0 1 11rem; }
.form-msg { font-size: 0.95rem; color: var(--cloth); min-height: 1.5em; }

/* Shelf */
.shelf { position: relative; display: flex; align-items: flex-end; gap: 6px; padding: 0 12px; min-width: 0; overflow: hidden; }
.shelf::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px;
  background: var(--shelf); border-radius: 3px 3px 0 0;
}
.spine {
  position: relative; z-index: 1; margin-bottom: 16px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-radius: 3px 3px 2px 2px;
  font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.02em;
  box-shadow: inset -3px 0 0 rgba(0,0,0,0.15), inset 3px 0 0 rgba(255,255,255,0.08);
  flex-shrink: 0;
  transition: transform 0.35s ease;
}
.spine small { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; opacity: 0.8; }
.spine.pull { transform: rotate(180deg) translateY(18px); }
.shelf:hover .spine.pull { transform: rotate(180deg) translateY(34px); }
.tag {
  position: absolute; z-index: 2; top: 10px; right: 8px;
  font-family: var(--mono); font-size: 0.72rem; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; line-height: 1.4;
  transform: rotate(3deg);
}
.tag b { color: var(--lamp); font-weight: 500; }

/* Sections */
section.band { padding-block: 88px; border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }

/* Steps ledger */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.steps li { padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.steps li + li { border-left: 1px solid var(--line); }
.step-n { font-family: var(--mono); font-size: 0.8rem; color: var(--lamp); }
.steps p { color: var(--muted); font-size: 0.98rem; }
.credit { font-family: var(--mono); font-size: 0.8rem; color: var(--cloth); margin-top: auto; }

/* Costs: postage slip */
.costs { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.costs .copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.costs .copy p { color: var(--muted); }
.slip {
  font-family: var(--mono); font-size: 0.92rem;
  background: var(--surface); border: 1px dashed var(--muted); border-radius: 8px;
  padding: 24px; display: flex; flex-direction: column; gap: 0; min-width: 0;
}
.slip-title { display: flex; justify-content: space-between; gap: 12px; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.slip-row { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.slip-row span:first-child { color: var(--muted); }
.slip-row:last-of-type { border-bottom: 0; }
.slip-foot { font-size: 0.78rem; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--ink); }

/* Library card */
.own { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.own .copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.own .copy p { color: var(--muted); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 22px 22px 26px; font-family: var(--mono); font-size: 0.85rem;
  transform: rotate(-1.5deg); max-width: 26rem; justify-self: center; width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.card-head { text-align: center; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; color: var(--muted); padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.card table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.card th, .card td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); font-weight: 400; }
.card th { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.card td.struck { text-decoration: line-through; color: var(--muted); }
.stamp {
  display: inline-block; margin-top: 18px; padding: 6px 12px;
  border: 2px solid var(--lamp); color: var(--lamp); border-radius: 4px;
  font-family: var(--display); font-size: 1.15rem; transform: rotate(-4deg);
}

/* Who */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.who div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.who p { color: var(--muted); }

/* Promise */
.promise { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 32px; }
.promise .days { font-family: var(--display); font-size: 4rem; line-height: 1; color: var(--lamp); }
.promise .copy { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.promise p { color: var(--muted); }

/* Final CTA */
.final { text-align: left; display: flex; flex-direction: column; gap: 20px; }
.final h2 { max-width: 20ch; }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 0.85rem; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero, .costs, .own { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy { padding-bottom: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .who { grid-template-columns: 1fr; gap: 24px; }
  section.band { padding-block: 64px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .promise { grid-template-columns: 1fr; padding: 24px; }
  .nav .btn { padding: 0.6rem 1rem; }
  .spine:nth-child(n+7) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .spine { transition: none; }
}

/* ---------- Added for the live site ---------- */
body { margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.consent { font-size: 0.85rem; color: var(--muted); }
.consent a { color: var(--muted); }
/* Holding page: where the waitlist forms go once it opens. */
.soon { font-size: 1.05rem; border-left: 3px solid var(--lamp); padding-left: 14px; max-width: 46ch; }
.soon b { font-weight: 600; }
.form-msg.error { color: var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Spines (inline styles aren't allowed by the site's security policy). */
.sp-1 { height: 260px; width: 44px; background: var(--s4); color: #e9e6de; }
.sp-2 { height: 220px; width: 38px; background: var(--s5); color: #1b2430; }
.sp-3 { height: 290px; width: 52px; background: var(--s3); color: #1b2430; }
.sp-4 { height: 240px; width: 40px; background: var(--s2); color: #f3f1ea; }
.sp-5 { height: 275px; width: 46px; background: var(--s1); color: #f3f1ea; }
.sp-6 { height: 205px; width: 34px; background: var(--s6); color: #f3f1ea; }
.sp-7 { height: 250px; width: 42px; background: var(--s3); color: #1b2430; }
.sp-8 { height: 230px; width: 36px; background: var(--s4); color: #e9e6de; }

/* Simple pages: confirm, unsubscribe, privacy, not found */
.page { padding-block: 40px 88px; display: flex; flex-direction: column; gap: 20px; max-width: 46rem; }
.page h2 { margin-top: 20px; }
.page .lede { font-size: 1.2rem; color: var(--muted); }
.page ul { margin: 0; padding-left: 1.2rem; max-width: 62ch; }
.page li + li { margin-top: 6px; }
.page .meta { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.todo { background: var(--lamp); color: var(--ink); padding: 0 4px; border-radius: 3px; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
