/* Little Decker site. Tokens from projects/neuromancer/DESIGN.md (Palette: BACKGROUND, SURFACE,
   INK, INK_DIM, PRIMARY cyan, ACCENT magenta, CURRENCY amber, DANGER, OUTLINE; shapes 10/16 dp)
   and the derived light palette in projects/neuromancer/site-docs/SEO-BRIEF.md §0.8.
   The app is dark-only: dark theme = app palette; light theme = same hues, accents darkened to AA.
   The top bar, hero and footer stay night-coloured in both themes (the app's neon street).
   Display face: Orbitron variable subset, renamed "LD Signage" (the OFL reserves "Orbitron").
   Body face: Share Tech Mono subset, renamed "LD Terminal" (the OFL reserves "Share"). */

@font-face {
    font-family: "LD Signage";
    src: url("fonts/orbitron-var.woff2") format("woff2");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "LD Terminal";
    src: url("fonts/sharetechmono-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light dark;
    /* light (derived, brief §0.8) */
    --ground: #EEF1F8;
    --surface: #FFFFFF;
    --ink: #151B33;
    --dim: #47506F;
    --line: #C5CBE0;
    --primary: #00686B;
    --accent: #B0136A;
    --currency: #8A4F00;
    --danger: #B0173A;
    --focus: #00686B;
    --btn-ink: #FFFFFF;
    /* fixed app tokens (both themes; the night bands) */
    --night: #05070F;
    --night-surface: #0B0F1E;
    --night-variant: #141B33;
    --night-ink: #A8B3D6;
    --night-dim: #8B96C2;
    --neon: #2DE2E6;
    --neon-pink: #FF3EA5;
    --neon-amber: #FFB454;
    --outline: #3A4569;
    --display: "LD Signage", "Arial Black", sans-serif;
    --body: "LD Terminal", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
    :root {
        --ground: #05070F;
        --surface: #0B0F1E;
        --ink: #A8B3D6;
        --dim: #8B96C2;
        --line: #3A4569;
        --primary: #2DE2E6;
        --accent: #FF3EA5;
        --currency: #FFB454;
        --danger: #FF4D6D;
        --focus: #2DE2E6;
        --btn-ink: #05070F;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font: 400 1.0625rem/1.6 var(--body);
    overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.01em; color: var(--primary); }
h1 { font-size: clamp(1.8rem, 5.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.9rem); }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.45em; }
strong { color: inherit; }
.cr { color: var(--currency); font-variant-numeric: tabular-nums; }

.wrap { width: min(70rem, 100% - 2.5rem); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--neon); color: var(--night); padding: 0.75rem 1rem; z-index: 10; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.skip-link:focus-visible { outline: 3px solid var(--neon-pink); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Night bands: always the app's own palette */
.topbar, .hero, .footer { --focus: var(--neon); color: var(--night-ink); background: var(--night); }
.topbar a, .hero a, .footer a { color: var(--neon); }
.hero h1 { color: var(--neon); }

.topbar { border-bottom: 1px solid var(--outline); }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 0.4rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; min-height: 48px; }
.brand img { border-radius: 10px; }
.topbar .brand { color: var(--neon); }
.wordmark { font: 700 1.15rem/1 var(--display); letter-spacing: 0.04em; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 48px; font: 500 0.95rem/1 var(--display); letter-spacing: 0.05em; text-decoration: none; }
.topbar .site-nav a { color: var(--night-ink); }
.topbar .site-nav a:hover, .topbar .site-nav a[aria-current="page"] { color: var(--neon); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }

/* Hero: neon street at night, a magenta kerb line under it */
.hero { padding: 2rem 0 2.5rem; border-bottom: 3px solid var(--neon-pink); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-grid > *, .split > * { min-width: 0; }
@media (min-width: 52rem) { .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; } }
.eyebrow { font: 500 0.9rem/1.3 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--neon-amber); margin-bottom: 0.75rem; }
.hero .answer { color: var(--night-ink); font-size: 1.1rem; }
.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin-top: 1.25rem; }
.badge-row p { margin: 0; color: var(--night-dim); }
.play-badge { display: inline-block; border-radius: 6px; }
.play-badge img { width: 188px; height: 56px; }

/* Portrait framed screenshots (dark slides): 1 px hairline so they separate from both grounds */
.shot { margin: 0; }
.shot img { width: 100%; aspect-ratio: 9 / 16; border: 1px solid var(--outline); border-radius: 16px; background: var(--night); }
.hero-shot { max-width: 22rem; justify-self: center; width: 100%; }
.hero-shot img { box-shadow: 0 0 0 3px rgba(45, 226, 230, 0.35); }
figcaption { font-size: 0.95rem; color: var(--dim); margin-top: 0.6rem; }

.section { padding-block: 2.75rem; border-top: 1px solid var(--line); }
.lead + .section, .hero + .section { border-top: 0; }
.answer { font-size: 1.1rem; max-width: 44rem; }
.detail { color: var(--dim); max-width: 44rem; }
.split { display: grid; gap: 1.5rem 3rem; align-items: start; }
@media (min-width: 52rem) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 19rem); } }

/* The loop: four numbered beats on surface cards */
.beats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1.25rem 0 0; counter-reset: beat; }
.beats li { margin: 0; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; counter-increment: beat; }
.beats li::before { content: "0" counter(beat); display: block; font: 800 1.6rem/1 var(--display); color: var(--accent); margin-bottom: 0.4rem; }
.beats strong { display: block; font: 600 1.05rem/1.25 var(--display); color: var(--primary); margin-bottom: 0.3rem; }

.facts { display: grid; gap: 0.5rem; margin: 0; }
.facts div { background: var(--surface); color: var(--ink); padding: 0.75rem 1rem; border-radius: 10px; border: 1px solid var(--line); }
.facts dt { font: 600 0.95rem/1.3 var(--display); color: var(--primary); letter-spacing: 0.03em; }
.facts dd { margin: 0; color: var(--dim); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 1.5rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.gallery li { margin: 0; }

.qlinks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.5rem; }
.qlinks li { margin: 0; }
.qlinks a { display: flex; align-items: center; min-height: 48px; padding: 0.5rem 1rem; background: var(--surface); color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 10px; }
.qlinks a::after { content: "\2192"; margin-left: auto; padding-left: 1rem; color: var(--primary); }
.qlinks a:hover { text-decoration: underline; }

/* Inner pages */
.page-head { padding-block: 1.25rem 1.75rem; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; padding: 0; margin: 0 0 0.75rem; font-size: 0.95rem; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "\203A"; margin-inline: 0.5rem; color: var(--dim); }
.crumbs a { display: inline-block; padding-block: 0.75rem; }
.lede { font-size: 1.1rem; color: var(--dim); max-width: 44rem; }
.step-n { font: 600 0.85rem/1 var(--display); color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 0.4rem; }
.limits { max-width: 46rem; padding-left: 1.6rem; }
.limits li { margin-bottom: 0.8rem; padding-left: 0.25rem; }
.limits li::marker { font-family: var(--display); color: var(--accent); }
.faq-list section { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.faq-list section:first-child { border-top: 0; }
.faq-list h2 { font-size: clamp(1.15rem, 2.8vw, 1.45rem); }
.end { padding-block: 2.5rem; border-top: 1px solid var(--line); }

.footer { padding-block: 2rem; margin-top: 2rem; border-top: 3px solid var(--neon-pink); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-top p { margin: 0; }
.footer strong { color: var(--neon); font-family: var(--display); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; list-style: none; padding: 0; margin: 1rem 0; }
.footer-links li { margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 48px; }
.fine { font-size: 0.9rem; color: var(--night-dim); }
.fine p { margin: 0 0 0.35rem; }

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