/* Material AI design tokens. Every colour, face, space, size and easing on the page comes from here. */
:root {
  /* Colour: barely-off-white cream paper, green-black ink, forest green as the one accent. */
  --color-paper:      oklch(98.2% 0.006 90);
  --color-paper-2:    oklch(96.2% 0.008 90);
  --color-paper-3:    oklch(93.5% 0.010 90);
  --color-ink:        oklch(21% 0.014 155);
  --color-ink-2:      oklch(38% 0.014 155);
  --color-muted:      oklch(48% 0.014 150);
  --color-rule:       oklch(86% 0.010 100);
  --color-rule-2:     oklch(91% 0.008 95);
  --color-accent:     oklch(42% 0.085 156);
  --color-accent-ink: oklch(98.2% 0.006 90);
  --color-accent-wash: oklch(95.2% 0.028 156);
  --color-focus:      oklch(48% 0.120 156);

  /* Alert: brick red, used only for at-risk and late in the app. Never decorative. */
  --color-alert:      oklch(51% 0.150 32);
  --color-alert-wash: oklch(95.6% 0.022 40);

  /* Type: DM Sans matches the Anova app, with a calmer display weight. */
  --font-display: "DM Sans", ui-sans-serif, sans-serif;
  --font-body:    "DM Sans", ui-sans-serif, sans-serif;
  --weight-display: 650;
  --font-outlier: "Geist Mono", ui-monospace, monospace;

  /* Scale: major third from a 17px body. */
  --text-sm:      0.875rem;
  --text-base:    1.0625rem;
  --text-md:      1.3125rem;
  --text-lg:      1.625rem;
  --text-xl:      2.0625rem;
  --text-2xl:     clamp(2rem, 3vw + 1rem, 3.25rem);
  --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);

  /* Space: 4pt scale. */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;

  --page-gutter: clamp(1rem, 4vw, 4rem);
  --page-max:    92rem;
  --measure:     36rem;

  --rule-hair:  1px;
  --rule-thick: 2px;
  --radius-pill: 999px;
  --radius-card: 6px;

  /* 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);
  --ease-reveal: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long:  420ms;
  --dur-reveal: 720ms;

  --z-base:   1;
  --z-sticky: 200;
}
