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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-on-surface);
  background: var(--color-surface);
  min-height: 100vh;
}

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

a {
  color: var(--color-secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--color-on-surface);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
}

p {
  color: var(--color-on-surface-variant);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--color-surface-container);
}

.section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__header p {
  margin-top: 0.75rem;
  max-width: 36rem;
  margin-inline: auto;
}

.gradient-bg {
  background:
    linear-gradient(
      160deg,
      var(--color-primary-container) 0%,
      var(--color-surface) 45%,
      var(--color-secondary-container) 100%
    );
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in-down {
  animation: fadeSlideDown 0.9s ease-out both;
}

.animate-in-up {
  animation: fadeSlideUp 0.9s ease-out 0.3s both;
}

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

  .animate-in-down,
  .animate-in-up {
    animation: none;
  }
}
