/* Forkleaf site styles. No external dependencies. */
:root {
  color-scheme: light dark;
  --canvas: #faf8f3;
  --surface: #ffffff;
  --soft: #eef3ec;
  --ink: #1c1f1b;
  --muted: #555b53;
  --line: #e4e2da;
  --accent: #2f6b3a;
  --accent-ink: #ffffff;
  --deep: #134d3b;
  --leaf: #c6e5a3;
  --cream: #f5f1e8;
  --shadow: 0 1px 2px rgb(28 31 27 / 6%), 0 12px 32px -8px rgb(28 31 27 / 18%);
  --shot-shadow: 0 2px 4px rgb(28 31 27 / 8%), 0 30px 60px -20px rgb(19 77 59 / 35%);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 22px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #111412;
    --surface: #1a1e1b;
    --soft: #18231c;
    --ink: #eef0ea;
    --muted: #a9b0a5;
    --line: #2a302b;
    --accent: #8fd19e;
    --accent-ink: #0f2414;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px -8px rgb(0 0 0 / 60%);
    --shot-shadow: 0 2px 4px rgb(0 0 0 / 40%), 0 30px 60px -20px rgb(0 0 0 / 75%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h3 { font-size: 1.125rem; font-weight: 650; letter-spacing: 0; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.9em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--canvas); padding: 0.6rem 1rem; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.9375rem; padding: 0.45rem 0.7rem; border-radius: 999px; }
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav .nav-cta { background: var(--accent); color: var(--accent-ink); font-weight: 600; margin-left: 0.35rem; }
.nav .nav-cta:hover { background: var(--accent); filter: brightness(1.08); }
@media (max-width: 479px) { .nav .nav-hide-sm { display: none; } }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero .wrap { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--accent); letter-spacing: 0.01em; }
.eyebrow::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: currentColor; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); margin-top: 1rem; max-width: 12ch; }
.lede { font-size: clamp(1.125rem, 1.8vw, 1.3rem); color: var(--muted); margin-top: 1.25rem; max-width: 34ch; line-height: 1.5; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.badge-link { display: inline-block; padding: 0; border-radius: 10px; transition: transform 0.2s ease; }
.badge-link:hover { transform: translateY(-1px); }
.badge-link img { height: 54px; width: auto; }
.coming-soon { font-size: 0.9375rem; color: var(--muted); }
.hero-note { margin-top: 1.5rem; font-size: 0.9375rem; color: var(--muted); max-width: 40ch; }
.hero-note strong { color: var(--ink); font-weight: 600; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art::before {
  content: ""; position: absolute; inset: 8% -10% -6% -10%; z-index: -1;
  background:
    radial-gradient(60% 55% at 50% 45%, color-mix(in srgb, var(--leaf) 55%, transparent), transparent 70%);
  filter: blur(8px);
}
@media (prefers-color-scheme: dark) {
  .hero-art::before { background: radial-gradient(60% 55% at 50% 45%, rgb(47 107 58 / 45%), transparent 70%); }
}
.shot {
  width: min(78vw, 340px);
  border-radius: 44px;
  box-shadow: var(--shot-shadow);
  background: var(--surface);
  outline: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  outline-offset: -1px;
}
.shot picture, .shot img { border-radius: inherit; }
/* Light-only screenshots are dimmed slightly on dark pages to avoid glare. */
@media (prefers-color-scheme: dark) { .shot.light-only img { filter: brightness(0.88); } }
.hero-art .shot-back {
  display: none;
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; }
  .hero-art { min-height: 640px; }
  .hero-art .shot-front { position: relative; z-index: 2; transform: translateX(-20%); }
  .hero-art .shot-back {
    display: block; position: absolute; z-index: 1; width: 280px; right: -6%; top: 12%;
    transform: rotate(5deg);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .rise-2 { animation-delay: 0.12s; }
  .rise-3 { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}

/* Sections */
section { scroll-margin-top: 72px; }
.band { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.band + .band { border-top: 1px solid var(--line); }
.section-head { max-width: 40rem; }
.kicker { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-top: 0.75rem; }
.section-head p { color: var(--muted); margin-top: 1rem; font-size: 1.125rem; max-width: 52ch; }

.feature { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.feature .shot { margin-inline: auto; width: min(78vw, 320px); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature.flip .feature-media { order: -1; }
}

.cards { display: grid; gap: 0.875rem; margin-top: 2rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.35rem; box-shadow: 0 1px 2px rgb(0 0 0 / 3%);
}
.card h3 { display: flex; align-items: center; gap: 0.6rem; }
.card p { color: var(--muted); margin-top: 0.4rem; font-size: 1rem; }
.dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; flex: none; }
.dot-vegan { background: var(--accent); }
.dot-made { background: transparent; border: 2.5px solid var(--accent); }
.dot-ask { background: #b7791f; }
@media (prefers-color-scheme: dark) { .dot-ask { background: #e6b566; } }
.fine { margin-top: 1.25rem; font-size: 0.9375rem; color: var(--muted); }

.list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.list li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.75rem; align-items: start; }
.list svg { width: 1.6rem; height: 1.6rem; color: var(--accent); margin-top: 0.1rem; }
.list strong { display: block; font-weight: 650; }
.list span { color: var(--muted); font-size: 1rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.chips li {
  font-size: 0.9375rem; font-weight: 600; padding: 0.45rem 0.95rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.chips li:first-child { background: var(--deep); border-color: var(--deep); color: #fff; }

/* Coverage */
.coverage { display: grid; gap: 1rem; margin-top: 2.25rem; }
@media (min-width: 720px) { .coverage { grid-template-columns: repeat(3, 1fr); } }
.place-card {
  border-radius: var(--radius); padding: 1.6rem; background: var(--soft);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
}
.place-card .city { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; }
.place-card .state { color: var(--muted); font-size: 0.9375rem; margin-top: 0.15rem; }
.place-card.note { background: var(--surface); border-color: var(--line); }
.place-card.note p { color: var(--muted); font-size: 1rem; }
.place-card.note p + p { margin-top: 0.6rem; }

/* Safety callout */
.safety {
  border-radius: 28px; padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--deep); color: #f5f1e8;
  display: grid; gap: 1.25rem;
}
.safety h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: #fff; }
.safety p { color: #dfe8dc; max-width: 62ch; font-size: 1.0625rem; }
.safety .safety-icon { width: 44px; height: 44px; color: var(--leaf); }
@media (min-width: 900px) {
  .safety { grid-template-columns: 0.9fr 1.1fr; column-gap: 3rem; align-items: center; padding: 3.5rem; }
  .safety .safety-icon { grid-column: 1; }
  .safety h2 { grid-column: 1; }
  .safety p { grid-column: 2; grid-row: 1 / span 2; font-size: 1.125rem; }
}
@media (prefers-color-scheme: dark) {
  .safety { background: #163a2b; outline: 1px solid #24503d; }
}

/* Closing CTA */
.closing { text-align: center; padding: clamp(4rem, 9vw, 7.5rem) 0; }
.closing img.app-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto; box-shadow: var(--shadow); }
.closing h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: 1.5rem; }
.closing p { color: var(--muted); margin: 0.9rem auto 0; max-width: 48ch; font-size: 1.125rem; }
.closing .cta-row { justify-content: center; }
.closing .coming-soon { margin: 0; max-width: none; font-size: 0.9375rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.25rem 0 2.75rem; font-size: 0.875rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; align-items: center; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* Document pages (support, privacy, crawler, 404) */
.doc { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(2.3rem, 5vw, 3.2rem); }
.doc .intro { font-size: 1.1875rem; color: var(--muted); margin-top: 1rem; line-height: 1.55; }
.doc h2 { font-size: clamp(1.45rem, 2.6vw, 1.75rem); margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.doc p, .doc ul { margin-top: 1rem; }
.doc ul { padding-left: 1.25rem; }
.doc li + li { margin-top: 0.5rem; }
.doc .qa { margin-top: 1.25rem; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.doc .qa p { margin: 0; }
.doc .callout { margin-top: 2rem; padding: 1.25rem 1.35rem; border-radius: 18px; background: var(--soft); border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); }
.doc .callout p { margin: 0; }
.doc .callout p + p { margin-top: 0.75rem; }
.doc .meta { margin-top: 2.5rem; font-size: 0.9375rem; color: var(--muted); }
pre {
  margin: 1rem 0 0; padding: 1rem 1.15rem; border-radius: 14px; overflow-x: auto;
  background: var(--surface); border: 1px solid var(--line);
  font: 0.9375rem/1.55 var(--mono);
}
.doc p code, .doc li code { background: var(--soft); padding: 0.1em 0.35em; border-radius: 6px; overflow-wrap: anywhere; }
.facts { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.facts div { padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.facts dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0.35rem 0 0; }
.facts dd code { overflow-wrap: anywhere; }

.notfound { text-align: center; padding: clamp(4rem, 12vw, 9rem) 0; }
.notfound img { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto; }
.notfound h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-top: 1.5rem; }
.notfound p { color: var(--muted); margin-top: 0.9rem; }
.button {
  display: inline-block; margin-top: 1.75rem; padding: 0.75rem 1.3rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600;
}

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