/* ==========================================================================
   Ergon Forge Randevu — Apple & Emil Craft Design System Tokens
   Obsidian dark surfaces, optical typography, tactile spring-like timing
   ========================================================================== */
:root {
  /* Obsidian & Graphite Surface Hierarchy */
  --bg-canvas: #070709;
  --bg-surface: #101014;
  --bg-elevated: #17171D;
  --bg-chrome: rgba(7, 7, 9, 0.74);

  /* Specular Hairlines */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-highlight: rgba(255, 255, 255, 0.22);

  /* Optical High-Contrast Typography Colors */
  --text-primary: #F5F5F7;
  --text-secondary: #A1A1AA;
  --text-tertiary: #71717A;
  --text-on-accent: #09090B;

  /* Restrained Functional Accents */
  --accent-amber: #F59E0B;
  --accent-amber-hover: #FBBF24;
  --accent-amber-soft: rgba(245, 158, 11, 0.12);
  --accent-amber-border: rgba(245, 158, 11, 0.34);

  --accent-emerald: #34D399;
  --accent-emerald-soft: rgba(52, 211, 153, 0.11);
  --accent-emerald-border: rgba(52, 211, 153, 0.30);

  --accent-blue: #60A5FA;
  --accent-blue-soft: rgba(96, 165, 250, 0.11);
  --accent-blue-border: rgba(96, 165, 250, 0.28);

  --accent-red: #F87171;
  --accent-red-soft: rgba(248, 113, 113, 0.11);
  --accent-red-border: rgba(248, 113, 113, 0.30);

  /* Typography */
  --font-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing Scale (rem-based for Dynamic Type scaling) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Apple & Emil Motion Curves */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-press: 110ms;
  --dur-fast: 180ms;
  --dur-base: 280ms;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-canvas);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.58;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-optical-sizing: auto;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

a:hover {
  color: #93C5FD;
}

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

:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 3px;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  body {
    font-size: 16px;
  }
  .container {
    padding: 0 28px;
  }
}

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

@media (prefers-reduced-transparency: reduce) {
  :root {
    --bg-chrome: #0A0A0D;
  }
}
