:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #f4f4f4;
  background: #151515;
  line-height: 1.5;
  --muted: #adadad;
  --line: #373737;
  --panel: #1c1c1c;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
h1, h2, p, figure { margin: 0; }

main {
  width: min(72rem, calc(100% - 3rem));
  margin-inline: auto;
  padding-bottom: 3rem;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  border-bottom: 1px solid var(--line);
}
nav a { text-decoration: none; }
.brand { font-weight: 700; }
.nav-links { display: flex; gap: 1.75rem; color: var(--muted); }
.nav-links, .nav-download { font-size: .9rem; }
.nav-download { padding: .4rem .8rem; border: 1px solid var(--line); border-radius: .35rem; }
nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: .22em; }

.overview {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  margin-block: 2.25rem 2.75rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--panel);
}
header, .instructions { padding: clamp(1.4rem, 4vw, 3.25rem); }
header { align-self: center; }
.instructions { border-left: 1px solid var(--line); }
.platform { color: var(--muted); font-size: .9rem; }
h1 {
  margin-block: .7rem 1rem;
  font-size: clamp(2.75rem, 6.4vw, 5.1rem);
  letter-spacing: -.065em;
  line-height: .97;
}
.intro { max-width: 28rem; color: #c6c6c6; font-size: 1.05rem; }
h2 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -.025em; }

ol { margin: .75rem 0 1rem; padding: 0; list-style: none; counter-reset: steps; }
li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: .7rem;
  padding-block: .7rem;
  border-bottom: 1px solid var(--line);
}
li::before {
  content: counter(steps, decimal-leading-zero);
  color: var(--muted);
  font: .84rem/1.75 Consolas, monospace;
}
li p { margin-top: .14rem; color: #c6c6c6; }
.note, figcaption { color: var(--muted); font-size: .9rem; }

.gallery h2 { margin-bottom: .9rem; }
.screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--panel);
}
figure a, img { display: block; }
img { width: 100%; height: auto; }
figcaption { padding: .6rem .85rem; border-top: 1px solid var(--line); }
figure a:hover img { filter: brightness(1.12); }
figure a:focus-visible { outline-offset: -3px; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--panel);
}
.hero-link, .download {
  display: inline-block;
  padding: .72rem 1.05rem;
  border-radius: .38rem;
  background: #f2f2f2;
  color: #181818;
  font-weight: 650;
  text-decoration: none;
}
.hero-link { margin-top: 1.35rem; }
.hero-link:hover, .download:hover { background: #d5d5d5; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
#download-status:not(:empty) { margin-top: .4rem; }

@media (max-width: 46rem) {
  main { width: calc(100% - 1.75rem); }
  .nav-links { display: none; }
  .overview, .screens { grid-template-columns: 1fr; }
  .overview { margin-block: 1.3rem 2rem; }
  .instructions { border-top: 1px solid var(--line); border-left: 0; }
}
