/* One stylesheet for both pages. No build step, no fonts to fetch, nothing
   external — the whole site is three files that can be dropped on any static
   host, which is the point. */

:root {
    --bg: #0b0d12;
    --bg-raised: #12151d;
    --line: #232838;
    --text: #e8eaf0;
    --muted: #9aa3b8;
    --accent: #ffb454;
    --accent-dim: #6b4a1e;
    --radius: 14px;
    --measure: 68ch;

    /* The site's second voice, used on the waitlist pages for the ON AIR lamp
       and the field labels. Monospace because that is the vernacular of the
       subject — equipment panels, station idents, test cards — and because the
       CSP forbids fetching a font from anywhere, so character has to come from
       what the machine already has rather than from a download. */
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
        "Liberation Mono", monospace;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    /* Holds the footer at the bottom of a short page. Without it /thanks — which
       is four lines long — leaves the footer stranded in the middle of the
       screen with the background running on beneath it. */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main {
    flex: 1;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: #ffd08a;
}

.wrap {
    max-width: 940px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- header ------------------------------------------------------------- */

header.site {
    border-bottom: 1px solid var(--line);
}

header.site .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 650;
    font-size: 19px;
    letter-spacing: 0.01em;
    color: var(--text);
    text-decoration: none;
}

.brand .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-dim);
}

nav.site a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 20px;
    font-size: 15px;
}

nav.site a:hover {
    color: var(--text);
}

/* --- hero --------------------------------------------------------------- */

.hero {
    padding: 84px 0 64px;
}

.hero h1 {
    font-size: clamp(34px, 6vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    max-width: 18ch;
}

.hero p.lead {
    font-size: clamp(18px, 2.4vw, 21px);
    color: var(--muted);
    max-width: 56ch;
    margin: 0 0 32px;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #1a1206;
    font-weight: 620;
    text-decoration: none;
    padding: 13px 22px;
    border-radius: var(--radius);
}

.cta:hover {
    background: #ffd08a;
    color: #1a1206;
}

.cta-note {
    color: var(--muted);
    font-size: 15px;
    margin: 14px 0 0;
    max-width: 46ch;
}

/* --- the waitlist pages -------------------------------------------------- */
/*
   /waitlist, /thanks and /waitlist-problem share one idea: a station that has
   not gone on air yet. The ON AIR lamp at the top of each is unlit everywhere
   except /thanks, where signing up is what turns it on. That is the only place
   on this site that glows, so it stays the only loud thing on these pages —
   everything around it is quiet on purpose.

   The lamp is also why the accent needed no invention: #ffb454 is already the
   colour of a warm studio bulb.
*/

.stage {
    max-width: 540px;
    margin: 0 auto;
    padding: clamp(48px, 11vh, 104px) 24px clamp(56px, 10vh, 96px);
}

/* The lamp ---------------------------------------------------------------- */

.lamp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 36px;
    /* Sized to read as the sign above a studio door rather than as a status
       chip in a dashboard. It is the one thing these pages are remembered by,
       so it gets the room. */
    padding: 15px 26px;
    /* Squarer than the site's cards: this is a piece of equipment bolted to a
       wall, not a panel of content. */
    border: 1px solid var(--line);
    border-radius: 7px;
    background: linear-gradient(180deg, #161a26, #0e111a);
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.38em;
    /* Tracking is applied after the last glyph too, which without this reads as
       a lopsided box. */
    text-indent: 0.38em;
    /* Unlit, but still text someone has to read. Dimmer than this and it is
       decoration that happens to spell something. */
    color: #79839b;
}

.lamp .bulb {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2b3142;
    /* The dead bulb still catches a little room light. */
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.09);
}

/* Lit. Only on /thanks. */
.lamp.live {
    border-color: var(--accent-dim);
    color: var(--accent);
    box-shadow: 0 0 44px -14px rgba(255, 180, 84, 0.55),
                inset 0 0 22px -16px var(--accent);
    text-shadow: 0 0 20px rgba(255, 180, 84, 0.4);
}

.lamp.live .bulb {
    background: var(--accent);
    box-shadow: 0 0 12px 1px rgba(255, 180, 84, 0.75);
}

/* One orchestrated moment on the whole site: the lamp comes up the way a filament
   does, not the way a div does. */
@keyframes warm-up {
    0%   { opacity: 0.25; }
    55%  { opacity: 1; }
    62%  { opacity: 0.72; }   /* the flicker every real bulb has */
    100% { opacity: 1; }
}

.lamp.live {
    animation: warm-up 1.1s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
    .lamp.live {
        animation: none;
    }
}

/* Type on these pages ----------------------------------------------------- */

.stage h1 {
    font-size: clamp(30px, 6vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

.stage .lead {
    margin: 0 0 36px;
}

/* The form ---------------------------------------------------------------- */

.field {
    margin: 0 0 22px;
}

.field label {
    display: block;
    margin: 0 0 7px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
}

.field .opt {
    /* "Optional" belongs in the label, where it is read before the field is
       skipped rather than after it has been filled in for no reason. */
    color: #5f6780;
}

.field input {
    display: block;
    width: 100%;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    /* Inherit rather than restate: form controls opt out of the page font, and
       16px is also the size below which iOS Safari zooms the viewport on
       focus — which on a phone reads as the page jumping when you tap. */
    font: inherit;
    padding: 13px 16px;
}

.field input::placeholder {
    color: #5b6379;
}

.field input:hover {
    border-color: #2e3546;
}

.field input:focus-visible,
.submit:focus-visible,
.cta:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.field .hint {
    margin: 7px 0 0;
    font-size: 14px;
    color: var(--muted);
}

.submit {
    width: 100%;
    margin: 4px 0 0;
    padding: 14px 22px;
    background: var(--accent);
    color: #1a1206;
    border: 0;
    border-radius: var(--radius);
    font: inherit;
    font-weight: 620;
    cursor: pointer;
}

.submit:hover {
    background: #ffd08a;
}

.fine {
    margin: 18px 0 0;
    font-size: 14px;
    color: var(--muted);
}

/* What went wrong, on /waitlist-problem. Bordered on the lit side only, so it
   reads as the same instrument reporting a fault rather than as a warning
   sticker from another design. */
.fault {
    margin: 0 0 28px;
    padding: 14px 18px;
    border-left: 2px solid var(--accent);
    background: var(--bg-raised);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.fault p {
    margin: 0;
    color: var(--text);
}

/* Present to the page, absent from the screen. Used for the form's label, which
   a sighted person reads from the placeholder, and for the honeypot, which
   nobody should reach at all — display:none would hide both from the bots this
   is meant to catch, and from screen readers that ought to hear the label. */
.offscreen {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* --- sections ----------------------------------------------------------- */

section {
    padding: 56px 0;
    border-top: 1px solid var(--line);
}

section h2 {
    font-size: 15px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    margin: 0 0 28px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.card {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 15.5px;
}

.card .emoji {
    font-size: 22px;
    display: block;
    margin-bottom: 12px;
}

ul.plain {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
    max-width: var(--measure);
}

ul.plain li {
    color: var(--muted);
    padding-left: 26px;
    position: relative;
}

ul.plain li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent);
}

ul.plain li strong {
    color: var(--text);
    font-weight: 600;
}

/* These two exist as classes rather than style="" attributes because the site
   is served under a CSP with `style-src 'self'`, which blocks inline styles.
   Keeping the policy strict is worth more than the shortcut. */

.after-list {
    margin-top: 28px;
}

/* --- long-form prose (privacy) ------------------------------------------ */

article {
    padding: 56px 0 24px;
    max-width: var(--measure);
}

article h1 {
    font-size: clamp(30px, 5vw, 40px);
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

article .stamp {
    color: var(--muted);
    font-size: 15px;
    margin: 0 0 40px;
}

article h2 {
    font-size: 21px;
    margin: 44px 0 12px;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--text);
    font-weight: 650;
}

article h3 {
    font-size: 17px;
    margin: 28px 0 8px;
    font-weight: 650;
}

article p,
article li {
    color: #c9cfdd;
}

article ul {
    padding-left: 22px;
}

article li {
    margin-bottom: 8px;
}

article strong {
    color: var(--text);
}

.callout {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 18px 20px;
    margin: 28px 0;
}

.callout p {
    margin: 0;
}

/* --- footer ------------------------------------------------------------- */

footer.site {
    border-top: 1px solid var(--line);
    padding: 32px 0 56px;
    color: var(--muted);
    font-size: 15px;
}

footer.site .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
}

footer.site a {
    color: var(--muted);
    text-decoration: none;
}

footer.site a:hover {
    color: var(--text);
    text-decoration: underline;
}
