:root {
    --backdrop: #e9e6e0;
    --window: #f4f2ea;
    --text: #1a1815;
    --muted: #66635b;
    --tagline: #57534a;
    --prompt: #6f6c63;
    --accent: #8a6500;
    --border: #e0ddd2;
    --link-border: #d6d3c8;
    --dot-active: #e0b400;
    --dot-idle: #d8d5ca;
    --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
    :root {
        --backdrop: #080807;
        --window: #0e0e0d;
        --text: #e8e6e0;
        --muted: #8f8e86;
        --tagline: #b7b5ad;
        --prompt: #7c7b73;
        --accent: #f7df1e;
        --border: #232320;
        --link-border: #2e2e2a;
        --dot-active: #f7df1e;
        --dot-idle: #3a3a36;
        --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.6);
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--backdrop);
    font-family: 'Archivo', system-ui, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.solidarity {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 16px;
    background: #0057B7;
    color: #FFDD00;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.solidarity:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.solidarity__flag {
    flex: none;
    width: 22px;
    height: 15px;
    border-radius: 2px;
    background: linear-gradient(#0057B7 0 50%, #FFDD00 50% 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.stage {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.terminal {
    width: 100%;
    max-width: 1040px;
    background: var(--window);
    color: var(--text);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.terminal__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--dot-idle);
}

.dot--active {
    background: var(--dot-active);
}

.terminal__path {
    margin-left: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--muted);
}

.terminal__lang {
    margin-left: auto;
    display: flex;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.terminal__lang a {
    color: var(--muted);
    text-transform: uppercase;
}

.terminal__lang a.is-active {
    color: var(--accent);
}

.terminal__body {
    flex: 1;
    padding: 48px 56px;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cmd {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.title {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 700;
    font-size: 76px;
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0 0 6px;
}

.title .accent {
    color: var(--accent);
}

.taglines {
    font-size: 15px;
    line-height: 1.7;
    color: var(--tagline);
    max-width: 620px;
    margin-top: 22px;
}

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

.cmd--channels {
    margin-top: 40px;
}

.channels {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.channels a {
    border: 1px solid var(--link-border);
    padding: 11px 18px;
    font-size: 13px;
    letter-spacing: 0.03em;
    transition: border-color 0.15s ease, color 0.15s ease;
}

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

.terminal__foot {
    padding: 16px 56px;
    border-top: 1px solid var(--border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.terminal__foot a {
    color: var(--accent);
}

@media (max-width: 640px) {
    .stage {
        padding: 0;
        align-items: stretch;
    }

    .terminal__body {
        padding: 32px 24px;
    }

    .title {
        font-size: 48px;
    }

    .taglines {
        font-size: 13px;
        margin-top: 20px;
    }

    .channels {
        flex-direction: column;
    }

    .channels a {
        padding: 13px 16px;
    }

    .terminal__foot {
        padding: 15px 24px;
        flex-direction: column;
        gap: 3px;
    }
}

.pot {
    width: 0.92em;
    height: 0.92em;
    display: inline-block;
    vertical-align: -0.12em;
    margin-left: 0.08em;
    color: var(--text);
}

@media (prefers-reduced-motion: no-preference) {
    .pot__steam path {
        transform-box: fill-box;
        transform-origin: center bottom;
        animation: steam 3.6s ease-in-out infinite;
    }

    .pot__steam path:nth-child(2) {
        animation-delay: 0.6s;
    }

    .pot__steam path:nth-child(3) {
        animation-delay: 1.2s;
    }
}

@keyframes steam {
    0%, 100% {
        opacity: 0.35;
        transform: translateY(1.5px);
    }
    50% {
        opacity: 1;
        transform: translateY(-1.5px);
    }
}

.caret {
    display: inline-block;
    width: 0.55em;
    height: 1.05em;
    margin-left: 3px;
    vertical-align: -0.18em;
    background: var(--accent);
    opacity: 0;
}

.terminal.is-animated .caret.caret--on {
    opacity: 1;
    animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.terminal.is-animated .reveal {
    opacity: 0;
    transform: translateY(10px);
}

.terminal.is-animated .reveal.is-shown {
    opacity: 1;
    transform: none;
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
