/* =============================================================
   Hearthline Press — storefront stylesheet
   Implements brand-guidelines.md v1.0 (2026-07-10)
   Revised 2026-07-11 per research/improvement-research.json
   ("landing-design" recommendations): 19px body for 40–65 eyes,
   larger h1, no umber below 0.9rem, bigger tap targets, stat
   strip, guarantee lines, CSS printed-page mockups, testimonial-
   ready review block, sources fine-print block, bundle card.
   Palette: Warm Paper #FAF6F0 · Hearth Ink #3B322C · Worn Umber #6B5F55
            Soft Sand #E4DACB · Field White #FFFFFF
   Accents: Sage (Binder) · Slate Blue (Playbook) · Clay (Command
            Center) · Ochre (mini-SKUs / lead magnets)
   Type:    Literata (headings) / Source Sans 3 (body), self-hosted
            latin woff2 subsets in ./fonts/ — no CDN requests.
            Revised 2026-07-14 (brand v1.1 pilot): Literata replaces
            Lora for headings (bookish warmth, less template-default);
            paper-grain texture overlay added (anti-flat pass).
   ============================================================= */

@import url('fonts/fonts.css');

:root {
  --paper: #FAF6F0;
  --field-white: #FFFFFF;
  --ink: #3B322C;
  --umber: #6B5F55;
  --sand: #E4DACB;

  --sage-deep: #44523C;
  --sage-mid: #71835F;
  --sage-tint: #EDF1E8;

  --slate-deep: #39506B;
  --slate-mid: #5F7A99;
  --slate-tint: #E9EFF4;

  --clay-deep: #8A4A2B;
  --clay-mid: #C07A54;
  --clay-tint: #F7EBE3;

  --ochre-deep: #775614;
  --ochre-mid: #C9962E;
  --ochre-tint: #F6EFDD;

  --serif: 'Literata', Lora, Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --measure: 42rem; /* ~66ch at body size — 60–75 char line length */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px; /* NN/g: 40–65 audience needs larger body type */
  line-height: 1.6;
}
/* Paper-grain overlay — neutral-gray tile at soft-light so it warms
   Warm Paper without muddying the Deep-band sections. Decorative only. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('paper-grain.png') repeat;
  background-size: 256px 256px;
  mix-blend-mode: soft-light;
  opacity: 0.55;
  pointer-events: none;
  z-index: 2147483647;
}
@media print { body::before { display: none; } }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(30px, 5vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 30px); }
h3 { font-size: 21px; }
p, ul, ol { margin: 0 0 1em; }
a { color: var(--slate-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--slate-deep);
  outline-offset: 2px;
}
hr { border: 0; border-top: 1px solid var(--sand); margin: 2.5rem 0; }

.container { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: var(--measure); }
.center { text-align: center; }
.muted { color: var(--umber); }
.small { font-size: 0.9rem; } /* floor for umber text — never smaller */

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--slate-deep); color: var(--paper);
  padding: 0.5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0; }

/* ---------- wordmark (brand §8) ---------- */
.hl-wordmark { display: inline-block; font-size: 28px; color: var(--umber); text-decoration: none; }
.hl-motif { display: block; width: 100%; height: 0.34em; margin-bottom: 0.35em; }
.hl-name {
  font-family: var(--serif); font-weight: 600;
  font-size: 1em; letter-spacing: 0.01em; color: var(--ink);
}
.hl-press {
  font-family: var(--sans); font-weight: 600;
  font-size: 0.32em; letter-spacing: 0.30em; color: inherit;
  margin-left: 0.45em; vertical-align: baseline;
}
/* Reversed on a Deep background (footer): everything Warm Paper */
.on-deep .hl-wordmark, .on-deep .hl-name, .on-deep .hl-press { color: var(--paper); }

/* ---------- header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--sand);
  padding: 1.1rem 0 0.9rem;
  background: var(--paper);
}
.site-header .container {
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem;
  align-items: flex-end; justify-content: space-between;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: baseline; }
.site-nav a {
  font-family: var(--sans); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--umber); text-decoration: none;
  padding: 0.6rem 0.3rem; /* larger tap target for 40–65 hands */
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 2px solid var(--slate-mid);
}

/* ---------- hero ---------- */
.hero { padding: 3.5rem 0 3rem; }
.hero h1 { max-width: 22ch; }
.hero .lede { font-size: 1.25rem; max-width: var(--measure); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.5rem 3.5rem; align-items: center;
}
.kicker {
  font-family: var(--sans); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate-deep); margin: 0 0 0.75rem;
}
.kicker.sage { color: var(--sage-deep); }
.kicker.clay { color: var(--clay-deep); }
.kicker.ochre { color: var(--ochre-deep); }
/* quiet secondary link under the dominant CTA */
.quiet-link {
  display: inline-block; margin-top: 1rem;
  font-size: 1rem; color: var(--slate-deep);
  padding: 0.4rem 0; /* tap target */
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans); font-weight: 600; font-size: 1.05rem;
  padding: 0.85rem 1.7rem; border-radius: 6px;
  text-decoration: none; border: 0; cursor: pointer;
  background: var(--slate-deep); color: var(--paper);
}
.btn:hover { background: #2E4157; color: var(--paper); }
.btn.sage { background: var(--sage-deep); }
.btn.sage:hover { background: #37432F; }
.btn.clay { background: var(--clay-deep); }
.btn.clay:hover { background: #723C22; }
.btn.ochre { background: var(--ochre-deep); }
.btn.ochre:hover { background: #5F440F; }
.btn.ghost {
  background: transparent; color: var(--slate-deep);
  border: 1.5px solid var(--slate-deep);
}
.btn.ghost:hover { background: var(--slate-tint); color: var(--slate-deep); }
.btn.big { font-size: 1.15rem; padding: 1.05rem 2.3rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; align-items: center; }

/* ---------- 30-day guarantee line (adjacent to every price) ---------- */
.guarantee {
  font-size: 0.95rem; color: var(--ink);
  border-top: 1px solid var(--sand);
  padding-top: 0.6rem; margin-top: 0.75rem;
  max-width: var(--measure);
}
.guarantee strong { font-weight: 600; }
.stage-card.sage .guarantee strong { color: var(--sage-deep); }
.stage-card.slate .guarantee strong { color: var(--slate-deep); }
.stage-card.clay .guarantee strong { color: var(--clay-deep); }
.stage-card.ochre .guarantee strong { color: var(--ochre-deep); }
.guarantee.borderless { border-top: 0; padding-top: 0; }

/* ---------- stat strip (below hero — Empathy/Everplans pattern) ---------- */
.stat-strip {
  border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand);
  padding: 1.75rem 0 1.25rem; margin: 0 0 1rem;
}
.stat-strip .stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2.5rem; margin: 0; padding: 0; list-style: none;
}
.stat-strip .num {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.1;
  color: var(--slate-deep);
}
.stat-strip .cap { display: block; font-size: 1rem; color: var(--ink); margin-top: 0.25rem; }
.stat-source { font-size: 0.9rem; color: var(--umber); margin: 1.25rem 0 0; }
.stat-source a { color: var(--umber); }

/* ---------- CSS "printed page" mockups (no photography) ----------
   Real product content rendered as angled mini-pages. The text inside
   is imagery (the figure carries role="img" + aria-label; inner text is
   aria-hidden), so it may render below the 16px body floor — the same
   way a photographed page would. */
.pagestack {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: flex-start; gap: 1.5rem;
  padding: 1.5rem 0.5rem; margin: 1.5rem 0;
}
.mock-page {
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: 3px;
  box-shadow:
    0 1px 2px rgba(59, 50, 44, 0.10),
    0 10px 24px rgba(59, 50, 44, 0.18),
    0 22px 48px rgba(59, 50, 44, 0.10);
  padding: 16px 18px 12px;
  width: 270px; max-width: 100%;
  aspect-ratio: 8.5 / 11;
  overflow: hidden;
  display: flex; flex-direction: column;
  font-size: 10px; line-height: 1.45; color: var(--ink);
}
.pagestack .mock-page:nth-child(odd) { transform: rotate(-2.2deg); }
.pagestack .mock-page:nth-child(even) { transform: rotate(1.6deg) translateY(10px); }
.pagestack.duo .mock-page:first-child { z-index: 2; }
.pagestack.duo .mock-page:last-child { margin-left: -70px; z-index: 1; }
.mock-head {
  display: flex; justify-content: space-between; gap: 8px;
  font-weight: 600; font-size: 7.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--slate-deep);
  border-bottom: 1px solid var(--sand);
  padding-bottom: 4px; margin-bottom: 8px;
}
.mock-head .sec { font-weight: 400; font-style: italic; text-transform: none;
  letter-spacing: 0; color: var(--umber); }
.mock-title { font-family: var(--serif); font-weight: 600; font-size: 14px;
  line-height: 1.25; margin: 0 0 5px; color: var(--ink); }
.mock-why { font-size: 9px; color: var(--ink); margin: 0 0 7px; }
.mock-why strong { color: var(--slate-deep); }
.mock-check { list-style: none; margin: 0 0 6px; padding: 0; }
.mock-check li {
  position: relative; padding-left: 14px; margin-bottom: 4.5px;
  font-size: 9.5px; line-height: 1.35;
}
.mock-check li::before {
  content: ""; position: absolute; left: 0; top: 1.5px;
  width: 8px; height: 8px;
  border: 1px solid var(--slate-deep); border-radius: 1.5px;
}
.mock-script {
  background: var(--field-white); border: 1px solid var(--sand);
  border-radius: 4px; padding: 7px 9px; margin: 0 0 6px;
  font-family: var(--serif); font-style: italic; font-size: 9.5px;
}
.mock-label {
  display: block; font-weight: 600; font-size: 7px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--slate-deep); margin: 6px 0 2px;
}
.mock-field {
  background: var(--field-white); border: 1px solid var(--sand);
  border-bottom: 1.5px solid var(--slate-deep); border-radius: 3px;
  padding: 3px 6px; font-size: 8.5px; color: var(--umber);
  min-height: 14px;
}
.mock-helper { font-style: italic; font-size: 8px; color: var(--umber); margin: 2px 0 0; }
.mock-foot {
  margin-top: auto; border-top: 1px solid var(--sand);
  padding-top: 4px; display: flex; justify-content: space-between; gap: 6px;
  font-size: 6.5px; color: var(--umber);
}
.mock-foot .pageno { font-weight: 600; color: var(--ink); }
.mock-caption {
  font-size: 0.9rem; color: var(--umber);
  text-align: center; max-width: 36rem; margin: 0 auto 1rem;
}

/* ---------- product line cards (three stages + the set) ---------- */
.stage-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin: 2rem 0;
}
.stage-card {
  border: 1px solid var(--sand);
  border-radius: 10px;
  overflow: hidden;
  background: var(--field-white);
  display: flex; flex-direction: column;
}
.stage-card .band {
  padding: 0.6rem 1.25rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--paper);
}
.stage-card.sage .band { background: var(--sage-deep); }
.stage-card.slate .band { background: var(--slate-deep); }
.stage-card.clay .band { background: var(--clay-deep); }
.stage-card.ochre .band { background: var(--ochre-deep); }
.stage-card .body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.stage-card h3 { margin-bottom: 0.35rem; }
.stage-card .price {
  font-family: var(--serif); font-weight: 600; font-size: 1.5rem;
  margin: 0 0 0.6rem;
}
.stage-card .price .was {
  font-family: var(--sans); font-weight: 400; font-size: 0.95rem;
  color: var(--umber); margin-left: 0.4rem;
}
.stage-card .price .was s { text-decoration-thickness: 1px; }
.stage-card.sage .price { color: var(--sage-deep); }
.stage-card.slate .price { color: var(--slate-deep); }
.stage-card.clay .price { color: var(--clay-deep); }
.stage-card.ochre .price { color: var(--ochre-deep); }
.stage-card p { font-size: 1rem; }
.stage-card .body > :last-child { margin-top: auto; }
.status-tag {
  display: inline-block; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--umber); border: 1px solid var(--sand);
  border-radius: 999px; padding: 0.25rem 0.8rem;
}
.status-tag.available {
  color: var(--paper); background: var(--slate-deep);
  border-color: var(--slate-deep);
}

/* ---------- tint panels ---------- */
.panel {
  border-radius: 12px; padding: 1.75rem 1.75rem 1.25rem;
  margin: 2rem 0;
}
.panel.slate { background: var(--slate-tint); }
.panel.sage { background: var(--sage-tint); }
.panel.clay { background: var(--clay-tint); }
.panel.ochre { background: var(--ochre-tint); }
.panel h2, .panel h3 { margin-top: 0; }

/* "Worth knowing" caution (brand: never red, never alarm) */
.worth-knowing {
  background: var(--ochre-tint);
  border-left: 3px solid var(--ochre-deep);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.worth-knowing strong { color: var(--ochre-deep); }

/* ---------- "What people in this position say" — evidence now,
     testimonial-ready structure for named/dated buyer reviews later
     (see the HTML comment inside the section on index.html) ---------- */
.field-note {
  border-left: 3px solid var(--slate-mid);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.5rem 0;
}
.field-note blockquote {
  margin: 0 0 0.4rem;
  font-family: var(--serif); font-style: italic;
  font-size: 1.1rem; color: var(--ink);
}
.field-note cite {
  display: block; font-style: normal;
  font-size: 0.9rem; color: var(--umber);
}
.field-note cite a { color: var(--umber); }
/* Buyer-review card — same slot, richer chrome. Unused until real,
   named, dated reviews exist; do NOT fabricate content for it. */
.review {
  background: var(--field-white); border: 1px solid var(--sand);
  border-radius: 10px; padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.review blockquote {
  margin: 0 0 0.6rem; font-family: var(--serif); font-style: italic;
  font-size: 1.1rem; color: var(--ink);
}
.review .attrib { font-size: 0.95rem; color: var(--ink); font-weight: 600; margin: 0; }
.review .attrib .when { font-weight: 400; color: var(--umber); }

/* ---------- checklists / what's-inside ---------- */
.check-list { list-style: none; padding: 0; }
.check-list li {
  position: relative; padding-left: 2rem; margin-bottom: 0.7rem;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em;
  width: 0.85em; height: 0.85em;
  border: 1.5px solid var(--slate-deep); border-radius: 2px;
}
.check-list.sage li::before { border-color: var(--sage-deep); }
.check-list.ochre li::before { border-color: var(--ochre-deep); }

.inside-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 1.5rem 0;
}
.inside-item {
  background: var(--field-white); border: 1px solid var(--sand);
  border-radius: 10px; padding: 1.25rem;
}
.inside-item h3 { font-size: 1.1rem; margin-bottom: 0.35rem; color: var(--slate-deep); }
.inside-item p { font-size: 0.97rem; margin: 0; color: var(--ink); }
.inside-item .spec { font-size: 0.9rem; color: var(--umber); margin-top: 0.5rem; }

/* format chips (mirrors the cover foot chips) */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; padding: 0; list-style: none; }
.chips li {
  font-family: var(--sans); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--slate-deep); color: var(--slate-deep);
  border-radius: 999px; padding: 0.3rem 0.85rem;
}

/* ---------- pricing block ---------- */
.price-box {
  background: var(--field-white);
  border: 1px solid var(--sand);
  border-top: 5px solid var(--slate-deep);
  border-radius: 10px;
  padding: 2rem;
  max-width: 32rem;
}
.price-box .amount {
  font-family: var(--serif); font-weight: 600;
  font-size: 2.6rem; color: var(--slate-deep);
  line-height: 1; margin-bottom: 0.25rem;
}
.price-box .amount small {
  font-family: var(--sans); font-weight: 400;
  font-size: 1rem; color: var(--umber);
}

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--sand);
  padding: 0.9rem 0;
}
.faq summary {
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
  cursor: pointer; color: var(--ink);
  list-style-position: outside;
  padding: 0.35rem 0; /* tap target */
}
.faq summary:hover { color: var(--slate-deep); }
.faq details > div { padding: 0.6rem 0 0.25rem; max-width: var(--measure); }

/* ---------- email capture ---------- */
.capture {
  background: var(--ochre-tint);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  margin: 2.5rem 0;
}
.capture h2 { margin-top: 0; }
.capture form { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.capture label { flex-basis: 100%; font-weight: 600; font-size: 0.95rem; }
.capture input[type="email"] {
  flex: 1 1 16rem;
  font-family: var(--sans); font-size: 1.05rem;
  padding: 0.8rem 1rem;
  background: var(--field-white);
  border: 1px solid var(--sand);
  border-bottom: 2px solid var(--ochre-deep);
  border-radius: 6px;
  color: var(--ink);
}
.capture .fine { font-size: 0.9rem; color: var(--umber); margin: 0.75rem 0 0; }

/* ---------- comparison table ---------- */
.compare-wrap { overflow-x: auto; margin: 1.5rem 0; }
table.compare { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 1rem; }
table.compare th {
  background: var(--slate-tint); color: var(--slate-deep);
  font-family: var(--sans); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-align: left; padding: 0.6rem 0.9rem;
}
table.compare td { padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--sand); vertical-align: top; }
table.compare tr:nth-child(even) td { background: var(--field-white); }

/* ---------- sources fine-print block ---------- */
.sources {
  border-top: 1px solid var(--sand);
  padding-top: 1.25rem; margin: 2.5rem 0 0;
  font-size: 0.9rem; color: var(--umber);
  max-width: 52rem;
}
.sources h2 {
  font-family: var(--sans); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--umber); margin-bottom: 0.6rem;
}
.sources ol { margin: 0; padding-left: 1.4rem; }
.sources li { margin-bottom: 0.35rem; }
.sources a { color: var(--umber); overflow-wrap: anywhere; }

/* ---------- disclaimer + footer ---------- */
.disclaimer {
  border: 1px solid var(--sand);
  border-radius: 10px;
  background: var(--field-white);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  max-width: var(--measure);
  font-size: 0.97rem;
}
.disclaimer h2, .disclaimer h3 { font-size: 1.1rem; margin-top: 0; }

.site-footer {
  background: var(--slate-deep);
  color: var(--paper);
  margin-top: 4rem;
  padding: 2.5rem 0 2rem;
  font-size: 1rem;
}
.site-footer a { color: var(--paper); }
.site-footer .cols {
  display: flex; flex-wrap: wrap; gap: 2rem 4rem;
  justify-content: space-between; align-items: flex-start;
}
.site-footer nav { display: flex; flex-direction: column; gap: 0.25rem; }
.site-footer nav a { padding: 0.35rem 0; } /* tap target */
.site-footer .legal {
  margin-top: 2rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(250, 246, 240, 0.25);
  color: var(--slate-tint);
  font-size: 0.9rem;
  max-width: 52rem;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .pagestack { padding-top: 0.5rem; }
}
@media (max-width: 640px) {
  .hero { padding: 2.25rem 0 2rem; }
  .site-header .container { align-items: flex-start; flex-direction: column; }
  .price-box { padding: 1.5rem; }
  .stat-strip .stats { grid-template-columns: 1fr; gap: 1.25rem; }
  .pagestack.duo .mock-page:last-child { margin-left: -110px; }
  .mock-page { width: 240px; }
}
