/* ==========================================================================
   Base — Reset, defaults, typography utilities
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink-soft);
  background-color: var(--cream);
  line-height: 1.5;
  font-size: 16px;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

/* Skip link — accessible, hidden until focused */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 400;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

/* H1 reset — hero headline uses H1 without default margin */
h1.hero__headline {
  margin: 0;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

/* Typography — mirrors LoamText from loam_theme.dart */

.display-lg {
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.display-md {
  font-weight: 300;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.display-sm {
  font-weight: 300;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.headline {
  font-weight: 300;
  font-size: clamp(18px, 2.5vw, 24px);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.accent {
  font-weight: 400;
  color: var(--sage);
}

.body-lg {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.body-md {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.body-sm {
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.body-xs {
  font-weight: 300;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.label {
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}

.section-label {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.text-ink { color: var(--ink); }
.text-soft { color: var(--ink-soft); }
.text-muted { color: var(--ink-muted); }
.text-faint { color: var(--ink-faint); }
.text-sage { color: var(--sage); }
.text-cream { color: var(--cream); }
.text-center { text-align: center; }
