/* 2600 Workbench. No external fonts or scripts.
   Colours follow the Hey Stella page so the family looks like one. */
:root {
  --bg: #0b0b0e;
  --bg-alt: #121218;
  --surface: #18181f;
  --text: #ecebe4;
  --muted: #a3a2ac;
  --line: #2b2b36;
  --yellow: #fcfc54;
  --blue: #75b5ef;
  --orange: #f0a040;
  --green: #6ccf6c;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .container { padding: 0 16px; } }

a { color: var(--blue); }
a:hover { color: var(--yellow); }
code, pre { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; overflow-x: auto; margin: 8px 0 4px; }
pre code { background: none; border: 0; padding: 0; font-size: 1em; }

/* Rainbow stripe: the four tool colours. */
.stripe { height: 6px; background: linear-gradient(90deg, var(--yellow) 0 25%, var(--orange) 25% 50%, var(--green) 50% 75%, var(--blue) 75% 100%); }

.nav { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.wordmark { font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--yellow); text-decoration: none; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 20px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); }

.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.eyebrow { font-family: var(--mono); color: var(--blue); text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 20px; max-width: 18ch; }
.sub { font-size: 19px; color: var(--text); max-width: 60ch; margin: 0 0 20px; }
.early { color: var(--muted); max-width: 60ch; border-left: 3px solid var(--yellow); padding-left: 14px; margin: 0; }
.early strong { color: var(--text); }

.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: 30px; margin: 0 0 24px; }
.lead { color: var(--muted); max-width: 62ch; margin: -8px 0 28px; font-size: 18px; }

/* Tools */
.tool {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 36px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.tool:first-of-type { border-top: 0; padding-top: 8px; }
.tool-shot { margin: 0; background: #000; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tool-shot a { display: block; }
.tool-shot img { display: block; width: 100%; height: auto; }
.pixel img { image-rendering: pixelated; }
.tag { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 4px; color: var(--yellow); }
.tool:nth-of-type(2) .tag { color: var(--green); }
.tool:nth-of-type(3) .tag { color: var(--orange); }
h3 { font-size: 26px; margin: 0 0 12px; }
h4 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 22px 0 6px; }
.tool-body p { margin: 0 0 12px; }
.tool-body ol { margin: 0 0 16px; padding-left: 22px; }
.tool-body li { margin-bottom: 6px; }
.status { color: var(--muted); font-size: 15px; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px !important; }

.btn {
  display: inline-block;
  background: var(--yellow);
  color: #111;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
}
.btn:hover { background: var(--text); color: #111; }

/* How they fit */
.flow { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 8px 0 28px; }
.flow-col { display: flex; flex-direction: column; gap: 10px; }
.box {
  font-family: var(--mono);
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 16px;
  text-align: center;
  min-width: 150px;
}
.box-rom { border-color: var(--yellow); color: var(--yellow); min-width: 90px; }
.box-voice { border-color: var(--green); color: var(--green); }
.arrow { font-size: 26px; color: var(--muted); }
.fit-notes { color: var(--muted); max-width: 62ch; padding-left: 20px; margin: 0; }
.fit-notes li { margin-bottom: 6px; }
@media (max-width: 720px) {
  .flow { flex-direction: column; }
  .arrow { transform: rotate(90deg); }
  .arrow-back { transform: rotate(90deg); }
}

/* Games */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.game {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
}
.game:hover { border-color: var(--blue); color: var(--text); }
.game img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 424;
  object-fit: contain;
  background: #000;
  image-rendering: pixelated;
}
.game-name { font-weight: 700; padding: 12px 14px 2px; }
.game-line { color: var(--muted); font-size: 15px; padding: 0 14px 14px; line-height: 1.45; }

/* Community */
.community { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.community-h { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 10px; }
.community-list { list-style: none; padding: 0; margin: 0; }
.community-list li { margin-bottom: 14px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.community-list a { font-weight: 700; }

.footer { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.footer p { margin: 0 0 8px; }
.fine { font-size: 13px; }

@media (max-width: 820px) {
  .tool { grid-template-columns: 1fr; gap: 20px; }
  .hero { padding: 48px 0 40px; }
}
