:root {
    color-scheme: dark;
    --paper: #08111a;
    --paper-strong: #0e1a25;
    --ink: #e7f0f7;
    --muted: #9fb0bd;
    --line: #2a3c4a;
    --accent: #76e3b2;
    --accent-dark: #4bc895;
    --shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
    --shell: 1080px;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(ellipse at 12% 0%, rgba(39, 93, 89, 0.2), transparent 34rem),
        var(--paper);
    color: var(--ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

a {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--accent);
}

.terminal-window {
    margin: 1.25rem auto;
    max-width: 1240px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(8, 17, 26, 0.88);
    box-shadow: var(--shadow);
}

.terminal-chrome {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.45rem;
    padding: 0 1rem;
    border-bottom: 1px solid var(--line);
    background: #0b151f;
}

.terminal-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: #63727e;
}

.terminal-dot:first-child {
    background: #f07c70;
}

.terminal-dot:nth-child(2) {
    background: #e5bf69;
}

.terminal-dot:nth-child(3) {
    background: #73c89b;
}

.terminal-title {
    margin-left: 0.55rem;
    color: var(--muted);
    font-size: 0.72rem;
}

.site-header,
.site-footer {
    background: transparent;
    border-color: var(--line);
}

.site-header-inner {
    min-height: 4.25rem;
}

.site-brand,
.site-navigation a {
    color: var(--ink);
}

.site-brand-mark {
    background: var(--accent);
    color: #07120f;
}

.site-navigation a {
    font-size: 0.82rem;
}

.site-shell {
    max-width: var(--shell);
}

.terminal-main {
    min-height: 58vh;
}

.terminal-hero,
.terminal-panel,
.terminal-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(17, 34, 47, 0.82), rgba(11, 23, 33, 0.9));
}

.terminal-hero {
    margin: 2rem 0 1.5rem;
    padding: clamp(1.35rem, 4vw, 2.6rem);
}

.terminal-prompt,
.terminal-kicker {
    color: var(--accent);
    font-size: 0.82rem;
}

.terminal-prompt {
    margin: 0 0 0.8rem;
}

.terminal-prompt::before {
    content: "$ ";
    color: var(--muted);
}

.terminal-hero h1,
.terminal-page h1,
.terminal-panel h2,
.terminal-card h2,
.terminal-card h3 {
    color: var(--ink);
    font-family: inherit;
}

.terminal-hero h1,
.terminal-page h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    letter-spacing: -0.06em;
    line-height: 1.15;
}

.terminal-lede {
    max-width: 58rem;
    color: var(--muted);
}

.terminal-panel {
    margin: 1.4rem 0;
    padding: clamp(1rem, 3vw, 1.6rem);
}

.terminal-card {
    position: relative;
    padding: 1.2rem;
}

.terminal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1rem;
}

.terminal-form {
    display: grid;
    gap: 0.9rem;
}

.terminal-form label {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
}

.terminal-form input,
.terminal-form textarea,
.terminal-form select {
    width: 100%;
    min-height: 2.7rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #405666;
    border-radius: 6px;
    background: #071019;
    color: var(--ink);
    font: inherit;
}

.terminal-form textarea {
    min-height: 8rem;
    resize: vertical;
}

.terminal-form input:focus-visible,
.terminal-form textarea:focus-visible,
.terminal-form select:focus-visible,
.terminal-form button:focus-visible,
.terminal-form a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.terminal-form button,
.terminal-button {
    justify-self: start;
    min-height: 2.7rem;
    padding: 0.6rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--accent);
    color: #07120f;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.terminal-notice,
.terminal-muted {
    color: var(--muted);
    font-size: 0.82rem;
}

.terminal-notice {
    padding: 0.8rem;
    border-left: 3px solid var(--accent);
    background: rgba(118, 227, 178, 0.07);
}

.terminal-alert {
    padding: 0.8rem;
    border: 1px solid #a95050;
    border-radius: 6px;
    background: rgba(169, 80, 80, 0.12);
}

.terminal-honey {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.terminal-list {
    display: grid;
    gap: 0.7rem;
    padding: 0;
    list-style: none;
}

.terminal-list a {
    display: block;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    text-decoration: none;
}

.site-footer {
    color: var(--muted);
}

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

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    background: var(--accent);
    color: #07120f;
    font-weight: 700;
    transform: translateY(-200%);
    transition: transform 120ms ease;
    z-index: 20;
}

.skip-link:focus {
    transform: translateY(0);
}

@media (max-width: 720px) {
    .terminal-window {
        margin: 0.35rem;
        border-radius: 8px;
    }

    .terminal-chrome {
        min-height: 2.1rem;
    }

    .site-header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.6rem;
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
