/* ============================================
   Base Styles — Typography, Body, Links
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: var(--leading-normal);
}

/* ---- Headings ---- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
  font-weight: 600;
}

h6 {
  font-size: var(--text-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--accent-cyan);
}

.eyebrow {
  font-size: var(--text-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--accent-orange);
  margin-bottom: var(--space-sm);
}

@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-xl); }
}

@media (max-width: 480px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
}

/* ---- Body Text ---- */

p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 70ch;
}

.lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

small,
.text-sm {
  font-size: var(--text-sm);
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* ---- Links ---- */

a {
  color: var(--accent-cyan);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-cyan-hover);
}

a:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---- Horizontal Rule ---- */

hr {
  border: none;
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-3xl) 0;
}

/* ---- Code ---- */

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-tertiary);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
}

/* ---- Selection ---- */

::selection {
  background: var(--accent-orange);
  color: var(--text-inverse);
}

/* ---- Scrollbar (Webkit) ---- */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}
