@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  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: "Archivo";
  src: url("/fonts/archivo-latin-ext-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2248, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* tokens:light */
  --paper: #F8F0E8;
  --paper-2: #EFE2D6;
  --surface: #FFF9F4;
  --on-paper: #211916;
  --soft-on-paper: #6B5D56;
  --ink-field: #211916;
  --on-ink: #F8F0E8;
  --soft-on-ink: #BDAEA5;
  --red: #CC341C;
  --on-red: #FFF9F4;
  --soft-on-red: #FFF3EC;
  --bright: #F04020;
  --on-bright: #120B09;
  --ox: #7A1B0C;
  --on-ox: #F8F0E8;
  --kraft: #D3AD86;
  --on-kraft: #211916;
  --claw: #F04020;
  --claw-dots: #A92B16;
  --app-canvas: #F8F0E8;
  --app-card: #FFFFFF;
  --app-ink: #211916;
  --app-muted: #74665F;
  --app-line: #E8DAD0;
  --app-brand: #CC341C;
  --app-on-brand: #FFFFFF;
  --app-brand-text: #CC341C;
  --app-brand-wash: #FFF0E9;
  --app-mic-on: #F6DCD6;
  --app-dark: #281B17;
  --app-on-dark: #FFFFFF;
  --app-soft-on-dark: #B3A9A6;
  --app-track: #4F4441;
  --protein: #7E72DE;
  --carbs: #4C98DC;
  --fat: #DC9B37;
  /* end tokens */

  --m: clamp(16px, 2.2vw, 32px);
  --gap: clamp(12px, 1.6vw, 24px);
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-h2: clamp(2.5rem, 1.4rem + 3.4vw, 4.5rem);
  --step-head: clamp(2.5rem, 1.2rem + 3.6vw, 4rem);
  --step-display: clamp(3.25rem, 0.5rem + 6vw, 5.75rem);
  --step-poster: clamp(3.5rem, 0.6rem + 9.4vw, 9.25rem);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-fill: cubic-bezier(.37, 0, .63, 1);
  --ease-grab: cubic-bezier(.5, 0, .2, 1.25);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* tokens:dark */
    --paper: #281B17;
    --paper-2: #33241F;
    --surface: #3C2B25;
    --on-paper: #F8F0E8;
    --soft-on-paper: #B9A79D;
    --ink-field: #120B09;
    --on-ink: #F8F0E8;
    --soft-on-ink: #BDAEA5;
    --red: #A92B16;
    --on-red: #F8F0E8;
    --soft-on-red: #FFD9CC;
    --bright: #E8401F;
    --on-bright: #120B09;
    --ox: #4D150B;
    --on-ox: #F8F0E8;
    --kraft: #B98F67;
    --on-kraft: #120B09;
    --claw: #F04020;
    --claw-dots: #B8301A;
    --app-canvas: #171110;
    --app-card: #221A18;
    --app-ink: #F8F0E8;
    --app-muted: #B3A69E;
    --app-line: #3A2E2A;
    --app-brand: #CC341C;
    --app-on-brand: #FFFFFF;
    --app-brand-text: #FF7A5E;
    --app-brand-wash: #3D1A14;
    --app-mic-on: #4A1D15;
    --app-dark: #2E2420;
    --app-on-dark: #FFFFFF;
    --app-soft-on-dark: #B5ABA8;
    --app-track: #544A46;
    --protein: #A99FF2;
    --carbs: #7DBBF0;
    --fat: #EBB660;
    /* end tokens */
  }
}

@media (max-width: 760px) {
  :root { --step-display: 9.2vw; --step-head: 8.8vw; --step-poster: 13vw; --step-h2: 10.4vw; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--on-paper);
  font-family: "Archivo", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; touch-action: manipulation; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: inherit; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.mark {
  display: inline-block; width: 1em; aspect-ratio: 859 / 823;
  background: currentColor;
  -webkit-mask: url("/img/mark-red.png") center / contain no-repeat;
  mask: url("/img/mark-red.png") center / contain no-repeat;
}

/* ---------- Header ---------- */
.masthead { position: relative; z-index: 3; display: grid; grid-template-columns: auto 1fr; min-height: 56px; }
.wordmark {
  display: flex; align-items: center; gap: 10px;
  padding: 0 var(--m);
  background: var(--ink-field); color: var(--on-ink); text-decoration: none;
  font-stretch: 70%; font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.005em;
}
.wordmark .mark { width: 34px; color: var(--claw); }
.tab {
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px);
  width: min(100%, calc(42vw - 160px)); min-width: max-content;
  padding: 0 var(--m);
  background: var(--red); color: var(--on-red);
}
.tab a { text-decoration: none; font-weight: 500; padding: 14px 10px; margin: 0 -10px; }
.masthead a:focus-visible { outline-offset: -6px; }
.tab a:hover, .tab a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* ---------- Policy pages and 404: one readable column ---------- */
.page { padding: clamp(48px, 9vh, 112px) var(--m) clamp(64px, 11vh, 136px); }
.prose { max-width: 40rem; margin: 0 auto; line-height: 1.6; }
.prose h1 { font-size: var(--step-h2); font-stretch: 72%; font-weight: 800; letter-spacing: -0.012em; line-height: 0.96; margin-bottom: 0.6em; text-wrap: balance; }
.prose h2 { font-size: var(--step-lead); font-weight: 700; line-height: 1.2; margin: 2.2em 0 0.6em; text-wrap: balance; }
.prose h3 { font-size: var(--step-body); font-weight: 700; line-height: 1.3; margin: 1.8em 0 0.5em; text-wrap: balance; }
.prose p, .prose ul, .prose ol { margin-bottom: 1em; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--app-brand-text); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { font-weight: 700; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 0.9em; line-height: 1.45; }
.prose th, .prose td { padding: 0.55em 0.8em; border: 1px solid var(--app-line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface); font-weight: 700; }
.draft-marker { max-width: 40rem; margin: 0 auto 2rem; padding: 0.75rem 1rem; border: 1px solid var(--red); background: var(--app-brand-wash); font-weight: 600; }

/* ---------- Footer: tiles ---------- */
.site-foot { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; padding: 8px; background: var(--paper); }
.site-foot > * { padding: 24px; min-width: 0; }
.ft-state { grid-column: 1 / 5; min-height: 220px; background: var(--paper-2); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.ft-state p:first-child { font-size: var(--step-lead); line-height: 1.3; font-weight: 500; }
.ft-state .legal { font-size: var(--step-small); color: var(--soft-on-paper); }
.ft-nav { grid-column: 5 / 8; background: var(--ink-field); color: var(--on-ink); }
.ft-nav ul { display: grid; gap: 10px; }
.ft-nav a { display: inline-block; padding-block: 5px; margin-block: -5px; text-underline-offset: 3px; }
/* The claw red lifted just enough to clear 4.5:1 on both inks: 4.81:1 light, 5.42:1 dark. */
.ft-nav a:hover { color: #F24C2A; }
.ft-credit { grid-column: 8 / 10; background: var(--paper-2); font-size: var(--step-small); color: var(--soft-on-paper); line-height: 1.45; }
.ft-mail { grid-column: 10 / 13; background: var(--ox); color: var(--on-ox); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.no-credit .ft-mail { grid-column: 8 / 13; }
.ft-mail a { font-size: var(--step-lead); font-weight: 600; overflow-wrap: anywhere; text-underline-offset: 4px; }
.ft-name { grid-column: 1 / 9; min-height: 300px; background: var(--ink-field); color: var(--on-ink); display: flex; align-items: center; justify-content: center; font-size: var(--step-poster); font-stretch: 66%; font-weight: 800; letter-spacing: -0.02em; line-height: 0.9; }
.ft-go { grid-column: 9 / 13; min-height: 300px; background: var(--red); color: var(--on-red); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; transition: background-color .2s ease, color .2s ease; }
.ft-go b { font-size: var(--step-lead); font-weight: 700; }
.ft-go-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.or-mail { font-size: var(--step-small); }
.ft-go svg { flex: none; width: 64px; height: 64px; transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .ft-go:hover svg { transform: translate(6px, -6px); }
  .ft-go:hover { background: var(--bright); color: var(--on-bright); }
}
.ft-go:active svg { transform: scale(.94); }
@media (prefers-reduced-motion: reduce) { .ft-go:hover svg, .ft-go:active svg { transform: none; } }
.ft-go:focus-visible { outline-color: var(--on-paper); }
/* Phones show the beta tile above the footer links, so a copy leads the DOM there and tab order follows what is seen (WCAG 2.4.3). */
.ft-go-lead { display: none; }

@media (max-width: 1100px) {
  .ft-state { grid-column: 1 / 7; } .ft-nav { grid-column: 7 / 13; }
  .ft-credit { grid-column: 1 / 9; } .ft-mail { grid-column: 9 / 13; }
  .no-credit .ft-mail { grid-column: 1 / 13; }
  .ft-name { grid-column: 1 / 9; min-height: 220px; } .ft-go { grid-column: 9 / 13; min-height: 220px; }
}
@media (max-width: 760px) {
  .masthead { min-height: 52px; }
  .wordmark { padding: 0 14px 0 var(--m); }
  .wordmark .mark { width: 28px; }
  .tab { width: auto; min-width: 0; flex-wrap: wrap; justify-content: flex-end; gap: 20px; }

  .site-foot { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
  .ft-name { grid-column: 1 / 3; grid-row: 1; min-height: 160px; font-size: 20vw; }
  .ft-go { grid-column: 1 / 3; grid-row: 2; min-height: 180px; }
  .ft-go-lead { display: flex; }
  .ft-go-end { display: none; }
  .ft-nav, .ft-mail, .ft-credit, .ft-state, .no-credit .ft-mail { grid-column: 1 / 3; }
  .ft-state { min-height: 0; }
}
