/* Atlas Design System — the tokens, as published in the design system artifact
   (Atlas Design System, v1). Generated from its tokens.json: change it there,
   then change this. Nothing in the app should hard-code a colour.

   The theme is set with data-theme="light" or "dark" on <html>. In dark mode the
   accent swaps from terracotta to gold and the brand green lifts, so white text
   on it still passes AA. */

:root,
:root[data-theme="light"] {
  /* brand palette — only for brand artwork; UI uses the semantic tokens below */
  --green-700: #1f4d3f;   /* Atlas Green */
  --green-900: #17231f;   /* Night */
  --green-300: #9db8ac;   /* Mist */
  --green-100: #cfe3d9;   /* Mint tint */
  --terracotta-500: #c8502d;
  --gold-400: #e9b949;
  --sand-100: #f4f2ec;    /* warm paper */
  --peach-100: #f9e7d8;
  --white: #ffffff;

  /* semantic — what components use */
  --surface-page: #f4f2ec;
  --surface-card: #ffffff;
  --surface-sunken: #ece8dd;
  --ink: #17231f;
  --ink-muted: #4a5a53;
  --border: #d5ddd9;
  --brand: #1f4d3f;
  --brand-hover: #17382e;
  --on-brand: #ffffff;
  --brand-tint: #cfe3d9;
  --accent: #c8502d;
  --on-accent: #ffffff;
  --focus-ring: #1f4d3f;
  --scrim: #17231fc7;

  /* photo placeholders */
  --tone-sand: #d9c47f;
  --tone-olive: #7c9a68;
  --tone-clay: #b9583f;
  --tone-dusk: #5b7686;
  --tone-brown: #9a785b;
  --tone-stone: #b3aea3;

  /* type */
  --font-display: "Outfit", "Manrope", system-ui, sans-serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* spacing */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px;

  /* shape */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* elevation — used sparingly; hairlines carry most separation */
  --shadow-card: 0 1px 2px rgba(23,35,31,.06), 0 8px 24px rgba(23,35,31,.08);
  --shadow-lift: 0 2px 4px rgba(23,35,31,.08), 0 16px 40px rgba(23,35,31,.16);
}

:root[data-theme="dark"] {
  --surface-page: #0f1815;
  --surface-card: #17231f;
  --surface-sunken: #0a110e;
  --ink: #f4f2ec;
  --ink-muted: #9db8ac;
  --border: #2c3d36;
  --brand: #2f7a62;
  --brand-hover: #3e8e74;
  --on-brand: #ffffff;
  --brand-tint: #1f3b32;
  --accent: #e9b949;
  --on-accent: #17231f;
  --focus-ring: #e9b949;
}
