/* Fonts, self-hosted (SIL Open Font License, see /assets/fonts/OFL-*.txt) */
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/hanken-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/hanken-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/chakra-petch-latin-600-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/chakra-petch-latin-700-normal.woff2) format("woff2");
}

/* Brand: green #3DF58C on near-black #0A0F0D */
:root {
  color-scheme: light;
  --paper: #F5F8F6;
  --surface: #FFFFFF;
  --tint: #EAF1ED;
  --ink: #0E1512;
  --muted: #4C5A54;
  --line: #D6E0DB;
  --green: #3DF58C;      /* brand green, for fills */
  --green-ink: #0B7A41;  /* green for text and lines on light paper */
  --on-green: #06140C;
  --night: #0A0F0D;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0A0F0D;
  --surface: #111916;
  --tint: #0E1512;
  --ink: #EAF5EF;
  --muted: #9EB1A8;
  --line: #1F2C27;
  --green-ink: #3DF58C;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--green-ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, .badge, .eyebrow, .btn, .hud b { font-family: "Chakra Petch", "Segoe UI", system-ui, sans-serif; }

/* Header */
header.site { display: flex; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { display: block; height: 44px; width: auto; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
nav.site { margin-left: auto; display: flex; }
nav.site a { color: var(--muted); text-decoration: none; margin-left: 24px; font-weight: 600; }
nav.site a:hover { color: var(--ink); }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0;
}
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 88px; }
.badge {
  display: inline-block; font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-ink); border: 2px solid currentColor; border-radius: 999px; padding: 4px 14px;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); line-height: 1.06; letter-spacing: -.01em; margin: 20px 0 18px; }
.lede { font-size: 1.2rem; color: var(--muted); margin: 0; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
  padding: 12px 24px; border-radius: 10px; border: 2px solid transparent;
}
.btn.primary { background: var(--green); color: var(--on-green); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--green-ink); }

/* Game screen illustration (always dark, like a monitor) */
.screen { margin: 0; background: var(--night); border-radius: 22px; padding: 10px; box-shadow: 0 24px 60px -24px rgba(6, 20, 12, .55); border: 1px solid #1F2C27; }
.screen svg { display: block; width: 100%; height: auto; border-radius: 16px; }
.screen .acc-fill { fill: #3DF58C; }
.screen .acc-stroke { stroke: #3DF58C; }
.screen .tag text { font: 600 13px "Chakra Petch", system-ui, sans-serif; fill: #06140C; }
.hud {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px;
  color: #D9E7E0; font-size: .98rem; padding: 14px 8px 6px;
}
.hud b { color: #3DF58C; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-right: 6px; }
.hud .to { color: #3DF58C; font-weight: 700; }
kbd {
  font: 600 .8rem "Chakra Petch", system-ui, sans-serif; color: #EAF5EF; background: #1A2420;
  border: 1px solid #2C3B35; border-bottom-width: 3px; border-radius: 6px; padding: 1px 8px; margin-left: 4px;
}

/* Sections */
section { padding: 84px 0; }
section.tint { background: var(--tint); }
.eyebrow { margin: 0 0 8px; color: var(--green-ink); font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.12; margin: 0 0 14px; }
.intro { color: var(--muted); font-size: 1.12rem; margin: 0; max-width: 40em; }
h3 { font-size: 1.25rem; margin: 0 0 6px; line-height: 1.25; }

.steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; position: relative; }
.steps li::before {
  content: "0" counter(step); display: block; font: 700 .95rem "Chakra Petch", system-ui, sans-serif; letter-spacing: .1em;
  color: var(--green-ink); margin-bottom: 14px;
}
.steps p, .card p { margin: 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.ic { width: 46px; height: 46px; border-radius: 12px; background: var(--night); color: #3DF58C; display: grid; place-items: center; margin-bottom: 16px; }
.ic svg { width: 24px; height: 24px; }

.join { text-align: center; }
.join .intro { margin: 0 auto; }
.join .cta { justify-content: center; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: .95rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer.site a { color: var(--muted); }
footer.site nav a { margin-left: 20px; }
footer.site nav a:first-child { margin-left: 0; }

/* 404 */
.notfound { text-align: center; padding: 80px 0 110px; }
.notfound img { width: 120px; height: 120px; }
.notfound .cta { justify-content: center; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; padding-bottom: 64px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  nav.site a.opt { display: none; }
  nav.site a { margin-left: 0; }
  .steps, .grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hud { font-size: .9rem; }
}
@media (max-width: 520px) {
  .hud { flex-direction: column; gap: 4px; }
  .hud .to { display: none; }
}
