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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
}

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

a {
  color: var(--c-main-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--c-main);
}

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

h1,
h2,
.h-serif {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--c-main-dark);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0 0 16px;
  font-size: var(--fs-h1);
}

h2 {
  margin: 0 0 16px;
  font-size: var(--fs-h2);
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--c-text);
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.l-container {
  width: min(var(--w-container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 20;
  padding: 8px 12px;
  background: #fff;
  border-radius: var(--radius-ctl);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: none;
}

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

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

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

.section--sub {
  background: var(--c-bg-sub);
}

.section--green {
  background: var(--c-bg-green);
}

.section__lead {
  max-width: 42em;
  margin-top: 0;
  color: var(--c-text);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--c-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin-top: 2.4em;
}

.prose h3 {
  margin-top: 1.6em;
}

.prose a {
  font-weight: 500;
}
