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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 2%, rgba(126, 72, 42, 0.16), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  content: "";
  opacity: 0.2;
  background-image: url("../brand/texture-charcoal.png");
  background-size: 320px;
  mix-blend-mode: soft-light;
}

main,
footer {
  position: relative;
  z-index: 1;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  font-size: clamp(4.25rem, 9vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.86;
}

h2 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 5.4vw, 6rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 0.94;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

::selection {
  background: var(--amber);
  color: var(--button-text);
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section-space {
  padding-block: clamp(6rem, 12vw, 11rem);
}

.eyebrow,
.section-kicker {
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-lede {
  max-width: 35rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.45;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-control);
  background: var(--amber);
  color: var(--button-text);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (prefers-reduced-transparency: reduce) {
  body::after {
    display: none;
  }
}

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

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