/* Foundation: direction B "Nuno" (docs/design/prototype-b). Tokens, fonts and
   the base reset. Components consume the semantic tokens at the bottom. */

@font-face {
  font-family: Figtree;
  src: url("/assets/figtree-7367b47d.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/bricolage-grotesque-3084aa15.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* Palette: night ink, suit white-grey, visor peach, muted teal. */
  --ink-950: #0b0f1c;
  --ink-900: #10162a;
  --ink-850: #151c33;
  --ink-800: #1a223c;
  --ink-700: #232c49;
  --ink-600: #2f3958;
  --suit-50: #eef1f6;
  --suit-200: #c9d0dc;
  --suit-400: #98a3b8;
  --peach-300: #f8c7a8;
  --peach-400: #f4a97f;
  --peach-500: #e8936a;
  --peach-900: #3b2a26;
  --on-peach: #2b1609;
  --teal-400: #7fc3b3;
  --teal-900: #17352f;
  --danger: #f2a0a0;
  --danger-surface: color-mix(in srgb, var(--danger) 10%, var(--ink-850));
  --scrim: rgb(4 6 14 / 60%);
  --shadow-float: 0 12px 30px rgb(3 6 14 / 55%);

  /* Type */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.375rem;

  /* Spacing */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.25rem;
  --s6: 1.5rem;
  --s8: 2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;

  /* Radii */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-sheet: 28px;
  --r-pill: 999px;

  /* Layout widths */
  --tap: 2.75rem;
  --dock-h: 4.5rem;
  --rail-w: 5.5rem;
  --list-w: 25rem;
  --sheet-w: 27.5rem;
  --content-max: 40rem;

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* Safe areas */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  /* Semantic tokens: what components consume. */
  --surface-page: var(--ink-900);
  --surface-rail: var(--ink-950);
  --surface-raised: var(--ink-800);
  --surface-sheet: var(--ink-850);
  --surface-pressed: var(--ink-700);
  --surface-pressed-strong: var(--ink-600);
  --border-subtle: var(--ink-700);
  --text-primary: var(--suit-50);
  --text-secondary: var(--suit-200);
  --text-muted: var(--suit-400);
  --accent: var(--peach-400);
  --accent-pressed: var(--peach-500);
  --accent-soft: var(--peach-300);
  --accent-soft-surface: var(--peach-900);
  --on-accent: var(--on-peach);
  --success: var(--teal-400);
  --success-surface: var(--teal-900);
  --focus-ring: var(--peach-300);
}
