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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-linen-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--color-copper-dark);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-forest);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

ul, ol { list-style: none; }

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

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 10000;
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-copper);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-md);
  color: var(--color-white);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container--wide {
  max-width: var(--max-width-wide);
}

.section {
  padding-block: var(--space-3xl);
}

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

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

.section--forest h2,
.section--forest h3,
.section--forest h4 {
  color: var(--color-linen);
}

.section__header {
  max-width: var(--max-width-narrow);
  margin-bottom: var(--space-2xl);
}

.section__header--center {
  text-align: center;
  margin-inline: auto;
}

.section__label {
  display: inline-block;
  position: relative;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-copper);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
}

.section__label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-copper);
  transition: width var(--transition-slow);
}

.section__label.is-visible::after {
  width: 100%;
}

.section--forest .section__label {
  color: var(--color-copper-light);
}

.section__desc {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

.section--forest .section__desc {
  color: var(--color-linen-dark);
}

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

@media (min-width: 768px) {
  .section {
    padding-block: var(--space-4xl);
  }
}
