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

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

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

:focus-visible {
  outline: 3px solid rgba(179, 54, 41, 0.42);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.65em;
  color: var(--color-graphite);
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.16;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 4.6rem);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.65rem);
}

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

p {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

code {
  border-radius: 4px;
  background: var(--color-surface-strong);
  padding: 0.12em 0.35em;
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 40px), 760px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(56px, 8vw, 104px);
}

.section--muted {
  background: var(--color-surface);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-heading p {
  max-width: 660px;
  color: var(--color-text-muted);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--color-primary);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lede {
  max-width: 720px;
  color: var(--color-text-muted);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  translate: 0 -160%;
  border-radius: var(--radius-sm);
  background: var(--color-graphite);
  color: white;
  padding: 10px 16px;
}

.skip-link:focus {
  translate: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

[hidden] {
  display: none !important;
}
