/* Styles plain Markdown output: h1 intro, h2 sections, h3 + p cards, lists. */
@font-face {
  font-family: "Cinzel";
  font-weight: 400 900;
  font-display: swap;
  src: url("cinzel.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 100 900;
  font-display: swap;
  src: url("inter.woff2") format("woff2");
}
@font-face {
  font-family: "Press Start 2P";
  font-weight: 400;
  font-display: swap;
  src: url("press-start-2p.woff2") format("woff2");
}
:root {
  --bg: #0b0f1a;
  --bg-2: #121828;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.10);
  --text: #e6e9f2;
  --muted: #9aa3b8;
  --alien: #63f5c8;
  --gold: #e8b64c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  position: relative;
  margin: 0;
  padding: 0 20px;
  color: var(--text);
  font: 400 17px/1.65 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  counter-reset: card;
  background:
    radial-gradient(ellipse 70% 420px at 50% 120px, rgba(99, 245, 200, 0.16), transparent 70%),
    linear-gradient(180deg, #05070d 0, #0e1526 560px, var(--bg) 900px) no-repeat,
    var(--bg);
}
body::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 620px;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 41% 30%, #cfe 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 89% 9%, #cfe 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 40%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 44%, #fff 50%, transparent 51%);
  opacity: 0.7;
}
body > * {
  position: relative;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
a { color: var(--alien); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Intro: h1, subtitle, pitch, devlog button, status. */
body > h1 {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: clamp(80px, 18vh, 180px);
  text-align: center;
  font: 800 clamp(48px, 11vw, 120px)/0.95 "Cinzel", serif;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff 10%, #b9c3d8 55%, #6d778c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body > h1 + p {
  margin-top: 14px;
  text-align: center;
  font: 600 clamp(16px, 3vw, 26px)/1.2 "Cinzel", serif;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
}
body > h1 + p + p {
  max-width: 620px;
  margin-top: 34px;
  text-align: center;
  font-size: clamp(18px, 2.4vw, 22px);
}
body > h1 + p + p strong { color: var(--alien); }
body > h1 + p + p + p { margin-top: 40px; text-align: center; }
body > h1 + p + p + p a {
  display: inline-block;
  padding: 14px 26px;
  font-weight: 600;
  border-radius: 4px;
  background: var(--alien);
  color: #06231a;
  transition: transform 0.15s;
}
body > h1 + p + p + p a:hover { text-decoration: none; transform: translateY(-2px); }
body > h1 + p + p + p + p {
  margin-top: 22px;
  margin-bottom: clamp(80px, 16vh, 160px);
  text-align: center;
  font: 400 11px/1.6 "Press Start 2P", monospace;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}

/* Sections. */
h2 {
  margin-top: 96px;
  margin-bottom: 22px;
  font: 800 clamp(28px, 5vw, 44px)/1.1 "Cinzel", serif;
  letter-spacing: 0.03em;
}
h2::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-bottom: 20px;
  background: var(--gold);
}
blockquote {
  margin: 0 auto 28px;
  padding-left: 20px;
  border-left: 3px solid var(--alien);
  font: 600 clamp(20px, 3vw, 28px)/1.35 "Cinzel", serif;
}
blockquote p { margin: 0; }
h2 + blockquote + p { font-size: 19px; color: var(--muted); }

/* Feature cards: h3 + following p. */
h3 {
  margin-top: 18px;
  margin-bottom: 0;
  padding: 24px 26px 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  font: 600 20px/1.3 "Cinzel", serif;
}
h3::before {
  counter-increment: card;
  content: counter(card, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-right: 14px;
  vertical-align: middle;
  border-radius: 4px;
  background: rgba(232, 182, 76, 0.12);
  color: var(--gold);
  font: 400 12px/1 "Press Start 2P", monospace;
}
h3 + p {
  margin-top: 0;
  padding: 0 26px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  color: var(--muted);
}

/* Feature list. */
body > ul:first-of-type { list-style: none; padding: 0; display: grid; gap: 12px; }
body > ul:first-of-type li { position: relative; padding-left: 28px; }
body > ul:first-of-type li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  background: var(--alien);
}

/* Follow section: last h2, its text and social links. */
body > h2:last-of-type, body > h2:last-of-type ~ p { text-align: center; }
body > h2:last-of-type::before { margin-left: auto; margin-right: auto; }
body > h2:last-of-type ~ p { color: var(--muted); font-size: 19px; }
body > ul:last-of-type {
  list-style: none;
  padding: 0;
  margin-top: 36px;
  margin-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
body > ul:last-of-type a {
  display: inline-block;
  padding: 12px 22px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  transition: transform 0.15s, border-color 0.15s;
}
body > ul:last-of-type a:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--alien); }

/* Footer from the site template. */
body > footer {
  max-width: none;
  margin: 0 -20px;
  padding: 32px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
footer .wrap {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  gap: 12px 24px;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Full-screen embed page (demo). */
body > iframe { max-width: none; }
body:has(> iframe) { overflow: hidden; }
body:has(> iframe) > footer { display: none; }

/* Controls page: wrapper class "controls", h2 + ul cards, `code` as keycaps. */
.controls {
  max-width: 720px;
  padding: clamp(56px, 12vh, 120px) 0 96px;
}
.controls h1 {
  margin: 0 0 8px;
  font: 800 clamp(40px, 8vw, 72px)/1 "Cinzel", serif;
  letter-spacing: 0.03em;
  background: linear-gradient(180deg, #fff 10%, #b9c3d8 55%, #6d778c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.controls p { color: var(--muted); }
.controls p:has(> a:only-child) { margin: 28px 0; }
.controls p > a:only-child {
  display: inline-block;
  padding: 14px 30px;
  font-weight: 600;
  border-radius: 4px;
  background: var(--alien);
  color: #06231a;
  transition: transform 0.15s;
}
.controls p > a:only-child:hover { text-decoration: none; transform: translateY(-2px); }
.controls h2 {
  margin: 28px 0 0;
  padding: 18px 24px 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  font: 600 13px/1.4 "Press Start 2P", monospace;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
}
.controls h2::before { content: none; }
.controls ul {
  list-style: none;
  margin: 28px 0 0;
  padding: 6px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.controls h2 + ul { margin-top: 0; border-top: 0; border-radius: 0 0 6px 6px; }
.controls li { padding: 12px 0; border-top: 1px solid var(--line); }
.controls li:first-child { border-top: 0; }
.controls code {
  display: inline-block;
  min-width: 2.3em;
  margin: 2px 2px 2px 0;
  padding: 3px 9px;
  text-align: center;
  font: 600 14px/1.4 "Inter", system-ui, sans-serif;
  color: var(--text);
  background: #1b2236;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom-width: 3px;
  border-radius: 5px;
}
