/* Design tokens. See STYLE.md: new content uses these values, not ad-hoc sizes. */
:root {
  /* Font families */
  --sans: "NB International Pro", Arial, sans-serif;
  --serif: "STK Bureau Serif", Georgia, serif;
  --mono: "Geist Mono", monospace;
  --wordmark-font: Newsreader, Georgia, serif;

  /* Type scale */
  --text-title: 36px;     /* Page titles: About, Careers, Blog, Contact */
  --text-subtitle: 22px;  /* The paragraph under a page title */
  --text-body: 20px;      /* Prose paragraphs */
  --text-small: 15px;     /* Navigation, metadata, team roles, buttons */
  --text-caption: 12px;   /* Dates, credits, footer, section numbers */

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 36px;
  --space-7: 48px;
  --space-8: 72px;
  --tap-target: 44px;

  /* Widths and rails */
  --site-width: 1376px;   /* Outer frame of every page */
  --page-edge: 64px;      /* Gap between the frame and the window edge */
  --guide: 236px;         /* Left rail that holds the logo and navigation */
  --rail-inset: 22px;     /* Padding inside the rail */
  --content-inset: clamp(16px, 3vw, 32px); /* Main column padding after the rail */

  /* Colours (dark theme; the light theme overrides these in theme.css) */
  --paper: #0d0f10;
  --ink: #eeefec;
  --ink-soft: #bdc3c5;    /* Subtitles and prose */
  --muted: #979c9f;
  --line: #282d30;
  --accent: #d4d9db;
  --error: #e8a598;       /* Form errors */

  /* Radii */
  --radius-small: 4px;
  --radius-card: 12px;
  --radius-panel: 16px;
  --radius-pill: 999px;

  /* Motion */
  --duration-fast: 160ms;
  --duration: 200ms;
  --duration-slow: 320ms;
  --ease-out: cubic-bezier(.2, .7, .3, 1);
  --ease-sweep: cubic-bezier(.16, 1, .3, 1);
  --duration-sweep: 500ms; /* Link and title underline sweep */
  --hover-scale: 1.035;   /* Interactive items grow slightly on hover */

  /* Links */
  --underline-offset: .15em;  /* Gap between link text and its underline */
  --link-line: 1px;           /* Text link line thickness */
  --link-rest: color-mix(in srgb, currentColor 40%, transparent); /* Link line at rest */
}
@media (max-width: 1150px) {
  :root { --guide: 196px; --rail-inset: 18px; --page-edge: 40px; }
}
@media (max-width: 820px) {
  :root { --guide: 48px; --rail-inset: 16px; --page-edge: 20px; --text-title: 34px; --text-subtitle: 21px; }
}
@media (max-width: 650px) {
  :root { --guide: 26px; --rail-inset: 12px; --page-edge: 12px; --text-small: 14px; }
}
@media (max-width: 540px) {
  :root { --text-title: 30px; --text-subtitle: 19px; --text-body: 19px; }
}
