/* Hallmark · genre: modern-minimal · macrostructure: Map / Diagram · theme: Cobalt · enrichment: none (HTML pipeline map, typography-led) · nav: bordered bar (Cobalt) · footer: Ft2 inline */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R5 V4 */
/* Axes: paper cool-light (L 98.5) · display grotesk-sans · accent electric cobalt (h 256) */

@font-face {
  font-family: "Space Grotesk Variable";
  font-style: normal; font-display: swap; font-weight: 300 700;
  src: url("/fonts/space-grotesk/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fonts/inter/inter-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal; font-display: swap; font-weight: 100 800;
  src: url("/fonts/jetbrains-mono/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  /* colour */
  --color-paper:       oklch(98.5% 0.004 250);
  --color-paper-2:     oklch(96.4% 0.006 252);
  --color-surface:     oklch(99.4% 0.002 250);
  --color-ink:         oklch(24% 0.02 258);
  --color-ink-2:       oklch(34% 0.018 257);
  --color-muted:       oklch(50% 0.016 257);
  --color-rule:        oklch(90.5% 0.008 255);
  --color-rule-2:      oklch(84% 0.012 255);
  --color-accent:      oklch(53% 0.21 258);
  --color-accent-hover:oklch(47% 0.21 258);
  --color-accent-ink:  oklch(98.5% 0.004 250);
  --color-accent-soft: oklch(94% 0.035 256);
  --color-graphite:    oklch(21% 0.016 260);
  --color-graphite-2:  oklch(26% 0.018 260);
  --color-graphite-rule: oklch(34% 0.02 260);
  --color-on-graphite: oklch(93% 0.008 255);
  --color-on-graphite-2: oklch(72% 0.014 256);
  --color-accent-on-graphite: oklch(72% 0.16 255);
  --color-ok:          oklch(55% 0.13 155);
  --color-error:       oklch(52% 0.19 27);
  --color-error-soft:  oklch(95.5% 0.025 27);
  --color-focus:       oklch(53% 0.21 258);

  /* type */
  --font-display: "Space Grotesk Variable", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Inter Variable", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.3125rem;
  --text-xl:   clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --text-2xl:  clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --text-display: clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem);

  /* space · 4pt */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 4.5rem;
  --space-3xl: clamp(5rem, 3rem + 7vw, 8.5rem);

  /* shape */
  --radius-sm: 6px;
  --radius-md: 10px;
  --rule: 1px solid var(--color-rule);

  /* motion */
  --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-fast: 140ms;
  --dur-med:  240ms;
  --dur-slow: 600ms;

  --measure: 62ch;
  --wrap: 1180px;
}
