:root {
    --ink: oklch(0.24 0.025 210);
    --ink-muted: oklch(0.48 0.03 210);
    --canvas: oklch(0.99 0.006 210);
    --wash-top: oklch(1 0.01 210);
    --wash-bottom: oklch(0.94 0.035 210);
    --accent: oklch(0.52 0.17 210);
    --accent-hover: oklch(0.45 0.19 210);
    --cream: oklch(0.985 0.012 85);
    --hairline: oklch(0.88 0.015 210);
    --mono: "IBM Plex Mono", ui-monospace, monospace;
    --sans: "M PLUS 1", system-ui, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--sans);
    font-weight: 400;
    color: var(--ink);
    background: var(--canvas);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-underline-offset: 0.18em;
}

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

.wash {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(120% 80% at 10% -10%, oklch(0.9 0.06 210 / 0.45), transparent 55%),
        radial-gradient(90% 60% at 100% 0%, oklch(0.92 0.04 200 / 0.35), transparent 50%),
        linear-gradient(180deg, var(--wash-top), var(--wash-bottom));
    animation: wash-drift 18s var(--ease) infinite alternate;
}

@keyframes wash-drift {
    from {
        transform: scale(1) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1.04) translate3d(-1.5%, 1%, 0);
    }
}

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
    max-width: 72rem;
    margin: 0 auto;
}

.top__brand {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-decoration: none;
}

.top__brand:hover {
    color: var(--accent);
}

.top__nav {
    display: flex;
    gap: 1.25rem;
    font-size: 0.92rem;
    font-weight: 500;
}

.top__nav a {
    color: var(--ink-muted);
    text-decoration: none;
}

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

main {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem) 4rem;
}

.hero {
    min-height: min(78vh, 40rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 0 3.5rem;
    max-width: 40rem;
}

.hero__brand {
    margin: 0 0 0.75rem;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.1;
    color: var(--ink);
    animation: rise 0.9s var(--ease) both;
}

.hero__title {
    margin: 0 0 1rem;
    font-size: clamp(1.45rem, 3.2vw, 1.85rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.35;
    color: var(--ink);
    animation: rise 0.9s var(--ease) 0.08s both;
}

.hero__lede {
    margin: 0 0 1.75rem;
    font-size: 1.05rem;
    color: var(--ink-muted);
    max-width: 34rem;
    animation: rise 0.9s var(--ease) 0.16s both;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    animation: rise 0.9s var(--ease) 0.24s both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(0.7rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition:
        background 0.2s var(--ease),
        color 0.2s var(--ease),
        transform 0.2s var(--ease);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    background: var(--accent);
    color: var(--cream);
}

.btn--primary:hover {
    background: var(--accent-hover);
    color: var(--cream);
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--hairline);
}

.btn--ghost:hover {
    color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.install,
.keys,
.links {
    padding: 2.5rem 0 0;
    border-top: 1px solid var(--hairline);
    max-width: 40rem;
}

h2 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.install__note,
.install__more {
    margin: 0 0 1rem;
    color: var(--ink-muted);
    font-size: 0.95rem;
}

.code {
    margin: 0 0 1.25rem;
    padding: 1.1rem 1.2rem;
    overflow-x: auto;
    background: oklch(0.97 0.01 210);
    border: 1px solid var(--hairline);
    border-radius: 0.65rem;
    font-family: var(--mono);
    font-size: 0.84rem;
    line-height: 1.65;
    color: var(--ink);
}

.keys__list,
.links__list {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.keys__list li,
.links__list li {
    margin: 0 0 0.55rem;
    color: var(--ink-muted);
    font-size: 0.98rem;
}

kbd {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border: 1px solid var(--hairline);
    border-radius: 0.3rem;
    background: oklch(0.98 0.006 210);
    font-family: var(--mono);
    font-size: 0.8em;
    color: var(--ink);
}

.foot {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
    border-top: 1px solid var(--hairline);
    color: var(--ink-muted);
    font-size: 0.88rem;
}

.foot p {
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .wash,
    .hero__brand,
    .hero__title,
    .hero__lede,
    .hero__actions,
    .btn {
        animation: none;
        transition: none;
    }
}
