/* AsciiLings marketing site
   Palette taken from the game's own renderer: black terminal ground, phosphor
   green for the AsciiLings and the exit, yellow for skills, cyan for counters,
   red for hazards. */

:root {
    --ink: #000000;
    --ink-2: #0b0e0b;
    --panel: #12160f;
    --line: #26301f;
    --green: #3bd85f;
    --green-bright: #66ff88;
    --yellow: #ffd400;
    --cyan: #4fd8e8;
    --red: #ff5b4a;
    --text: #eef2ec;
    --muted: #9aa79a;
    --muted-2: #78857a;
    --radius: 12px;
    --maxw: 1080px;
    --mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3 { font-family: var(--mono); line-height: 1.2; letter-spacing: -0.01em; }

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

.wrap.narrow { max-width: 760px; }

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 12px;
    top: 12px;
    z-index: 10;
    background: var(--green);
    color: #000;
    padding: 10px 14px;
    border-radius: 8px;
}

/* ------------------------------------------------------------------ header */

.site-head {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(140%) blur(8px);
}

.site-head .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 62px;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-family: var(--mono);
    font-weight: 700;
    font-size: 18px;
}

.brand img { border-radius: 7px; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 15px;
    flex-wrap: wrap;
}

.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a:focus { color: var(--text); }

.nav-cta {
    border: 1px solid var(--green);
    color: var(--green) !important;
    border-radius: 999px;
    padding: 6px 16px;
}

.nav-cta:hover, .nav-cta:focus {
    background: var(--green);
    color: #000 !important;
    text-decoration: none;
}

/* -------------------------------------------------------------------- hero */

.hero {
    padding: 64px 0 52px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(900px 420px at 50% -8%, rgba(59, 216, 95, 0.14), transparent 70%),
        var(--ink);
}

.hero h1 {
    font-size: clamp(34px, 6.4vw, 60px);
    margin: 0 0 14px;
    color: var(--green-bright);
}

.hero .lede {
    font-size: clamp(17px, 2.4vw, 21px);
    color: var(--muted);
    margin: 0 auto 28px;
    max-width: 660px;
}

.hero-center { text-align: center; }

/* The playfield: real game glyphs, drawn as text so it stays crisp anywhere. */

.playfield {
    margin: 0 auto 30px;
    padding: 18px 12px;
    max-width: 720px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow-x: auto;
}

.playfield pre {
    font-family: var(--mono);
    font-size: clamp(11px, 2.1vw, 17px);
    line-height: 1.35;
    margin: 0;
    color: #9a9a9a;
    text-align: left;
    display: inline-block;
    white-space: pre;
}

.playfield .ling { color: var(--green-bright); }
.playfield .exit { color: var(--green); font-weight: 700; }
.playfield .haz { color: var(--red); }
.playfield .skill { color: var(--yellow); }
.playfield .count { color: var(--cyan); }

.field-note {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted-2);
    margin: 12px 0 30px;
}

/* Keep a glyph and its label, and the skill counter, from splitting mid-phrase. */
.field-note span { white-space: nowrap; }

/* ------------------------------------------------------------ store badges */

.stores {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 0 10px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
}

.store-btn:hover, .store-btn:focus {
    border-color: var(--green);
    text-decoration: none;
}

.store-btn.primary {
    background: var(--green);
    border-color: var(--green);
    color: #04120a;
}

.store-btn.primary:hover, .store-btn.primary:focus { background: var(--green-bright); }

.store-btn .glyph { font-family: var(--mono); font-weight: 700; }

/* ---------------------------------------------------------------- sections */

section { padding: 62px 0; border-bottom: 1px solid var(--line); }

section h2 {
    font-size: clamp(24px, 4vw, 34px);
    margin: 0 0 10px;
    color: var(--text);
}

section h2 .prompt { color: var(--green); }

.section-lede {
    color: var(--muted);
    margin: 0 0 34px;
    max-width: 640px;
}

/* ------------------------------------------------------------------- steps */

.steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.steps li {
    counter-increment: step;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 22px 24px;
}

.steps li::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: rgba(59, 216, 95, 0.14);
    color: var(--green);
    font-family: var(--mono);
    font-weight: 700;
}

.steps h3 { margin: 0 0 6px; font-size: 18px; color: var(--text); }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* ------------------------------------------------------------------ skills */

.skills {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    padding: 0;
    margin: 0;
    list-style: none;
}

.skills li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
}

.skills .name {
    font-family: var(--mono);
    color: var(--yellow);
    font-weight: 700;
    white-space: nowrap;
}

.skills .what { color: var(--muted); font-size: 15px; }

/* ----------------------------------------------------------------- gallery */

.shots {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 0;
    margin: 0;
    list-style: none;
}

.shots figure { margin: 0; }

.shots img {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #000;
}

.shots figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--muted);
    text-align: center;
}

/* ---------------------------------------------------------------- features */

.features {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 0;
    margin: 0;
    list-style: none;
}

.features li {
    border-left: 2px solid var(--green);
    padding: 4px 0 4px 16px;
}

.features h3 { margin: 0 0 4px; font-size: 17px; }
.features p { margin: 0; color: var(--muted); font-size: 16px; }

/* --------------------------------------------------------------------- faq */

.faq { margin: 0; }

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before {
    content: "+";
    color: var(--green);
    font-family: var(--mono);
    font-weight: 700;
    margin-right: 10px;
}

.faq details[open] summary::before { content: "-"; }

.faq p { color: var(--muted); margin: 10px 0 0 24px; }

/* -------------------------------------------------------------------- get */

.get { text-align: center; border-bottom: none; }

.get h2 { margin-bottom: 12px; }

/* ------------------------------------------------------------------ footer */

.site-foot {
    border-top: 1px solid var(--line);
    padding: 30px 0 44px;
    color: var(--muted-2);
    font-size: 15px;
}

.site-foot .wrap {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.site-foot a { color: var(--muted); }

.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------------------------------------------------------- document pages */

.doc { padding: 46px 0 20px; }
.doc h1 { font-size: clamp(26px, 4.6vw, 38px); margin: 0 0 8px; color: var(--green-bright); }
.doc h2 { font-size: 21px; margin: 34px 0 8px; }
.doc .updated { color: var(--muted-2); font-size: 15px; margin: 0 0 26px; }
.doc ul { color: var(--muted); }
.doc li { margin-bottom: 6px; }
.doc p { color: var(--muted); }
.doc strong { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
