/* Vet-Flow tokens. Hallmark's shared scale, filled with the brand's own values:
   the paper and blue-ink OKLCH ramps, Frank Ruhl Libre over Heebo, flat paper and 2px controls.
   Every colour and face the stylesheets use is named here, by role. */

/* Identity: Hebrew print rhythm in the display face; the quiet face carries interface and clinical data. */
@font-face {
  font-family: Frank;
  src: url("/fonts/frank-hebrew.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: Frank;
  src: url("/fonts/frank-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: Heebo;
  src: url("/fonts/heebo-hebrew-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: Heebo;
  src: url("/fonts/heebo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212;
}
/* Metric-matched fallbacks keep the swap from shifting the layout (measured on the version 5 build). */
@font-face {
  font-family: "Text fallback";
  src: local("Arial");
  size-adjust: 111.27%;
  ascent-override: 94.17%;
  descent-override: 37.83%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Display fallback";
  src: local("Times New Roman");
  size-adjust: 115.88%;
  ascent-override: 82.59%;
  descent-override: 28.82%;
  line-gap-override: 0%;
}

:root {
  --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;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --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: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --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;

  /* Paper and ink: the warm paper ramp at hue 85, from the version 8 primitives. */
  --color-paper: oklch(0.96 0.011 85);
  --color-paper-2: oklch(0.925 0.016 85);
  --color-paper-3: oklch(0.86 0.018 85);
  --color-sheet: oklch(0.981 0.008 85);
  --color-ink: oklch(0.255 0.009 85);
  --color-ink-2: oklch(0.32 0.01 85);
  --color-muted: oklch(0.49 0.014 85);
  --color-rule: oklch(0.86 0.018 85);
  --color-rule-strong: oklch(0.61 0.017 85);
  /* One blue for the action, the focus ring and nothing else (hue 241, derived from the product). */
  --color-accent: oklch(0.38 0.077 241);
  --color-accent-hover: oklch(0.32 0.058 241);
  --color-accent-ink: oklch(0.981 0.008 85);
  --color-focus: oklch(0.46 0.09 241);
  /* The closing band is the ink itself; its text swaps to paper in the same rule. */
  --color-band: oklch(0.255 0.009 85);
  --color-band-ink: oklch(0.981 0.008 85);
  --color-band-muted: oklch(0.86 0.018 85);
  --color-error: oklch(0.42 0.13 29);
  --color-success: oklch(0.5 0.12 150);

  --font-display: Frank, "Display fallback", ui-serif, serif;
  --font-body: Heebo, "Text fallback", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: var(--font-body);
  --display-weight: 500;
  --tracking-display: -0.02em;

  --radius-card: 0px; --radius-control: 2px; --radius-pill: 999px;
  --rule-hair: 1px; --rule-bracket: 2px; --shadow-card: none;
  --shadow-dialog: 0 1px 2px oklch(0.2 0.01 85 / 0.08);
  --target: 48px;
  --bracket-arm: 28px;
  --masthead-height: 72px;
  /* Running Hebrew text reads one step larger than 16px on wide screens. */
  --text-body: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  /* Compatibility: the unchanged preferences.js writes --accessibility-clearance as
     calc(<dock height> + var(--s-8) + safe area). Without this token that calc is invalid
     and the footer loses its clearance under the floating dock. */
  --s-8: 32px;
}
