/* The teaser site (App\Http\Controllers\TeaserController): ZERO16 orange on a
   dusty blue-grey. Plain CSS, no build step (see package.json). */
:root {
    --bg: #262c37;
    --bg-2: #2f3644;
    --panel: #353d4c;
    --line: #4b5466;
    --text: #edf0f4;
    --muted: #8c96a8;
    --orange: #fa8200;
    --orange-hi: #ff9a2e;
    --orange-ink: #1c1100;
    --bad: #ff8a7a;
    --radius: 6px;
    --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Courier New", monospace;
    --sans: "Pixelify Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Two pixel faces, both SIL Open Font Licence and cut to Latin (Shi
   11/11/2026): Pixelify Sans for the page's text (fonts/PixelifySans-OFL.txt)
   and Silkscreen for the typewriter (fonts/Silkscreen-OFL.txt). */
@font-face {
    font-family: "Pixelify Sans";
    src: url("../fonts/pixelify-sans.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}
@font-face {
    font-family: "Silkscreen";
    src: url("../fonts/silkscreen.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse at 50% -10%, #3a4356 0%, transparent 60%),
        var(--bg);
    color: var(--text);
    font: 17px/1.55 var(--sans);
    /* Pixelify's "fi" join reads as a stray letter at body size. */
    font-variant-ligatures: none;
    /* Phosphor glow (Shi 11/11/2026): every letter bleeds a little light in
       its own colour, like text on a tube. The first line is the fallback
       for a browser without color-mix. */
    text-shadow: 0 0 8px rgba(237, 240, 244, .35);
    text-shadow: 0 0 2px color-mix(in srgb, currentColor 65%, transparent),
                 0 0 11px color-mix(in srgb, currentColor 50%, transparent);
}
/* Dark text on a light fill, and what people type, stay crisp. */
.cta, input, select, textarea { text-shadow: none; }

a { color: var(--orange-hi); }
a:hover { color: #ffb565; }

.preview-bar {
    margin: 0;
    padding: 6px 16px;
    background: #4a3a20;
    color: #ffd9a8;
    font-size: 13px;
    text-align: center;
}

.masthead { padding: 40px 16px 0; text-align: center; }
.mark { display: inline-block; text-decoration: none; }
/* The ZERO16 logo is pixel art drawn at 3x (363x102): shown at exactly that,
   or at 2x on a phone, so every art pixel stays square and sharp. */
.mark img { display: block; width: 363px; height: auto; image-rendering: pixelated; }
@media (max-width: 420px) { .mark img { width: 242px; } }

/* The placeholder wordmark until the real logo arrives. */
.wordmark {
    display: inline-block;
    padding: 10px 18px 8px;
    border: 4px solid var(--text);
    color: var(--text);
    font: 800 clamp(34px, 8vw, 56px)/1 var(--mono);
    letter-spacing: .08em;
    box-shadow: 6px 6px 0 var(--orange);
}
.wordmark b { color: var(--orange); font-weight: 800; }

main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

.hero { padding: 9vh 0 10vh; text-align: center; }
.tagline { margin: 0 0 40px; color: var(--muted); font-size: 18px; letter-spacing: .02em; }

.type {
    margin: 0 0 48px;
    font: 400 clamp(20px, 3.7vw, 34px)/1.3 "Silkscreen", var(--mono);
    font-synthesis: none;
    /* Room for the lead and a line that wraps once: the page never jumps as
       lines change length. On a wide screen every line fits on one. */
    min-height: 3.9em;     /* three rows at line-height 1.3 */
}
.type .lead { display: block; color: var(--text); }
.typed-wrap { display: inline-block; color: var(--orange); }
.caret {
    display: inline-block;
    width: .55em;
    height: .95em;
    margin-left: 4px;
    vertical-align: -.1em;
    background: var(--orange);
    animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.type.fade .typed { transition: opacity .35s; }
.type.fade .typed.out { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }

.cta {
    display: inline-block;
    padding: 14px 26px;
    border: 0;
    border-radius: var(--radius);
    background: var(--orange);
    color: var(--orange-ink);
    font: 700 17px/1 var(--sans);
    letter-spacing: .02em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 0 #b55e00;
}
.cta:hover { background: var(--orange-hi); color: var(--orange-ink); }
.cta:active { transform: translateY(2px); box-shadow: 0 2px 0 #b55e00; }
.cta:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .kind input:focus-visible + span {
    outline: 3px solid #ffd19c;
    outline-offset: 2px;
}

.interest {
    margin: 0 0 64px;
    padding: 32px clamp(16px, 4vw, 40px);
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.interest h2 { margin: 0 0 6px; font-size: 26px; }
.intro { margin: 0 0 24px; color: var(--muted); }

.form { display: grid; gap: 18px; }
.kinds { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
/* "I'm a" matches the "Register your interest" heading (Shi 11/11/2026). */
.kinds legend { margin-bottom: 10px; padding: 0; font-size: 26px; font-weight: 700; line-height: 1.2; }
.kind { position: relative; display: block; }
.kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kind span {
    display: block;
    padding: 12px 14px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    text-align: center;
    font-weight: 600;
}
.kind input:checked + span { border-color: var(--orange); color: var(--orange-hi); background: #3d3a3a; }
.kind:hover span { border-color: var(--muted); }

.group { display: grid; gap: 18px; }
.group[hidden] { display: none; }

.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; }
.field em { color: var(--muted); font-style: normal; font-weight: 400; }
input[type=email], input[type=text], input[type=url], select, textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #1f242e;
    color: var(--text);
    font: inherit;
}
textarea { resize: vertical; }

.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); flex: none; }
.consent { color: var(--muted); font-size: 15px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.errors { margin: 0 0 20px; padding: 12px 16px; border: 1px solid var(--bad); border-radius: var(--radius); color: var(--bad); }
.errors p { margin: 0 0 4px; font-weight: 600; }
.errors ul { margin: 0; padding-left: 20px; }

.done { text-align: center; padding: 12px 0; }
.done h2 { color: var(--orange-hi); }
.small { font-size: 14px; color: var(--muted); }

.prose { padding: 48px 0 64px; }
.prose h1 { font-size: 30px; }
.prose li { margin-bottom: 6px; }

.foot {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 22px 16px 30px;
    color: var(--muted);
    font-size: 14px;
}
.foot a { color: var(--muted); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* "Where?" shows only for "Somewhere else". */
.heard-other[hidden] { display: none; }

/* The privacy notes, over the dimmed page. */
.dialog {
    width: min(620px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-2);
    color: var(--text);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.dialog::backdrop { background: rgba(14, 17, 23, .72); }
.dialog .dialog-body { padding: 26px 26px 6px; }
.dialog .dialog-body h2 { margin-top: 0; }
.dialog-foot { padding: 0 26px 24px; text-align: right; }
body.has-dialog { overflow: hidden; }

/* The Easter egg: scanlines appear only once the code is entered (Shi
   11/11/2026), with a darkened edge, and the secret line in its own colour. */
.crt body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .45) 100%),
        repeating-linear-gradient(to bottom, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
}
.crt .type, .crt .wordmark { text-shadow: 0 0 2px rgba(250, 130, 0, .8), 0 0 18px rgba(250, 130, 0, .7); }
.type .typed.secret { color: #7fe0c8; }
.crt-flash { animation: crt-on .5s ease-out; }
@keyframes crt-on {
    0% { filter: brightness(3) contrast(.4); transform: scaleY(.02); }
    40% { filter: brightness(1.6); transform: scaleY(1); }
    100% { filter: none; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .crt-flash { animation: none; } }

@media (max-width: 480px) {
    .kinds { grid-template-columns: 1fr; }
    .hero { padding-top: 7vh; }
}

/* Cloudflare's "are you a person" check: invisible unless it needs a
   click, so it takes no room until then. */
.cf-turnstile { margin: 0 0 8px; }
