/* ============================================================
   base.css — Reset + Base Styles
   Atomic Design: Atoms → Foundation
   ============================================================ */

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

/* ── Base ── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* ── Typography Base ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
}

p {
  line-height: 1.7;
  color: var(--muted);
}

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

ul, ol {
  list-style: none;
}

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

/* ── Utility: Container ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.container--sm {
  max-width: var(--max-width-sm);
}

.container--xs {
  max-width: var(--max-width-xs);
}

/* ── Utility: Text Helpers ── */
.text-center { text-align: center; }
.text-teal   { color: var(--teal); }
.text-muted  { color: var(--muted); }
.text-white  { color: var(--white); }

/* ── Utility: Visually Hidden ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Utility: Section padding ── */
.section {
  padding: var(--section-py) var(--section-px);
}

.section--sm {
  padding: var(--space-16) var(--section-px);
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}
