/* ============================================================
   Reset, page shell, links, container, section rhythm and the
   shared typography utilities (.muted, .accent, .headline...).
   ============================================================ */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.55;
  background: var(--bg);
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-soft); }

/* Page width wrapper */
.container {
  width: min(var(--container), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
}

/* Visually hidden but available to screen readers */
.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;
}

/* Section rhythm */
.section { padding: 64px 0; }
.section-head {
  margin-bottom: 18px;
  display: grid;
  gap: 8px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.2px;
}
.section-head p { margin: 0; color: var(--text-muted); }

/* Let the projects intro line use the full container width */
#projects .section-head .subhead { max-width: none; }

/* Typography utilities */
.muted  { color: var(--text-muted); }
.accent { color: var(--accent-soft); }

.kicker {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}
.headline {
  margin: 0 0 12px;
  font-size: clamp(50px, 4.2vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.6px;
  align-self: center;
}
.subhead {
  margin: 0 0 18px;
  color: var(--text-muted);
  max-width: 68ch;
}

.bullets { margin: 0; padding-left: 18px; color: var(--text-muted); }
.bullets li { margin: 8px 0; }

.divider {
  height: 1px;
  background: var(--border-soft);
  margin: 14px 0;
}
