:root {
    --bg: #0e1421;
    --fg: #e8d4a0;
    --accent: #f5b945;
    --accent-dim: #8a6520;
    --label: #cfa550;
    --muted: #6b7280;
}

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

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

body {
    margin: 0;
    padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 24px) clamp(32px, 6vw, 64px);
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 500;
    background-color: var(--bg);
    color: var(--fg);
    line-height: 1.5;
}

.hero {
    margin: 0 auto clamp(28px, 5vw, 56px);
    max-width: 1100px;
}

.hero pre {
    margin: 0;
    color: var(--accent);
    text-shadow: 2px 2px 0 var(--accent-dim);
    line-height: 1.05;
    white-space: pre;
}

.hero-wide {
    font-size: clamp(0.55rem, 1vw, 0.85rem);
    display: block;
}

.hero-stacked {
    display: none;
    font-size: clamp(0.4rem, 2.5vw, 0.7rem);
}

@media (max-width: 900px) {
    .hero-wide {
        display: none;
    }

    .hero-stacked {
        display: block;
    }
}

.terminal-box {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    padding: 32px 36px 28px;
    border: 1px solid var(--accent-dim);
}

.terminal-title {
    position: absolute;
    top: -0.7em;
    left: 24px;
    padding: 0 12px;
    background: var(--bg);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
    max-width: calc(100% - 48px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.terminal-box section + section {
    margin-top: 22px;
}

.terminal-box h2 {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
}

dl {
    margin: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 18px;
    row-gap: 4px;
}

dt {
    color: var(--label);
}

dt::after {
    content: ":";
}

dd {
    margin: 0;
    color: var(--fg);
    overflow-wrap: anywhere;
}

.dim {
    color: var(--muted);
}

a {
    color: var(--fg);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-dim);
}

a:hover,
a:focus-visible {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

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

footer {
    margin: 32px auto 0;
    max-width: 880px;
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .terminal-box {
        padding: 28px 18px 20px;
    }

    .terminal-title {
        left: 14px;
        font-size: 0.78rem;
    }

    dl {
        grid-template-columns: 1fr;
        row-gap: 2px;
    }

    dt {
        margin-top: 6px;
    }

    .terminal-box section:first-child dt:first-of-type {
        margin-top: 0;
    }
}
