:root {
  color-scheme: light;
  --paper: #f7f7f5;
  --ink: #151515;
  --ruby: #cc342d;
  --mist: #e5e5e1;
  --white: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--ruby); outline-offset: 4px; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }
.numeric { font-variant-numeric: tabular-nums; }

.site-header, main, footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ink); }
.brand { display: inline-flex; gap: 10px; align-items: center; font: 700 19px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.brand-mark { width: 17px; height: 17px; border-radius: 50%; background: var(--ruby); box-shadow: 8px 0 0 -4px var(--paper), 8px 0 0 0 var(--ink); }
nav { display: flex; gap: 28px; font-size: 14px; font-weight: 650; }
nav a, .text-link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; }
nav a:hover, .text-link:hover { text-decoration-color: currentColor; }

.hero { padding: 74px 0 88px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.hero > *, .section > *, .code-section > *, .install > * { min-width: 0; }
.edition { margin: 0 0 22px; color: var(--ruby); font-weight: 700; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { max-width: 680px; margin: 0; font-size: clamp(54px, 6.5vw, 96px); line-height: 0.95; }
.hero-lede { max-width: 580px; margin: 32px 0 0; font-size: 19px; line-height: 1.65; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); font-weight: 700; }
.button-primary { color: var(--white); background: var(--ink); }
.button-primary:hover { background: var(--ruby); border-color: var(--ruby); }
.button-secondary:hover { color: var(--white); background: var(--ink); }

.viewport { width: 100%; margin: 0; border: 1px solid var(--ink); background: var(--ink); color: var(--white); box-shadow: 16px 16px 0 var(--mist); }
.viewport-bar, .viewport figcaption { min-height: 42px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.render { position: relative; aspect-ratio: 1; overflow: hidden; border-block: 1px solid #444; }
.render img { display: block; width: 100%; height: 100%; object-fit: cover; }
.reticle { position: absolute; width: 18%; aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 50%; }
.reticle::after { content: ""; position: absolute; inset: 48%; background: var(--white); }
.reticle-one { top: 18%; left: 17%; }
.reticle-two { top: 42%; right: 13%; width: 12%; }
.reticle-three { bottom: 12%; left: 38%; width: 9%; }
.viewport figcaption { justify-content: flex-start; gap: 22px; }
.viewport figcaption span + span { padding-left: 22px; border-left: 1px solid #555; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--ink); }
.facts p { margin: 0; padding: 24px 28px; display: grid; gap: 6px; }
.facts p + p { border-left: 1px solid var(--ink); }
.facts strong { font-size: 17px; }
.facts span { color: #5f5f59; font-size: 13px; }
.section { padding: 112px 0; display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 90px; }
h2 { margin: 0; font-size: clamp(40px, 5vw, 68px); line-height: 1.02; }
.section-intro p, .code-copy p, .install p { max-width: 580px; margin: 26px 0 0; color: #52524d; font-size: 17px; line-height: 1.65; }
.capability-list { border-top: 1px solid var(--ink); }
.capability-list article { padding: 28px 0; display: grid; grid-template-columns: 180px 1fr; gap: 28px; border-bottom: 1px solid var(--ink); }
h3 { margin: 0; font-size: 16px; }
.capability-list p { margin: 0; color: #52524d; line-height: 1.65; }

.code-section { padding: 86px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: center; background: var(--ink); color: var(--white); }
.code-copy p { color: #bcbcb5; }
.text-link { display: inline-block; margin-top: 30px; font-weight: 700; }
pre { max-width: 100%; margin: 0; padding: 28px; overflow-x: auto; border: 1px solid #4a4a46; background: #20201e; color: #ededeb; font: 14px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; }
.code-muted { color: #aaa9a2; }
.code-string { color: #f1918c; }
.code-number { color: #d9c17e; }

.install { margin-top: 112px; padding: 74px 0; display: grid; grid-template-columns: 1fr 0.8fr; gap: 80px; align-items: center; border-block: 1px solid var(--ink); }
.command { padding: 24px; border: 1px solid var(--ink); background: var(--white); font: 17px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.command::before { content: "$ "; color: var(--ruby); font-weight: 700; }
footer { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #5f5f59; font-size: 13px; }
footer a { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 860px) {
  .hero, .section, .code-section, .install { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 56px; }
  .section { gap: 54px; }
  .code-section { margin-inline: -24px; padding: 64px 24px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts p:nth-child(3) { border-left: 0; border-top: 1px solid var(--ink); }
  .facts p:nth-child(4) { border-top: 1px solid var(--ink); }
}

@media (max-width: 560px) {
  .site-header, main, footer { width: min(calc(100% - 32px), 1180px); }
  .site-header { min-height: 72px; }
  nav a:not(:last-child) { display: none; }
  .hero { padding: 54px 0 70px; }
  h1 { font-size: clamp(50px, 16vw, 72px); }
  .hero-lede { font-size: 17px; }
  .button { flex: 1 1 100%; }
  .viewport { box-shadow: 8px 8px 0 var(--mist); }
  .viewport figcaption { gap: 12px; font-size: 10px; }
  .viewport figcaption span + span { padding-left: 12px; }
  .facts p { padding: 20px 14px; }
  .section { padding: 82px 0; }
  .capability-list article { grid-template-columns: 1fr; gap: 10px; }
  .code-section { margin-inline: -16px; padding: 56px 16px; }
  pre { padding: 20px; font-size: 12px; }
  .install { margin-top: 82px; padding: 60px 0; gap: 38px; }
  footer { padding: 28px 0; align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
