/* Base: reset, element defaults, layout primitives */

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

html {
  text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizespeed;
  overflow-x: clip;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

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

h2 {
  font-size: var(--step-3);
}

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

h4 {
  font-size: var(--step-1);
}

p,
ul,
ol {
  margin: 0 0 1.1em;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

strong {
  font-weight: 700;
}

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

::selection {
  background: var(--line);
  color: var(--ink);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--line);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentcolor;
}

/* Sections */
.section {
  position: relative;
  padding-block: var(--space-section);
}

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

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

.section--dark {
  background: var(--asphalt);
  color: var(--bone);
  isolation: isolate;
}

.section--ink {
  background: var(--ink);
  color: var(--bone);
  isolation: isolate;
}

.section--dark::before,
.section--ink::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.07;
  pointer-events: none;
}

.section--dark p,
.section--ink p {
  color: var(--muted-dark);
}

.section--dark strong,
.section--ink strong {
  color: var(--bone);
}

.section-head {
  max-width: 48rem;
  margin-bottom: var(--space-l);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  font-size: var(--step-1);
  line-height: 1.5;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 4px;
  background: var(--line);
}

.section--dark .eyebrow,
.section--ink .eyebrow,
.page-hero .eyebrow {
  color: var(--line);
}

.text-line {
  color: var(--line);
}

.lane-rule {
  height: 6px;
  background: var(--stripe-dash);
}

.lane-stripe {
  height: 6px;
  background: var(--stripe-dash);
  background-color: var(--ink);
}

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin-top: 1.6em;
  font-size: var(--step-3);
}

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

.prose li {
  margin-bottom: 0.45em;
}

.prose a {
  font-weight: 600;
  text-decoration-color: var(--line);
  text-decoration-thickness: 0.14em;
}

.prose a:hover {
  background: rgb(255 194 26 / 30%);
}

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