/* Hallmark tokens · theme Rim (deal 2/3), app scope · day colourway derived for light mode, night is the theme's own
 * Faces: Hanken Grotesk (OFL) stands in for Switzer, Geist Mono (OFL) for measurements. Files in fonts/, licences in VENDORED.md. */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin.1f21c6eaa0.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: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin-ext.a1376a5637.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/geist-mono-latin.5f3d6ad60f.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: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/geist-mono-latin-ext.745994b5cd.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  /* app scale, ratio 1.2 from a 16px body */
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.2rem; --text-xl: 1.44rem; --text-2xl: 1.728rem; --text-3xl: 2.074rem;
  --text-display: 1.728rem; --text-section: 1.2rem; --text-title: 1rem; --text-figure: 2.074rem;
  --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-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --container: 1280px; --gutter: 40px; --gap-columns: 24px;
  --control-h: 36px; --control-h-sm: 30px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --font-display: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif; --font-body: var(--font-display);
  --font-outlier: "Geist Mono", ui-monospace, monospace;
  --radius-card: 0; --radius-pill: 0; --rule-hair: 1px; --shadow-card: none;
  --tracking-display: -0.02em; --display-weight: 500;

  /* Rim, day: warm grey paper, near-black ink, the same orange signal and sky-blue second */
  --color-paper: oklch(96.5% 0.007 75); --color-paper-2: oklch(93.6% 0.009 75); --color-paper-3: oklch(90.6% 0.010 75);
  --color-ink: oklch(19% 0.012 75); --color-ink-2: oklch(30% 0.012 75); --color-muted: oklch(45% 0.012 78); --color-muted-2: oklch(62% 0.010 78);
  --color-rule: oklch(84% 0.010 78); --color-rule-2: oklch(89.5% 0.009 78);
  --color-accent: oklch(64% 0.175 45); --color-accent-ink: oklch(15% 0.02 45); --color-accent-text: oklch(50% 0.16 45);
  --color-accent-2: oklch(55% 0.13 250); --color-accent-2-wash: oklch(91% 0.03 250);
  --color-focus: oklch(56% 0.19 45);
  --color-error: oklch(50% 0.18 27); --color-success: oklch(48% 0.12 150);
  --color-scrim: oklch(19% 0.012 75 / 0.45);
  /* QR codes stay dark-on-light in both modes so phones can scan them */
  --color-qr-light: oklch(98% 0.004 75); --color-qr-dark: oklch(15% 0.01 75);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Rim, night: the theme's own colourway */
    --color-paper: oklch(9% 0.008 75); --color-paper-2: oklch(12.5% 0.009 75); --color-paper-3: oklch(15.5% 0.010 75);
    --color-ink: oklch(94% 0.010 80); --color-ink-2: oklch(84% 0.011 80); --color-muted: oklch(68% 0.012 80); --color-muted-2: oklch(50% 0.010 80);
    --color-rule: oklch(25% 0.010 78); --color-rule-2: oklch(17% 0.009 78);
    --color-accent: oklch(72% 0.17 45); --color-accent-ink: oklch(10% 0.02 45); --color-accent-text: oklch(76% 0.15 45);
    --color-accent-2: oklch(74% 0.12 250); --color-accent-2-wash: oklch(22% 0.04 250);
    --color-focus: oklch(78% 0.15 45);
    --color-error: oklch(72% 0.15 27); --color-success: oklch(76% 0.13 150);
    --color-scrim: oklch(4% 0.008 75 / 0.6);
  }
}

@media (max-width: 60rem) { :root { --gutter: 24px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --gap-columns: 16px; --control-h: 44px; --control-h-sm: 40px; } }
