:root {
  color-scheme: dark;
  --page: #111410;
  --panel: #1b2119;
  --text: #f0f1e8;
  --muted: #b9c1b4;
  --accent: #ee6267;
  --action: #a8202a;
  --action-hover: #bd2c36;
  --rule: #363e32;
  --mono: "Cascadia Mono", Consolas, monospace;
  font: 100%/1.55 "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p, dl, dd { margin: 0; }
code { font: .88em var(--mono); color: #ebd4d1; overflow-wrap: anywhere; }
section[id] { scroll-margin-block-start: 1.5rem; }

.frame { width: min(calc(100% - 3rem), 75rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 3; inset: .5rem auto auto .5rem; padding: .6rem 1rem; background: var(--accent); color: #20090b; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.masthead { position: relative; z-index: 1; background: #111410; border-bottom: 1px solid var(--rule); }
.masthead-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.masthead-inner { min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 750; text-decoration: none; line-height: 1.15; }
.mark { display: inline-block; position: relative; width: 22px; height: 23px; flex: 0 0 22px; }
.mark::before, .mark::after { content: ""; position: absolute; inset: 2px 6px 10px 5px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); transform: rotate(45deg); }
.mark::after { inset: 10px 6px 2px 5px; }
nav { display: flex; align-items: center; gap: clamp(.75rem, 2.5vw, 2rem); }
nav a { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; color: var(--muted); font-size: .9rem; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--accent); }
.nav-release span { color: var(--accent); font: .83rem var(--mono); }

.hero { position: relative; isolation: isolate; min-height: 36rem; display: grid; align-items: center; background: #18221e; }
.hero-art, .hero-shade { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; }
.hero-art { object-fit: cover; object-position: 58% 59%; }
.hero-shade {
  background: linear-gradient(90deg, #10150ff5, #10150fdc 24%, #10150f78 52%, transparent 87%),
              linear-gradient(0deg, #111410 0%, transparent 30%);
}
.hero-inner { padding-block: clamp(4rem, 7vw, 6.5rem); }
.label { color: var(--accent); font: 650 .875rem/1.4 var(--mono); letter-spacing: .10em; text-transform: uppercase; }
.hero-label { display: flex; gap: .7rem; align-items: center; margin-bottom: 1rem; }
.hero-label::before { content: ""; width: 1.5rem; height: 1px; background: var(--accent); }
h1 { margin-left: -.035em; font-size: clamp(3.55rem, 8.5vw, 8.1rem); line-height: .89; letter-spacing: -.079em; font-weight: 850; }
.hero-description { max-width: 29rem; margin-top: 1.65rem; color: #d3dbce; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.5rem .85rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; padding: .65rem 1rem; text-align: center; font-weight: 720; border: 1px solid transparent; border-radius: 4px; text-decoration: none; }
.button-primary { color: #fff7f5; background: var(--action); }
.button-primary:hover { background: var(--action-hover); }
.button-secondary { color: var(--text); background: #1d251dbb; border-color: #626d5d; }
.button-secondary:hover { background: #323e31; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .4rem .6rem; color: #c3cbbd; font: .875rem/1.5 var(--mono); }
.hero-meta span { color: #c27a75; }

.features { padding-block: 3.6rem 4.5rem; }
.section-heading { margin-bottom: 1.6rem; }
h2 { margin-top: .4rem; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.08; letter-spacing: -.05em; }
h3 { font-size: 1.15rem; line-height: 1.3; }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.feature-list article { padding: 1.35rem 1.4rem 1.45rem 0; }
.feature-list article + article { border-left: 1px solid var(--rule); padding-left: 1.4rem; }
.feature-list p, .player-note p { margin-top: .6rem; color: var(--muted); }

.setup-section { background: #151a14; border-block: 1px solid var(--rule); }
.setup-grid { padding-block: clamp(2.8rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.install-list { margin-block: 1.4rem 1.7rem; padding-inline-start: 1.65rem; color: var(--muted); }
.install-list li { padding-left: .4rem; margin-block: .7rem; }
.install-list li::marker { font: 650 .9rem var(--mono); color: var(--accent); }
.install-list strong { color: var(--text); }
.player-note { padding: 1rem 0 0; border-top: 1px solid var(--rule); }

.release { background: var(--panel); border: 1px solid var(--rule); border-top: 2px solid #873c41; padding: clamp(1rem, 3vw, 2.15rem); }
.release-summary { margin-top: .8rem; color: var(--muted); }
.release-details { margin-block: 1.25rem; }
.release-details div { display: grid; grid-template-columns: minmax(6rem, .9fr) minmax(0, 1.4fr); padding: .55rem 0; gap: .55rem; border-top: 1px solid var(--rule); }
.release-details dt { color: var(--muted); }
.release-details dd { color: var(--text); }
.release-download { width: 100%; }
.text-link { color: var(--accent); display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: .2em; }
details { margin-top: .6rem; border-top: 1px solid var(--rule); padding-top: .8rem; color: var(--muted); }
summary { cursor: pointer; color: var(--text); font-weight: 650; }
details p { margin-top: .7rem; }

.footer-inner { padding-block: 1.45rem; }
.footer span { font-weight: 750; }
.footer p { color: var(--muted); font-size: .875rem; }

@media (max-width: 720px) {
  .frame { width: min(calc(100% - 2rem), 75rem); }
  .masthead-inner { min-height: 3.65rem; gap: .75rem; }
  .brand { gap: .35rem; }
  .nav-release span { display: none; }
  .hero { min-height: 33rem; }
  .hero-art { object-position: 64% center; }
  .hero-shade {
    background: linear-gradient(90deg, #10150fe8, #10150f9e 72%, #10150f82),
                linear-gradient(0deg, #111410 0%, transparent 25%);
  }
  .hero-description { font-size: 1rem; }
  .features { padding-block: 2.8rem; }
  .feature-list, .setup-grid { grid-template-columns: 1fr; }
  .feature-list article { padding-inline: 0; }
  .feature-list article + article { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .4rem; }
}

@media (max-width: 380px) {
  .nav-release { display: none; }
  h1 { font-size: clamp(2.9rem, 15vw, 3.55rem); }
}

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