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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(196, 165, 116, 0.18), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-md);
  color: var(--ink);
}

h1 {
  font-size: var(--step-display);
  letter-spacing: 0.12em;
  line-height: 1.05;
}

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

h3 {
  font-size: var(--step-lead);
}

p {
  margin: 0 0 var(--space-md);
  max-width: 42em;
}

p.lead {
  font-size: var(--step-lead);
  line-height: 1.5;
  color: var(--muted);
  max-width: 28em;
}

ul,
ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.4rem;
}

strong {
  font-weight: 600;
}

small {
  font-size: var(--step-small);
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

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

.page-main {
  min-height: 60vh;
  padding-bottom: var(--space-xl);
}

.page-main:has(.cta-verb) {
  padding-bottom: 0;
}

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

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

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