/* Swaraq site tokens. Every colour, face, size, space, easing and duration the page uses
 * is named here; styles.css refers to these names only. Brand values from brand/README.md:
 * peacock #00687f, peacock on dark #2aa3ba, ink #0f1622, paper #f7f8fa, IBM Plex Sans.
 */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/plex-sans.woff2") format("woff2-variations");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Light surfaces: the brand's paper, tinted toward the peacock hue. */
  --color-paper: oklch(98.2% 0.004 220);
  --color-paper-2: oklch(95.6% 0.007 220);
  --color-ink: oklch(19.9% 0.027 261);
  --color-ink-2: oklch(38% 0.022 250);
  --color-muted: oklch(50% 0.018 240);
  --color-rule: oklch(87% 0.010 225);
  --color-rule-2: oklch(92% 0.008 225);
  /* The brand peacock, exact: the symbol's colour, used for the primary action and the inbound line. */
  --color-accent: oklch(47.9% 0.087 220);
  --color-accent-ink: oklch(98.2% 0.004 220);
  --color-accent-hover: oklch(42% 0.087 220);
  --color-focus: oklch(52% 0.13 220);

  /* The dark band: the map sits on the brand's ink. Elevation by lightness, never glow. */
  --color-night: oklch(19.9% 0.027 261);
  --color-night-2: oklch(24% 0.026 258);
  --color-night-3: oklch(29% 0.024 255);
  --color-night-ink: oklch(96% 0.006 240);
  --color-night-ink-2: oklch(76% 0.014 240);
  --color-night-rule: oklch(34% 0.022 255);
  --color-night-accent: oklch(66.1% 0.106 214);
  --color-night-line-2: oklch(72% 0.012 240);

  /* One family, as the logo and the console: Plex Sans for words, Plex Mono for the map's labels. */
  --font-display: "IBM Plex Sans", ui-sans-serif, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --text-display: clamp(2.625rem, 1.6rem + 4.6vw, 5rem);

  /* 4-point scale. */
  --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, 3rem);
  --page-max: 76rem;

  --rule-hair: 1px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 480ms;

  --shadow-pill: 0 10px 28px -14px oklch(19.9% 0.027 261 / 0.28);
}
