:root {
    --bg: #fafaf7;
    --card: #f3efe8;
    --text: #1a1a1a;
    --muted: #6b6b6b;
    --accent: #c2553c;
    --accent-soft: #e8c4b8;
    --radius: 10px;
    --shadow: 0 6px 24px rgba(30, 20, 10, 0.07);

    --content-max: 1180px;
    --content-max-wide: 1820px;

    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 3rem;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;

    display: grid;
    grid-template-columns:
        [full-start] 1fr
        [content-start] min(var(--content-max), 100% - 2 * var(--space-4)) [content-end]
        1fr [full-end];
}

body > * { grid-column: content; }
body > .full-bleed { grid-column: full; }

.topnav {
    position: absolute;
    top: 1.1rem;
    right: 2rem;
    z-index: 2;
}

.gh-link {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s ease;
}

.gh-link:hover {
    background: var(--accent);
    color: #fff;
}

.hero-head {
    text-align: center;
    padding: 1.25rem 1rem 1rem;
}

.wordmark {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--accent);
    line-height: 1.05;
}

.tagline {
    margin: 0.15rem 0 0;
    font-size: 1.1rem;
    color: #8a6565;
    font-weight: 500;
}

.hero {
    max-width: 1820px;
    margin: 0 auto;
    padding: 0.5rem 2rem 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    grid-template-areas: "demo install";
    gap: 2.5rem;
    align-items: start;
}

.hero-demo {
    grid-area: demo;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sample-flow {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.hero-install {
    grid-area: install;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-block-start: var(--space-5);
}

.install-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.install-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent);
}

.install-label {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}

.install-code {
    margin: 0;
    padding: 1rem 1.2rem;
    background: var(--card);
    border-radius: var(--radius);
    font-family: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.install-code code {
    white-space: pre-wrap;
    word-break: break-word;
}

.sample-flow span        { font-weight: 700; }
.sample-flow span.active {
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.05em 0.35em;
    border-radius: 4px;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.demo-player {
    width: 100%;
    max-width: 1300px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ap-player.asciinema-player-theme-shipsmooth-light {
    --term-color-foreground: #21252b;
    --term-color-background: #eceff4;
    --term-color-0: #21252b;
    --term-color-1: #dc2626;
    --term-color-2: #16a34a;
    --term-color-3: #d97706;
    --term-color-4: #3b82f6;
    --term-color-5: #9333ea;
    --term-color-6: #0891b2;
    --term-color-7: #21252b;
    --term-color-8: #6b7280;
    --term-color-9: #ef4444;
    --term-color-10: #22c55e;
    --term-color-11: #f59e0b;
    --term-color-12: #3b82f6;
    --term-color-13: #a855f7;
    --term-color-14: #06b6d4;
    --term-color-15: #21252b;
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-areas:
            "demo"
            "install";
        gap: 1.75rem;
        padding: 0.5rem 1.25rem 2.5rem;
    }
    .topnav {
        padding: 1rem 1.25rem;
    }
    .hero-head {
        padding: 0.5rem 1rem 1.5rem;
    }
}
