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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 400px;
  margin: 0;
  overflow-x: auto;
  color: var(--color-dark-shade);
  background: var(--color-light-shade);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  color: var(--color-dark-shade);
  background: var(--color-brand);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

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

button {
  border: 0;
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(141, 186, 231, 0.8);
  outline-offset: 4px;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

h1,
h2 {
  color: var(--color-dark-shade);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
}

h3 {
  color: var(--color-dark-accent);
  font-family: var(--font-subtitle);
  font-weight: 600;
  letter-spacing: 0;
}

p {
  color: var(--color-text);
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--color-dark-shade);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-kicker span {
  color: var(--color-brand);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.section-heading {
  width: min(var(--container), calc(100% - 80px));
  margin: 0 auto;
  display: grid;
  gap: var(--space-5);
}

.section-heading h2 {
  max-width: 760px;
  font-size: 46px;
  line-height: 1.3;
}

.section-heading p:not(.section-kicker) {
  max-width: 690px;
  font-size: 17px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1180px) {
  section[id] {
    scroll-margin-top: 150px;
  }

  .section-heading {
    width: min(var(--container), calc(100% - 64px));
  }

  .section-heading h2 {
    font-size: 42px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  section[id] {
    scroll-margin-top: 180px;
  }

  .section-heading {
    width: calc(100% - 40px);
    gap: var(--space-4);
  }

  .section-heading h2 {
    font-size: 34px;
    line-height: 1.24;
  }

  .section-heading p:not(.section-kicker) {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .section-heading h2 {
    font-size: 30px;
  }
}
