/* ==========================================================================
   Modern Creations — Design System Tokens
   Warm Editorial Modernism (Daylight Default + Evening Obsidian Mode)
   ========================================================================== */

:root {
  /* Core Palette — Warm Daylight */
  --bg-canvas: #FAF8F5;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F2EFE9;
  --bg-elevated: rgba(255, 255, 255, 0.82);
  --bg-glass: rgba(250, 248, 245, 0.78);
  --bg-contrast: #1C2E2B; /* Deep Coastal Pine for high-impact bands */

  /* Typography Ink */
  --ink-primary: #181715;
  --ink-secondary: #5A564F;
  --ink-muted: #847E75;
  --ink-inverse: #FAF8F5;
  --ink-inverse-muted: rgba(250, 248, 245, 0.72);

  /* Brand Accents */
  --accent-terracotta: #C8623B;
  --accent-terracotta-hover: #B1522E;
  --accent-terracotta-soft: rgba(200, 98, 59, 0.11);
  --accent-pine: #244C47;
  --accent-pine-soft: rgba(36, 76, 71, 0.1);
  --accent-gold: #8C6D1F;
  --accent-gold-soft: rgba(140, 109, 31, 0.12);
  --accent-live: #2D8A61;

  /* Borders & Dividers */
  --border-hairline: rgba(24, 23, 21, 0.09);
  --border-strong: rgba(24, 23, 21, 0.16);
  --border-glass: rgba(255, 255, 255, 0.65);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(24, 23, 21, 0.04);
  --shadow-sm: 0 4px 16px rgba(24, 23, 21, 0.05);
  --shadow-md: 0 12px 36px rgba(24, 23, 21, 0.07);
  --shadow-lg: 0 24px 64px rgba(24, 23, 21, 0.11);
  --shadow-glow: 0 0 0 1px rgba(200, 98, 59, 0.18), 0 16px 40px rgba(200, 98, 59, 0.12);

  /* Typography Families */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout & Spacing */
  --container-max: 1240px;
  --container-narrow: 780px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-py: clamp(4.5rem, 9vw, 8rem);

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --radius-pill: 9999px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration-fast: 180ms;
  --duration-base: 320ms;
  --duration-slow: 640ms;
}

[data-theme="dark"] {
  --bg-canvas: #12110F;
  --bg-surface: #1B1916;
  --bg-subtle: #24211D;
  --bg-elevated: rgba(27, 25, 22, 0.85);
  --bg-glass: rgba(18, 17, 15, 0.82);
  --bg-contrast: #1F3430;

  --ink-primary: #F5F2EB;
  --ink-secondary: #B5AFA5;
  --ink-muted: #847E74;
  --ink-inverse: #FAF8F5;
  --ink-inverse-muted: rgba(250, 248, 245, 0.72);

  --accent-terracotta: #E07A52;
  --accent-terracotta-hover: #EB8B65;
  --accent-terracotta-soft: rgba(224, 122, 82, 0.16);
  --accent-pine: #5FA69B;
  --accent-pine-soft: rgba(95, 166, 155, 0.16);
  --accent-gold: #D9A441;
  --accent-gold-soft: rgba(217, 164, 65, 0.16);
  --accent-live: #4CC38A;

  --border-hairline: rgba(245, 242, 235, 0.09);
  --border-strong: rgba(245, 242, 235, 0.18);
  --border-glass: rgba(245, 242, 235, 0.12);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px rgba(224, 122, 82, 0.25), 0 16px 44px rgba(224, 122, 82, 0.14);
}
