/* ==========================================================================
   DESIGN TOKENS — The Bureau's stationery cupboard
   ========================================================================== */
@font-face { font-family: 'Fraunces'; src: url('../assets/fonts/fraunces-latin.woff2') format('woff2'); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../assets/fonts/fraunces-italic-latin.woff2') format('woff2'); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../assets/fonts/dmsans-latin.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../assets/fonts/plexmono-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../assets/fonts/plexmono-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../assets/fonts/plexmono-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* primary palette (exact) */
  --paper: #F5EBDD;
  --terracotta: #D86B45;
  --ochre: #E7BB68;
  --ink: #273C4A;
  --sage: #8C9B7B;

  /* supporting tones derived from the palette */
  --paper-hi: #FBF6EE;
  --paper-2: #EFE2CE;
  --paper-3: #E4D3B8;
  --terracotta-deep: #B4532F;
  --terracotta-soft: #F3A985;
  --ochre-deep: #C99A45;
  --ochre-soft: #F3D9A4;
  --ink-soft: #4A5C68;
  --ink-60: rgba(39, 60, 74, .6);
  --ink-20: rgba(39, 60, 74, .2);
  --ink-10: rgba(39, 60, 74, .1);
  --sage-deep: #6F7E60;
  --sage-light: #B5BFA6;
  --kraft: #C9A57A;
  --kraft-deep: #A9845A;
  --manila: #EBCF95;
  --night: #141E26;
  --night-2: #1E2A33;
  --candle: #FFD27A;

  /* type */
  --f-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --f-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* motion */
  --t-micro: 140ms;
  --t-impact: 340ms;
  --t-major: 750ms;
  --e-paper: cubic-bezier(.22, .8, .24, 1);
  --e-press: cubic-bezier(.3, .7, .4, 1);
  --e-settle: cubic-bezier(.3, 1.45, .5, 1);

  /* paper & shadow system — one light source, top-left */
  --shadow-paper: 0 1px 0 rgba(39, 60, 74, .05), 0 2px 5px -1px rgba(39, 60, 74, .16), 0 14px 28px -14px rgba(39, 60, 74, .42);
  --shadow-lift: 0 2px 6px -1px rgba(39, 60, 74, .2), 0 26px 48px -18px rgba(39, 60, 74, .5);
  --shadow-print: 3px 3px 0 var(--ink);

  /* materials — pre-baked textures (cheap to composite on mid-range phones) */
  --distress: url('../assets/textures/distress.png');
  --noise: url('../assets/textures/grain.png');
  --fibres: repeating-linear-gradient(90deg, rgba(110, 72, 36, .06) 0 1px, transparent 1px 9px), repeating-linear-gradient(0deg, rgba(255, 245, 225, .06) 0 1px, transparent 1px 13px);

  /* layout */
  --hud-h: 54px;
  --top: calc(var(--hud-h) + env(safe-area-inset-top, 0px));
  --gutter: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
