:root {
    --black: #050505;
    --ink: #f4f1dd;
    --red: #ff334d;
    --cyan: #23e6dc;
    --yellow: #ffe14a;
    --blue: #3764ff;
    --muted: #a9a792;
    --panel: #11110f;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--ink);
    font-family: "Courier New", Courier, monospace;
    line-height: 1.5;
}

a {
    color: inherit;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.topbar {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 12px clamp(18px, 4vw, 64px);

    border-bottom: 4px solid var(--blue);
    background: #080808;

    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    font-size: clamp(18px, 2.2vw, 28px);
    font-weight: 900;
    text-decoration: none;
    letter-spacing: -1px;
}

.brand span {
    color: var(--cyan);
}

nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

nav a {
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: #d6d2b8;
}

nav a:hover,
nav a:focus {
    color: var(--yellow);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;

    display: grid;
    grid-template-columns:
        minmax(280px, 0.8fr)
        minmax(360px, 1.2fr);

    align-items: center;

    min-height: 650px;

    border-bottom: 5px solid var(--red);

    background:
        radial-gradient(
            circle at 70% 40%,
            #141414 0,
            #050505 58%
        );

    padding: clamp(28px, 5vw, 72px);
}


/* Scanline effect */

.scanlines {
    pointer-events: none;

    position: absolute;
    inset: 0;

    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.025) 0,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px,
            transparent 4px
        );

    z-index: 2;
}


/* Hero text */

.hero-copy {
    position: relative;
    z-index: 3;
    max-width: 620px;
}

.eyebrow {
    color: var(--yellow);
    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    margin: 12px 0 8px;

    font-size: clamp(56px, 8vw, 116px);
    line-height: 0.82;
    letter-spacing: -7px;

    text-shadow: 6px 6px 0 #333;
}

.hero h1 span {
    color: var(--cyan);
}

.tagline {
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 900;
}

.tagline strong {
    color: var(--red);
}

.intro {
    max-width: 540px;

    color: #d7d3bd;

    font-size: 18px;
}


/* Buttons */

.pixel-button,
.signup-form button {
    display: inline-block;

    border: 0;

    background: var(--yellow);
    color: #050505;

    font: 900 16px/1 "Courier New", monospace;

    padding: 17px 20px;

    text-decoration: none;

    box-shadow: 6px 6px 0 var(--red);

    cursor: pointer;
}

.pixel-button:hover,
.pixel-button:focus,
.signup-form button:hover,
.signup-form button:focus {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0 var(--red);
}


/* =========================================================
   HERO ART
   ========================================================= */

.hero-art {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.hero-art img {
    display: block;

    width: 100%;

    max-height: 590px;

    object-fit: cover;
    object-position: center;

    border: 3px solid #333;

    image-rendering: auto;

    filter:
        saturate(1.08)
        contrast(1.05);
}


/* =========================================================
   MANIFESTO / GAME DESCRIPTION
   ========================================================= */

.manifesto {
    padding: 72px clamp(20px, 8vw, 120px);

    max-width: 1300px;

    margin: auto;
}

.section-kicker {
    display: inline-block;

    background: var(--red);
    color: white;

    padding: 5px 9px;

    font-weight: 900;
    font-size: 12px;
}

.manifesto h2,
.signup h2 {
    font-size: clamp(34px, 5vw, 68px);
    line-height: 0.95;

    margin: 18px 0 32px;

    letter-spacing: -3px;
}

.manifesto h2 span,
.signup h2 span {
    color: var(--cyan);
}

.copy-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 48px;

    font-size: 18px;
}

.copy-grid p {
    margin: 0;
}


/* =========================================================
   FEATURES
   ========================================================= */

.features {
    display: grid;

    grid-template-columns: repeat(6, 1fr);

    border-top: 4px solid var(--cyan);
    border-bottom: 4px solid var(--cyan);
}

.features article {
    padding: 28px 18px;

    min-height: 220px;

    border-right: 1px solid #333;

    background: #0d0d0c;
}

.features article:last-child {
    border-right: 0;
}

.features .icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    background: var(--blue);
    color: white;

    font-size: 30px;
    font-weight: 900;

    box-shadow: 5px 5px 0 var(--red);

    margin-bottom: 18px;
}

.features article:nth-child(2n) .icon {
    background: var(--red);
    box-shadow: 5px 5px 0 var(--yellow);
}

.features h3 {
    margin: 0 0 10px;

    color: var(--yellow);

    font-size: 18px;
}

.features p {
    margin: 0;

    color: #c9c5ae;

    font-size: 14px;
}


/* =========================================================
   INSPIRED BY A CLASSIC
   ========================================================= */

.inspired {
    padding: 80px clamp(20px, 8vw, 120px);
}

.pixel-window {
    max-width: 920px;

    margin: auto;

    border: 4px solid var(--ink);

    box-shadow: 10px 10px 0 var(--blue);
}

.window-title {
    background: var(--ink);
    color: #050505;

    padding: 8px 12px;

    font-weight: 900;
}

.window-body {
    padding: 32px;

    background: #0e0e0d;
}

.window-body h2 {
    margin-top: 0;

    color: var(--yellow);

    font-size: clamp(28px, 4vw, 48px);
}

.window-body p {
    font-size: 17px;
}

.window-body .small {
    font-size: 12px;

    color: var(--muted);

    margin-top: 28px;
}


/* =========================================================
   NEWSLETTER SIGNUP
   ========================================================= */

.signup {
    text-align: center;

    padding: 84px 20px 96px;

    background:
        linear-gradient(
            180deg,
            #090909,
            #11110e
        );

    border-top: 5px solid var(--red);
}

.signup > p {
    max-width: 720px;

    margin: 0 auto 28px;
}

.stamp {
    display: inline-block !important;

    width: auto !important;

    color: var(--red);

    border: 3px solid var(--red);

    padding: 7px 12px;

    font-weight: 900;

    transform: rotate(-2deg);
}

.signup-form {
    max-width: 760px;

    margin: 30px auto 0;

    text-align: left;
}

.signup-form > label:first-child {
    display: block;

    margin-bottom: 8px;

    font-weight: 900;

    color: var(--yellow);
}

.form-row {
    display: grid;

    grid-template-columns: 1fr auto;

    gap: 12px;
}

.signup-form input[type=email] {
    min-width: 0;

    border: 3px solid #d8d4bb;

    background: #050505;
    color: white;

    font: 700 16px "Courier New", monospace;

    padding: 15px;
}

.signup-form input:focus {
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
}

.consent {
    display: flex;

    gap: 10px;

    margin-top: 18px;

    color: #bbb7a1;

    font-size: 12px;
}

.consent input {
    width: 18px;
    height: 18px;

    flex: 0 0 auto;
}


/* Anti-spam honeypot */

.hp {
    position: absolute;

    left: -9999px;
}


/* Signup messages */

.notice {
    max-width: 760px;

    margin: 20px auto;

    padding: 12px;

    border: 2px solid;
}

.success {
    border-color: var(--cyan);
    color: var(--cyan);
}

.error {
    border-color: var(--red);
    color: var(--red);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 24px clamp(18px, 4vw, 64px);

    border-top: 4px solid var(--blue);

    font-size: 12px;

    color: #aaa68e;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    .hero {
        grid-template-columns: 1fr;

        min-height: auto;
    }

    .hero-art {
        margin-top: 36px;
    }

    .hero-art img {
        max-height: 480px;
    }

    .features {
        grid-template-columns: repeat(3, 1fr);
    }

    .features article:nth-child(3) {
        border-right: 0;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .topbar {
        position: static;

        align-items: flex-start;
    }

    .topbar nav {
        display: none;
    }

    .hero {
        padding: 38px 18px;
    }

    .hero h1 {
        letter-spacing: -4px;
    }

    .hero-art img {
        max-height: none;
    }

    .copy-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }

    .features {
        grid-template-columns: 1fr 1fr;
    }

    .features article {
        min-height: 190px;
    }

    .features article:nth-child(3) {
        border-right: 1px solid #333;
    }

    .features article:nth-child(2n) {
        border-right: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .signup-form button {
        min-height: 52px;
    }

    footer {
        flex-direction: column;
    }
}