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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 84px;
}

html,
body {
  overflow-x: clip;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  color: var(--deep);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-6);
}

h2 {
  font-size: var(--step-4);
  font-weight: 600;
}

h3 {
  font-size: var(--step-2);
}

p {
  max-width: 65ch;
  margin-bottom: var(--s-2);
}

a {
  color: var(--forest);
}

p a,
li a {
  border-bottom: 1px solid var(--gold);
  text-decoration: none;
}

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

.skip-link {
  position: fixed;
  top: var(--s-2);
  left: var(--s-2);
  z-index: 100;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--deep);
  font-weight: 600;
  padding: 10px 14px;
  text-decoration: none;
  transform: translateY(calc(-100% - var(--s-3)));
  transition: transform .15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

#main:focus {
  outline: 0;
}

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

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

.section--band {
  background: var(--band);
}

.section--tight {
  padding-block: var(--s-5);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 900px) {
  .section {
    padding-block: var(--s-5);
  }

  h1 {
    overflow-wrap: anywhere;
  }
}
