/* CRETACEA design system — shared tokens. Every dino page links this file first. */
@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@500;700;900&family=Inter+Tight:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* Palette — ember in the fog */
  --void: #070505;         /* page background */
  --soot: #0f0a09;
  --ash-900: #17100e;
  --ash-800: #211714;
  --ash-700: #2e201c;
  --blood-900: #3a0b08;
  --blood-700: #6b130d;
  --blood-500: #b0221a;    /* fog glow / danger */
  --ember-400: #ff5a2e;    /* primary accent */
  --ember-300: #ff8a5c;
  --bone-100: #efe7dc;     /* main text */
  --bone-300: #bfb2a3;
  --bone-500: #8a7c6e;
  --moss-500: #7d9a62;     /* rare secondary (fern) */

  --bg: var(--void);
  --surface: var(--ash-900);
  --surface-2: var(--ash-800);
  --border: rgba(239, 231, 220, 0.09);
  --border-strong: rgba(239, 231, 220, 0.18);
  --text: var(--bone-100);
  --text-muted: var(--bone-300);
  --text-subtle: var(--bone-500);
  --accent: var(--ember-400);
  --accent-hover: var(--ember-300);
  --accent-ink: #1a0603;
  --accent-soft: rgba(255, 90, 46, 0.12);
  --fog: rgba(176, 34, 26, 0.35);
  --focus: 0 0 0 3px rgba(255, 90, 46, 0.5);

  /* Type */
  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --fs-xs: 0.75rem; --fs-sm: 0.875rem; --fs-md: 1rem; --fs-lg: 1.125rem; --fs-xl: 1.375rem;
  --fs-2xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --fs-3xl: clamp(2.5rem, 1.4rem + 4.5vw, 5rem);
  --fs-display: clamp(4rem, 1rem + 13vw, 13rem);
  --lh-tight: 0.9; --lh-snug: 1.2; --lh-body: 1.6;

  /* Space (4px grid) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px; --s-32: 128px;

  /* Shape, depth, motion */
  --r-sm: 4px; --r-md: 8px; --r-lg: 14px; --r-full: 999px;
  --shadow-2: 0 12px 40px rgba(0, 0, 0, 0.6);
  --glow: 0 0 120px rgba(176, 34, 26, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-cine: cubic-bezier(0.7, 0, 0.2, 1);
  --t-fast: 150ms; --t-med: 300ms; --t-slow: 900ms;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--fs-md); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
