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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--sticky-header-height) + var(--space-4));
  background: var(--page);
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

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

button,
select,
input[type="radio"],
input[type="checkbox"] {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

a {
  color: var(--brand);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3,
h4 {
  margin-block: 0 0.65em;
  color: var(--ink);
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 6vw, 4.75rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

h4 {
  font-size: 1rem;
}

p,
ul,
ol,
blockquote,
dl {
  margin-block: 0 1rem;
}

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

li + li {
  margin-block-start: 0.35rem;
}

blockquote {
  margin-inline: 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details > summary {
  min-height: 2.75rem;
  padding-block: 0.6rem;
}

input[type="text"],
textarea,
select {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  background: var(--surface);
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

progress {
  accent-color: var(--brand);
}

.lead {
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.muted,
.component-note {
  color: var(--ink-soft);
}

.component-note {
  font-size: 0.94rem;
}

.page-kicker,
.section-label {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-label {
  margin-bottom: var(--space-3);
}

.noscript-notice {
  padding: 0.7rem 1rem;
  color: #fcfdfc;
  background: #7a4f00;
  text-align: center;
  font-weight: 700;
}

::selection {
  color: #f8fbfa;
  background: #0c665c;
}
