/* Leanward site. Brand palette from docs/BRAND.md in the app repository.
   Sora is self-hosted (OFL, from Google Fonts), so no request leaves this site. */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/sora-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: "Sora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/sora-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;
}

:root {
  color-scheme: light dark;
  --ink: #0A1A17;
  --mint: #3BD2AC;
  --deep-mint: #0F7A63;
  --ember: #FF7A45;
  --paper: #FBFAF8;

  --bg: var(--paper);
  --surface: #F1EFEA;
  --text: var(--ink);
  --muted: #4A5552;
  --line: #DDD9D1;
  --accent: var(--deep-mint);
  --accent-soft: #E3F1EC;
  --ring: var(--deep-mint);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --surface: #132723;
    --text: #F1EFEA;
    --muted: #A9B6B2;
    --line: #25403A;
    --accent: var(--mint);
    --accent-soft: #143A31;
    --ring: var(--mint);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: 46rem; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 68rem; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 4px 8px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 16px; padding-bottom: 16px;
}
.brand { display: inline-flex; color: var(--text); line-height: 0; }
.wordmark { height: 22px; width: auto; }
.wordmark .letters { fill: currentColor; }
.wordmark .dot { fill: var(--ember); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 0.9rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { font-weight: 600; }
.site-nav .lang {
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px;
  font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--text);
}

/* Type */
main { padding: 40px 0 64px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.4rem); margin: 0 0 8px; font-weight: 700; }
h2 { font-size: 1.3rem; margin: 48px 0 12px; font-weight: 650; scroll-margin-top: 16px; }
h3 { font-size: 1.05rem; margin: 28px 0 8px; font-weight: 600; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 6px; }
.lede { color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; }
.meta { color: var(--muted); font-size: 0.875rem; }
small, .small { font-size: 0.875rem; }
code { font-size: 0.9em; }

/* Plain-words box and notes */
.summary {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 20px 22px 8px;
  margin: 0 0 32px;
}
.summary h2 { margin-top: 0; font-size: 1.1rem; }
.note {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 4px; margin: 20px 0;
}
.placeholder { background: #FFE9DF; color: #7A2E0E; padding: 0 4px; border-radius: 4px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .placeholder { background: #4A2616; color: #FFD2BF; } }

/* Contents */
.toc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0 6px; margin-bottom: 8px; }
.toc ol { columns: 2 16rem; column-gap: 32px; margin: 0; }
.toc li { break-inside: avoid; }

/* Tables scroll inside their own box, never the page */
.table-scroll { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.9rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--surface); font-weight: 600; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
details[open] summary { margin-bottom: 10px; }
details > :last-child { margin-bottom: 4px; }

/* Landing */
.hero { display: grid; gap: 32px; align-items: center; padding: 24px 0 8px; }
.hero-mark { width: 88px; height: 88px; }
.hero-mark .path-stroke { stroke: var(--ring); }
.hero-mark .path-fill { fill: var(--ring); }
.hero-mark .goal { fill: var(--ember); }
.hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); max-width: 18ch; }
.hero .lede { font-size: 1.15rem; max-width: 36rem; }
.badge {
  display: inline-block; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 0.95rem;
}
.promises { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 48px 0; padding: 0; list-style: none; }
.promises li { background: var(--surface); border-radius: 16px; padding: 22px 22px 8px; margin: 0; }
.promises h2 { font-size: 1.1rem; margin: 0 0 8px; }
.promises .num { display: block; color: var(--accent); font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; letter-spacing: 0.06em; }
.shots { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 8px; }
.shot {
  aspect-ratio: 9 / 19.5; border-radius: 28px; border: 2px dashed var(--line);
  display: grid; place-items: center; color: var(--muted); font-size: 0.85rem; text-align: center; padding: 12px;
}
@media (max-width: 520px) {
  .shots { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shot { scroll-snap-align: start; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer a { color: var(--muted); }

@media print {
  .site-header nav, .site-footer nav, .skip { display: none; }
  body { background: #fff; color: #000; }
  .summary { background: none; }
}
.note > h2:first-child { margin-top: 0; }
