:root {
  color-scheme: dark;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #f6f5f1;
  background: #080808;
  --muted: #b0afaa;
  --line: #343432;
  --panel: #111110;
  --accent: #e4fa78;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
.page-1 { --accent: #a1caff; }
.page-2 { --accent: #ffae85; }
.page-3 { --accent: #d4bcff; }
.page-4 { --accent: #9ef3c9; }
.shell { width: min(100% - 3rem, 78rem); margin-inline: auto; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, nav, .brand { display: flex; align-items: center; }
.header-inner { justify-content: space-between; gap: 1rem 2rem; min-height: 5rem; padding-block: .8rem; }
.brand { gap: .7rem; font-size: 1.125rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.brand img { display: block; border-radius: .5rem; }
nav { gap: .4rem 1.5rem; flex-wrap: wrap; }
nav a { padding-block: .4rem; color: var(--muted); text-decoration: none; font-size: .94rem; white-space: nowrap; }
nav a:hover, nav a[aria-current] { color: var(--accent); }
nav a[aria-current] { box-shadow: 0 1px currentColor; }
.hero { padding-block: clamp(4rem, 10vw, 9rem) clamp(2rem, 5vw, 4.5rem); }
.label { color: var(--accent); font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(3rem, 10.8vw, 10rem); letter-spacing: -.085em; max-width: 10ch; margin-block: .12em .32em; overflow-wrap: break-word; }
.page-0 h1, .page-3 h1 { max-width: none; }
h2 { font-size: clamp(1.65rem, 4vw, 3.9rem); letter-spacing: -.055em; }
h3 { font-size: 1.35rem; letter-spacing: -.025em; }
p { color: var(--muted); }
p + p { margin-top: 1rem; }
.hero-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: start; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.hero-copy p { font-size: clamp(1.04rem, 2vw, 1.4rem); max-width: 40ch; }
main section { border-top: 1px solid var(--line); padding-block: clamp(2rem, 5.5vw, 4.5rem); }
main section > h2 { margin-bottom: 1.5rem; }
.feature, .split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 3rem; }
.feature .label, .trial .label { margin-bottom: .75rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 1px; background: var(--line); }
.grid article, .trial article { background: var(--panel); padding: clamp(1rem, 3vw, 2rem); }
article h2 + p, article h3 + p, li h3 + p, dd h3 + p { margin-top: .8rem; }
.note p { max-width: 70ch; }
.steps { display: grid; gap: 0; padding-left: 2rem; }
.steps li { padding: 1.2rem .5rem; border-bottom: 1px solid var(--line); }
.steps li::marker { color: var(--accent); font-weight: 700; }
.steps p, .history p { max-width: 64ch; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
td { color: var(--muted); }
td:nth-child(2), th { color: var(--accent); }
.history > div { display: grid; grid-template-columns: minmax(5rem, 1fr) 3fr; gap: 1rem; padding-block: 1.3rem; border-bottom: 1px solid var(--line); }
.history dt { color: var(--accent); font-size: clamp(1.4rem, 5vw, 3rem); line-height: 1; font-weight: 750; }
.history dd { margin: 0; }
.trial { gap: 1px; }
.trial article { border: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding-block: 1rem; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: .8rem 0 0; max-width: 66ch; }
.site-footer { background: var(--panel); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.15fr .9fr 1fr; gap: 2rem; padding-block: 3rem; }
.footer-grid h2 { font-size: clamp(1.7rem, 4vw, 3rem); }
.footer-grid p, .footer-grid ul { margin: .75rem 0 0; }
.footer-grid ul { padding: 0; list-style: none; }
.footer-grid li + li { margin-top: .35rem; }
.footer-grid a { text-decoration: none; color: var(--muted); }
.footer-grid a:hover, .footer-grid a[aria-current] { color: var(--accent); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 1rem; color: var(--muted); font-size: .875rem; }

@media (max-width: 48rem) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .hero-copy, .feature, .split { grid-template-columns: 1fr; }
  .grid, .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 30rem) {
  .shell { width: calc(100% - 2rem); }
  nav { gap: .2rem .85rem; }
  nav a { font-size: .875rem; }
  th, td { padding: .6rem .4rem; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.footer-brand img {
  flex: none;
  border-radius: .5rem;
}
