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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -20%, rgba(255, 255, 255, 0.04), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(196, 165, 116, 0.08), transparent 55%),
    linear-gradient(180deg, var(--ink), var(--charcoal));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 12px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  font-weight: 750;
}

h2 {
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.15;
  font-weight: 700;
}

h3 {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}

.lede {
  color: var(--muted);
  max-width: 78ch;
  font-size: 16px;
  margin-top: 12px;
}

@media (min-width: 900px) {
  .lede {
    font-size: 18px;
  }
}

.accent {
  color: var(--bronze);
}

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

.fine {
  color: var(--muted-2);
  font-size: 13px;
}

.link-inline {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  margin: 6px 0 0;
  color: var(--clay);
  font-size: 12px;
}
