/**
 * AquaFlow — Base theme, typography, resets
 */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 800;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

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

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Type scale */
.af-display {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.af-h1 { font-size: var(--text-3xl); font-weight: 800; }
.af-h2 { font-size: var(--text-2xl); font-weight: 800; }
.af-h3 { font-size: var(--text-xl); font-weight: 700; }
.af-h4 { font-size: var(--text-lg); font-weight: 700; }

.af-lead {
  font-size: var(--text-lg);
  color: var(--muted);
  line-height: 1.55;
}

.af-caption {
  font-size: var(--text-xs);
  color: var(--muted);
  font-weight: 600;
}

.af-overline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
