*,
*::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: 1rem;
  line-height: 1.6;
  color: var(--color-off-white);
  background-color: var(--color-charcoal);
  overflow-x: hidden;
}

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

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

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

ul,
ol {
  list-style: none;
}

address {
  font-style: normal;
}

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

::selection {
  background-color: var(--color-orange);
  color: var(--color-off-white);
}

/* Scroll-snap chapters */
main {
  scroll-snap-type: y proximity;
}

.chapter {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  min-height: 100vh;
  position: relative;
}

/* Dark section text enforcement */
.chapter--dark,
.chapter--dark h1,
.chapter--dark h2,
.chapter--dark h3,
.chapter--dark h4,
.chapter--dark p,
.chapter--dark li,
.chapter--dark span,
.chapter--dark address {
  color: var(--color-off-white);
}

.chapter--dark .text-muted {
  color: var(--color-off-white-muted);
}

.chapter--dark .text-accent {
  color: var(--color-orange);
}

/* Light section text enforcement */
.chapter--light,
.chapter--light h1,
.chapter--light h2,
.chapter--light h3,
.chapter--light h4,
.chapter--light p,
.chapter--light li,
.chapter--light span,
.chapter--light address {
  color: var(--color-dark-text);
}

.chapter--light .text-muted {
  color: var(--color-dark-muted);
}

.chapter--light .text-accent {
  color: var(--color-orange);
}

/* Typography */
.heading-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.heading-xl {
  font-size: clamp(3.5rem, 10vw, 8rem);
}

.heading-lg {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.heading-md {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

.heading-sm {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
}

.label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-lg);
  }
}

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Visually hidden */
.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;
}
