/* Colours are the app's own tokens (App/Resources/Assets.xcassets/Colors), light and dark. */
:root {
  --ink: #1C1A17;
  --paper: #FAF7F0;
  --panel: #F0EAE0;
  --raised: #FFFFFF;
  --primary: #8A287D;
  --rule: #D8D2C4;
  --text-secondary: #5B564C;
  --measure: 66ch;
  --gutter: 20px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F3EFE6;
    --paper: #15130F;
    --panel: #1E1B16;
    --raised: #262219;
    --primary: #C567B6;
    --rule: #3A352A;
    --text-secondary: #BDB6A6;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
}
a { color: var(--primary); text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
h1, h2 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--raised); padding: 12px 16px; }
.skip:focus { left: var(--gutter); top: 8px; }

.top, main, .foot { max-width: 1040px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; text-decoration: none; }
.top nav, .foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.top nav a, .foot nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* Home: the claim on the left, the label panel on the right; stacked on a phone. */
.hero { display: grid; gap: 32px; padding: 24px 0 40px; }
.status { display: inline-block; margin: 0 0 16px; padding: 4px 10px; border: 1.5px solid var(--ink); border-radius: 999px; font: 600 0.8125rem/1.4 var(--mono); }
.hero h1 { font-size: clamp(2.125rem, 7.2vw, 3.75rem); font-weight: 800; text-wrap: balance; }
.lede { margin: 20px 0 0; max-width: 34em; font-size: 1.1875rem; color: var(--text-secondary); }

/* The signature: privacy set out as the printed nutrition panel the app is built around. */
.facts { background: var(--raised); border: 2px solid var(--ink); border-radius: 16px; padding: 18px 18px 14px; align-self: start; }
.facts h2 { font-size: 2rem; font-weight: 900; padding-bottom: 6px; }
.facts-serving { margin: 0; padding-bottom: 8px; border-bottom: 10px solid var(--ink); font-size: 0.9375rem; color: var(--text-secondary); }
.facts dl { margin: 0; }
.facts-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.facts-row dt { font-weight: 500; }
.facts-row dd { margin: 0; font: 700 1.0625rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.facts-major { border-bottom: 0; padding-bottom: 6px; }
.facts-major dt { font-weight: 800; font-size: 1.1875rem; }
.facts-major dd { font-size: 1.375rem; color: var(--primary); }
.tape { position: relative; height: 12px; margin: 0 0 10px; border-radius: 999px; background: var(--panel); border-bottom: 0; }
.tape-fill { position: absolute; inset: 0; border-radius: 999px; background: var(--primary); transform-origin: left; animation: fill 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.tape-pin { position: absolute; right: -1px; top: -7px; width: 3px; height: 26px; border-radius: 2px; background: var(--ink); }
.facts-note { margin: 12px 0 0; padding-top: 10px; border-top: 5px solid var(--ink); font-size: 0.875rem; color: var(--text-secondary); }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .tape-fill { animation: none; } }

.plain { max-width: var(--measure); padding: 28px 0; border-top: 1px solid var(--rule); }
.plain h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; }
.does { margin: 0 0 1em; padding: 0; list-style: none; }
.does li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.does li:last-child { border-bottom: 0; }

/* Policy and support: one readable column. */
.doc { max-width: var(--measure); padding: 24px 0 8px; overflow-wrap: anywhere; }
.doc h1 { font-size: clamp(2rem, 6vw, 2.75rem); font-weight: 800; padding-bottom: 12px; border-bottom: 10px solid var(--ink); }
.doc h2 { font-size: 1.3125rem; font-weight: 800; margin: 2em 0 0.6em; scroll-margin-top: 16px; }
.updated { margin-top: 14px; color: var(--text-secondary); }
.site-note { margin: 24px 0; padding: 4px 18px 6px; background: var(--panel); border-radius: 16px; }
.site-note h2 { margin-top: 1em; }

.foot { margin-top: 40px; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--rule); font-size: 0.9375rem; color: var(--text-secondary); }
.foot p { margin-bottom: 4px; }
.marks { margin-top: 12px; font-size: 0.8125rem; }

@media (min-width: 860px) {
  :root { --gutter: 32px; }
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); gap: 56px; align-items: center; padding: 48px 0 64px; }
}
