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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: clip;
  background: var(--off-white);
  color: var(--slate);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

main {
  display: block;
}

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

picture {
  display: block;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
  margin-block-start: 0;
}

h1,
h2,
h3 {
  color: var(--charcoal);
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  margin-block-end: var(--space-3);
  font-size: var(--step-4);
  letter-spacing: -0.025em;
}

h2 {
  margin-block-end: var(--space-2);
  font-size: var(--step-3);
  letter-spacing: -0.015em;
}

h3 {
  margin-block-end: 0.55rem;
  font-size: var(--step-1);
}

p {
  margin-block-end: 1.1em;
}

ul,
ol {
  padding-inline-start: 1.2rem;
}

a {
  color: var(--brand-green);
  text-underline-offset: 0.19em;
}

a:hover {
  color: var(--brand-green-dark);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--brand-mint);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

address {
  font-style: normal;
}

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

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

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

.lead {
  max-width: var(--reading);
  font-size: var(--step-1);
  line-height: 1.5;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-200%);
  background: var(--paper);
  color: var(--slate);
  font-weight: 800;
}

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

.notice {
  padding: 1rem 1.1rem;
  border: 1px solid var(--brand-green);
  background: var(--brand-mint-soft);
  color: var(--slate);
}

@media (min-width: 48rem) {
  .container {
    width: min(calc(100% - 3rem), var(--content));
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
