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

html {
  min-height: 100%;
  background: var(--bench-0);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 520px at 78% -10%, rgb(217 72 15 / 0.06), transparent 62%),
    linear-gradient(180deg, var(--bench-0), var(--bench-1) 45%);
  color: var(--steel-0);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

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

a:hover {
  color: var(--accent-bright);
}

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

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

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bench-1);
}

::-webkit-scrollbar-thumb {
  background: var(--steel-2);
  border: 3px solid var(--bench-1);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--steel-1);
}

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

h1,
h2,
h3,
h4 {
  color: var(--paper-0);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1rem;
  max-width: 68ch;
}

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

li {
  margin-bottom: 0.4rem;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

kbd {
  display: inline-block;
  min-width: 1.8em;
  padding: 0.15em 0.45em;
  border: 1px solid var(--steel-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--bench-2);
  color: var(--paper-0);
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--ink-0);
  color: var(--bench-0);
  transform: translateY(-160%);
  transition: transform 160ms ease-out;
}

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

.section {
  padding-block: clamp(3rem, 7vw, 6.5rem);
  border-top: 1px solid rgb(255 255 255 / 0.08);
}

.section--lead {
  border-top: 0;
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.section-head {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.8rem;
  max-width: 780px;
}

.section-head p {
  color: var(--steel-1);
  margin: 0;
}

.section-foot {
  margin-top: 1.6rem;
}

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

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0;
}

.eyebrow-free {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--steel-1);
  letter-spacing: 0;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  margin-top: 1.8em;
}

.prose h3 {
  margin-top: 1.5em;
}

.prose a {
  text-decoration: underline;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  padding: 0.65rem 0.8rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--bench-2);
  color: var(--paper-0);
}

.prose blockquote {
  margin: 1.2rem 0;
  padding: 0.8rem 1rem;
  border: 1px solid rgb(255 92 31 / 0.4);
  background: rgb(255 92 31 / 0.08);
  color: var(--paper-1);
}
