@font-face {
    font-family: "BigBlueTerminal";
    src: url("BigBlueTerm437NerdFontMono-Regular.ttf") format("truetype");
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #020905;
    --panel: #06150c;
    --panel-soft: #081c10;
    --text: #b7f6bf;
    --muted: #6aa977;
    --line: #2e6f3e;
    --accent: #d5ff9f;
    --dim: #366b43;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        linear-gradient(rgba(2, 9, 5, 0.7), rgba(2, 9, 5, 0.84)),
        repeating-linear-gradient(
            0deg,
            rgba(183, 246, 191, 0.018) 0,
            rgba(183, 246, 191, 0.018) 1px,
            transparent 1px,
            transparent 4px
        ),
        url("star2.gif"), var(--bg);
    background-size: auto, auto, auto, auto;
    background-repeat: repeat, repeat, repeat, repeat;
    font-family: "BigBlueTerminal", "Courier New", Courier, monospace;
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: #d7ffe0;
    text-decoration: none;
}

a:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 3px;
}

.site-shell {
    width: min(100% - 24px, 640px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 36px 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
}

.site-header,
.window-bar,
.status-line {
    font-size: 0.82rem;
    color: var(--muted);
}

.site-header,
.window-bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.terminal-window {
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 0;
}

.window-bar {
    border-bottom: 1px solid var(--line);
    background: var(--panel-soft);
    padding: 4px 8px;
}

blockquote {
    margin: 0;
    padding: 22px 18px 0;
    font-family: "Courier New", Courier, monospace;
}

blockquote p {
    margin: 0;
    max-width: 34em;
    font-size: 1.08rem;
    line-height: 1.45;
}

blockquote footer {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
    padding-left: 14px;
    border-left: 1px solid var(--dim);
}

.quote-source span,
.quote-source cite {
    display: block;
}

cite {
    font-style: normal;
}

.page-content {
    padding: 22px 18px 0;
    font-family: "Courier New", Courier, monospace;
}

.page-content h1 {
    margin: 0 0 16px;
    color: var(--accent);
    font-family: "BigBlueTerminal", "Courier New", Courier, monospace;
    font-size: 1.35rem;
    font-weight: normal;
}

.content-subheader {
    margin: 22px 0 8px;
    padding: 4px 0;
    border-bottom: 1px dashed var(--line);
    color: var(--accent);
    font-family: "BigBlueTerminal", "Courier New", Courier, monospace;
    font-size: 1rem;
    font-weight: normal;
}

.terminal-note {
    margin: 0;
    color: var(--muted);
}

.construction-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 0;
    border-top: 1px dotted var(--dim);
    border-bottom: 1px dotted var(--dim);
}

.construction-row img {
    image-rendering: pixelated;
}

.content-group {
    margin-top: 18px;
    padding-left: 14px;
    border-left: 1px solid var(--dim);
}

.content-group h2 {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 1rem;
    font-weight: normal;
}

.log-entry {
    margin-top: 18px;
    padding-left: 14px;
    border-left: 1px solid var(--dim);
}

.log-entry h2 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 1rem;
    font-weight: normal;
}

.log-entry p {
    margin: 8px 0 0;
}

.plain-list {
    margin: 0;
    padding-left: 2ch;
}

.plain-list li {
    margin: 4px 0;
}

.sushibook-embed-group {
    padding-left: 0;
    border-left: 0;
}

.sushibook-frame {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 960px;
    min-height: 960px;
    margin: 10px 0 12px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
}

.chat-embed-group {
    padding-left: 0;
    border-left: 0;
}

.chat-frame {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 450px;
    margin: 10px 0 12px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
}

.link-board {
    margin: 26px 18px 0;
    padding: 14px 0 0;
    border-top: 1px dashed var(--line);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.link-board a {
    display: flex;
    gap: 12px;
    min-height: 44px;
    align-items: center;
    padding: 4px 0;
    border: 0;
    background: transparent;
    font-family: "BigBlueTerminal", "Courier New", Courier, monospace;
    letter-spacing: 0;
}

.link-board span {
    min-width: 4ch;
    color: var(--muted);
}

.link-board a:hover,
.link-board a:focus-visible {
    color: var(--accent);
    background: var(--panel-soft);
}

.status-line {
    margin: 22px 18px 16px;
    padding-top: 8px;
    border-top: 1px dotted var(--dim);
}

.site-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    padding-left: 8px;
}

.footer-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 59px;
}

.site-footer img {
    height: auto;
    image-rendering: pixelated;
    opacity: 0.9;
}

.footer-badge:first-child img {
    width: 100px;
}

.footer-badge img {
    display: block;
}

.footer-badge a img,
.footer-badge[href] img {
    width: 88px;
}

@media (max-width: 520px) {
    .site-shell {
        width: min(100% - 18px, 640px);
        padding-top: 18px;
    }

    blockquote p {
        max-width: none;
    }

    .site-header,
    .window-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }
}
