/* NourishScope shared design tokens (owned by builder A). Link on every page:
   <link rel="stylesheet" href="tokens.css">  Use var(--name); never hardcode colours. */
@font-face{font-family:"Fraunces";src:url("fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations"),url("fonts/fraunces-latin-wght-normal.woff2") format("woff2");font-weight:300 900;font-style:normal;font-display:swap}
@font-face{font-family:"Fraunces";src:url("fonts/fraunces-latin-wght-italic.woff2") format("woff2-variations"),url("fonts/fraunces-latin-wght-italic.woff2") format("woff2");font-weight:300 900;font-style:italic;font-display:swap}
@font-face{font-family:"Inter";src:url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),url("fonts/inter-latin-wght-normal.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}

:root{
  color-scheme:light dark;
  /* colour */
  --bg:#F6F4EF; --surface:#FFFFFF; --surface-2:#EEEBE4;
  --ink:#1E2526; --ink-muted:#5E6663; --line:#DAD6CE;
  --accent:#34465E; --accent-ink:#FFFFFF; --accent-soft:#E3E8EF;
  --warm:#B5653A; --warm-soft:#F4E6DC;
  --warm-ink:#9A4F28; /* warm TEXT and warm backgrounds behind white text: >=4.5:1 on --surface, --warm-soft, and with white */
  --band-bg:#1E2526; --band-ink:#ECEAE4; --band-muted:#A3ABA8; /* one full-bleed contrast band per page */
  --success:#2F6B4F; --danger:#A3261B; --focus:#B5653A;
  --shadow-card:0 1px 2px rgb(0 0 0 / .06),0 12px 32px -12px rgb(30 37 38 / .18);
  --card-border:transparent;
  /* type */
  --font-display:"Fraunces",Georgia,"Times New Roman",serif;
  --font-sans:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --font-mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --fs-h1:clamp(40px,6vw,72px); --lh-h1:1.05; --ls-h1:-0.03em;
  --fs-h2:clamp(30px,4vw,48px); --lh-h2:1.1;
  --fs-h3:20px; --lh-h3:1.3;
  --fs-body:17px; --lh-body:1.6;
  --fs-small:14px; --lh-small:1.5;
  --fs-eyebrow:12px; --ls-eyebrow:.12em;
  /* spacing (4px scale) */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px; --s7:48px; --s8:64px; --s9:96px; --s10:128px;
  /* radius */
  --r-sm:8px; --r-md:14px; --r-pill:999px;
  /* layout */
  --container:min(1200px,100% - 48px);
  --tap:48px;
}
@media (max-width:640px){:root{--container:calc(100% - 40px)}}

@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#111416; --surface:#1A1F22; --surface-2:#232A2E;
    --ink:#ECEAE4; --ink-muted:#A3ABA8; --line:#2E363A;
    --accent:#9DB4D3; --accent-ink:#0F1418; --accent-soft:#1F2A36;
    --warm:#E0A27C; --warm-soft:#3A2A20; --warm-ink:#E0A27C; --band-bg:#1F2A36; --band-ink:#ECEAE4; --band-muted:#A3ABA8;
    --success:#7FC4A0; --danger:#FF8A7A; --focus:#E0A27C;
    --shadow-card:none; --card-border:var(--line);
  }
}
:root[data-theme="dark"]{
  --bg:#111416; --surface:#1A1F22; --surface-2:#232A2E;
  --ink:#ECEAE4; --ink-muted:#A3ABA8; --line:#2E363A;
  --accent:#9DB4D3; --accent-ink:#0F1418; --accent-soft:#1F2A36;
  --warm:#E0A27C; --warm-soft:#3A2A20; --warm-ink:#E0A27C; --band-bg:#1F2A36; --band-ink:#ECEAE4; --band-muted:#A3ABA8;
  --success:#7FC4A0; --danger:#FF8A7A; --focus:#E0A27C;
  --shadow-card:none; --card-border:var(--line);
}
