/* ============================================================
   BASE — Reset, Typography, Foundation
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-height) + 2rem);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* — Skip to content (a11y) — */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-lg);
  z-index: 9999;
  padding: var(--space-sm) var(--space-lg);
  background: var(--primary);
  color: var(--text-inverse);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-lg);
}

/* — Typography — */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: var(--text-hero); font-weight: 700; }
h2 { font-size: var(--text-h2); font-weight: 600; }
h3 { font-size: var(--text-h3); font-weight: 600; }

p {
  color: var(--text-secondary);
  max-width: 60ch;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--primary-hover);
}

strong { font-weight: 700; }

/* — Selection — */
::selection {
  background: var(--primary-muted);
  color: var(--primary-text);
}

/* — Focus — */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* — Images — */
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* — Lists — */
ul, ol {
  list-style: none;
}

/* — Reduced Motion — */
@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;
  }
}

/* — Container — */
.container {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding-inline: var(--space-lg);
}

.section {
  padding-block: var(--space-section);
}

/* — Utility — */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-pro { color: var(--pro); }
.text-secondary { color: var(--text-secondary); }
.text-gradient {
  background: var(--gradient-emerald);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-pro {
  background: var(--gradient-pro);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mx-auto { margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
