/* Design tokens — sampled from the reference's production CSS (see docs/reference-audit.md) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../assets/fonts/inter-latin-wght-normal.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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../assets/fonts/inter-latin-ext-wght-normal.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: "Caveat"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../assets/fonts/caveat-latin-500-normal.woff2) format("woff2"); }

:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;

  --paper: #f1eee9;
  --ink: #141412;
  --ink-muted: #7a756b;
  --accent-red: #e5391f;
  --accent-blue: #1f4fd1;
  --highlight: #ffe14a;
  --paper-shade: #d6cfc2;
  --paper-fold: #e6e0d5;
  --paper-edge: #f3efe7;
  --note: #fbf8f0;
  --note-rule: #6297c747;
  --note-margin: #e5391f59;
  --surface: #fff;
  --figure-ink: var(--ink);
  --hair: #221e1a;
  --hair-sheen: #f1eee9;
  --skin: var(--paper);
  --shirt: #f7f1e4;
  --lens: color-mix(in srgb, var(--accent-blue) 7%, transparent);
  --glint: #ffffffd9;
  --line: color-mix(in srgb, var(--ink) 16%, transparent);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .065 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* layout */
  --col: 38rem;
  --gutter: 1.25rem;
  --section-y: 7rem;

  /* motion */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-reveal: cubic-bezier(.2, .7, .2, 1);
  --ease-swap: cubic-bezier(.6, 0, .2, 1);
  --ease-spring: cubic-bezier(.3, 1.4, .5, 1);
  --ease-leave: cubic-bezier(.4, 0, .7, .2);
  --ease-sheet: cubic-bezier(.65, 0, .2, 1);
  --t-fast: .2s;
  --t-hover: .3s;
  --t-move: .45s;
  --t-image: .7s;

  --shadow-paper: 0 1px 1px #1414120d, 0 14px 28px -16px #14141252;
  --shadow-print: 0 1px 2px #14141214, 0 8px 24px -8px #14141240;
}

html[data-theme="dark"] {
  --paper: #171614;
  --ink: #ece7df;
  --ink-muted: #968f83;
  --accent-red: #ff5b3d;
  --highlight: #ffd60a4d;
  --accent-blue: #7b97ff;
  --paper-shade: #0b0a09;
  --paper-fold: #2b2925;
  --paper-edge: #211f1c;
  --note: #22201c;
  --note-rule: #7ba3d629;
  --note-margin: #ff5b3d61;
  --surface: #2c2a26;
  --figure-ink: #c4baa9;
  --hair: #0a0908;
  --hair-sheen: #c4baa9;
  --skin: #2a2621;
  --shirt: #3b362f;
  --lens: color-mix(in srgb, var(--accent-blue) 12%, transparent);
  --glint: #ffffff8c;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

@media (min-width: 768px) { :root { --gutter: 2rem; } }
