:root {
    --blue: #0433ff;
    --red: #d02108;
    --ink: #101018;
    --paper: #e6e8ee;
    --card: #ffffff;
    --yellow: #ffe14a;
    --line: #c5cad6;
    --sans: Verdana, Geneva, "Trebuchet MS", sans-serif;
    --display: "Arial Black", Impact, Haettenschweiler, "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 0.95rem;
    line-height: 1.4;
}
a { color: var(--blue); }
a:hover { color: var(--red); }
.skip {
    position: absolute;
    left: -999px;
    background: #fff;
    color: var(--ink);
    padding: 0.4rem 0.6rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 3; }
.wrap {
    max-width: 1100px;
    margin: 0.8rem auto 2rem;
    background: var(--card);
    border: 4px solid var(--blue);
    box-shadow: 7px 7px 0 #101018;
}
.station-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--blue);
    color: #fff;
    padding: 0.45rem 0.7rem 0.4rem;
}
.bug { display: block; line-height: 0; }
.bug img { display: block; height: 78px; width: auto; }
.station-id { text-align: right; }
.station-id p { margin: 0.15rem 0; }
.live-bug {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-family: var(--display);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    padding: 0.08rem 0.38rem;
    border: 2px solid #fff;
    margin-right: 0.35rem;
}
.station-dek { font-weight: 700; }
.station-dek-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: baseline;
    gap: 0.55rem;
    margin: 0.15rem 0 0;
}
.station-logout { margin: 0; display: inline; }
.logout-slim,
.login-slim {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--sans);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.2;
}
.logout-slim:hover,
.login-slim:hover { color: var(--yellow); }
.crawl {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: #111;
    color: #fff;
    padding: 0.32rem 0.6rem;
    min-height: 2rem;
}
.crawl-flag {
    flex: none;
    background: var(--yellow);
    color: #111;
    font-family: var(--display);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.12rem 0.4rem;
}
.crawl p { margin: 0; font-weight: 700; }
.section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    background: #0b0b12;
    padding: 4px;
}
.section-nav a {
    color: #fff;
    background: var(--blue);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.42rem 0.5rem;
    border: 2px outset #7f9bff;
}
.section-nav a[aria-current="page"] {
    background: var(--red);
    border-color: #ff8d7c;
}
.section-nav a:hover { background: #0026c7; color: var(--yellow); }
.desk { padding: 0.8rem 0.9rem 1.1rem; }
.desk-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 1rem;
    align-items: start;
}
.story {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
}
.story-lead {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    border-bottom: 4px solid var(--blue);
    padding-bottom: 0.9rem;
}
.story-figure {
    margin: 0;
    background: #d5d8e2;
    border: 3px solid var(--blue);
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.story-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story h2, .story h3 {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.05;
    margin: 0.25rem 0 0.35rem;
}
.story h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); }
.story h3 { font-size: 1.05rem; }
.story h2 a, .story h3 a { color: var(--ink); text-decoration: none; }
.story h2 a:hover, .story h3 a:hover { color: var(--red); }
.kicker {
    display: inline-block;
    margin: 0;
    background: var(--blue);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.1rem 0.35rem;
}
.kicker-hot { background: var(--red); }
.summary { margin: 0.25rem 0 0.4rem; }
.meta { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; font-size: 0.75rem; margin: 0; color: #333; }
.story-go {
    background: var(--red);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.4rem;
    border: 2px outset #ff8d7c;
}
.story-go:hover { color: var(--yellow); }
.section-title {
    background: var(--blue);
    color: #fff;
    font-family: var(--display);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 1rem 0 0;
    padding: 0.32rem 0.5rem;
}
.section-title a { color: #fff; text-decoration: none; }
.section-title a:hover { color: var(--yellow); }
.section-dek { margin: 0.35rem 0 0; color: #333; }
.sidebar section {
    border: 3px solid var(--blue);
    margin: 0 0 0.75rem;
    background: #fff;
}
.sidebar h2 {
    margin: 0;
    background: var(--blue);
    color: #fff;
    font-family: var(--display);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.32rem 0.45rem;
}
.sidebar .link-list, .sidebar p { margin: 0; padding: 0.35rem 0.5rem; }
.sidebar p.quiet { color: #444; }
.link-list, .bookmark-list, .plain-list, .section-index { list-style: none; padding: 0; margin: 0; }
.link-list li, .bookmark-list li, .plain-list li { padding: 0.28rem 0; border-bottom: 1px solid var(--line); }
.bookmark-list li, .plain-list li { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: baseline; }
.section-index li { display: grid; gap: 0.1rem; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.section-index strong { font-family: var(--display); font-size: 0.9rem; }
.ad { border: 3px ridge #b8b8b8; background: #f4f4f4; text-align: center; padding: 0.45rem; margin: 0.6rem 0; }
.ad img { max-width: 100%; height: auto; }
.ad-kicker { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.3rem; color: #555; }
.alert, .notice { margin: 0.7rem 0.9rem 0; padding: 0.5rem 0.65rem; font-weight: 700; }
.alert { background: var(--yellow); color: #111; border: 3px solid #111; }
.alert p { margin: 0.2rem 0; }
.alert-ok { background: #d8ffe4; border-color: #0b6b32; color: #0b6b32; }
.notice { background: var(--red); color: #fff; letter-spacing: 0.04em; text-transform: uppercase; }
.stack-form, .auth-form { display: grid; gap: 0.35rem; max-width: 40rem; margin: 1rem 0 1.5rem; }
.auth-form { max-width: 28rem; }
label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
label.check { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 0.9rem; display: flex; gap: 0.45rem; align-items: flex-start; }
label.check input { width: auto; margin-top: 0.2rem; }
input, textarea, select {
    width: 100%;
    border: 2px solid var(--blue);
    background: #fff;
    color: var(--ink);
    padding: 0.4rem 0.5rem;
    font: inherit;
}
button, .button {
    display: inline-block;
    background: var(--red);
    color: #fff;
    border: 3px outset #ff8d7c;
    padding: 0.42rem 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    width: fit-content;
}
button:hover, .button:hover { background: #a81806; color: var(--yellow); }
button:active, .button:active { border-style: inset; }
.button-ghost { background: var(--blue); border-color: #7f9bff; }
button.danger { background: #111; border-color: #888; }
button.linkish {
    background: none;
    color: var(--red);
    border: 0;
    padding: 0;
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.85rem;
    font-weight: 700;
}
.inline-edit { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 0.4rem; margin: 0.4rem 0; align-items: center; }
.token-reveal { border: 3px solid var(--blue); background: #f4f7ff; padding: 0.8rem; margin: 1rem 0; }
.token-reveal p[data-token] { font-family: ui-monospace, monospace; word-break: break-all; }
.pager { display: flex; gap: 1rem; margin-top: 1rem; }
.nav-search {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    margin: 0.35rem 0 0.6rem;
}
.nav-search input[type="search"] {
    min-width: 10rem;
    flex: 1;
    max-width: 18rem;
    border: 2px solid var(--ink);
    padding: 0.28rem 0.45rem;
    font: inherit;
}
.nav-search button { padding: 0.28rem 0.55rem; }
.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.8rem 0 1rem;
    align-items: center;
}
.search-form input[type="search"] {
    flex: 1;
    min-width: 12rem;
    border: 2px solid var(--ink);
    padding: 0.4rem 0.5rem;
    font: inherit;
}
.search-form select {
    border: 2px solid var(--ink);
    padding: 0.4rem 0.5rem;
    font: inherit;
    background: #fff;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.site-footer {
    background: var(--blue);
    color: #fff;
    margin: 0;
    padding: 0.65rem 0.8rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.9rem;
    align-items: center;
    margin: 0 0 0.45rem;
}
.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.footer-nav a:hover { color: var(--yellow); }
.footer-mark { margin: 0; font-size: 0.72rem; opacity: 0.9; }
.api-docs pre {
    white-space: pre-wrap;
    background: #111;
    color: #f4f4f4;
    padding: 0.8rem;
    font-size: 0.82rem;
    line-height: 1.45;
}
.api-docs h2,
.about-page h2 { margin-top: 1.2rem; }
.about-page .page-head p { margin-top: 0.35rem; color: var(--muted, #4a5160); }
.admin-user-list li {
    display: grid;
    gap: 0.35rem;
    padding: 0.65rem 0;
    border-top: 1px solid #c5cad6;
}
.admin-user-list li:first-child { border-top: 0; }
.admin-user-list form { margin: 0; }
.repo-page { padding: 0.4rem 0 1.2rem; }
.repo-path {
    margin: 0 0 0.35rem;
    font-family: ui-monospace, monospace;
    font-size: 0.85rem;
    color: #444;
}
.repo-head .section-dek { max-width: 42rem; }
.repo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin: 0.9rem 0 1.2rem;
}
.repo-download {
    display: inline-block;
    background: #0433ff;
    color: #fff;
    font-weight: 700;
    padding: 0.55rem 0.9rem;
    text-decoration: none;
    border: 2px solid #0433ff;
}
.repo-download:hover { background: #d02108; border-color: #d02108; color: #fff; }
.repo-readme h3 {
    font-family: var(--display);
    text-transform: uppercase;
    margin: 1.1rem 0 0.35rem;
}
.repo-readme ol, .repo-readme ul { padding-left: 1.2rem; }
.feature-list {
    list-style: none;
    margin: 0.5rem 0 1rem;
    padding: 0;
    border: 2px solid #0433ff;
}
.feature-list li {
    display: grid;
    gap: 0.2rem;
    padding: 0.65rem 0.75rem;
    border-top: 1px solid #c5cad6;
}
.feature-list li:first-child { border-top: 0; }
.feature-list strong {
    font-family: var(--display);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}
.feature-list span { color: #222; }
code { font-family: ui-monospace, monospace; font-size: 0.9em; }
.prose, .empty-desk { padding-top: 0.2rem; }
.empty-desk h2, .prose h2 { font-family: var(--display); text-transform: uppercase; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
::selection { background: var(--blue); color: #fff; }
@media (max-width: 800px) {
    .desk-split, .story, .story-lead, .inline-edit { grid-template-columns: 1fr; }
    .station-id { text-align: left; }
    .station-dek-row { justify-content: flex-start; }
    .wrap { margin: 0; border-width: 0 0 4px; box-shadow: none; }
}
