:root {
  color-scheme: dark;
  --background: #020617;
  --surface: #0f172a;
  --rule: #334155;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #7dd3fc;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 1rem/1.65 "Avenir Next", Avenir, "Segoe UI", sans-serif;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
code, pre { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.skip-link { position: absolute; top: -4rem; left: 1rem; z-index: 10; padding: .5rem .75rem; background: var(--accent); color: var(--background); }
.skip-link:focus { top: 1rem; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 6rem; border-bottom: 1px solid var(--rule); }
.brand { font-size: 1.4rem; font-weight: 700; text-decoration: none; }
.brand span { color: var(--accent); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-header nav a, .site-footer a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-footer a:hover { color: var(--text); }
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; gap: clamp(3rem, 6vw, 7rem); padding-block: clamp(5rem, 9vw, 9rem); }
.hero-copy h1 { max-width: 12ch; font-size: clamp(3.5rem, 6vw, 6rem); font-weight: 650; }
.hero-copy > p { max-width: 33rem; margin-top: 2rem; color: var(--muted); font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }
.button { display: inline-block; padding: .85rem 1.25rem; border-radius: .375rem; background: var(--accent); color: var(--background); font-weight: 700; line-height: 1.3; text-decoration: none; }
.button:hover { background: #bae6fd; }
.text-link { color: var(--text); text-underline-offset: .3em; }
.text-link:hover { color: var(--accent); }
.revision-figure { min-width: 0; border: 1px solid var(--rule); border-radius: .75rem; overflow: hidden; background: var(--surface); }
.figure-bar { display: flex; justify-content: space-between; padding: .8rem 1.25rem; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: .8rem; }
.revision-figure pre { margin: 0; padding: clamp(1.5rem, 3vw, 2.5rem); overflow-x: auto; color: var(--text); font: .9rem/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; }
.code-muted { color: var(--muted); }
.code-string { color: var(--accent); }
.code-keyword { color: #fbbf24; }
.revision-figure figcaption { padding: 1rem 1.25rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .85rem; }
.features { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(3rem, 8vw, 8rem); padding-block: 5rem 7rem; border-top: 1px solid var(--rule); }
.section-intro h2, .install h2 { max-width: 17ch; font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 650; }
.section-intro p, .install p { max-width: 30rem; margin-top: 1.5rem; color: var(--muted); }
.feature-list article { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.feature-list article:last-child { border-bottom: 1px solid var(--rule); }
.feature-list h3 { font-size: 1.15rem; font-weight: 650; }
.feature-list p { max-width: 34rem; margin-top: .6rem; color: var(--muted); }
.install { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 2rem 5rem; padding-block: 5rem; border-top: 1px solid var(--rule); }
.install-command { display: grid; gap: 1rem; padding: 1.5rem; border: 1px solid var(--rule); border-radius: .5rem; background: var(--surface); }
.install-command span { color: var(--muted); font-size: .85rem; }
.install-command code { overflow-wrap: anywhere; color: var(--accent); font: 1rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.install > .text-link { grid-column: 2; justify-self: start; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 2rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) {
  .hero, .features, .install { grid-template-columns: 1fr; }
  .hero { gap: 3rem; }
  .hero-copy h1 { max-width: 16ch; }
  .revision-figure { max-width: 42rem; }
  .install > .text-link { grid-column: auto; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 2rem, 76rem); }
  .site-header { align-items: flex-start; flex-direction: column; justify-content: center; gap: .75rem; padding-block: 1.5rem; }
  .site-header nav { gap: 1.2rem; }
  .hero { padding-block: 4rem; }
  .hero-copy h1 { font-size: clamp(3rem, 13vw, 4.5rem); }
  .revision-figure pre { font-size: .72rem; }
  .features, .install { padding-block: 4rem; }
}
