:root {
  color-scheme: dark;
  --canvas: #121a18;
  --ink: #f7f1df;
  --muted: #bbc7be;
  --gold: #e6c58a;
  --rule: #3a4942;
  --display: Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --gap: clamp(.75rem, 1.25vw, 2rem);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: clamp(1rem, .5vw + .55rem, 1.25rem)/1.6 system-ui, sans-serif;
}
h1, h2, h3, p, figure { margin: 0; }
p { color: var(--muted); }
a { color: var(--gold); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }
code, .numeral { font: .93em var(--mono); overflow-wrap: anywhere; }
code { color: var(--ink); }

.shell { width: min(94%, 3000px); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 1;
  inset: .75rem auto auto .75rem;
  padding: .6rem 1rem;
  background: var(--canvas);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }
.mast, .footer, .shot-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .35rem 1.25rem;
  flex-wrap: wrap;
}
.mast { border-bottom: 1px solid var(--rule); padding-block: .6rem; }
.brand { color: var(--ink); font-weight: 700; }
.brand-note { margin-inline-start: .35rem; color: var(--muted); font: .73rem var(--mono); }
nav { display: flex; flex-wrap: wrap; gap: 0 clamp(.85rem, 2vw, 2rem); }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .9rem; }
.mast a { color: var(--muted); text-decoration: none; }
.mast a:hover { color: var(--ink); text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 6rem);
  padding-block: clamp(2rem, 4vw, 7rem);
}
.hero-copy { padding-inline-start: clamp(0rem, 1vw, 1.75rem); }
.kicker {
  color: var(--gold);
  font: 600 .78rem/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .65rem;
}
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: -.045em; }
h1 { font-size: clamp(3rem, 5.3vw, 10rem); }
h2 { font-size: clamp(2.2rem, 3.4vw, 5.5rem); }
.lead { max-width: 31ch; margin-top: 1.05rem; font-size: clamp(1.05rem, 1.35vw, 1.7rem); }
.button {
  display: inline-flex;
  align-items: center;
  gap: .9em;
  padding: .72rem 1.05rem;
  margin-top: 1.4rem;
  min-height: 2.75rem;
  background: var(--gold);
  color: var(--canvas);
  font-weight: 720;
  text-decoration: none;
}
.button:hover { background: var(--ink); color: var(--canvas); }
.hero-platform { font-size: .83rem; margin-top: .6rem; }
.shot-label {
  font: .8rem/1.45 var(--mono);
  padding-block: .6rem;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
}
.shot-label span:first-child { color: var(--ink); }

.chapter { border-top: 1px solid var(--rule); padding-block: clamp(2.25rem, 4vw, 6rem); }
.chapter-head, .install {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 1rem var(--gap);
}
.chapter-head { margin-bottom: clamp(1.35rem, 2.4vw, 3.25rem); }
.chapter-head > p, .install p, .features p { max-width: 57ch; }
.comparison, .gallery { display: grid; gap: var(--gap); }
/* Source frames share a 670px height. Preserve that relationship, not equal column widths. */
.comparison { grid-template-columns: minmax(0, 1191fr) minmax(0, 1600fr); }
/* Match image heights again, even though Mi’ihen is wider than the battle shot. */
.gallery { grid-template-columns: minmax(0, 450fr) minmax(0, 670fr); }
.features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0 0 clamp(1.5rem, 3vw, 4rem);
  padding: 0;
}
.features li, .steps li { border-top: 1px solid var(--rule); padding-top: .85rem; }
h3 { font-size: clamp(1.05rem, 1.2vw, 1.45rem); line-height: 1.25; margin-bottom: .35rem; }
.install { align-items: start; }
.install h2 + p { margin-top: 1rem; }
.install p + p { margin-top: .75rem; }
.steps { margin: 0; padding: 0 0 0 2rem; }
.steps li + li { margin-top: 1.2rem; }
.steps li::marker { color: var(--gold); font: 600 .9rem var(--mono); }
.footer { border-top: 1px solid var(--rule); padding-block: 1rem 1.6rem; font-size: .87rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-inline-start: 0; }
  .chapter-head, .install { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 2rem); }
  .mast { display: block; padding-bottom: .15rem; }
  .mast nav { gap: 0 1.2rem; }
  .comparison, .gallery, .features { grid-template-columns: 1fr; gap: 1rem; }
  /* Keep the stock and wide images at the same scale even when they stack. */
  .comparison figure:first-child { width: calc(100% * 1191 / 1600); margin-inline: auto; }
}
