/* ============================================================================
   wend.css — Wend by MarketFoundry design system
   "Warm Archival": warm paper, deep calm green, literary serif. A private
   family library — not AI/SaaS, not a memorial. Built MOBILE-FIRST: every
   rule is sized for a ~380px phone first; desktop is progressive enhancement.

   Fonts: Fraunces (display serif) + Inter (UI/body), Georgia as serif fallback.
   The storyteller record page keeps its OWN inline critical CSS so it never
   flashes unstyled — do not make record_v2.html depend on this file.
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  /* ---- Warm Archival palette ---- */
  --paper:       #f4f1ea;   /* warm paper — primary background */
  --paper-deep:  #ece7db;   /* half-tone deeper, for banded sections */
  --card:        #fbf9f4;   /* card surface, a touch lighter than paper */
  --ink:         #2b2926;   /* warm near-black body text (never pure #000) */
  --ink-soft:    #54504a;   /* secondary text */
  --warm-gray:   #69645b;   /* captions, meta (WCAG AA: passes 4.5 even on paper-deep) */
  --green:       #3a5a47;   /* deep calm green — brand, headers, primary btn */
  --green-deep:  #2c4636;   /* hover/active, footer */
  --green-soft:  #e7ede9;   /* tints, ghost-button hover */
  --gold:        #b08d4c;   /* DECORATIVE FILLS ONLY (low contrast — never text/indicators) */
  --gold-text:   #86692c;   /* WCAG-AA gold for TEXT, focus rings, bullets, seals (>=4.5 text / 3.0 UI) */
  --clay:        #9a5a46;   /* single warm accent (darkened for WCAG AA text contrast) */
  --line:        rgba(43,41,38,.10);   /* hairline */
  --line-soft:   rgba(43,41,38,.06);

  /* ---- type ---- */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* ---- scale ---- */
  --maxw: 1180px;
  --measure: 64ch;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-media: 20px;
  --shadow-rest:  0 2px 8px rgba(43,41,38,.06);
  --shadow-hover: 0 8px 24px rgba(43,41,38,.10);

  /* spacing (8px base) */
  --s1:.25rem; --s2:.5rem; --s3:.75rem; --s4:1rem; --s5:1.25rem;
  --s6:1.5rem; --s8:2rem; --s10:2.5rem; --s12:3rem; --s16:4rem; --s24:6rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;            /* mobile floor (elder-readable); 18px on desktop */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- type scale (mobile-first) -------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--green-deep);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .4em;
}
h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 21px; }
p  { margin: 0 0 1em; }
.lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 12px;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-deep); text-decoration: underline; }

/* ---- layout --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }                  /* mobile */
.section--deep { background: var(--paper-deep); }
.section--green { background: var(--green); color: #f4f1ea; }
.section--green h1, .section--green h2, .section--green h3 { color: #fff; }
.center { text-align: center; }
.measure { max-width: var(--measure); }
.center .measure { margin-left: auto; margin-right: auto; }

/* ---- top bar -------------------------------------------------------------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; max-width: var(--maxw); margin: 0 auto; gap: 12px;
}
.wordmark {
  font-family: var(--serif); font-weight: 500; font-size: 23px;
  letter-spacing: .01em; color: var(--ink); display: inline-flex; align-items: baseline;
}
.wordmark:hover { text-decoration: none; color: var(--ink); }
.wordmark .by {
  font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--warm-gray); margin-left: 8px;
}
.topbar nav { display: none; }                 /* hidden on mobile; CTA carries */
.topbar nav a {
  font-family: var(--sans); font-size: 15px; color: var(--ink-soft); margin-left: 24px;
}
.topbar .topbar-cta { font-size: 15px; padding: 10px 18px; }

/* ---- buttons (≥48px tap targets) ------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 17px; font-weight: 600;
  padding: 15px 26px; min-height: 52px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; transition: background .15s, transform .05s, box-shadow .15s;
  text-align: center; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn-ghost:hover { background: var(--green-soft); color: var(--green-deep); }
.btn-lg { font-size: 18px; padding: 18px 32px; min-height: 56px; }
.btn-block { display: flex; width: 100%; }
.btn:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 2px; }

.btn-row { display: flex; flex-direction: column; gap: 12px; }   /* stacked on mobile */

/* ---- cards ---------------------------------------------------------------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-rest);
  transition: transform .15s, box-shadow .15s;
}
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* ---- media / images ------------------------------------------------------- */
img, video { max-width: 100%; height: auto; display: block; }
.media-frame {
  border-radius: var(--radius-media); overflow: hidden; box-shadow: var(--shadow-hover);
  background: var(--paper-deep);
}
.media-frame img { width: 100%; height: auto; display: block; }

/* a warm grade helper for cool-ish stock photos */
.warm { filter: saturate(1.03) sepia(.05) brightness(1.01); }

/* ---- hero ----------------------------------------------------------------- */
.hero { padding: 36px 0 8px; }
.hero-grid { display: flex; flex-direction: column; gap: 28px; }   /* stacked (mobile-first) */
.hero h1 { font-size: 38px; line-height: 1.08; }
.hero .lead { font-size: 20px; margin-bottom: 8px; }
.hero-trust {
  margin-top: 18px; font-family: var(--sans); font-size: 14px; color: var(--warm-gray);
  line-height: 1.7;
}

/* ---- trust strip ---------------------------------------------------------- */
.trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center;
}
.trust span {
  font-family: var(--sans); font-size: 14.5px; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 8px;
}
.trust span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-text); flex: none;
}

/* ---- the wend path: signature motif (demoted to a quiet hairline) ---------- */
.steps { display: flex; flex-direction: column; gap: 28px; }
.path-step { position: relative; padding-left: 52px; }
.path-step .dot {
  position: absolute; left: 10px; top: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--green-soft);
}
.path-step::before {
  content: ""; position: absolute; left: 16px; top: 18px; bottom: -28px;
  width: 2px; background: repeating-linear-gradient(to bottom, var(--green) 0 6px, transparent 6px 12px);
  opacity: .35;
}
.path-step:last-child::before { display: none; }
.path-step .n {
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-text);
}
.path-step h3 { margin: 4px 0 6px; }
.path-step p { margin: 0; color: var(--ink-soft); }

/* ---- pricing / gift-duration cards ---------------------------------------- */
.gift-cards { display: flex; flex-direction: column; gap: 18px; }
.gift-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-rest); position: relative;
}
.gift-card.featured { border-color: var(--gold-text); box-shadow: var(--shadow-hover); }
.gift-card .ribbon {
  position: absolute; top: -12px; left: 24px;
  background: var(--gold-text); color: #fff; font-family: var(--sans); font-size: 12px;
  font-weight: 600; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px;
}
.gift-card .dur { font-family: var(--serif); font-size: 23px; color: var(--green-deep); margin-bottom: 4px; }
.gift-card .price { font-family: var(--serif); font-size: 40px; color: var(--ink); line-height: 1; margin: 6px 0 2px; }
.gift-card .price small { font-family: var(--sans); font-size: 15px; color: var(--warm-gray); font-weight: 500; }
.gift-card ul { list-style: none; padding: 0; margin: 16px 0 22px; }
.gift-card li {
  font-family: var(--sans); font-size: 15.5px; color: var(--ink-soft);
  padding-left: 26px; position: relative; margin-bottom: 10px; line-height: 1.45;
}
.gift-card li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 9px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.note-soft {
  font-family: var(--sans); font-size: 14.5px; color: var(--warm-gray); line-height: 1.6;
}

/* ---- forms ---------------------------------------------------------------- */
.field {
  display: block; width: 100%; font-family: var(--sans); font-size: 17px;
  padding: 15px 16px; min-height: 52px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.field:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
label.flabel { display: block; font-family: var(--sans); font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; }

/* ---- feature rows / icon list --------------------------------------------- */
.feature { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.feature .ico { flex: none; width: 26px; height: 26px; color: var(--green); margin-top: 2px; }
.feature h3 { font-size: 19px; margin: 0 0 4px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---- footer --------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line); padding: 32px 0; margin-top: 8px;
  font-family: var(--sans); font-size: 14px; color: var(--warm-gray);
}
.footer .container { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.footer a { color: var(--ink-soft); }
.footer .legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- motion --------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================================
   DESKTOP / TABLET — progressive enhancement
   ============================================================================ */
@media (min-width: 700px) {
  body { font-size: 18px; }
  .section { padding: 88px 0; }
  h1 { font-size: 52px; }
  h2 { font-size: 36px; }
  .hero { padding: 64px 0 24px; }
  .hero h1 { font-size: 60px; }
  .hero .lead { font-size: 22px; }

  .topbar nav { display: block; }
  .btn-row { flex-direction: row; }
  .btn-block { width: auto; display: inline-flex; }

  /* hero becomes a split: text left, image right */
  .hero-grid {
    flex-direction: row; align-items: center; gap: 48px;
  }
  .hero-grid > .hero-copy { flex: 1 1 50%; }
  .hero-grid > .hero-media { flex: 1 1 50%; }

  .steps { flex-direction: row; gap: 24px; }
  .path-step { flex: 1; padding-left: 0; padding-top: 44px; }
  .path-step .dot { left: 0; top: 8px; }
  .path-step::before {
    left: 22px; top: 14px; right: -24px; bottom: auto; width: auto; height: 2px;
    background: repeating-linear-gradient(to right, var(--green) 0 6px, transparent 6px 12px);
  }
  .path-step:last-child::before { display: none; }

  .gift-cards { flex-direction: row; align-items: stretch; }
  .gift-card { flex: 1; }
  .gift-card.featured { transform: translateY(-8px); }

  .two-col { display: flex; gap: 48px; align-items: center; }
  .two-col > * { flex: 1; }
}

@media (min-width: 1000px) {
  .hero h1 { font-size: 64px; }
}

/* ---- accessibility floor -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, .reveal { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
