:root {
  color-scheme: light dark;
  --background: #f6f8fb;
  --surface: #ffffff;
  --text: #13263d;
  --muted: #475b70;
  --accent: #0758a7;
  --button: #0758a7;
  --button-text: #ffffff;
  --line: #d5e0ea;
  --hero: #e3eef9;
  --glow: #c2dfff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101923;
    --surface: #172637;
    --text: #edf5ff;
    --muted: #b8cadc;
    --accent: #a4ceff;
    --button: #a4ceff;
    --button-text: #10253c;
    --line: #31455a;
    --hero: #172d44;
    --glow: #28587f;
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--background); color: var(--text); line-height: 1.55; }
a { color: var(--accent); text-underline-offset: 0.22em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
p, h1, h2, h3 { margin: 0; }
.container { width: min(69rem, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; inset: 0 auto auto 1rem; padding: 0.75rem; background: var(--surface); translate: 0 -150%; }
.skip:focus { translate: 0 0; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-content, .site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.header-content { min-height: 4rem; padding-block: 0.75rem; }
.brand { font-weight: 750; text-decoration: none; color: var(--text); }
nav { display: flex; gap: 0.35rem 1.35rem; flex-wrap: wrap; }
nav a { text-decoration: none; font-size: 0.95rem; }
nav a:hover { text-decoration: underline; }
.hero { background: radial-gradient(ellipse at 85% 35%, var(--glow), transparent 55%), var(--hero); border-bottom: 1px solid var(--line); }
.hero-content { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; gap: 2rem; padding-block: clamp(2.75rem, 7vw, 6rem); }
.eyebrow { color: var(--accent); font-size: 0.8rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
h1 { margin-top: 0.55rem; font-size: clamp(2.55rem, 6.5vw, 5rem); line-height: 1.05; letter-spacing: -0.055em; text-wrap: balance; }
.intro { max-width: 35rem; margin-top: 1.2rem; font-size: 1.16rem; color: var(--muted); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem 1.25rem; margin-top: 1.75rem; }
.download { background: var(--button); color: var(--button-text); font-weight: 700; text-decoration: none; padding: 0.8rem 1.25rem; border-radius: 0.7rem; }
.download:hover { text-decoration: underline; }
.requirements { color: var(--muted); margin-top: 0.9rem; font-size: 0.88rem; }
.icon-panel { display: grid; place-items: center; }
.icon-panel img { display: block; width: min(100%, 15rem); height: auto; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.45rem); line-height: 1.2; letter-spacing: -0.035em; }
h3 { font-size: 1.1rem; line-height: 1.35; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.features article { background: var(--surface); border: 1px solid var(--line); border-radius: 0.85rem; padding: 1.35rem; }
.features p, .install-details p { margin-top: 0.5rem; color: var(--muted); }
.screenshots, .credits { border-top: 1px solid var(--line); }
.screenshots > p, .credits p { margin-top: 0.65rem; color: var(--muted); }
.screenshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.screenshot-grid figure { margin: 0; min-width: 0; }
.screenshot-grid a { display: block; border-radius: 0.75rem; }
.screenshot-grid img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 0.75rem; }
.screenshot-grid figcaption { margin-top: 0.55rem; color: var(--muted); font-size: 0.9rem; }
.credits h3 { margin-top: 1.5rem; }
.credits ul { margin-block: 0.65rem; padding-left: 1.4rem; }
.credits li + li { margin-top: 0.25rem; }
.install { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; }
.install ol { padding-left: 1.4rem; margin-bottom: 0; }
.install li + li { margin-top: 0.4rem; }
.install-details { padding: 1.35rem; border-radius: 0.85rem; background: var(--hero); }
.site-footer { border-top: 1px solid var(--line); padding-block: 1.5rem 2rem; color: var(--muted); }

@media (max-width: 47rem) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screenshot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 33rem) {
  .container { width: calc(100% - 2rem); }
  .hero-content, .features, .install { grid-template-columns: 1fr; }
  .icon-panel { grid-row: 1; justify-items: start; }
  .icon-panel img { width: 6rem; }
  .hero-content { gap: 1.25rem; }
}
