/* ==========================================================================
   MYTHICS DESIGN SYSTEM — Core Design Tokens & Global Styles
   Editorial, Cinematic, Sophisticated, Highly Usable
   ========================================================================== */


:root {
  /* Fonts */
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Global Geometry */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  --max-width: 1320px;
}

/* ==================== DARK THEME (Midnight Museum Archive) ==================== */
[data-theme="dark"] {
  --bg-primary: #0a0b0e;
  --bg-secondary: #111318;
  --bg-tertiary: #181b22;
  --bg-surface: #141720;
  --bg-card: rgba(22, 26, 36, 0.75);
  --bg-card-hover: rgba(28, 33, 46, 0.9);
  --bg-glass: rgba(10, 11, 14, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(212, 175, 55, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0a0b0e;

  /* Accent: Ancient Gold / Amber */
  --gold-300: #fef08a;
  --gold-400: #facc15;
  --gold-500: #d4af37;
  --gold-600: #b48c1e;
  --gold-glow: rgba(212, 175, 55, 0.2);

  /* Secondary Accents */
  --accent-cyan: #38bdf8;
  --accent-crimson: #f43f5e;
  --accent-emerald: #10b981;
  --accent-purple: #a855f7;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.65);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.15);

  --filter-invert: 0;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--gold-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-400);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

@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;
  }
}

/* Global Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Section Header Typography */
.section-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-500);
  padding: 0.35rem 0.85rem;
  background: var(--gold-glow);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.05rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
}
