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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.5;
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(233, 207, 141, 0.55), transparent 55%),
    radial-gradient(900px 600px at 90% 0%, rgba(246, 231, 197, 0.55), transparent 55%),
    linear-gradient(180deg, var(--paper-2), var(--paper));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[data-theme="dark"] {
  background-color: #050608;
}

html[data-theme="dark"] body {
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 80% -20%, rgba(196, 154, 74, 0.06), transparent 50%),
    linear-gradient(180deg, #0e1118 0%, #080a0f 55%, #050608 100%);
}

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

a,
button,
input,
textarea,
select {
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, opacity 180ms ease;
}

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

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

.section {
  padding-block: var(--space-6);
}

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

.h1 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  font-weight: 650;
  line-height: 1.05;
  font-size: clamp(2rem, 3.2vw + 1rem, 3.25rem);
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}

.h2 {
  font-family: var(--display);
  letter-spacing: -0.015em;
  font-weight: 650;
  line-height: 1.12;
  font-size: clamp(1.35rem, 1.2vw + 1rem, 1.85rem);
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}

.h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
}

.lede {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
  text-wrap: pretty;
}

.grid {
  display: grid;
  gap: var(--space-4);
}

.stack {
  display: grid;
  gap: var(--space-3);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 90, 0.35), transparent);
  margin-block: var(--space-5);
}

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

.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;
}
