:root {
    color-scheme: dark;
    --bg: #1a1a1a;
    --fg: #d9d9d9;
    --green: #07b63f;
    --green-dim: rgba(7, 182, 63, 0.28);
    --muted: #a7a7a7;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: "Fira Code", monospace;
    overflow-x: hidden;
}

.terminal-shell {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0 44px;
}

.ascii-frame {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    color: var(--green);
}

.ascii-frame pre {
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    font-family: "Fira Code", monospace;
    font-size: clamp(7px, 1.08vw, 14px);
    font-weight: 700;
    line-height: 1.12;
    white-space: pre;
}

.thin-section {
    width: 100%;
    max-width: 600px;
    margin: 18px auto 0;
    padding: 12px 18px;
    border: 2px dashed var(--green);
    text-align: center;
}

.thin-section p {
    margin: 0;
    overflow-wrap: anywhere;
}

.command-line {
    text-align: left;
}

.prompt {
    color: var(--green);
}

.intro {
    color: var(--fg);
    line-height: 1.6;
}

.route-section {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid var(--green);
}

.route-section h1,
.route-section h2 {
    margin: 0 0 20px;
    font-size: 1.25rem;
    text-align: center;
    text-transform: lowercase;
}

.route-list {
    display: grid;
    gap: 10px;
}

.route-item {
    display: grid;
    grid-template-columns: minmax(10rem, 0.8fr) minmax(0, 1.6fr) auto;
    gap: 16px;
    align-items: baseline;
    padding: 12px 14px;
    border: 1px dashed var(--green-dim);
    color: var(--fg);
    text-decoration: none;
}

.route-item:hover,
.route-item:focus-visible {
    border-color: var(--green);
    color: #fff;
    outline: none;
}

.route-path {
    color: var(--green);
    font-weight: 700;
}

.route-copy {
    color: var(--muted);
}

.route-arrow {
    color: var(--green);
}

.footer {
    margin-top: 30px;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

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

.footer a:hover,
.footer a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .terminal-shell {
        width: 100%;
        max-width: none;
        padding-right: 0;
        padding-left: 0;
        padding-top: 18px;
        overflow: hidden;
    }

    .ascii-frame pre {
        font-size: clamp(5px, 1.62vw, 9px);
    }

    .thin-section,
    .route-section {
        width: calc(100% - 24px);
        margin-right: auto;
        margin-left: auto;
        margin-top: 14px;
    }

    .route-section {
        padding: 18px 12px;
    }

    .intro p {
        max-width: 30ch;
        margin-right: auto;
        margin-left: auto;
    }

    .route-item {
        grid-template-columns: 1fr auto;
        gap: 4px 10px;
    }

    .route-copy {
        grid-column: 1 / -1;
    }
}
