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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  background-color: var(--linen);
  -webkit-font-smoothing: antialiased;
}

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

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

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

input,
textarea,
select {
  font-family: inherit;
  font-size: 16px;
}

h1,
h2,
h3,
.h1,
.h2,
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  margin: 0;
  text-transform: none;
}

h1,
.h1 {
  font-size: 5rem;
  letter-spacing: 0;
}

h2,
.h2 {
  font-size: 3rem;
  letter-spacing: 0;
}

h3,
.h3 {
  font-size: 1.75rem;
  letter-spacing: 0;
}

@media (max-width: 767px) {
  h1,
  .h1 {
    font-size: 3rem;
  }

  h2,
  .h2 {
    font-size: 2.1rem;
  }

  h3,
  .h3 {
    font-size: 1.45rem;
  }
}

.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark .h1,
.on-dark .h2,
.on-dark .h3 {
  color: var(--linen);
  text-shadow: var(--text-shadow-hero);
}

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

body.page-fade-in {
  animation: pageCrossfade 280ms var(--ease-out) forwards;
}

@keyframes pageCrossfade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Hero backgrounds only — slow cinematic zoom */
@keyframes heroKenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08);
  }
}

.hero-kenburns {
  overflow: hidden;
}

.hero-kenburns > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroKenBurns 20s ease-in-out infinite alternate;
  will-change: transform;
}
