:root {
  --bg: #14151f;
  --panel: #1d1f2d;
  --line: #34374d;
  --text: #e9e7e1;
  --muted: #a3a3b5;
  --gold: #f0c04a;
  --red: #d64545;
  --kofi: #ff5e5b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 Inter, system-ui, sans-serif;
}
body * { font-variant-ligatures: none; }
a { color: var(--gold); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: "Jersey 10", monospace; font-weight: 400; letter-spacing: .5px; }

/* top bar */
nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
nav .logo { font-family: "Jersey 10", monospace; font-size: 30px; color: var(--text); text-decoration: none; }
nav .logo span { color: var(--red); }
nav .links a { color: var(--muted); text-decoration: none; margin-left: 22px; font-size: 15px; }
nav .links a:hover { color: var(--text); }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 48px 0 72px; }
.hero h1 { font-size: 84px; line-height: 1.05; margin: 0 0 18px; }
.hero h1 span { color: var(--red); }
.hero p { font-size: 20px; color: var(--muted); margin: 0 0 30px; max-width: 30em; text-wrap: pretty; }
p { text-wrap: pretty; }
.hero > * { min-width: 0; }
.hero img { justify-self: center; width: 100%; max-width: 400px; height: auto; image-rendering: pixelated; border: 4px solid var(--line); border-radius: 6px; display: block; }

/* buttons in the game's style; buttons in one row are the same width */
.btns { display: grid; grid-template-columns: repeat(2, minmax(0, 250px)); gap: 14px; }
.btn {
  display: block; padding: 14px 18px; text-align: center; text-decoration: none; white-space: nowrap;
  font-family: "Jersey 10", monospace; font-size: 27px; color: #fff;
  background: #5a8a3a; border: 3px solid #1b1b1b;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.35), inset 0 3px 0 rgba(255,255,255,.25);
}
.btn:hover { filter: brightness(1.12); }
.btn.kofi { background: var(--kofi); }
.btn.dark { background: #4a4d63; }
.btn.off { background: #3a3c4c; color: #8d8fa3; cursor: not-allowed; box-shadow: inset 0 -5px 0 rgba(0,0,0,.25); }
.btn.off:hover { filter: none; }

section { padding: 64px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 50px; margin: 0 0 26px; }
section .lead { color: var(--muted); margin: 0 0 30px; max-width: 40em; }

/* how it works: the number and the title on one line */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 34px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 22px; }
.step-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.step .n { font-family: "Jersey 10", monospace; color: var(--gold); font-size: 40px; line-height: 1; }
.step h3 { margin: 0; font-size: 29px; line-height: 1.2; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; display: block; border: 4px solid var(--line); border-radius: 6px; }
.shots figcaption { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* languages */
.langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.lang { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px; text-align: center; color: var(--text); text-decoration: none; }
a.lang:hover { border-color: var(--gold); }
.lang.current { border-color: var(--gold); }
.lang b { display: block; font-family: "Jersey 10", monospace; font-size: 28px; font-weight: 400; }
.lang small { color: var(--muted); }
.lang.soon { opacity: .55; border-style: dashed; }

/* download */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.chip { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 4px 14px; font-size: 15px; }
.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 8px; font-size: 32px; }
.card p { color: var(--muted); margin: 0 0 18px; font-size: 16px; flex: 1; }
.card .note { display: block; color: var(--gold); font-size: 14px; margin-top: 6px; }

footer { border-top: 1px solid var(--line); padding: 34px 0 48px; color: var(--muted); font-size: 14px; }
footer .social a { margin-right: 18px; }
footer .legal { margin-top: 18px; font-size: 12px; opacity: .8; }

/* support: text and the Ko-fi donation panel */
.support-grid { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
.support-grid > div { max-width: 620px; }
.kofi-panel { width: 100%; height: 640px; border: none; border-radius: 8px; background: #f9f9f9; }

@media (max-width: 900px) {
  .dl { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero, .support-grid { grid-template-columns: 1fr; }
  .steps, .shots { grid-template-columns: 1fr; }
  .hero h1 { font-size: 60px; }
  nav .links { display: none; }
}
@media (max-width: 480px) {
  .btns { grid-template-columns: 1fr; }
}

/* language pages */
.lang-hero h1 .own { color: var(--gold); font-size: .6em; }
.lang-hero .ver { font-size: 15px; margin: -14px 0 22px; }
.lang-hero img.teacher { width: 100%; max-width: 300px; height: auto; image-rendering: pixelated; border: none; border-radius: 0; }
