/* Base — reset, typography, utilities */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: var(--space-2) var(--space-3);
  background: var(--color-forest);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--wide {
  max-width: var(--container-wide);
}

/* Section spacing */
.section {
  padding: var(--space-7) 0;
}
@media (min-width: 1024px) {
  .section {
    padding: var(--space-8) 0;
  }
}

/* Section background alternates */
.section--alt {
  background: var(--color-cream-soft);
}
.section--dark {
  background: var(--color-forest);
  color: #fff;
}
.section--deep {
  background: var(--color-forest-deep);
  color: #fff;
}

/* Typography */
.h1 {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.10;
  letter-spacing: -0.015em;
}
.h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.30;
}
.lede {
  font-family: var(--font-body);
  font-size: var(--fs-lede);
  line-height: 1.65;
  color: var(--color-muted);
}
.muted {
  color: var(--color-muted);
}

/* Divider */
.rule {
  border: none;
  border-top: 1px solid var(--color-rule);
  margin: var(--space-4) 0;
}

/* Section head block */
.section-head {
  max-width: 680px;
  margin-bottom: var(--space-6);
}
.section-head .h2 {
  margin: var(--space-2) 0 var(--space-3);
}
.section-head .lede {
  margin-top: var(--space-2);
}

/* Grid utilities */
.grid-2 {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-3 {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-4 {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
