/* The look of the app: one green on a dark screen, the font VT323, frames with a title. */
@font-face { font-family: 'VT323'; font-display: swap; src: url(fonts/VT323-Regular.ttf) format('truetype'); }
:root { --bg: #030e05; --band: #0a2a0c; --dim: #1a8c1a; --mid: #22b422; --fg: #33ff33; --hi: #beffbe; color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 22px/1.3 'VT323', Consolas, 'Courier New', monospace;
  text-shadow: 0 0 6px rgba(51, 255, 51, 0.45);
}
/* Scan lines and dark corners, as the app draws them. They take no clicks. */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 10;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.14) 2px 4px);
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 11;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.5) 100%);
}
a { color: var(--hi); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--hi); outline-offset: 3px; }
main { max-width: 1180px; margin: 0 auto; padding: 0 16px 72px; }
section { margin-top: 56px; scroll-margin-top: 64px; }

/* The top line, as the status line of the app. */
.bar {
  position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px;
  padding: 6px 16px; background: var(--bg); border-bottom: 2px solid var(--dim); text-transform: uppercase;
}
.bar a { text-decoration: none; color: var(--mid); }
.bar a:hover { color: var(--hi); }
.bar a b { color: var(--fg); font-weight: 400; }
.bar .brand, .on {
  background: var(--fg); color: var(--bg); padding: 0 10px; text-shadow: none;
  box-shadow: 0 0 12px rgba(51, 255, 51, 0.5);
}
.bar .brand:hover { color: var(--bg); background: var(--hi); }
.bar .go { margin-left: auto; color: var(--hi); }

h1, h2, h3 { font-weight: 400; text-transform: uppercase; margin: 0; }
h1 { font-size: clamp(44px, 7.4vw, 92px); line-height: 0.95; color: var(--hi); text-shadow: 0 0 18px rgba(51, 255, 51, 0.7); }
h2 { font-size: clamp(30px, 4.4vw, 46px); color: var(--hi); margin-bottom: 18px; }
h2 small { display: block; font-size: 22px; color: var(--mid); }
h3 { font-size: 26px; color: var(--hi); }
p { margin: 0 0 12px; }
.dim { color: var(--mid); }
code { font: inherit; color: var(--hi); }

/* A frame with its title in the top line, as each page of the app. */
.panel {
  border: 2px solid var(--fg); margin: 0; padding: 14px 18px 16px; min-width: 0;
  box-shadow: 0 0 10px rgba(51, 255, 51, 0.35), inset 0 0 10px rgba(51, 255, 51, 0.12);
}
.panel > legend { padding: 0 10px; text-transform: uppercase; color: var(--fg); }
.panel p:last-child { margin-bottom: 0; }

.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; margin-top: 40px; }
.hero p.lead { font-size: 28px; line-height: 1.2; margin: 22px 0; max-width: 24em; }
.btn {
  display: inline-block; background: var(--fg); color: var(--bg); text-decoration: none; text-transform: uppercase;
  font-size: 30px; padding: 6px 22px; text-shadow: none; box-shadow: 0 0 18px rgba(51, 255, 51, 0.6);
}
.btn:hover { background: var(--hi); }
.meta { margin-top: 14px; color: var(--mid); }
.shot { display: block; width: 100%; height: auto; }
.panel.pic { padding: 6px; }
video.shot { background: #000; }
.panel.pic .note { margin: 8px 6px 4px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Rows as in a pattern: a step number, then the text. */
.rows { list-style: none; margin: 0; padding: 0; counter-reset: row; }
.rows li { counter-increment: row; display: grid; grid-template-columns: 4ch 1fr; gap: 14px; padding: 6px 10px; }
.rows li::before { content: counter(row, decimal-leading-zero); color: var(--mid); }
.rows li:nth-child(odd) { background: var(--band); }
.rows b { color: var(--hi); font-weight: 400; text-transform: uppercase; }

.songs { list-style: none; margin: 0; padding: 0; }
.songs li { padding: 6px 10px; }
.songs li:first-child .name { background: var(--hi); color: var(--bg); padding: 0 8px; text-shadow: none; }
.songs .name { color: var(--hi); }

details { border-bottom: 2px solid var(--band); padding: 8px 4px; }
summary { cursor: pointer; color: var(--hi); text-transform: uppercase; }
details p { margin: 8px 0 4px; }

footer { margin-top: 64px; padding: 16px; border-top: 2px solid var(--dim); color: var(--mid); text-align: center; }

/* The download page. */
.narrow { max-width: 820px; }
.panel ol, .panel ul { margin: 0 0 12px; padding-left: 26px; }
.panel li { margin-bottom: 6px; }
.agree { display: flex; gap: 14px; align-items: flex-start; margin: 20px 0; cursor: pointer; color: var(--hi); }
.agree input { width: 24px; height: 24px; margin-top: 2px; accent-color: #33ff33; flex: none; }
.btn[aria-disabled="true"] { background: var(--band); color: var(--dim); box-shadow: none; pointer-events: none; }

@media (max-width: 860px) {
  body { font-size: 20px; }
  .hero { grid-template-columns: 1fr; }
  .bar .go { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
