/* defaults */

:root {
    color-scheme: dark;
    --background: #020405;
    --white: #c1efff;
    --muted: #80bedb;
    --blue: #25baff;
    --blue-bright: #83deff;
    --border: #123044;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

body {
    margin: 0;
    background: #000;
    color: var(--white);
    font-family: "Courier New", Courier, monospace;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 5px;
}

[hidden] {
    display: none !important;
}

/* banner */

.site-banner {
    min-height: 180px;
    padding: 48px 24px 65px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(
        to bottom,
        #000 0%,
        #000 40%,
        var(--background) 100%
    );
}

.site-banner a {
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(24px, 1vw, 32px);
    font-weight: 600;
    line-height: 4;
    letter-spacing: -0.035em;
    text-align: center;
    text-decoration: none;
}

/* layout */

.menu-shell {
    min-height: 100vh;
    min-height: 100svh;
    padding: 12px clamp(20px, 5vw, 70px) 32px;
    background: var(--background);
}

.menu-heading,
.menu-layout,
.menu-footer {
    width: 100%;
    max-width: 1000px;
    margin-inline: auto;
}

.menu-heading {
    padding-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.13em;
}

.menu-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding: 32px 0 60px;
}

.menu-sidebar {
    width: 100%;
    min-width: 0;
}

.sidebar-note {
    display: none;
}

.menu-content {
    width: 100%;
    max-width: 820px;
    min-width: 0;
    margin-inline: auto;
}

/* signal */

.connection {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    letter-spacing: 0.03em;
    text-shadow: none;
}

.connection i {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #79ff9c;
    box-shadow:
        0 0 4px rgba(121, 255, 156, 0.9),
        0 0 10px rgba(70, 255, 120, 0.6),
        0 0 20px rgba(70, 255, 120, 0.3);
}

/* menu */

.menu-label,
.eyebrow {
    margin: 0 0 24px;
    color: var(--blue);
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.18em;
}

.menu-label {
    margin-bottom: 16px;
}

.menu-options {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
}

.menu-option {
    flex: 1 1 180px;
    min-width: 0;
    min-height: 52px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #63caff;
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
    transition: color 150ms ease, background 150ms ease;
}

.menu-option > span:last-child {
    color: var(--blue);
}

.menu-option:hover,
.menu-option[aria-current="location"] {
    color: #b2ecff;
}

/* panels */

.menu-panel {
    padding-bottom: 55px;
}

.menu-panel + .menu-panel {
    padding-top: 55px;
    border-top: 1px solid var(--border);
}

.js-enabled .menu-panel {
    padding-top: 0;
    border-top: 0;
}

.menu-panel h2 {
    margin: 0 0 25px;
    color: var(--blue-bright);
    font-size: clamp(32px, 4vw, 56px);
    font-weight: normal;
    line-height: 1.1;
    letter-spacing: -0.045em;
    overflow-wrap: break-word;
}

.menu-panel .intro {
    max-width: 700px;
    margin: 0 0 35px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

/* community */

.activity-list {
    margin-bottom: 32px;
    border-top: 1px solid var(--border);
}

.activity-list article {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

.row-number {
    padding-top: 4px;
    color: var(--blue);
    font-size: 10px;
}

.activity-list h3,
.briefing h3 {
    margin: 0 0 8px;
    color: #63caff;
    font-size: 15px;
    font-weight: normal;
    line-height: 1.5;
}

.activity-list p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

/* buttons */

.menu-action {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    min-height: 48px;
    padding: 13px 22px;
    color: var(--blue-bright);
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    transition: background 150ms ease, color 150ms ease;
}

.menu-action:hover {
    color: var(--white);
}

.menu-action span {
    color: var(--blue);
}

/* submissions */

.briefing {
    margin: 0 0 32px;
    padding: 24px;
}

.briefing ul {
    margin: 16px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 12px;
    line-height: 2;
}

.briefing li::marker {
    color: var(--blue);
}

.email-address {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-top: 20px;
    color: #42c3ff;
    font-size: 12px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    text-underline-offset: 4px;
}

.email-address:hover {
    color: #a2e7ff;
}

.small-note {
    max-width: 500px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

/* discord */

.transmission {
    margin: 35px 0;
    padding: 20px 24px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.transmission p {
    margin: 6px 0;
}

.transmission span {
    margin-right: 10px;
    color: var(--blue);
}

.platforms {
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.8;
    letter-spacing: 0.1em;
}

/* footer */

.menu-footer {
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 9px;
    line-height: 1.8;
    letter-spacing: 0.1em;
}

.menu-footer a {
    color: #42c3ff;
    text-decoration: none;
}

.menu-footer a:hover {
    color: #a2e7ff;
}

/* cut corners */

.menu-option,
.menu-action,
.briefing,
.transmission {
    --box-edge: #258cbd;
    --box-fill: #03090d;

    position: relative;
    isolation: isolate;
    border: 0;
    background: var(--box-edge);

    clip-path: polygon(
        0 0,
        calc(100% - 12px) 0,
        100% 12px,
        100% 100%,
        0 100%
    );
}

.menu-option::before,
.menu-action::before,
.briefing::before,
.transmission::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    background: var(--box-fill);

    clip-path: polygon(
        0 0,
        calc(100% - 11.4px) 0,
        100% 11.4px,
        100% 100%,
        0 100%
    );

    box-shadow:
        inset 0 0 12px rgba(37, 186, 255, 0.18),
        inset 0 0 28px rgba(37, 186, 255, 0.08);
}

/* hover and selection */

.menu-option:hover,
.menu-action:hover {
    --box-edge: #63d4ff;
    --box-fill: #06121a;
}

.menu-option[aria-current="location"] {
    --box-edge: #63d4ff;
    --box-fill: linear-gradient(180deg, #082536, #041019);
}

.menu-option:hover::before,
.menu-option[aria-current="location"]::before,
.menu-action:hover::before {
    box-shadow:
        inset 0 0 14px rgba(37, 186, 255, 0.3),
        inset 0 0 32px rgba(37, 186, 255, 0.14);
}

/* keyboard focus */

.menu-option:focus-visible,
.menu-action:focus-visible {
    --box-edge: #b2ecff;
    --box-fill: #0a293b;
    outline: none;
}

/* text glow */

.menu-panel h2,
.activity-list h3,
.briefing h3,
.menu-label,
.eyebrow,
.menu-heading,
.menu-option,
.menu-action,
.email-address,
.menu-footer a {
    text-shadow:
        0 0 6px rgba(37, 186, 255, 0.3),
        0 0 16px rgba(37, 186, 255, 0.15);
}

.menu-option:hover,
.menu-option[aria-current="location"],
.menu-action:hover {
    text-shadow:
        0 0 6px rgba(37, 186, 255, 0.5),
        0 0 20px rgba(37, 186, 255, 0.25);
}

/* mobile */

@media (max-width: 700px) {
    .site-banner {
        min-height: 145px;
        padding-top: 35px;
        padding-bottom: 45px;
    }

    .menu-shell {
        padding: 12px 20px 28px;
    }

    .menu-heading {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 12px;
        font-size: 9px;
        letter-spacing: 0.05em;
    }

    .menu-layout {
        gap: 35px;
        padding: 25px 0 35px;
    }

    .menu-options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .menu-option {
        min-height: 48px;
        padding: 12px;
        font-size: 13px;
    }

    .menu-panel {
        padding-bottom: 30px;
    }

    .menu-panel h2 {
        font-size: clamp(32px, 8vw, 46px);
    }

    .activity-list article {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 14px;
    }

    .briefing,
    .transmission {
        padding: 20px;
    }

    .menu-footer {
        flex-wrap: wrap;
        gap: 12px;
        letter-spacing: 0;
    }
}

/* reduced motion */

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* title bar */

.titlebar {
    min-height: 42px;
    padding: 0 22px;

    display: flex;
    align-items: center;
    gap: 24px;

    background: #010305;
    border-bottom: 1px solid #102431;

    font-size: 9px;
    line-height: 1.5;
    letter-spacing: 0.18em;
}

.titlebar-brand {
    flex-shrink: 0;
    padding-block: 14px;

    color: var(--blue);
    font-size: 10px;
    font-weight: bold;
    text-decoration: none;

    text-shadow: 0 0 10px rgba(37, 186, 255, 0.25);
}

.titlebar-links {
    display: flex;
    align-items: stretch;
    gap: 22px;
}

.titlebar-links a {
    position: relative;
    padding-block: 15px;

    color: #82a5b9;
    font-size: 8px;
    text-decoration: none;
    text-transform: uppercase;

    transition: color 150ms ease;
}

.titlebar-links a:hover,
.titlebar-links a:focus-visible {
    color: var(--blue-bright);
    text-shadow: 0 0 8px rgba(37, 186, 255, 0.35);
}

.titlebar-links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 7px;
    left: 0;

    height: 1px;
    background: var(--blue);
    opacity: 0;

    transition: opacity 150ms ease;
}

.titlebar-links a:hover::after,
.titlebar-links a:focus-visible::after {
    opacity: 1;
}

.titlebar-status {
    margin-left: auto;
    color: #82a5b9;
    font-size: 8px;
    white-space: nowrap;
}

/* mobile title bar */

@media (max-width: 700px) {
    .titlebar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0 18px;
        padding: 0 16px;
    }

    .titlebar-brand {
        padding-bottom: 6px;
    }

    .titlebar-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0 18px;
    }

    .titlebar-links a {
        padding-block: 12px;
    }

    .titlebar-status {
        display: none;
    }
}
