@import url('tokens.css');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  overscroll-behavior-x: none;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--midnight);
  color: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

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

iframe,
video,
svg {
  max-width: 100%;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--teal-light);
}

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ivory);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--smoke);
  max-width: 65ch;
}

.lead {
  font-size: 1.125rem;
  color: var(--ivory);
  opacity: 0.9;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  min-width: 0;
}

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

.section--dark {
  background: var(--midnight);
}

.section--elevated {
  background: var(--midnight-light);
}

.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.text-ivory { color: var(--ivory); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.divider {
  width: 60px;
  height: 2px;
  background: var(--teal);
  margin: var(--space-md) auto;
}

.divider--left {
  margin-left: 0;
}

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

@media (max-width: 768px) {
  .section {
    padding: var(--space-lg) 0;
  }
}
