/* Whole Tree Press smoke page.
   Art direction: cyanotype heirloom print. Paper page, blue poster, brass rules.
   Tokens are the design contract: 5 colors, one cool-leaning tone, 8px scale. */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F3F2EE;      /* page ground, cool-tinted so it reads as rag paper, not cream */
  --ink: #22303B;        /* blue-black text ink */
  --blue: #1D4466;       /* cyanotype mid, links and primary button */
  --blue-deep: #142E47;  /* poster ground */
  --blue-wash: #9FBEDA;  /* cyanotype linework, decorative only */
  --brass: #B98A2E;      /* single accent, rules and marks only, never body text */
  --rust: #B54A24;       /* warm saturated accent, CTA + emphasis (MyHeritage-lean redesign).
                            Darkened from #C4562F: paper text on the old value measured 3.97:1
                            (AA fail); on #B54A24 it is 4.72:1. Keep >= 4.5 if retuned. */
  --rust-deep: #9F3F1C;  /* rust hover (6.56:1 with paper text) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --radius: 2px;         /* one radius, print-crop crispness */
  --measure: 62ch;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (max-width: 640px) {
  body { font-size: 16px; }
}

h1, h2, h3 { color: var(--ink); margin: 0 0 var(--space-2); line-height: 1.12; }
h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 700; letter-spacing: -0.005em; }
h3 { font-family: 'Figtree', system-ui, sans-serif; font-weight: 700; }

p { margin: 0 0 var(--space-2); max-width: var(--measure); }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-3) var(--space-4);
  background: var(--blue-deep);
  color: var(--paper);
  border-bottom: none;
}
.wordmark {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
}
.status-note {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  border: 1px solid rgba(243, 242, 238, 0.4);
  border-radius: var(--radius);
  padding: 4px 10px;
}

/* ---------- layout ---------- */

main { max-width: 1080px; margin: 0 auto; padding: 0 var(--space-4); }
section { padding-top: var(--space-6); }
section:last-of-type { padding-bottom: var(--space-6); }
@media (max-width: 640px) {
  main { padding: 0 var(--space-3); }
  section { padding-top: var(--space-5); }
}

h2 { font-size: 28px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  width: 100vw;
  background: linear-gradient(105deg, rgba(11, 26, 42, 0.93) 0%, rgba(13, 32, 52, 0.88) 48%, rgba(18, 44, 68, 0.72) 100%), url('/hero-family.jpg') center 26% / cover no-repeat;
  color: var(--paper);
  padding-top: 0;
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: var(--space-5) var(--space-3); }
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 5.8vw, 4.2rem);
  line-height: 1.02;
  margin-bottom: var(--space-3);
  color: var(--paper);
}
.hero-copy .lede { color: #CFDDEA; }
.hero-copy .price-line { color: var(--paper); }
.hero-copy .price-line strong { color: #F0C89A; }
.hero-copy .cta-aside { color: #9FBEDA; }
/* Text links on the dark band (thanks.html "Back to the page"): the default --blue link
   ink is 1.3:1 against this gradient, invisible. Excludes .button, which owns its colors. */
.hero a:not(.button) { color: var(--blue-wash); }
.hero a:not(.button):hover { color: var(--paper); }
.lede { font-size: 19px; }
@media (max-width: 640px) { .lede { font-size: 17px; } }

.price-line {
  margin-top: var(--space-3);
  font-size: 18px;
}
.price-line strong { color: var(--blue-deep); }

.cta-row {
  margin-top: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.cta-aside { font-size: 14px; color: #55636F; max-width: 24ch; }

.button {
  display: inline-block;
  background: var(--rust);
  color: var(--paper);
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  padding: 14px 28px;
  min-height: 44px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.button:hover { background: var(--rust-deep); color: var(--paper); }
.button:active { transform: translateY(1px); }
.button:disabled { background: #8A99A6; cursor: default; }

/* ---------- poster preview with crop marks ---------- */

.poster-frame { margin: 0; }
.poster-crop { position: relative; padding: 18px; background: var(--paper); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45); }

/* two opposing crop marks, printer's registration corners */
.poster-crop::before, .poster-crop::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--brass);
  border-style: solid;
}
.poster-crop::before { top: 0; left: 0; border-width: 1px 0 0 1px; }
.poster-crop::after { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.poster-crop svg {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 2px 24px rgba(20, 46, 71, 0.18);
}
.poster-frame figcaption {
  font-size: 14px;
  color: #9FBEDA;
  margin-top: var(--space-2);
  max-width: 46ch;
}

/* ---------- how it works, registry ledger rows ---------- */

.ledger {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
}
.ledger li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--blue-wash);
}
.ledger li:last-child { border-bottom: 1px solid var(--blue-wash); }
.ledger-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 44px;
  line-height: 1;
  color: var(--rust);
}
.ledger h3 { font-size: 21px; margin-bottom: var(--space-1); }
.ledger p { margin-bottom: 0; }
@media (max-width: 640px) {
  .ledger li { grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-2); }
  .ledger-num { font-size: 32px; }
}

/* ---------- comparison table ---------- */

.table-scroll { overflow-x: auto; margin-top: var(--space-3); }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
@media (max-width: 640px) {
  table { min-width: 0; }
  td:first-child { white-space: normal; padding-right: var(--space-2); }
}
th, td { text-align: left; padding: 12px 16px 12px 0; vertical-align: top; }
thead th {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  border-bottom: 1px solid var(--brass);
  font-weight: 600;
}
tbody td { border-bottom: 1px solid var(--blue-wash); }
tbody tr:last-child td {
  border-top: 2px solid var(--rust);
  border-bottom: 2px solid var(--rust);
  background: rgba(181, 74, 36, 0.08); /* --rust at 8%, keep in sync with the token */
}
tbody tr:last-child td:first-child { border-left: 2px solid var(--rust); padding-left: var(--space-2); }
tbody tr:last-child td:last-child { border-right: 2px solid var(--rust); padding-right: var(--space-2); }
td:first-child { font-weight: 600; white-space: nowrap; padding-right: var(--space-3); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- privacy, second dark band for rhythm ---------- */

.privacy {
  position: relative;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  width: 100vw;
  margin-top: var(--space-6);
  padding-top: 0;
  background: linear-gradient(155deg, #17334E 0%, #0E2237 72%);
  color: var(--paper);
}
.privacy-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
}
.privacy h2 { color: var(--paper); }
.privacy p { color: #CFDDEA; font-size: 19px; max-width: 60ch; }

/* ---------- join form with crop marks ---------- */

.join-crop {
  position: relative;
  border: 1px solid var(--blue-wash);
  border-radius: var(--radius);
  padding: var(--space-4);
  background: #FBFAF7;
}
.join-crop::before, .join-crop::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--brass);
  border-style: solid;
}
.join-crop::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.join-crop::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
@media (max-width: 640px) { .join-crop { padding: var(--space-3); } }

.join-price { max-width: 56ch; }

form { margin-top: var(--space-3); }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: var(--space-1); }
.field-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
input[type="email"], input[type="text"] {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #8A99A6;
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: 44px;
  flex: 1 1 260px;
  transition: border-color 0.2s ease;
}
input[type="email"]:hover { border-color: var(--blue); }
input[type="email"]:focus { border-color: var(--blue); }
.form-note { font-size: 13.5px; color: #55636F; margin-top: var(--space-2); margin-bottom: 0; }
.form-error { color: #8A2B1E; font-size: 15px; margin-top: var(--space-2); }
.form-success { font-size: 17px; margin-top: var(--space-2); }
.form-success strong { color: var(--blue-deep); }

/* honeypot: hidden from people, present for bots */
.hp-wrap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- faq ---------- */

dl { margin: var(--space-3) 0 0; max-width: var(--measure); }
dt {
  font-family: 'Figtree', system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-top: var(--space-3);
}
dd { margin: var(--space-1) 0 0; }

/* ---------- footer ---------- */

footer {
  margin-top: var(--space-6);
  border-top: 1px solid var(--brass);
  padding: var(--space-3) var(--space-4) var(--space-4);
}
footer p { font-size: 13.5px; color: #55636F; margin-bottom: 4px; }
