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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

button {
  cursor: pointer;
}

main {
  min-height: 60vh;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: var(--space-8) 0;
}

.section--compact {
  padding: var(--space-7) 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

.section-head {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.section-head h1,
.section-head h2,
.section-head h3,
.hero__content h1 {
  margin: 0;
  color: var(--color-primary);
  line-height: 1.1;
}

.section-head p,
.hero__content p,
.lead {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.lead {
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: var(--space-5);
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.stack {
  display: grid;
  gap: var(--space-4);
}

.list-clean {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-clean li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--color-text-muted);
}

.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--color-secondary);
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #fff;
}

@media (min-width: 48rem) {
  .section {
    padding: var(--space-9) 0;
  }

  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-head {
    max-width: 48rem;
  }

  .section-head h1,
  .section-head h2,
  .hero__content h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
  }
}
