/* ============================================================
   ARGO AeroLab — Base tokens, reset, typography
   ============================================================ */

:root {
  /* Color: charcoal base, emerald + blue accents */
  --bg-void:        #06090C;
  --bg-primary:     #0B0F14;
  --bg-secondary:   #121821;
  --bg-elevated:    #1A222C;
  --bg-elevated-hi: #212B37;

  --border-subtle:  rgba(232, 237, 242, 0.08);
  --border-strong:  rgba(232, 237, 242, 0.16);

  --text-primary:   #E8EDF2;
  --text-secondary: #97A5B4;
  --text-tertiary:  #8D99AB;

  --accent-emerald:      #2FE1A8;
  --accent-emerald-dim:  #1B7F5F;
  --accent-blue:         #4FA3FF;
  --accent-blue-dim:     #2A5D93;
  --accent-amber:        #F0B45C;

  --danger: #FF6B6B;
  --success: #2FE1A8;

  --font-display: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

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

  --max-content: 1180px;
  --max-prose: 720px;

  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { max-width: 100%; display: block; }

ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 var(--space-4); max-width: 68ch; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }

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

code, .mono { font-family: var(--font-mono); }

::selection { background: var(--accent-emerald); color: var(--bg-void); }

/* ---- Focus states (accessibility) ---- */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: var(--space-4);
  background: var(--accent-emerald);
  color: var(--bg-void);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.15s var(--ease-standard);
  font-weight: 600;
}
.skip-link:focus { top: var(--space-4); }

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