/* BGSIA tokens. The shared scale, then the brand palette (light, with a dark override below). */
: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-prose: 1.125rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2rem, 2.5vw + 0.75rem, 3rem); --text-display: clamp(2rem, 2.5vw + 1rem, 3.25rem);
  --text-poster: clamp(2.75rem, 6vw, 5.25rem);
  --text-statement: clamp(1.625rem, 2.6vw + 0.75rem, 3.25rem);
  --text-section: clamp(1.75rem, 1.5vw + 1rem, 2.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;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --nav-h: 80px; --control-h: 48px; --hit: 44px;
  --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: cool mist and deep teal ink. */
  --color-paper: #f2f6f5; --color-paper-2: #e3eeec; --color-paper-3: #d9e6e3;
  --color-surface: #fbfdfc;
  --color-ink: #12302f; --color-ink-2: #2c4745; --color-muted: #4b6563;
  --color-rule: #d2dfdd;
  --color-link: #1d6764;
  --color-accent: #4da8a5; --color-accent-ink: #0d1b1b; --color-focus: #1d6764;

  /* The night field: the hero and the closing band. Constant in both modes. */
  --color-night: #0d1b1b; --color-band: #0d1b1b;
  --color-on-night: #e2eeec; --color-on-night-muted: #a3bcb9; --color-on-night-link: #82d0cc;
  --color-night-rule: #23403e; --color-night-chip: rgb(226 238 236 / 0.12);
  --color-mark: #4da8a5;
  --color-scrim-near: rgb(13 27 27 / 0.94); --color-scrim-far: rgb(13 27 27 / 0.6);
  --color-backdrop: rgb(13 27 27 / 0.6); --color-shadow: rgb(9 33 32 / 0.45);

  --font-display: "Newsreader", "Newsreader Fallback", Georgia, "Times New Roman", serif; --font-body: "Public Sans", "Public Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif; --font-outlier: "DM Mono", ui-monospace, Menlo, monospace;
  --radius-card: 12px; --radius-pill: 999px; --rule-hair: 1px; --shadow-card: none;
  --tracking-display: -0.01em; --display-weight: 500;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-paper: #0d1b1b; --color-paper-2: #132625; --color-paper-3: #1a3332;
    --color-surface: #132625;
    --color-ink: #e2eeec; --color-ink-2: #c3d6d3; --color-muted: #9ab4b1;
    --color-rule: #23403e;
    --color-link: #82d0cc;
    --color-focus: #82d0cc;
    /* The close is the deepest band, so it stays apart from the tinted Colaboración well. */
    --color-band: #081211;
    color-scheme: dark;
  }
}
