/* ---------------------------------------------------------
   base.css — element-level base styles + layout helpers
--------------------------------------------------------- */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  color: var(--color-text);
  background: var(--color-bg);
  font-feature-settings: "palt";
}

@media (min-width: 768px) {
  body {
    font-size: var(--fs-500);
  }
}

main {
  display: block;
}

/* --- Headings --- */
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-text);
}

/* --- Links --- */
a {
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--color-accent);
}

/* --- Layout primitives --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-xl);
  }
}

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

.section {
  padding-block: var(--space-2xl);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--space-3xl);
  }
}

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

/* --- Section heading block --- */
.section-head {
  margin-bottom: var(--space-xl);
}

.section-head__eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-300);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-head__title {
  font-size: var(--fs-700);
  line-height: 1.3;
}

.section-head__lead {
  margin-top: var(--space-md);
  color: var(--color-muted);
  max-width: 52ch;
}

.section-head--center {
  text-align: center;
}

.section-head--center .section-head__lead {
  margin-inline: auto;
}

/* --- Utilities --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.flow > * + * {
  margin-top: var(--space-md);
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -120px;
  z-index: 1000;
  background: var(--color-text);
  color: #fff;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  transition: top var(--transition);
}

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