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

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style-position: outside;
  padding-left: 1.25rem;
}

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

::selection {
  background: var(--signal);
  color: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--t-16);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

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

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

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
  border-radius: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.5rem, 6vw, var(--t-88));
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, var(--t-48));
}

h3 {
  font-size: var(--t-28);
}

h4 {
  font-size: var(--t-22);
}

p {
  text-wrap: pretty;
  max-width: 70ch;
  color: var(--ink-72);
  margin: 0 0 var(--s-4);
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0 0 var(--s-4);
  color: var(--ink-72);
}

strong {
  font-weight: 700;
  color: var(--ink);
}

.mono,
code,
kbd,
samp {
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(var(--s-4), 4vw, var(--s-5));
}

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

@media (min-width: 768px) {
  .section {
    padding-block: var(--s-8);
  }
}

.section--soft {
  background: var(--col-bg-soft);
}

.section__label {
  font-family: var(--font-mid);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--col-text-muted);
  margin: 0 0 var(--s-3);
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 1.94rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 var(--s-4);
  max-width: 20ch;
}

.section__lead {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--col-text-2);
  max-width: 60ch;
  margin: 0 0 var(--s-6);
}

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

code {
  font-size: 0.875em;
  background: var(--col-bg-soft);
  padding: 0.1em 0.35em;
  border-radius: var(--r-sm);
}
