/* ==========================================================================
   Base / Reset
   ========================================================================== */

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-anthracite);
  background-color: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  font-style: italic;
  background-color: var(--color-limestone);
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

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

ul, ol {
  list-style: none;
}

/* ---------- Selection ---------- */
::selection {
  background-color: var(--color-oak-deep);
  color: var(--color-paper);
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--color-brass);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Typography Defaults ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-oak-deep);
  text-wrap: balance;
}

h1 { font-size: var(--text-6xl); }
h2 { font-size: var(--text-4xl); line-height: var(--leading-snug); }
h3 { font-size: var(--text-2xl); line-height: var(--leading-snug); }
h4 { font-size: var(--text-xl); line-height: var(--leading-snug); }

p { text-wrap: pretty; }

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-brass);
  margin-bottom: var(--space-5);
}

.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-anthracite);
  max-width: 60ch;
}

.muted {
  color: var(--color-stone);
}

.section {
  padding-block: clamp(80px, 12vw, 160px);
  position: relative;
}

.section--tight {
  padding-block: clamp(60px, 8vw, 96px);
}

.section--dark {
  background-color: var(--color-oak-deep);
  color: var(--color-paper);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-paper);
}

.section--anthracite {
  background-color: var(--color-anthracite);
  color: var(--color-paper);
}

.section--anthracite h1,
.section--anthracite h2,
.section--anthracite h3,
.section--anthracite h4 {
  color: var(--color-paper);
}

.section--limestone {
  background-color: var(--color-limestone);
}

/* ---------- Hairline divider ---------- */
.hairline {
  height: 1px;
  background-color: var(--color-limestone);
  border: 0;
}

.section--dark .hairline {
  background-color: rgba(245, 241, 234, 0.12);
}

/* ---------- 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;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--color-oak-deep);
  color: var(--color-paper);
  padding: var(--space-3) var(--space-5);
  z-index: 9999;
  border-radius: var(--radius-md);
  transition: top var(--duration-sm) var(--ease-standard);
}

.skip-link:focus {
  top: var(--space-4);
}
