/* Sub-pages (/instructions, /program). The TV scene at / uses main.css. */

* { box-sizing: border-box; }

:root {
    --bg: #0b0b0d;
    --panel: #2a2a2d;
    --ink: #e6e3da;
    --dim: #8c8a84;
    --line: rgba(255, 255, 255, 0.1);
    --osd: #f4d21f;            /* subtitle yellow from the CRT */
    --ok: #8be08f;
    --bad: #ff6b5e;
}

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Alte Haas Grotesk', -apple-system, "Helvetica Neue",
                 Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

/* faint scanlines so the pages sit in the same world as the TV */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px);
    z-index: 100;
}

.osd { font-family: 'VCR OSD Mono', "Menlo", monospace; }

.site-nav {
    display: flex;
    align-items: baseline;
    gap: 22px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.site-nav .brand { color: var(--osd); margin-right: auto; font-size: 15px; letter-spacing: 1px; }
.site-nav a { color: var(--dim); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 36px 24px 80px;
}

h1 {
    margin: 0 0 6px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.lede { margin: 0 0 34px; max-width: 62ch; color: var(--dim); }

h2 {
    margin: 30px 0 10px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--osd);
}

.btn {
    display: inline-block;
    padding: 11px 18px;
    background: linear-gradient(180deg, #34363a 0%, #17181b 100%);
    color: #d5d9dd;
    border: 1px solid #050506;
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
}
.btn:hover:not(:disabled) { color: #fff; }
.btn:disabled { opacity: 0.35; cursor: default; }
.btn.primary { color: var(--osd); }

@media (max-width: 760px) {
    main { padding: 24px 16px 60px; }
    h1 { font-size: 24px; }
}
