:root {
    color-scheme: dark;
    --ink: #07090b;
    --ink-raised: #0d1113;
    --ink-soft: #151a1d;
    --paper: #f3f1ea;
    --muted: #9ca6a6;
    --line: rgba(243, 241, 234, 0.15);
    --line-strong: rgba(243, 241, 234, 0.3);
    --cyan: #53e0e8;
    --coral: #ff6a55;
    --lime: #c7f45b;
    --content: 1240px;

}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: 'Familjen Grotesk', sans-serif;
}

body::before {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(243, 241, 234, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(243, 241, 234, 0.028) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

button,
input,
summary,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
}

::selection {
    background: var(--cyan);
    color: var(--ink);
}

.home-shell {
    position: relative;
    overflow: clip;
}

.home-wrap {
    position: relative;
    width: min(100%, calc(var(--content) + 48px));
    min-height: 100svh;
    margin: 0 auto;
    padding: 0 24px 56px;
}

.home-header {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 76px;
    border-bottom: 1px solid var(--line);
}

.home-brand {
    justify-self: start;
    color: var(--paper);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

.home-brand::before {
    content: "[ ";
    color: var(--cyan);
}

.home-brand::after {
    content: " ]";
    color: var(--cyan);
}

.home-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.home-nav a,
.lang-toggle {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.83rem;
    text-decoration: none;
    cursor: pointer;
    transition: color 160ms ease;
}

.home-nav a:hover,
.lang-toggle:hover {
    color: var(--paper);
}

.lang-toggle {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.lang-current {
    color: var(--paper);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
}

.section-kicker {
    margin: 0 0 16px;
    color: var(--cyan);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.section-lead {
    color: var(--muted);
    line-height: 1.65;
}

.code-block {
    margin: 0;
    overflow: auto;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #050708;
    color: var(--paper);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    line-height: 1.7;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

@media (max-width: 760px) {
    .home-wrap {
        padding-inline: 16px;
    }

    .home-header {
        grid-template-columns: 1fr auto;
        min-height: 64px;
    }

    .home-nav {
        order: 3;
        grid-column: 1 / -1;
        justify-content: flex-start;
        gap: 20px;
        min-width: 0;
        padding: 12px 0;
        overflow-x: auto;
        border-top: 1px solid var(--line);
        white-space: nowrap;
    }

    .home-nav a {
        flex: 0 0 auto;
    }
}
