/* Honest Originals — companion site (docs/10 copy, docs/11 spec).
   Brand: teal + soft coral — landing "Direction C / Made by Hand" (David 2026-08-04,
   picked from site/mockups.html). Warm/consumer, distinct from the extension's dark
   tokens (see docs/04). Brand fonts Space Grotesk (display + body) + Space Mono
   (mono accents) are self-hosted under fonts/ — NOT from Google's CDN, so the site
   never phones home (docs/08 privacy). OFL 1.1: fonts/OFL-*.txt.
   Light/dark via prefers-color-scheme + [data-theme] override.
   Accent is token-based (--accent / --accent-soft) — revert to gold by restoring
   #c39a3f / #d9b45f here + the inline hero-underline and needle-thread hexes. */

/* Space Grotesk — variable (one file per subset covers weights 300–700). */
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../assets/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../assets/fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Mono — static 400 / 700, for eyebrows and small technical labels. */
@font-face {
  font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/space-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/space-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/space-mono-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/space-mono-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #fdf8f6;
  --card: #ffffff;
  --ink: #2b2422;
  --muted: #6f635e;
  --line: #efe4e0;
  --teal: #136b67;
  --teal2: #1c8a86;
  --accent: #c95f49;      /* coral, text-safe (eyebrow, focus, links) */
  --accent-soft: #e28c7d; /* soft coral — decorative strokes (Direction C) */
  /* --serif keeps its name/role (display headings); the face is now Space Grotesk. */
  --serif: "Space Grotesk", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", "Courier New", monospace;
  --wrap: 760px;
  --wrap-wide: 1040px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 6px 18px rgba(120, 80, 70, .07);
  --shadow-md: 0 18px 44px rgba(120, 80, 70, .13);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100c0b; --card: #17110f; --ink: #efe7e3; --muted: #a99a93;
    --line: #241b18; --teal: #4bb8b3; --teal2: #56c6c1; --accent: #e88a76; --accent-soft: #e9a091;
  }
}
:root[data-theme="light"] { --bg:#fdf8f6; --card:#fff; --ink:#2b2422; --muted:#6f635e; --line:#efe4e0; --teal:#136b67; --teal2:#1c8a86; --accent:#c95f49; --accent-soft:#e28c7d; }
:root[data-theme="dark"]  { --bg:#100c0b; --card:#17110f; --ink:#efe7e3; --muted:#a99a93; --line:#241b18; --teal:#4bb8b3; --teal2:#56c6c1; --accent:#e88a76; --accent-soft:#e9a091; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* Header / brand lockup */
.site-head { padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal); font-family: var(--serif); font-size: 19px; }
.brand svg { flex: none; }

/* Hero */
.hero { padding: 26px 0 8px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 8vw, 46px); line-height: 1.07; margin: 12px 0 0; text-wrap: balance; }
/* Space Grotesk has no true italic — emphasise with weight + teal, not synthetic oblique. */
h1 em { font-style: normal; font-weight: 700; color: var(--teal2); }
.u { position: relative; white-space: nowrap; }
.u svg { position: absolute; left: 0; right: 0; bottom: -9px; width: 100%; height: 11px; }
.sub { margin: 20px 0 0; font-size: 17px; color: var(--muted); max-width: 40ch; }

/* Buttons */
.cta { display: inline-block; margin-top: 26px; background: var(--teal2); color: #fff; font-weight: 650; font-size: 16px; padding: 15px 28px; border-radius: 999px; text-decoration: none; box-shadow: 0 8px 20px rgba(19,107,103,.28); }
.cta:hover { background: var(--teal); }
a:focus-visible, .cta:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Sections */
section { padding: 40px 0; border-top: 1px solid var(--line); margin-top: 40px; }
section:first-of-type { border-top: 0; }
.section-title { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0 0 6px; }
.section-lede { color: var(--muted); max-width: 58ch; margin: 0 0 20px; }

/* Three-step */
.steps { display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; gap: 15px; align-items: flex-start; }
.step .n { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--teal2); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step h3 { margin: 2px 0 3px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); }

/* Badge legend (colorblind-safe: shape + text, never color alone — docs/04 §6) */
.badges { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 6px 20px; box-shadow: 0 10px 26px rgba(120,80,70,.06); }
.badge-row { display: flex; align-items: flex-start; gap: 13px; padding: 15px 0; border-top: 1px solid var(--line); }
.badge-row:first-child { border-top: 0; }
.badge-row svg { flex: none; margin-top: 2px; }
.badge-row b { display: block; font-size: 16px; }
.badge-row span { color: var(--muted); font-size: 14.5px; }

/* Prose (privacy / how-it-works) */
.prose h2 { font-family: var(--serif); font-size: 21px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose .muted, .prose .eff { color: var(--muted); }
.prose ul { padding-left: 20px; }
.prose a { color: var(--teal2); }

/* Footer disclosures (every page) */
.site-foot { margin-top: 48px; border-top: 1px solid var(--line); }
.site-foot .wrap { padding-top: 24px; padding-bottom: 40px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }
.site-foot nav a { color: var(--teal2); text-decoration: none; font-size: 14px; font-weight: 600; }
.site-foot p { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; max-width: 70ch; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ============================================================
   WARM & CRAFT-Y HOMEPAGE SYSTEM (David 2026-08-20).
   Mobile-first; enhanced at ≥560 / ≥720 / ≥820. Additive — scoped to
   `body.home` where it could affect other pages, so the rest of the site
   is untouched until the system is propagated. Craft throughline: running-
   stitch dividers, stitched step-card borders, needle-and-thread hero
   flourish. ALL motion plays ONCE (no loops) and is disabled under
   prefers-reduced-motion (David's requirement).
   ============================================================ */

.wrap--wide { max-width: var(--wrap-wide); }
.section-title { font-size: clamp(23px, 5.2vw, 30px); }

/* Warm, subtly lit page ground (home only) */
body.home {
  background:
    radial-gradient(120% 75% at 100% -8%, color-mix(in srgb, var(--teal2) 9%, transparent), transparent 60%),
    radial-gradient(85% 65% at -8% -2%, color-mix(in srgb, var(--accent-soft) 12%, transparent), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

/* Top navigation */
.site-head .wrap { display: flex; align-items: center; gap: 14px; }
.nav-links { display: none; }
.nav-cta { margin: 0 0 0 auto; font-size: 14px; padding: 11px 18px; }
@media (min-width: 560px) {
  .nav-links { display: inline-flex; gap: 22px; margin-left: auto; }
  .nav-links a { color: var(--ink); opacity: .78; text-decoration: none; font-weight: 600; font-size: 14.5px; }
  .nav-links a:hover { opacity: 1; color: var(--teal2); }
  .nav-cta { margin-left: 4px; }
}

/* Hero */
body.home .hero { border-top: 0; padding: 24px 0 6px; }
.hero-grid { display: grid; gap: 30px; }
@media (min-width: 820px) {
  .hero-grid { grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; }
  body.home .hero { padding: 44px 0 24px; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin-top: 26px; }
.cta { transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.cta:hover { transform: translateY(-1px); }
.btn-ghost {
  display: inline-block; padding: 13px 22px; border-radius: 999px; font-weight: 650;
  font-size: 15px; text-decoration: none; color: var(--teal);
  border: 1.6px solid color-mix(in srgb, var(--teal2) 38%, var(--line));
}
.btn-ghost:hover { border-color: var(--teal2); background: color-mix(in srgb, var(--teal2) 7%, transparent); }

/* Product mockup — a browser frame with an Etsy-style listing + our badge */
.shot-wrap { position: relative; }
.shot {
  position: relative; z-index: 1; max-width: 420px; margin: 0 auto; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.shot-bar .url {
  margin-left: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  background: color-mix(in srgb, var(--ink) 6%, transparent); padding: 4px 12px; border-radius: 999px;
}
.shot-body { padding: 16px; }
.shot-photo {
  position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, #ecd0b0, #d99f85 55%, #bf7a63);
}
.shot-photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(65% 60% at 38% 32%, rgba(255,255,255,.4), transparent 70%); }
.badge-chip {
  position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); color: var(--ink); font-weight: 650; font-size: 13px;
  padding: 6px 12px 6px 8px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.shot h4 { font-family: var(--serif); font-weight: 600; font-size: 15.5px; margin: 14px 0 5px; }
.shot .meta { display: flex; align-items: center; justify-content: space-between; }
.shot .price { font-weight: 700; }
.shot .rating { color: var(--muted); font-size: 13px; }

/* Hero craft flourish — needle stitches a thread across the top of the mockup */
.flourish { position: absolute; z-index: 0; left: -12px; right: -12px; top: -28px; height: 74px; pointer-events: none; }
.flourish svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* Craft dividers + step cards (home only) */
body.home section { border-top: 2px dashed color-mix(in srgb, var(--accent-soft) 60%, transparent); }
body.home section.band { border-top: 0; margin-top: 0; background: color-mix(in srgb, var(--teal2) 5%, var(--card)); }
body.home .steps { gap: 14px; }
@media (min-width: 720px) {
  body.home .steps { flex-direction: row; }
  body.home .step { flex: 1; flex-direction: column; gap: 10px; }
}
body.home .step {
  background: var(--card); border-radius: var(--radius); padding: 18px;
  border: 1.6px dashed color-mix(in srgb, var(--accent-soft) 55%, var(--line));
}
body.home .step .n { border-radius: 50%; box-shadow: 0 6px 14px rgba(19, 107, 103, .28); }

/* Play-once reveals + hero flourish stitch */
.reveal { opacity: 0; transform: translateY(14px); animation: reveal .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.reveal.d1 { animation-delay: .04s; } .reveal.d2 { animation-delay: .13s; }
.reveal.d3 { animation-delay: .22s; } .reveal.d4 { animation-delay: .31s; }
@keyframes reveal { to { opacity: 1; transform: none; } }
.badge-chip.pop { opacity: 0; transform: scale(.72) translateY(4px); animation: pop .5s cubic-bezier(.2, 1.35, .4, 1) .62s forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }
.thread2 { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.7s cubic-bezier(.62, 0, .28, 1) .5s forwards; }
.needle2 {
  offset-path: path("M6 60 C70 20 150 66 214 40 C270 18 300 56 338 30");
  offset-rotate: auto; offset-distance: 0%;
  animation: sew 1.7s cubic-bezier(.62, 0, .28, 1) .5s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sew { to { offset-distance: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .badge-chip.pop { animation: none; opacity: 1; transform: none; }
  .thread2 { animation: none; stroke-dashoffset: 0; }
  .needle2 { animation: none; offset-distance: 100%; }
}
