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

html {
  scroll-behavior: smooth;
}

/* Keep German compound words within the existing responsive grids. */
html[lang="de"] {
  overflow-wrap: anywhere;
  hyphens: auto;
}

body {
  margin: 0;
  background: var(--color-off-white);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
}

h1 {
  font-size: clamp(64px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 800;
}

h2 {
  font-size: clamp(46px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 750;
}

h3 {
  font-size: clamp(24px, 2.3vw, 31px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
}

p {
  margin-bottom: 0;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.content-narrow {
  width: min(100%, var(--content-narrow));
}

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

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

.section--light {
  background: var(--color-off-white);
}

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

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

.eyebrow {
  margin: 0 0 22px;
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: rgba(19, 51, 84, 0.58);
}

.section--navy .eyebrow {
  color: rgba(245, 235, 216, 0.56);
}

.lead {
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.018em;
}

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

.section--navy .muted {
  color: rgba(245, 235, 216, 0.68);
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: -100px;
  left: 16px;
  padding: 10px 14px;
  background: var(--color-white);
  color: var(--color-navy);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 16px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 600ms var(--ease-premium),
    transform 600ms var(--ease-premium);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 80ms !important;
}

.reveal-delay-2 {
  transition-delay: 160ms !important;
}

.reveal-delay-3 {
  transition-delay: 240ms !important;
}

:focus-visible {
  outline: 3px solid rgba(19, 51, 84, 0.34);
  outline-offset: 4px;
}

.section--navy :focus-visible {
  outline-color: rgba(245, 235, 216, 0.5);
}

@media (max-width: 1024px) {
  .section {
    padding-block: var(--section-tablet);
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

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

  h1 {
    font-size: clamp(46px, 13vw, 60px);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(35px, 10vw, 42px);
  }

  h3 {
    font-size: 24px;
  }

  .lead {
    font-size: 18px;
  }

  .eyebrow {
    margin-bottom: 18px;
  }
}

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

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
