:root {
    --base: #181616;
    --surface: #1d1c19;
    --overlay: #282727;
    --muted: #737c73;
    --subtle: #a6a69c;
    --text: #c5c9c5;
    --love: #c4746e;
    --gold: #c4b28a;
    --rose: #b6927b;
    --pine: #87a987;
    --foam: #8ea4a2;
    --iris: #a292a3;
    --border: rgba(197, 201, 197, 0.1);
    --shadow: 0 32px 80px rgba(9, 10, 10, 0.48);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "JetBrains Mono", monospace;
    background:
        radial-gradient(circle at top, rgba(135, 169, 135, 0.18), transparent 28%),
        radial-gradient(circle at right, rgba(162, 146, 163, 0.14), transparent 24%),
        linear-gradient(180deg, #12120f 0%, var(--base) 100%);
    color: var(--text);
}

a {
    color: inherit;
}

.page-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.terminal-window {
    width: min(920px, 100%);
    background: linear-gradient(180deg, rgba(40, 39, 39, 0.96), rgba(24, 22, 22, 0.98));
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.terminal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    background: rgba(29, 28, 25, 0.82);
    backdrop-filter: blur(18px);
}

.window-controls {
    display: flex;
    gap: 10px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-close {
    background: var(--love);
}

.control-minimize {
    background: var(--gold);
}

.control-maximize {
    background: var(--foam);
}

.terminal-label,
.eyebrow,
.prompt,
.command,
.role-line {
    margin: 0;
}

.terminal-label {
    color: var(--subtle);
    font-size: 0.88rem;
}

.terminal-body {
    display: grid;
    gap: 40px;
    padding: 36px 28px 32px;
}

.hero-block {
    display: grid;
    gap: 12px;
}

.eyebrow {
    color: var(--foam);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

h1,
h2 {
    margin: 0;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.4rem, 8vw, 5.4rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.role-line,
.prompt-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.prompt {
    color: var(--iris);
    font-size: 0.92rem;
}

.command {
    color: var(--rose);
    font-size: 1rem;
    font-weight: 500;
}

.command-output {
    margin: 0;
    max-width: 100%;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.85;
}

.command-output-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--foam);
    font-size: 1.08rem;
}

.cursor {
    width: 0.72em;
    height: 1.3em;
    display: inline-block;
    vertical-align: middle;
    background: var(--foam);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(142, 164, 162, 0.45);
    animation: blink 1s steps(1) infinite;
}

.terminal-section {
    display: grid;
    gap: 16px;
    padding: 20px 0 0;
    border-top: 1px solid rgba(166, 166, 156, 0.16);
}

.typed {
    display: inline-block;
    position: relative;
    width: 0;
    padding-right: 1ch;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: bottom;
    animation: type-width var(--duration) steps(var(--chars), end) forwards;
}

.typed::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -1ch;
    width: 0.7em;
    height: 1.15em;
    transform: translateY(-50%);
    background: var(--rose);
    border-radius: 2px;
    animation: caret-blink 0.8s steps(1) infinite;
}

.typed-1 {
    --chars: 6;
    --duration: 0.65s;
    animation-delay: 0.15s;
}

.typed-2 {
    --chars: 15;
    --duration: 1.2s;
    animation-delay: 0.15s;
}

.typed-3 {
    --chars: 12;
    --duration: 0.82s;
    animation-delay: 0.15s;
}

.boot-output {
    opacity: 0;
    transform: translateY(8px);
    animation: show-output 0.16s linear forwards;
}

.boot-output-1 {
    animation-delay: 0.9s;
}

.boot-output-2 {
    animation-delay: 1.45s;
}

.boot-output-3 {
    animation-delay: 1.07s;
}

.link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.link-list li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    color: var(--subtle);
}

.link-list li::before {
    content: "-rw-r--r--";
    color: var(--muted);
    font-size: 0.88rem;
}

.link-list a {
    display: inline;
    padding: 0;
    color: var(--foam);
    text-decoration: none;
    transition:
        color 160ms ease,
        text-shadow 160ms ease;
}

.link-list a:hover,
.link-list a:focus-visible {
    color: #f2f1ef;
    text-shadow: 0 0 16px rgba(142, 164, 162, 0.35);
}

.link-list a:focus-visible {
    outline: 2px solid rgba(142, 164, 162, 0.5);
    outline-offset: 4px;
    border-radius: 2px;
}

.theme-footnote {
    padding-top: 8px;
    border-top: 1px solid rgba(166, 166, 156, 0.12);
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.7;
}

.theme-footnote a {
    color: var(--rose);
    text-decoration: none;
}

.theme-footnote a:hover,
.theme-footnote a:focus-visible {
    color: #f2f1ef;
    text-decoration: underline;
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@keyframes type-width {
    from {
        width: 0;
    }

    to {
        width: calc(var(--chars) * 1ch);
    }
}

@keyframes show-output {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes caret-blink {

    0%,
    49% {
        border-right-color: var(--rose);
    }

    50%,
    100% {
        border-right-color: transparent;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 16px;
    }

    .terminal-window {
        border-radius: 20px;
    }

    .terminal-bar {
        padding: 14px 16px;
    }

    .terminal-body {
        gap: 32px;
        padding: 28px 18px 24px;
    }

    .command-output {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .typed {
        animation: type-width var(--duration) steps(var(--chars), end) forwards;
    }

    .link-list li {
        gap: 10px;
        align-items: flex-start;
    }
}
