/* ── Reset ── */
*, *::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(--text-body);
  font-weight: 500;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-content-bg);
}

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

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

ul, ol {
  list-style: none;
}

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

/* ── Type scale ── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-text);
}

h1 {
  font-size: var(--text-h1);
  letter-spacing: -0.05em;
}

h2 {
  font-size: var(--text-h2);
  letter-spacing: -0.05em;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

p {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.75;
}

p + p {
  margin-top: var(--space-sm);
}

blockquote {
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: center;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

/* ── Layout utilities ── */

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}

.section--light {
  background-color: var(--color-bg-light);
  color: var(--color-text-on-light);
}

.section--cream {
  background-color: var(--color-bg-light);
  color: var(--color-text-on-light);
}

.section--teal {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.section--dark {
  background-color: var(--color-bg-darkest);
  color: var(--color-text-on-dark);
}

/* ── Accessibility ── */

.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;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .container {
    padding-inline: var(--gutter-mobile);
  }
}
