/* Hallmark · tokens · theme: custom (vibe: "quiet house, loud products" · paper oklch(96.5% 0.009 80) · accent oklch(52% 0.17 33) vermilion · Bricolage Grotesque + Newsreader)
 * axes: light / geometric-sans display / warm accent
 * Product colour comes from the real app icons in public/img/, never from tokens here.
 */

@font-face {
  font-family: "Bricolage Grotesque Variable";
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader Variable";
  src: url("/fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader Variable";
  src: url("/fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* DSG house palette: warm paper, warm ink, one vermilion accent kept under 5% of any view. */
  --color-paper: oklch(96.5% 0.009 80);
  --color-paper-2: oklch(93.5% 0.012 80);
  --color-ink: oklch(21% 0.012 55);
  --color-ink-2: oklch(42% 0.012 55);
  --color-rule: oklch(85% 0.012 75);
  --color-rule-strong: oklch(70% 0.012 70);
  --color-accent: oklch(52% 0.17 33);
  --color-accent-ink: oklch(45% 0.16 33);
  --color-on-ink: oklch(96.5% 0.009 80);
  --color-on-ink-2: oklch(80% 0.01 75);
  --color-focus: oklch(52% 0.17 33);
  --color-tile-edge: oklch(21% 0.012 55 / 0.08);
  --color-tile-shadow: oklch(21% 0.012 55 / 0.35);

  --font-display: "Bricolage Grotesque Variable", "Avenir Next", system-ui, sans-serif;
  --font-body: "Newsreader Variable", "Iowan Old Style", Georgia, serif;

  /* Type scale */
  --text-sm: 0.9375rem;
  --text-base: 1.1875rem;
  --text-lg: 1.375rem;
  --text-xl: clamp(1.5rem, 1vw + 1.2rem, 1.875rem);
  --text-2xl: clamp(2.25rem, 3vw + 1.25rem, 3.75rem);
  --text-display: clamp(2.75rem, 5.5vw + 1rem, 5.75rem);
  --text-mail: clamp(1.75rem, 5.2vw + 0.5rem, 5rem);

  /* 4pt spacing scale */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 7rem;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --measure: 34rem;
  --page-max: 78rem;

  --radius-chip: 999px;
  --rule-hair: 1px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-short: 140ms;
  --dur-med: 240ms;
}
