:root {
  --paper: #f7faf8;
  --white: #ffffff;
  --ink: #102a35;
  --teal: #087e76;
  --teal-dark: #05655f;
  --mist: #dceae6;
  --slate: #52656d;
  --line: #cbdad6;
  --code: #0d2029;
  --error: #fb7185;
  --warning: #fbbf24;
  --font-sans: "Instrument Sans", sans-serif;
  --font-mono: "Fragment Mono", monospace;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--font-sans); }
a { color: inherit; }
code { font-family: var(--font-mono); }
svg { display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 50; top: 12px; left: 12px; padding: 10px 16px; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }

.site-header { border-bottom: 1px solid var(--line); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; color: var(--ink); font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.brand svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a, .footer a { min-height: 44px; display: inline-flex; align-items: center; color: var(--slate); font-weight: 600; text-decoration: none; transition: color 160ms ease; }
.nav-links a:hover, .footer a:hover { color: var(--teal); }
.nav-links .nav-github { min-height: 44px; padding-inline: 18px; border: 1px solid var(--ink); color: var(--ink); }
.nav-links .nav-github:hover { border-color: var(--teal); color: var(--teal); }

.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr); align-items: center; gap: 72px; padding-block: 96px 104px; }
.status-line { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--teal-dark); font-weight: 650; }
.status-line span { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px var(--mist); }
h1 { max-width: 11ch; margin-bottom: 28px; font-size: clamp(3.35rem, 6.5vw, 6.4rem); font-weight: 650; line-height: .94; }
.hero-lede { max-width: 59ch; margin-bottom: 32px; color: var(--slate); font-size: 1.16rem; line-height: 1.7; }
.hero-lede code, .final-cta code { color: var(--teal-dark); font-size: .88em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid var(--ink); font-weight: 700; text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.button-primary { border-color: var(--teal); background: var(--teal); color: var(--white); }
.button-primary:hover { border-color: var(--teal-dark); background: var(--teal-dark); }
.button-secondary:hover { border-color: var(--teal); color: var(--teal); }
.install { display: flex; align-items: center; gap: 10px; color: var(--slate); font-size: .9rem; }
.install span { color: var(--teal); }

.diagnostic { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #27434d; background: var(--code); color: #d8e6e7; box-shadow: 20px 20px 0 var(--mist); }
.diagnostic figcaption { min-height: 52px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-inline: 18px; border-bottom: 1px solid #27434d; color: #a8bec3; font: .77rem var(--font-mono); }
.window-controls { display: flex; gap: 7px; }
.window-controls i { width: 8px; height: 8px; border-radius: 50%; background: #49636b; }
.check-state { justify-self: end; color: #7dd3c7; }
.diagnostic pre { margin: 0; padding: 30px 26px 26px; overflow-x: auto; font: .9rem/1.85 var(--font-mono); }
.line-no { display: inline-block; width: 28px; color: #587078; user-select: none; }
.syntax-keyword { color: #7dd3c7; }
.diagnostic mark { padding: 2px 3px; background: rgba(251,113,133,.18); color: #fecdd3; text-decoration: underline wavy var(--error); text-underline-offset: 4px; }
.diagnostic-output { padding: 20px 26px 22px; border-top: 1px solid #27434d; background: #102630; font: .76rem/1.55 var(--font-mono); }
.diagnostic-output p { margin-bottom: 5px; }
.diagnostic-output p:nth-child(even) { margin: 0 0 14px 70px; color: #9db2b7; }
.diagnostic-output p:last-child { margin-bottom: 0; }
.diagnostic-output strong { margin-inline: 8px; color: #d8e6e7; font-weight: 400; }
.severity { display: inline-block; min-width: 62px; }
.severity.error { color: var(--error); }
.severity.warning { color: var(--warning); }

.proof { border-block: 1px solid var(--line); background: var(--white); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof p { min-height: 124px; display: flex; flex-direction: column; justify-content: center; margin: 0; padding-inline: 30px; border-left: 1px solid var(--line); }
.proof p:last-child { border-right: 1px solid var(--line); }
.proof strong { font-size: 2rem; font-variant-numeric: tabular-nums; line-height: 1; }
.proof span { margin-top: 10px; color: var(--slate); }

.features { padding-block: 120px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 60px; }
.section-heading h2, .playground-section h2, .final-cta h2 { margin-bottom: 0; font-size: clamp(2.35rem, 4.7vw, 4.6rem); font-weight: 600; line-height: 1.02; }
.section-heading p { max-width: 56ch; margin-bottom: 4px; color: var(--slate); font-size: 1.1rem; }
.feature-list { border-top: 1px solid var(--ink); }
.feature-list article { display: grid; grid-template-columns: 52px 1fr minmax(245px, auto); gap: 30px; align-items: start; padding-block: 36px; border-bottom: 1px solid var(--line); }
.feature-list svg { width: 26px; height: 26px; margin-top: 4px; fill: none; stroke: var(--teal); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.feature-list h3 { margin-bottom: 8px; font-size: 1.35rem; }
.feature-list p { max-width: 61ch; margin-bottom: 0; color: var(--slate); }
.feature-list > article > code { padding-top: 5px; color: var(--teal-dark); font-size: .78rem; }

.playground-section { background: var(--ink); color: var(--white); }
.playground-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; padding-block: 104px; }
.playground-section .status-line { color: #8ed9d0; }
.playground-section .status-line span { box-shadow: 0 0 0 5px #21454a; }
.playground-copy p { max-width: 58ch; margin-bottom: 28px; color: #bdd0d4; font-size: 1.1rem; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; border-bottom: 1px solid #8ed9d0; color: #8ed9d0; font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--white); }

.final-cta { display: flex; justify-content: space-between; align-items: end; gap: 64px; padding-block: 120px; }
.final-cta p { max-width: 62ch; margin: 24px 0 0; color: var(--slate); font-size: 1.08rem; }
.final-cta .button { flex: none; }
.footer { border-top: 1px solid var(--line); }
.footer .shell { min-height: 116px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.footer p { margin: 0; color: var(--slate); font-size: .9rem; }
.footer div div { display: flex; justify-self: end; gap: 24px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 60px; padding-block: 72px 88px; }
  .hero-copy { max-width: 720px; }
  .section-heading, .playground-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-list article { grid-template-columns: 40px 1fr; }
  .feature-list > article > code { grid-column: 2; }
  .final-cta { align-items: start; flex-direction: column; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 32px, 1180px); }
  .nav { min-height: 68px; }
  .nav-links { gap: 6px; }
  .nav-links > a:not(.nav-github) { display: none; }
  .hero { padding-block: 56px 68px; }
  h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .diagnostic { box-shadow: 10px 10px 0 var(--mist); }
  .diagnostic figcaption { grid-template-columns: auto 1fr; gap: 16px; }
  .diagnostic figcaption > span:nth-child(2) { justify-self: center; }
  .check-state { display: none; }
  .diagnostic pre { padding: 24px 18px; font-size: .75rem; }
  .diagnostic-output { padding-inline: 18px; font-size: .67rem; }
  .diagnostic-output p:nth-child(even) { margin-left: 0; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof p { min-height: 104px; padding-inline: 18px; border-bottom: 1px solid var(--line); }
  .proof p:nth-child(odd) { border-left: 1px solid var(--line); }
  .proof p:nth-child(even) { border-right: 1px solid var(--line); }
  .proof p:nth-child(n+3) { border-bottom: 0; }
  .features { padding-block: 84px; }
  .section-heading { margin-bottom: 42px; }
  .feature-list article { grid-template-columns: 28px minmax(0, 1fr); gap: 18px; padding-block: 30px; }
  .feature-list > article > code { white-space: normal; overflow-wrap: anywhere; }
  .playground-grid { padding-block: 80px; }
  .final-cta { padding-block: 84px; }
  .footer .shell { grid-template-columns: 1fr auto; padding-block: 24px; }
  .footer p { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
