@font-face {
    font-family: "Geist";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Geist";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Geist Mono";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Geist Mono";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --context-h: 0rem;
    --bg: #fcfcfc;
    --bg-2: #f3f4f4;
    --bg-3: #e9eaeb;
    --line: #e3e4e6;
    --ink: #0d0e10;
    --ink-2: #474a50;
    --ink-3: #62666d;
    --lime: #c6f432;
    --lime-ink: #0d0e10;
    --progress: #5c9a00;
    --link-line: #a9d812;
    --red: #e0352b;
    --violet: #6a45e0;
    --amber: #c97a00;
    --blue: #1f6feb;
    --code-bg: #0d0e10;
    --code-line: #24272c;
    --code-text: #e7e9eb;
    --code-muted: #8a9097;
    --header-bg: rgba(252, 252, 252, 0.82);
    --grid-line: rgba(13, 14, 16, 0.06);
    --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
    --header-h: 3.75rem;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b0c0e;
        --bg-2: #141619;
        --bg-3: #1c1f23;
        --line: #24272c;
        --ink: #f1f2f3;
        --ink-2: #b4b8be;
        --ink-3: #80858c;
        --link-line: #c6f432;
        --progress: #c6f432;
        --red: #ff5a4e;
        --violet: #a68bff;
        --amber: #f2a93b;
        --blue: #6aa9ff;
        --code-bg: #08090a;
        --header-bg: rgba(11, 12, 14, 0.8);
        --grid-line: rgba(255, 255, 255, 0.05);
        color-scheme: dark;
    }
}

@view-transition {
    navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.22s;
}


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

html:has(.has-context) {
    --context-h: 2.9rem;
}

html {
    scroll-padding-top: calc(var(--header-h) + var(--context-h) + 1.5rem);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: clip;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration-line: underline;
    text-decoration-color: var(--link-line);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.22em;
    transition: background-color 0.15s, color 0.15s;
}

a:hover {
    background: var(--lime);
    color: var(--lime-ink);
    text-decoration-color: var(--lime-ink);
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    border-radius: 2px;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

[hidden] {
    display: none !important;
}

.wrap {
    width: min(100% - 2.5rem, 76rem);
    margin-inline: auto;
}

.mono {
    font-family: var(--mono);
    font-feature-settings: normal;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--lime);
    color: var(--lime-ink);
}

.skip-link:focus {
    top: 0.5rem;
}

.label {
    margin: 0;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.8125rem;
    letter-spacing: 0;
}

.label a {
    color: var(--ink-2);
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(1.6) blur(14px);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    view-transition-name: site-header;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex: none;
    font-family: var(--mono);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.logo:hover {
    background: none;
    color: inherit;
}

.logo__mark {
    display: grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 5px;
    background: var(--lime);
    color: var(--lime-ink);
    transition: transform 0.3s var(--ease);
}

.logo:hover .logo__mark {
    transform: rotate(-8deg) scale(1.06);
}

.logo__text span {
    color: var(--ink-3);
}

.search {
    position: relative;
    flex: 1;
    max-width: 30rem;
    margin-left: auto;
}

.search input {
    width: 100%;
    height: 2.35rem;
    padding: 0 2.6rem 0 2.25rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23777b82' stroke-width='1.6'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cpath d='M10.5 10.5 14 14' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0.75rem 50% / 1rem;
    color: var(--ink);
    font: inherit;
    font-size: 0.9375rem;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.search input::placeholder {
    color: var(--ink-3);
}

.search input:focus {
    border-color: var(--ink);
    background-color: var(--bg);
    outline: none;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 55%, transparent);
}

.search__hint {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    translate: 0 -50%;
    min-width: 1.35rem;
    padding: 0 0.3rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--bg);
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
    text-align: center;
    pointer-events: none;
}

.search__results {
    position: absolute;
    inset: calc(100% + 0.5rem) 0 auto 0;
    max-height: min(70vh, 32rem);
    margin: 0;
    padding: 0.35rem;
    overflow-y: auto;
    list-style: none;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.25);
    animation: drop 0.18s var(--ease);
    z-index: 70;
}

.search__results a {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    line-height: 1.35;
    text-decoration: none;
}

.search__results small {
    display: block;
    margin-top: 0.15rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.search__results li[aria-selected="true"] a,
.search__results a:hover {
    background: var(--lime);
    color: var(--lime-ink);
}

.search__results li[aria-selected="true"] small,
.search__results a:hover small {
    color: inherit;
    opacity: 0.7;
}

.search__results mark {
    background: none;
    color: inherit;
    font-weight: 650;
}

.search__empty {
    padding: 0.6rem 0.7rem;
    color: var(--ink-3);
}

.project-switch {
    position: relative;
    flex: none;
}

.project-switch summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.35rem;
    padding: 0 0.7rem 0 0.3rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    list-style: none;
    cursor: pointer;
    transition: border-color 0.15s;
}

.project-switch summary::-webkit-details-marker {
    display: none;
}

.project-switch summary:hover,
.project-switch[open] summary {
    border-color: var(--ink);
}

.project-switch__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.project-switch__name {
    max-width: 9rem;
    overflow: hidden;
    font-size: 0.8125rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-switch small {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-variant-numeric: tabular-nums;
}

.ring {
    width: 1.75rem;
    height: 1.75rem;
    flex: none;
    rotate: -90deg;
}

.ring circle {
    fill: none;
    stroke-width: 3.5;
}

.ring__track {
    stroke: var(--bg-3);
}

.ring__fill {
    stroke: var(--progress);
    stroke-dasharray: 100;
    stroke-dashoffset: calc(100 - var(--pct, 0) * 100);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s var(--ease);
}

.project-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 60;
    width: min(22rem, calc(100vw - 2rem));
    padding: 0.9rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.25);
    animation: drop 0.18s var(--ease);
}

.project-panel__title {
    margin: 0 0 0.5rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.project-panel__list {
    display: grid;
    gap: 0.3rem;
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
}

.project-panel__list li {
    display: flex;
    gap: 0.3rem;
}

.project-panel__item {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
}

.project-panel__item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-panel__item small {
    flex: none;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.project-panel__item:hover {
    border-color: var(--ink);
}

.project-panel__item.is-active {
    border-color: var(--ink);
    background: color-mix(in srgb, var(--lime) 22%, var(--bg));
    font-weight: 600;
}

.project-panel__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.2rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink-3);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.project-panel__icon:hover,
.project-panel__icon:focus-visible {
    border-color: var(--ink);
    color: var(--ink);
}

.project-panel__icon--danger:hover,
.project-panel__icon--danger:focus-visible {
    border-color: var(--red);
    color: var(--red);
}

.project-panel__edit {
    display: flex;
    flex: 1;
    gap: 0.3rem;
    min-width: 0;
}

.project-panel__edit input {
    flex: 1;
    min-width: 0;
    height: 2.3rem;
    padding: 0 0.6rem;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 0.875rem;
    outline: none;
}

.project-panel__edit button[type="submit"] {
    padding: 0 0.7rem;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: var(--ink);
    color: var(--bg);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.project-panel__edit button[type="submit"]:hover {
    background: var(--lime);
    color: var(--lime-ink);
    border-color: var(--lime-ink);
}

.project-panel__add {
    display: flex;
    gap: 0.4rem;
}

.project-panel__add input {
    flex: 1;
    min-width: 0;
    height: 2.3rem;
    padding: 0 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-2);
    color: var(--ink);
    font: inherit;
    font-size: 0.875rem;
}

.project-panel__add input:focus {
    border-color: var(--ink);
    outline: none;
}

.project-panel__add button {
    height: 2.3rem;
    padding: 0 0.9rem;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: var(--ink);
    color: var(--bg);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.project-panel__add button:hover {
    background: var(--lime);
    color: var(--lime-ink);
    border-color: var(--lime-ink);
}

.project-panel__note {
    margin: 0.6rem 0 0;
    color: var(--ink-3);
    font-size: 0.75rem;
    line-height: 1.4;
}

.lang-switch {
    position: relative;
    flex: none;
}

.lang-switch summary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 2.35rem;
    padding: 0 0.6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: var(--mono);
    font-size: 0.8125rem;
    list-style: none;
    cursor: pointer;
    transition: border-color 0.15s;
}

.lang-switch summary::-webkit-details-marker {
    display: none;
}

.lang-switch summary:hover,
.lang-switch[open] summary {
    border-color: var(--ink);
}

.lang-switch ul {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 60;
    min-width: 12rem;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.25);
    animation: drop 0.18s var(--ease);
}

.lang-switch a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    font-size: 0.9375rem;
    text-decoration: none;
}

.lang-switch a .mono {
    width: 1.5rem;
    color: var(--ink-3);
    font-size: 0.75rem;
}

.lang-switch a[aria-current] {
    font-weight: 600;
}

.lang-switch a[aria-current]::after {
    content: "✓";
    margin-left: auto;
}

.context-bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px -12px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.25s var(--ease);
}

.context-bar.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.context-bar__inner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    height: var(--context-h);
    font-size: 0.875rem;
}

.context-bar__domain {
    flex: none;
    max-width: 40%;
    overflow: hidden;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.8125rem;
    text-overflow: ellipsis;
    text-decoration: none;
    white-space: nowrap;
}

.context-bar__sep {
    color: var(--ink-3);
}

.context-bar__title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.context-bar__progress {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.6rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.context-bar__progress .row__bar {
    width: 4rem;
}

.context-bar__progress .row__bar::after {
    background: var(--progress);
}

.context-bar__done {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.75rem 0.3rem 0.5rem;
    border: 1.5px solid var(--ink);
    border-radius: 7px;
    background: color-mix(in srgb, var(--lime) 22%, var(--bg));
    box-shadow: 0 2px 0 var(--ink);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.context-bar__done:hover {
    background: color-mix(in srgb, var(--lime) 45%, var(--bg));
    transform: translateY(-1px);
    box-shadow: 0 3px 0 var(--ink);
}

.context-bar__done:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 var(--ink);
}

.context-bar__done:has(input:checked) {
    background: var(--lime);
    color: var(--lime-ink);
}

.context-bar__done .check rect {
    stroke: var(--ink);
    stroke-width: 2;
}

.context-bar__done .check {
    width: 1.15rem;
    height: 1.15rem;
}

.has-context .reading-progress {
    z-index: 1;
}

@media (max-width: 40rem) {
    .context-bar__domain,
    .context-bar__sep,
    .context-bar__done-long {
        display: none;
    }

    .context-bar__done {
        gap: 0.35rem;
        padding: 0.3rem 0.55rem 0.3rem 0.4rem;
        font-size: 0.75rem;
    }

    .context-bar__title {
        font-size: 0.8125rem;
    }

    .lang-switch summary span {
        display: none;
    }
}

.reading-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--lime);
    transform-origin: left;
    transform: scaleX(0);
}

@supports (animation-timeline: scroll()) {
    .has-reading .reading-progress {
        animation: grow linear both;
        animation-timeline: scroll(root);
    }
}

@media (max-width: 40rem) {
    .site-header__inner {
        gap: 0.75rem;
    }

    .logo__text,
    .search__hint,
    .project-switch__name {
        display: none;
    }

    .search {
        max-width: none;
        min-width: 0;
    }

    .search input {
        padding-right: 0.75rem;
        font-size: 0.875rem;
        text-overflow: ellipsis;
    }

    .project-switch summary {
        gap: 0.35rem;
        padding-right: 0.55rem;
    }

    .project-switch small {
        font-size: 0.625rem;
    }
}

/* Home hero */

.hero {
    position: relative;
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 30%, transparent 75%);
}

.hero__grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 64rem) {
    .hero__grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    }
}

.hero h1 {
    margin: 1.25rem 0 1.5rem;
    font-size: clamp(2.6rem, 6.4vw, 5.25rem);
    font-weight: 620;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.hero mark {
    padding: 0 0.04em;
    background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 88% / 100% 0.36em;
    color: inherit;
}

.js .hero mark {
    background-size: 0 0.36em;
    animation: highlight 0.9s var(--ease) forwards;
}

.js .hero mark:nth-of-type(2) {
    animation-delay: 0.35s;
}

.hero__lead {
    max-width: 38rem;
    margin: 0;
    color: var(--ink-2);
    font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
    line-height: 1.55;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.engines {
    margin-top: 1.75rem;
}

.engines__label {
    margin: 0 0 0.6rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.engines ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.engines li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 2.1rem;
    padding: 0 0.75rem 0 0.6rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg);
    font-size: 0.875rem;
    font-weight: 550;
}

.js .engines li {
    animation: fade-up 0.5s var(--ease) both;
}

.engines li:nth-child(2) { animation-delay: 0.05s; }
.engines li:nth-child(3) { animation-delay: 0.1s; }
.engines li:nth-child(4) { animation-delay: 0.15s; }
.engines li:nth-child(5) { animation-delay: 0.2s; }
.engines li:nth-child(6) { animation-delay: 0.25s; }
.engines li:nth-child(7) { animation-delay: 0.3s; }
.engines li:nth-child(8) { animation-delay: 0.35s; }

.brand {
    flex: none;
}

@media (prefers-color-scheme: dark) {
    .brand--chatgpt {
        filter: invert(1);
    }
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.85rem;
    padding: 0 1.15rem;
    border: 1px solid var(--ink);
    border-radius: 8px;
    font-weight: 550;
    text-decoration: none;
    transition: transform 0.15s var(--ease), background-color 0.15s, color 0.15s;
}

.button--primary {
    background: var(--ink);
    color: var(--bg);
}

.button--primary:hover {
    background: var(--lime);
    color: var(--lime-ink);
    border-color: var(--lime-ink);
}

.button:hover {
    transform: translateY(-2px);
}

.button:active {
    transform: translateY(0);
}

.button svg {
    transition: transform 0.2s var(--ease);
}

.button:hover svg {
    transform: translateX(3px);
}

.start {
    margin-top: 2rem;
    max-width: 36rem;
}

.start__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.start__row {
    display: flex;
    gap: 0.5rem;
    padding: 0.35rem;
    border: 1.5px solid var(--ink);
    border-radius: 12px;
    background: var(--bg);
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.45);
    transition: box-shadow 0.2s;
}

.start__row:focus-within {
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--lime) 55%, transparent);
}

.start__row input {
    flex: 1;
    min-width: 0;
    padding: 0 0.75rem;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 1.0625rem;
}

.start__row input:focus {
    outline: none;
}

.start__row .button {
    flex: none;
}

.start__promises {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    margin: 0.85rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
    font-weight: 550;
}

.start__promises li::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    margin-right: 0.4rem;
    border-radius: 50%;
    background: var(--lime);
    color: var(--lime-ink);
    font-size: 0.7rem;
}

.start__alt {
    margin: 0.85rem 0 0;
    color: var(--ink-3);
    font-size: 0.875rem;
}

@media (max-width: 34rem) {
    .start__row {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0;
        border: 0;
        background: none;
        box-shadow: none;
    }

    .start__row:focus-within {
        box-shadow: none;
    }

    .start__row input {
        flex: none;
        height: 3.25rem;
        padding: 0 1rem;
        border: 1.5px solid var(--ink);
        border-radius: 12px;
        background: var(--bg);
        box-shadow: 0 14px 30px -22px rgba(0, 0, 0, 0.45);
        transition: box-shadow 0.2s;
    }

    .start__row input:focus {
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 55%, transparent);
    }

    .start__row .button {
        justify-content: center;
        height: 3.25rem;
        border-radius: 12px;
    }
}

.onboarding {
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1.5px solid var(--ink);
    border-radius: 16px;
    background:
        radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--lime) 30%, transparent), transparent 50%),
        var(--bg);
    scroll-margin-top: calc(var(--header-h) + 1rem);
}

.onboarding.is-new {
    animation: fade-up 0.5s var(--ease);
}

.onboarding h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    letter-spacing: -0.03em;
}

.onboarding__steps {
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}


.onboarding__steps > li {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.onboarding__steps > li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.onboarding__body {
    flex: 1;
    min-width: 0;
}

.onboarding__body > strong {
    display: block;
    font-size: 1.125rem;
}

.onboarding__body .profile-grid {
    margin-top: 1rem;
}

.onboarding__num {
    transition: background-color 0.3s, color 0.3s;
}

.onboarding__num {
    display: grid;
    place-items: center;
    flex: none;
    width: 2rem;
    height: 2rem;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    font-family: var(--mono);
    font-size: 0.875rem;
}

.onboarding__steps > li.is-done .onboarding__num {
    background: var(--lime);
    color: var(--lime-ink);
    font-size: 0;
}

.onboarding__steps > li.is-done .onboarding__num::before {
    content: "✓";
    font-size: 0.9rem;
}

.onboarding__steps p {
    margin: 0.25rem 0 0;
    color: var(--ink-2);
    font-size: 0.9375rem;
}

.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--link-line);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.22em;
    cursor: pointer;
}

.link-button:hover {
    background: var(--lime);
    color: var(--lime-ink);
}

[data-site-summary] strong {
    margin-right: 0.6rem;
    color: var(--ink);
}

.onboarding__note {
    display: block;
    margin-top: 0.2rem;
}

.site-edit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    animation: fade-up 0.25s var(--ease);
}

.site-edit input {
    flex: 1;
    min-width: 14rem;
    max-width: 24rem;
    height: 2.4rem;
    padding: 0 0.75rem;
    border: 1.5px solid var(--ink);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
}

.site-edit input:focus {
    outline: none;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 55%, transparent);
}

.site-edit button[type="submit"] {
    height: 2.4rem;
    padding: 0 1rem;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: var(--ink);
    color: var(--bg);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.site-edit button[type="submit"]:hover {
    background: var(--lime);
    color: var(--lime-ink);
}

.onboarding__link {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
}

.onboarding__tasks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: 0.4rem;
    margin: 0.6rem 0 0;
    padding: 0;
    list-style: none;
}

.onboarding__tasks a {
    display: grid;
    grid-template-columns: 3rem 1fr auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    background: var(--bg-2);
    font-size: 0.9375rem;
    font-weight: 550;
    text-decoration: none;
}

.onboarding__tasks a:hover {
    background: var(--lime);
    color: var(--lime-ink);
}

.onboarding__tasks .mono {
    color: var(--ink-3);
    font-size: 0.75rem;
}

.free-note {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--ink-3);
    font-size: 0.8125rem;
}

.free-note::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--lime);
    color: var(--lime-ink);
    font-size: 0.625rem;
}

.page-head__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

.page-head__actions .done-toggle {
    margin-top: 1.5rem;
}

.page-head__actions .free-note {
    margin-top: 1.5rem;
}

/* Terminal */

.terminal {
    border: 1px solid var(--code-line);
    border-radius: 12px;
    background: var(--code-bg);
    color: var(--code-text);
    font-family: var(--mono);
    font-size: 0.8125rem;
    line-height: 1.7;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.terminal__bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--code-line);
    color: var(--code-muted);
}

.terminal__bar i {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: #2c3036;
}

.terminal__bar span {
    margin-left: 0.5rem;
}

.terminal__body {
    height: 15.5rem;
    margin: 0;
    padding: 0.9rem 1rem;
    overflow: hidden;
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.terminal__body li {
    display: grid;
    grid-template-columns: 1.3rem 3rem 1fr;
    white-space: nowrap;
    animation: line-in 0.25s var(--ease);
}

.terminal__body li span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.terminal__prompt {
    color: var(--code-muted);
}

.terminal__ok {
    color: var(--lime);
}

.terminal__id {
    color: var(--code-muted);
}

.terminal__caret::after {
    content: "";
    display: inline-block;
    width: 0.5em;
    height: 1.05em;
    margin-left: 1px;
    vertical-align: text-bottom;
    background: var(--lime);
    animation: blink 1s steps(1) infinite;
}

/* Stats */

.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: clamp(2.5rem, 5vw, 4rem) 0 0;
    border-top: 1px solid var(--ink);
}

@media (min-width: 48rem) {
    .stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.stats div {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.25rem;
    padding: 1.1rem 1rem 0 0;
}

.stats dt {
    color: var(--ink-3);
    font-size: 0.9375rem;
}

.stats dd {
    margin: 0;
    font-family: var(--mono);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

/* Marquee */

.marquee {
    display: grid;
    gap: 0.6rem;
    padding: 1.1rem 0;
    border-block: 1px solid var(--line);
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: marquee 140s linear infinite;
}

.marquee__track--reverse {
    animation-direction: reverse;
    animation-duration: 170s;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

.marquee li {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.875rem;
    white-space: nowrap;
}

.marquee li::before {
    content: "✓";
    margin-right: 0.6rem;
    color: var(--ink);
}

/* Toolbar */

.toolbar {
    display: grid;
    gap: 2rem;
    padding: clamp(2rem, 4vw, 3rem) 0 0;
}



.toolbar__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.toolbar__head h2 {
    font-size: 1.25rem;
}

.toolbar__pct {
    font-family: var(--mono);
    font-size: 0.875rem;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

.toolbar__pct strong {
    color: var(--ink);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.strip {
    display: flex;
    gap: 3px;
    height: 3.25rem;
}

.strip a {
    position: relative;
    flex: 1;
    min-width: 3px;
    border-radius: 2px;
    background: var(--bg-3);
    overflow: hidden;
    text-decoration: none;
    transition: flex-grow 0.25s var(--ease);
}

.strip a:hover {
    flex-grow: 2.2;
    background: var(--bg-3);
}

.strip a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--lime);
    transform-origin: bottom;
    transform: scaleY(var(--p, 0));
    transition: transform 0.6s var(--ease);
}

.strip a[data-priority="P0"] {
    box-shadow: inset 0 3px 0 var(--red);
}

.strip__legend {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.filters-panel {
    display: grid;
    gap: 1.5rem 3rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
    gap: 0.75rem;
}

.profile-card {
    position: relative;
    display: flex;
    cursor: pointer;
}

.profile-card input {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.profile-card__body {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.1rem 1.1rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}

.profile-card:hover .profile-card__body {
    border-color: var(--ink-3);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.3);
}

.profile-card__icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.45rem;
    border-radius: 10px;
    background: var(--bg-2);
    color: var(--ink);
    transition: background-color 0.2s, transform 0.35s var(--ease);
}

.profile-card__check {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border: 1.5px solid var(--ink-3);
    border-radius: 50%;
    transition: background-color 0.2s, border-color 0.2s;
}

.profile-card__check::after {
    content: "";
    width: 0.8rem;
    height: 0.8rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.6 2.6L10 3.3' fill='none' stroke='%23c6f432' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    transform: scale(0);
    transition: transform 0.3s var(--ease);
}

.profile-card__title {
    padding-right: 1.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.profile-card__example {
    color: var(--ink-3);
    font-size: 0.875rem;
    line-height: 1.4;
}

.profile-card__meta {
    margin-top: auto;
    padding-top: 0.6rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.profile-card input:checked + .profile-card__body {
    border-color: var(--ink);
    background: color-mix(in srgb, var(--lime) 16%, var(--bg));
}

.profile-card input:checked + .profile-card__body .profile-card__icon {
    background: var(--lime);
    color: var(--lime-ink);
    transform: rotate(-6deg);
}

.profile-card input:checked + .profile-card__body .profile-card__check {
    border-color: var(--ink);
    background: var(--ink);
}

.profile-card input:checked + .profile-card__body .profile-card__check::after {
    transform: scale(1);
}

.profile-card input:checked + .profile-card__body .profile-card__meta {
    color: var(--ink-2);
}

.profile-card input:focus-visible + .profile-card__body {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.is-profiled .profile-card input:not(:checked) + .profile-card__body {
    opacity: 0.6;
}

.filters--profile legend,
.filters--priority legend {
    font-size: 1.125rem;
}

.toggle .tag {
    margin-bottom: 0.15rem;
}

.filters {
    margin: 0;
    padding: 0;
    border: 0;
}

.filters legend {
    margin-bottom: 0.2rem;
    padding: 0;
    font-weight: 600;
}

.filters__hint {
    max-width: 34rem;
    margin: 0 0 0.75rem;
    color: var(--ink-3);
    font-size: 0.875rem;
    line-height: 1.45;
}

.filters__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.toggle {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.toggle input {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.toggle__body {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.6rem;
    padding: 0.35rem 0.85rem 0.35rem 0.65rem;
    border: 1px dashed var(--ink-3);
    border-radius: 8px;
    color: var(--ink-3);
    font-size: 0.875rem;
    line-height: 1.2;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s, transform 0.15s var(--ease);
}

.toggle__box {
    display: grid;
    place-items: center;
    flex: none;
    width: 1.05rem;
    height: 1.05rem;
    border: 1.5px solid currentColor;
    border-radius: 4px;
    transition: background-color 0.15s, border-color 0.15s;
}

.toggle__box::after {
    content: "";
    width: 0.65rem;
    height: 0.65rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.6 2.6L10 3.3' fill='none' stroke='%23c6f432' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    transform: scale(0);
    transition: transform 0.25s var(--ease);
}

.toggle__text {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.toggle__text small {
    display: block;
    margin-top: 0.1rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.6875rem;
    text-decoration: none;
}

.toggle .tag {
    opacity: 0.45;
    transition: opacity 0.15s;
}

.toggle:hover .toggle__body {
    border-color: var(--ink);
    transform: translateY(-1px);
}

.toggle input:checked + .toggle__body {
    border-style: solid;
    border-color: var(--ink);
    color: var(--ink);
}

.toggle input:checked + .toggle__body .toggle__box {
    border-color: var(--ink);
    background: var(--ink);
}

.toggle input:checked + .toggle__body .toggle__box::after {
    transform: scale(1);
}

.toggle input:checked + .toggle__body .toggle__text {
    text-decoration: none;
}

.toggle input:checked + .toggle__body .tag {
    opacity: 1;
}

.toggle input:focus-visible + .toggle__body {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.filters__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin: 0;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    background: var(--bg-2);
    color: var(--ink-2);
    font-size: 0.9375rem;
}

.filters__summary strong {
    color: var(--ink);
    font-family: var(--mono);
    font-weight: 500;
}

.filters__reset {
    height: 1.9rem;
    padding: 0 0.75rem;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 0.8125rem;
    cursor: pointer;
    animation: fade-up 0.25s var(--ease);
}

.filters__reset:hover {
    background: var(--lime);
    color: var(--lime-ink);
    border-color: var(--lime-ink);
}

/* Tags */

.tag {
    display: inline-flex;
    align-items: center;
    height: 1.4rem;
    padding: 0 0.4rem;
    border: 1px solid var(--ink);
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.tag--p0 {
    border-color: var(--red);
    background: var(--red);
    color: #fff;
}

.tag--p1 {
    background: var(--ink);
    color: var(--bg);
}

.tag--p2 {
    border-color: var(--ink-3);
    color: var(--ink-2);
}

.tag--p3 {
    border-style: dashed;
    border-color: var(--violet);
    color: var(--violet);
}

.tag--optional {
    border-style: dashed;
    border-color: var(--ink-3);
    color: var(--ink-2);
}


/* Domain index */

.index {
    padding-bottom: 2rem;
}

.part {
    margin-top: clamp(3rem, 6vw, 4.5rem);
}

.part__head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--ink);
}

.part__letter {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.875rem;
}

.part__head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.035em;
}

.part__head p {
    margin: 0;
    color: var(--ink-3);
}

.part__count {
    margin-left: auto;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.8125rem;
    white-space: nowrap;
}

@media (max-width: 40rem) {
    .part__head {
        flex-wrap: wrap;
        gap: 0.25rem 0.75rem;
    }

    .part__head p {
        order: 3;
        width: 100%;
    }
}

.rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rows > li {
    border-bottom: 1px solid var(--line);
}

.row {
    position: relative;
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    gap: 0.25rem 1rem;
    align-items: center;
    padding: 1.05rem 0.5rem;
    isolation: isolate;
    text-decoration: none;
}

.row::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--lime);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.4s var(--ease);
}

.row:hover {
    background: none;
    color: var(--lime-ink);
}

.row:hover::before,
.row:focus-visible::before {
    transform: scaleX(1);
}

.row:hover .row__num,
.row:hover .row__desc,
.row:hover .row__count {
    color: var(--lime-ink);
}

.row__num {
    align-self: start;
    padding-top: 0.2rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.875rem;
    transition: color 0.15s;
}

.row__title {
    display: block;
    width: fit-content;
    font-size: 1.1875rem;
    font-weight: 560;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.row__desc {
    display: -webkit-box;
    margin-top: 0.2rem;
    overflow: hidden;
    color: var(--ink-3);
    font-size: 0.9375rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.15s;
}

.row__side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.25rem;
    align-self: start;
    padding-top: 0.2rem;
}

.row__tags {
    display: flex;
    gap: 0.35rem;
}

.row__progress {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.row__count {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    transition: color 0.15s;
}

.row__bar {
    position: relative;
    width: 4.5rem;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-3);
    overflow: hidden;
}

.row__bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ink);
    transform-origin: left;
    transform: scaleX(var(--p, 0));
    transition: transform 0.6s var(--ease);
}

.row__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 550;
    white-space: nowrap;
}

.row__arrow {
    display: inline-block;
    transition: transform 0.3s var(--ease);
}

.row:hover .row__arrow {
    transform: translateX(4px);
}

.is-complete .row__num::before {
    content: "✓ ";
    color: var(--ink);
}

@media (min-width: 72rem) {
    .row__side {
        flex-wrap: nowrap;
    }
}

@media (max-width: 60rem) {
    .row {
        grid-template-columns: 2.25rem minmax(0, 1fr);
    }

    .row__side {
        grid-column: 2;
        padding-top: 0.5rem;
    }
}

@media (max-width: 30rem) {
    .row__cta {
        display: none;
    }
}

.home-about {
    display: grid;
    gap: 1.5rem;
    margin-top: clamp(4rem, 8vw, 6rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 14px;
    background: var(--bg-2);
}

@media (min-width: 52rem) {
    .home-about {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    }
}

.home-about h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    letter-spacing: -0.035em;
}

.home-about p {
    margin: 0 0 1rem;
    color: var(--ink-2);
}

/* Page header */

.page {
    padding-top: 1.75rem;
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.8125rem;
}

.crumbs li + li::before {
    content: "/";
    margin-right: 0.35rem;
}

.crumbs a {
    color: var(--ink-2);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--lime-ink);
}

.page-head {
    position: relative;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--ink);
}

.page-head h1 {
    max-width: 22ch;
    margin: 0.75rem 0 1rem;
    font-size: clamp(2.1rem, 5.2vw, 3.75rem);
    font-weight: 620;
    line-height: 1.02;
    letter-spacing: -0.042em;
}

.page-head__lead {
    max-width: 44rem;
    margin: 0 0 1.5rem;
    color: var(--ink-2);
    font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
    line-height: 1.55;
}

.page-head--domain {
    min-height: 13rem;
}

.giant {
    position: absolute;
    right: 0;
    top: -0.5rem;
    z-index: -1;
    margin: 0;
    color: transparent;
    font-family: var(--mono);
    font-size: clamp(7rem, 22vw, 15rem);
    font-weight: 500;
    line-height: 0.85;
    letter-spacing: -0.08em;
    -webkit-text-stroke: 1.5px var(--line);
    user-select: none;
}

.js .giant {
    animation: giant-in 1.1s var(--ease) both;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
    gap: 1px;
    max-width: 52rem;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--line);
    overflow: hidden;
}

.meta-grid__item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.85rem 1rem 0.95rem;
    background: var(--bg);
}

.meta-grid dt {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ink-3);
    font-size: 0.8125rem;
}

.meta-grid dd {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 550;
    line-height: 1.3;
}

.gauge {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 0.9rem;
}

.gauge i {
    width: 4px;
    border-radius: 1px;
    background: var(--bg-3);
}

.gauge i:nth-child(1) {
    height: 40%;
}

.gauge i:nth-child(2) {
    height: 70%;
}

.gauge i:nth-child(3) {
    height: 100%;
}

.gauge i.is-on {
    background: var(--ink);
}

.domain-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 30rem;
    margin-top: 1.5rem;
    font-family: var(--mono);
    font-size: 0.8125rem;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

.domain-progress .row__bar {
    flex: 1;
    width: auto;
    height: 6px;
    border-radius: 3px;
}

.domain-progress .row__bar::after {
    background: var(--progress);
}

/* Checkbox */

.check {
    position: relative;
    display: inline-grid;
    flex: none;
    width: 1.375rem;
    height: 1.375rem;
}

.check input {
    position: absolute;
    inset: -0.4rem;
    z-index: 1;
    width: auto;
    height: auto;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.check svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.check rect {
    fill: var(--bg);
    stroke: var(--ink-2);
    stroke-width: 1.8;
    transition: fill 0.2s, stroke 0.2s;
}

.check path {
    fill: none;
    stroke: var(--lime-ink);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 18;
    stroke-dashoffset: 18;
    transition: stroke-dashoffset 0.3s var(--ease) 0.05s;
}

.check:hover rect {
    stroke: var(--ink);
}

.check input:checked + svg rect {
    fill: var(--lime);
    stroke: var(--lime-ink);
}

.check input:checked + svg path {
    stroke-dashoffset: 0;
}

.check input:checked + svg {
    animation: pop 0.35s var(--ease);
}

.check input:focus-visible + svg {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    border-radius: 3px;
}

.done-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0.65rem 1.1rem 0.65rem 0.8rem;
    border: 1.5px solid var(--ink);
    border-radius: 8px;
    background: color-mix(in srgb, var(--lime) 22%, var(--bg));
    box-shadow: 0 2px 0 var(--ink);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.done-toggle:hover {
    background: color-mix(in srgb, var(--lime) 45%, var(--bg));
    transform: translateY(-1px);
    box-shadow: 0 3px 0 var(--ink);
}

.done-toggle:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 var(--ink);
}

.done-toggle .check rect {
    stroke: var(--ink);
    stroke-width: 2;
}

.done-toggle:has(input:checked) {
    background: var(--lime);
    color: var(--lime-ink);
}

.done-toggle:has(input:checked) rect {
    stroke: var(--lime-ink);
}

/* Task list */

.tasks-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem 1.5rem;
    margin-bottom: 1rem;
}

.tasks-head h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    letter-spacing: -0.03em;
}

.tasks-head p {
    margin: 0;
    color: var(--ink-3);
    font-size: 0.9375rem;
}


.tasks {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.task {
    display: grid;
    grid-template-columns: auto 3.25rem minmax(0, 1fr) auto auto;
    gap: 0.25rem 1rem;
    align-items: start;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
    transition: background-color 0.2s;
}

.task {
    position: relative;
    isolation: isolate;
}

.task::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.task:hover::before,
.task:has(.task__title:focus-visible)::before {
    transform: scaleX(1);
}

.task:hover .task__id,
.task:hover .task__state {
    color: var(--lime-ink);
}

.task:has(.task__title:focus-visible) {
    outline: 2px solid var(--ink);
    outline-offset: -2px;
}

.task .check {
    position: relative;
    z-index: 2;
}

.task__title::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.task__title:focus-visible {
    outline: none;
}

.task__id {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.8125rem;
}

.task__title {
    width: fit-content;
    font-weight: 500;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 55%;
    background-size: 0 1.5px;
    transition: background-size 0.35s var(--ease), color 0.2s;
}

.task__title:hover {
    background-color: transparent;
    color: var(--lime-ink);
}

.task:hover .task__title {
    color: var(--lime-ink);
}

.task.is-done .task__title {
    color: var(--ink-3);
    background-size: 100% 1.5px;
}

.task__state {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
    white-space: nowrap;
}

.task__state--ready {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 550;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s;
}

.task__state--ready span {
    transition: transform 0.25s var(--ease);
}

.task:hover .task__state--ready {
    border-color: var(--lime-ink);
    background: var(--lime-ink);
    color: var(--lime);
}

.task:hover .task__state--ready span {
    transform: translateX(3px);
}

.task[hidden],
.task-group[hidden] {
    display: none;
}

.task__id {
    padding-top: 0.2rem;
}

.task__body {
    min-width: 0;
}

.task__summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 0.2rem 0 0;
    max-width: 46rem;
    color: var(--ink-3);
    font-size: 0.875rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.task:hover .task__summary,
.task:hover .task__meta {
    color: var(--lime-ink);
}

.task.is-done .task__summary {
    display: none;
}

.task__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding-top: 0.2rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
    white-space: nowrap;
}

.task__duration::before {
    content: "·";
    margin-right: 0.45rem;
}

.task:hover .gauge i {
    background: color-mix(in srgb, var(--lime-ink) 25%, transparent);
}

.task:hover .gauge i.is-on {
    background: var(--lime-ink);
}

.task__state--ready {
    padding: 0.1rem 0.45rem;
}

/* Topic page: where to start, filters, steps */

.starters {
    margin: 0 0 2.75rem;
    padding: clamp(1.1rem, 3vw, 1.5rem);
    border: 1.5px solid var(--ink);
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--lime) 26%, transparent), transparent 55%),
        var(--bg);
}

.starters__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem 1.25rem;
    margin-bottom: 1rem;
}

.starters__head h2 {
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    letter-spacing: -0.03em;
}

.starters__head p {
    margin: 0;
    color: var(--ink-3);
    font-size: 0.9375rem;
}

.starters__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.starter {
    position: relative;
    display: grid;
    gap: 0.35rem;
    align-content: start;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    transition: border-color 0.15s, background-color 0.15s;
}

.starter:hover,
.starter:has(a:focus-visible) {
    border-color: var(--lime-ink);
    background: var(--lime);
    color: var(--lime-ink);
}

.starter__id,
.starter__meta {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.starter:hover .starter__id,
.starter:hover .starter__meta {
    color: var(--lime-ink);
}

.starter__title {
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.starter__title:hover {
    background: none;
    color: inherit;
}

.starter__title::after {
    content: "";
    position: absolute;
    inset: 0;
}

.starter.is-done .starter__title {
    color: var(--ink-3);
    text-decoration: line-through;
}

.starter.is-done .starter__id::after {
    content: " ✓";
}

.task-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.75rem;
    margin-bottom: 1.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--lime) 12%, var(--bg));
    font-size: 0.875rem;
}

.task-filters__set {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.task-filters__label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-right: 0.3rem;
    color: var(--ink);
    font-size: 0.8125rem;
    font-weight: 600;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--ink-3);
    border-radius: 999px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s var(--ease);
}

.chip:hover {
    border-color: var(--ink);
    background: color-mix(in srgb, var(--lime) 30%, var(--bg));
}

.chip[aria-pressed="true"] {
    border-color: var(--lime-ink);
    background: var(--lime);
    box-shadow: 0 1.5px 0 var(--lime-ink);
    color: var(--lime-ink);
    font-weight: 600;
}

.task-filters__done {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink);
    font-weight: 500;
    cursor: pointer;
}

.task-filters__done input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    accent-color: var(--ink);
}

.task-filters__status {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0 auto;
    color: var(--ink-2);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.task-filters__status[hidden] {
    display: none;
}

.task-filters__reset {
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.task__who {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.35rem 0 0;
    color: var(--ink-2);
    font-size: 0.8125rem;
}

.task:hover .task__who {
    color: var(--lime-ink);
}

.task.is-done .task__who {
    display: none;
}

.task-group {
    --group-progress: 0;
    margin-bottom: 2.5rem;
}

.task-group__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.task-group__head h3 {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    letter-spacing: -0.02em;
    scroll-margin-top: 6rem;
}

.task-group__step {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border: 1.5px solid var(--lime-ink);
    border-radius: 7px;
    background: var(--lime);
    color: var(--lime-ink);
    font-family: var(--mono);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0;
}

.task-group.is-complete .task-group__step {
    font-size: 0;
}

.task-group.is-complete .task-group__step::before {
    content: "✓";
    font-size: 0.9rem;
}

.task-group__count {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
    white-space: nowrap;
}

.task-group__bar {
    position: relative;
    overflow: hidden;
    width: 4.5rem;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-3);
}

.task-group__bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--progress);
    transform: scaleX(var(--group-progress));
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.task-group.is-complete .task-group__count {
    color: var(--progress);
}

.gauge--l1 i.is-on {
    background: var(--progress);
}

.gauge--l2 i.is-on {
    background: var(--amber);
}

.gauge--l3 i.is-on {
    background: var(--red);
}

.who {
    --who: var(--ink-3);
}

.who--developer {
    --who: var(--violet);
}

.who--writer {
    --who: var(--blue);
}

.who--marketing {
    --who: var(--amber);
}

.who--executive {
    --who: var(--red);
}

.who--sysadmin {
    --who: var(--progress);
}

.who__icon {
    flex: none;
    width: 14px;
    height: 14px;
    color: var(--who);
}

.task__who {
    flex-wrap: wrap;
    gap: 0.25rem 0.9rem;
}

.task__who .who,
.meta-grid__who .who {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.meta-grid dd.meta-grid__who {
    flex-wrap: wrap;
    gap: 0.3rem 0.9rem;
}

.meta-grid__who .who__icon {
    width: 16px;
    height: 16px;
}

.task:hover .who__icon,
.chip[aria-pressed="true"] .who__icon {
    color: currentColor;
}


/* Profile pages */

a.chip {
    text-decoration: none;
}

a.chip:hover .who__icon {
    color: currentColor;
}

a.chip.is-current {
    border-color: var(--lime-ink);
    background: var(--lime);
    box-shadow: 0 1.5px 0 var(--lime-ink);
    color: var(--lime-ink);
    font-weight: 600;
}

a.chip.is-current .who__icon {
    color: currentColor;
}

.profile-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.5rem;
}

.profile-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.25rem;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.profile-band h2 {
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.profile-band__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.meta-grid__who a.who {
    text-decoration: none;
}

.meta-grid__who a.who:hover {
    background: none;
    text-decoration: underline;
}

.task-group--fold {
    margin-bottom: 0;
    border-bottom: 1px solid var(--line);
}

.task-group--fold:first-of-type {
    border-top: 1px solid var(--line);
}

.task-group--fold > summary {
    margin: 0;
    padding: 0.9rem 0.25rem;
    list-style: none;
    cursor: pointer;
}

.task-group--fold > summary::-webkit-details-marker {
    display: none;
}

.task-group--fold > summary h3 {
    flex: 1;
    min-width: 0;
}

.task-group--fold > summary h3::after {
    content: "+";
    margin-left: 0.25rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-weight: 400;
}

.task-group--fold[open] > summary h3::after {
    content: "−";
}

.task-group--fold > summary:hover h3 {
    text-decoration: underline;
    text-decoration-color: var(--link-line);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
}

.task-group--fold .task-group__step {
    width: 2.1rem;
}

.task-group--fold[open] {
    padding-bottom: 1.5rem;
}

.task-group__more {
    margin: 0.9rem 0 0;
    font-size: 0.875rem;
}

@media (max-width: 40rem) {
    .task-group--fold > summary {
        flex-wrap: wrap;
    }

    .task-group--fold > summary h3 {
        flex-basis: 100%;
    }
}

.tasks-empty {
    padding: 1.5rem 0;
    color: var(--ink-3);
}

@media (max-width: 40rem) {
    .task {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.2rem 0.9rem;
    }

    .task__body {
        grid-column: 2;
    }

    .task__meta {
        grid-column: 2;
        padding-top: 0;
    }

    .task-filters__status {
        margin-left: 0;
    }

    .task__id {
        grid-column: 2;
        grid-row: 1;
    }


    .task__state {
        display: none;
    }

    .task .check {
        grid-row: span 2;
    }
}

/* Guide */

.ask-ai {
    display: grid;
    gap: 1rem;
    margin: 0 0 3rem;
    padding: clamp(1.1rem, 3vw, 1.5rem);
    border: 1.5px solid var(--ink);
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--lime) 26%, transparent), transparent 55%),
        var(--bg);
}

@media (min-width: 60rem) {
    .ask-ai {
        grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
        align-items: end;
    }

    .ask-ai__buttons,
    .ask-ai__note {
        grid-column: 1 / -1;
    }
}

.ask-ai__head h2 {
    margin-bottom: 0.35rem;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.ask-ai__head p {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.9375rem;
}

.ask-ai__url {
    display: grid;
    gap: 0.3rem;
}

.ask-ai__url span {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.ask-ai__url input {
    height: 2.5rem;
    padding: 0 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 0.9375rem;
}

.ask-ai__url input:focus {
    border-color: var(--ink);
    outline: none;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 55%, transparent);
}

.ask-ai__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ai-button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    height: 2.75rem;
    padding: 0 1rem 0 0.8rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s var(--ease), box-shadow 0.15s;
}

.ai-button svg:last-child {
    color: var(--ink-3);
}

.ai-button:hover {
    border-color: var(--ink);
    background: var(--bg);
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.4);
}

.ai-button--copy {
    border-style: dashed;
    font-weight: 500;
}

.ai-button--copy.is-done {
    border-style: solid;
    border-color: var(--lime-ink);
    background: var(--lime);
    color: var(--lime-ink);
}

.ask-ai__note {
    margin: 0;
    color: var(--ink-3);
    font-size: 0.8125rem;
}

.guide {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
}

@media (min-width: 64rem) {
    .guide {
        grid-template-columns: 14rem minmax(0, 1fr);
        gap: 4rem;
    }

    .toc {
        position: sticky;
        top: calc(var(--header-h) + var(--context-h) + 1.5rem);
        align-self: start;
    }
}

.toc__title {
    margin: 0 0 0.75rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
    border-left: 1px solid var(--line);
}

.toc li {
    counter-increment: toc;
}

.toc a {
    position: relative;
    display: flex;
    gap: 0.6rem;
    padding: 0.32rem 0 0.32rem 1rem;
    color: var(--ink-3);
    font-size: 0.9375rem;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.2s;
}

.toc a::before {
    content: counter(toc, decimal-leading-zero);
    font-family: var(--mono);
    font-size: 0.75rem;
    padding-top: 0.12rem;
}

.toc a::after {
    content: "";
    position: absolute;
    left: -1px;
    top: 0.3rem;
    bottom: 0.3rem;
    width: 2px;
    background: var(--ink);
    transform: scaleY(0);
    transition: transform 0.25s var(--ease);
}

.toc a:hover {
    background: none;
    color: var(--ink);
}

.toc a.is-active {
    color: var(--ink);
    font-weight: 550;
}

.toc a.is-active::after {
    transform: scaleY(1);
}

@media (max-width: 63.99rem) {
    .toc {
        padding: 1rem 1.1rem;
        border-radius: 10px;
        background: var(--bg-2);
    }

    .toc ol {
        display: flex;
        flex-wrap: wrap;
        gap: 0 1.1rem;
        border: 0;
    }

    .toc a {
        padding-left: 0;
    }

    .toc a::after {
        display: none;
    }
}

.prose {
    max-width: 46rem;
    overflow-wrap: break-word;
    counter-reset: section;
}

.prose > :first-child {
    margin-top: 0;
}

.prose h2 {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    margin: 3.25rem 0 1.1rem;
    font-size: clamp(1.5rem, 2.6vw, 1.9rem);
    letter-spacing: -0.035em;
    counter-increment: section;
}

.prose[data-guide] h2::before {
    content: counter(section, decimal-leading-zero);
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0;
    transform: translateY(-0.2em);
}

.prose h3 {
    margin: 2.25rem 0 0.7rem;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.prose p,
.prose ul,
.prose ol {
    margin: 0 0 1.1rem;
}

.prose ul,
.prose ol {
    padding-left: 1.35rem;
}

.prose li + li {
    margin-top: 0.4rem;
}

.prose ul > li::marker {
    color: var(--ink-3);
    content: "— ";
}

.prose ol > li::marker {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.875em;
}

.prose strong {
    font-weight: 620;
}

.prose :not(pre) > code {
    padding: 0.12em 0.36em;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--bg-2);
    font-family: var(--mono);
    font-size: 0.84em;
}

.prose pre {
    margin: 0 0 1.4rem;
    padding: 1rem 1.15rem;
    overflow-x: auto;
    border: 1px solid var(--code-line);
    border-radius: 10px;
    background: var(--code-bg);
    color: var(--code-text);
    font-family: var(--mono);
    font-size: 0.84rem;
    line-height: 1.65;
    tab-size: 4;
}

.prose pre code {
    font-family: inherit;
}

.code {
    margin: 0 0 1.4rem;
    border: 1px solid var(--code-line);
    border-radius: 10px;
    background: var(--code-bg);
    overflow: hidden;
}

.code pre {
    margin: 0;
    border: 0;
    border-radius: 0;
}

.code__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.5rem 0.4rem 1.15rem;
    border-bottom: 1px solid var(--code-line);
    color: var(--code-muted);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.copy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 1.7rem;
    padding: 0 0.6rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--code-muted);
    font: inherit;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.copy:hover {
    border-color: var(--code-line);
    color: var(--code-text);
}

.copy.is-done {
    background: var(--lime);
    color: var(--lime-ink);
    animation: pop 0.3s var(--ease);
}

.prose blockquote {
    margin: 0 0 1.4rem;
    padding: 1rem 1.2rem;
    border-left: 3px solid var(--lime);
    border-radius: 0 10px 10px 0;
    background: var(--bg-2);
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

.table-wrap {
    margin: 0 0 1.4rem;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.prose th,
.prose td {
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.prose th {
    background: var(--bg-2);
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
}

.prose tr:last-child td {
    border-bottom: 0;
}

.prose a.external::after {
    content: "";
    display: inline-block;
    width: 0.62em;
    height: 0.62em;
    margin-left: 0.12em;
    vertical-align: 0.32em;
    background: var(--ink-3);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 1.5h5.5V7M8.5 1.5 1.5 8.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 1.5h5.5V7M8.5 1.5 1.5 8.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.prose a:has(> code) {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.08em 0.45em;
    border: 1px solid var(--link-line);
    border-radius: 5px;
    background: color-mix(in srgb, var(--lime) 14%, var(--bg));
    font-size: 0.9em;
    line-height: 1.45;
    text-decoration: none;
    vertical-align: baseline;
}

.prose a:has(> code):hover {
    border-color: var(--lime-ink);
    background: var(--lime);
}

.prose a:has(> code) > code {
    padding: 0;
    border: 0;
    background: none;
    font-size: 0.95em;
}

.prose a.external:has(> code)::after {
    margin-left: 0;
    vertical-align: 0;
}

.prose a.external:hover::after {
    background: var(--lime-ink);
}

.env-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 1.5rem;
    padding: 0.8rem;
    border-radius: 10px;
    background: var(--bg-2);
}

.env-nav[data-label]::before {
    content: attr(data-label);
    width: 100%;
    margin-bottom: 0.25rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.env-nav a,
.env-nav button {
    display: inline-flex;
    align-items: center;
    height: 1.9rem;
    padding: 0 0.7rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, transform 0.15s var(--ease);
}

.env-nav a:hover,
.env-nav button:hover {
    border-color: var(--ink);
    background: var(--bg);
    color: var(--ink);
    transform: translateY(-1px);
}

.env-nav a.is-active {
    border-color: var(--lime-ink);
    background: var(--lime);
    color: var(--lime-ink);
    font-weight: 600;
}

.env-nav a {
    gap: 0.45rem;
}

.env-icon {
    flex: none;
    width: 1rem;
    height: 1rem;
}

.prose h3 .env-icon {
    width: 1.15rem;
    height: 1.15rem;
    margin-right: 0.5rem;
    vertical-align: -0.12em;
}

.env-nav a.is-active .env-icon--dark {
    filter: none;
}

@media (prefers-color-scheme: dark) {
    .env-icon--dark {
        filter: invert(1);
    }
}

.env-nav button {
    border-style: dashed;
    color: var(--ink-3);
}

@media (max-width: 44rem) {
    .env-nav {
        position: sticky;
        top: calc(var(--header-h) + var(--context-h));
        z-index: 10;
        flex-wrap: nowrap;
        margin-inline: -1.25rem;
        padding-inline: 1.25rem;
        border-radius: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .env-nav[data-label]::before {
        display: none;
    }

    .env-nav a,
    .env-nav button {
        flex: none;
    }
}

.env-status {
    margin: -0.75rem 0 1.5rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.env-section:not([hidden]) {
    animation: fade-up 0.35s var(--ease);
}

.tldr {
    position: relative;
    margin: 0 0 1rem;
    padding: 1.4rem 1.5rem 0.4rem 1.6rem;
    border-radius: 14px;
    background: var(--bg-2);
    font-size: 1.125rem;
    line-height: 1.6;
}

.tldr::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.4rem;
    bottom: 1.4rem;
    width: 4px;
    border-radius: 0 3px 3px 0;
    background: var(--lime);
}

.prose .tldr h2 {
    margin: 0 0 0.6rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0;
}

.prose[data-guide] .tldr h2::before {
    content: "⚡";
    transform: none;
}

.tldr p {
    color: var(--ink);
}

.faq {
    display: grid;
    gap: 0.5rem;
}

.faq__item {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    transition: border-color 0.2s;
}

.faq__item[open] {
    border-color: var(--ink);
}

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    list-style: none;
    cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    --faq-dot: var(--bg-2);
    content: "";
    flex: none;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    color: var(--ink);
    background:
        linear-gradient(currentColor, currentColor) center / 0.65rem 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) center / 1.5px 0.65rem no-repeat,
        var(--faq-dot);
    transition: transform 0.25s var(--ease);
}

.faq__item[open] summary::after {
    --faq-dot: var(--lime);
    color: var(--lime-ink);
    transform: rotate(45deg);
}

.prose .faq__item h3 {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.35;
}

.faq__answer {
    padding: 0 1.1rem 0.4rem;
    animation: fade-up 0.3s var(--ease);
}

.guide-updated {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.8125rem;
}

.prose .guide-updated p {
    margin: 0;
}

.cite-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 2rem;
    padding: 0 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink-2);
    font: inherit;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.cite-button:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.cite-button.is-done {
    border-color: var(--lime-ink);
    background: var(--lime);
    color: var(--lime-ink);
}

.pending {
    max-width: 46rem;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border: 1px dashed var(--ink-3);
    border-radius: 12px;
}

.pending h2 {
    margin-bottom: 0.75rem;
    font-size: 1.375rem;
}

.pending p {
    margin: 0 0 0.9rem;
    color: var(--ink-2);
}

.pending p:last-child {
    margin-bottom: 0;
}

/* Pager and siblings */

.pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 4rem;
    border-block: 1px solid var(--ink);
}

.pager__link {
    position: relative;
    display: block;
    padding: 1.4rem 1rem;
    font-size: 1.125rem;
    font-weight: 560;
    line-height: 1.3;
    letter-spacing: -0.015em;
    text-decoration: none;
    isolation: isolate;
}

.pager__link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--lime);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s var(--ease);
}

.pager__link:hover {
    background: none;
    color: var(--lime-ink);
}

.pager__link:hover::before {
    transform: scaleY(1);
}

.pager__link span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0;
}

.pager__link:hover span {
    color: inherit;
}

.pager__link--next {
    grid-column: 2;
    border-left: 1px solid var(--line);
    text-align: right;
}

@media (max-width: 40rem) {
    .pager {
        grid-template-columns: 1fr;
    }

    .pager__link--next {
        grid-column: 1;
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

.wrap-up {
    max-width: 52rem;
    margin: 4rem 0 0;
    padding-top: 2rem;
    border-top: 1px solid var(--ink);
}

.wrap-up h2 {
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.wrap-up__grid {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 48rem) {
    .wrap-up__grid {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: stretch;
    }
}

.wrap-up .done-toggle {
    margin: 0;
    padding: 1rem 1.2rem;
}

.wrap-up__next {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.25rem 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border: 1.5px solid var(--ink);
    border-radius: 10px;
    text-decoration: none;
    isolation: isolate;
    overflow: hidden;
}

.wrap-up__next::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

.wrap-up__next:hover {
    background: none;
    color: var(--lime-ink);
}

.wrap-up__next:hover::before {
    transform: scaleX(1);
}

.wrap-up__kicker {
    grid-column: 1;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.wrap-up__next:hover .wrap-up__kicker {
    color: inherit;
}

.wrap-up__title {
    grid-column: 1;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
}

.wrap-up__arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 1.25rem;
    transition: transform 0.3s var(--ease);
}

.wrap-up__next:hover .wrap-up__arrow {
    transform: translateX(4px);
}

.wrap-up__related {
    margin-top: 1.5rem;
}

.wrap-up__label {
    margin: 0 0 0.5rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.wrap-up__related ul {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wrap-up__related a {
    display: flex;
    gap: 0.75rem;
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    background: var(--bg-2);
    font-size: 0.9375rem;
    text-decoration: none;
}

.wrap-up__related a:hover {
    background: var(--lime);
    color: var(--lime-ink);
}

.wrap-up__related .mono {
    flex: none;
    width: 2.75rem;
    color: var(--ink-3);
    font-size: 0.75rem;
    padding-top: 0.15rem;
}

.wrap-up__previous {
    margin: 1.25rem 0 0;
    font-size: 0.875rem;
}

.wrap-up__previous a {
    color: var(--ink-3);
    text-decoration-color: var(--line);
}

.wrap-up__previous .mono {
    font-size: 0.8125rem;
}

.siblings {
    margin-top: 3.5rem;
}

.siblings h2 {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}

.siblings ol {
    columns: 19rem 3;
    column-gap: 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: sibling;
    font-size: 0.9375rem;
}

.siblings li {
    display: flex;
    gap: 0.75rem;
    padding: 0.3rem 0;
    break-inside: avoid;
    counter-increment: sibling;
}

.siblings li::before {
    content: counter(sibling, decimal-leading-zero);
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
    padding-top: 0.2rem;
}

.siblings a {
    text-decoration-color: var(--line);
}

.siblings [aria-current] {
    font-weight: 620;
}

/* Footer */

.site-footer {
    margin-top: clamp(5rem, 10vw, 8rem);
    padding: 2.5rem 0 2rem;
    border-top: 1px solid var(--ink);
    overflow: hidden;
}

.site-footer__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem 3rem;
}

.site-footer p {
    max-width: 34rem;
    margin: 0;
    color: var(--ink-2);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: flex-start;
    gap: 0.5rem 1.5rem;
    font-family: var(--mono);
    font-size: 0.875rem;
}

.site-footer nav a {
    text-decoration-color: var(--line);
}

.wordmark {
    margin: 3rem 0 0;
    color: var(--bg-3);
    font-size: clamp(2.5rem, 10.5vw, 9.5rem);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.06em;
    white-space: nowrap;
    user-select: none;
}

.wordmark span {
    color: var(--lime);
}

/* Language chooser */

.languages {
    padding: clamp(3rem, 9vw, 7rem) 0 2rem;
}

.languages h1 {
    margin: 1rem 0 2.5rem;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 620;
    line-height: 1;
    letter-spacing: -0.045em;
}

.languages__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.languages__lead {
    max-width: 44rem;
    margin: -1rem 0 1.5rem;
    color: var(--ink-2);
    font-size: 1.125rem;
    line-height: 1.55;
}

.languages__suggest {
    min-height: 3.25rem;
    margin-bottom: 1rem;
}

.languages__suggest a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    font-weight: 600;
    text-decoration: none;
    animation: suggest-in 0.4s var(--ease) both;
    transition: background-color 0.2s, color 0.2s;
}

.languages__suggest a:hover {
    background: var(--lime);
    color: var(--lime-ink);
}

.languages__suggest a svg {
    transition: transform 0.25s var(--ease);
}

.languages__suggest a:hover svg {
    transform: translateX(3px);
}

@keyframes suggest-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
}

.languages__list a {
    position: relative;
    display: grid;
    gap: 0.35rem;
    height: 100%;
    padding: 1.1rem 1.2rem;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    font-size: 1.125rem;
    text-decoration: none;
    transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease);
}

.languages__list a:hover {
    border-color: var(--ink);
    background: var(--lime);
    color: var(--lime-ink);
    transform: translateY(-2px);
}

.languages__list .mono {
    color: var(--ink-3);
    font-size: 0.8125rem;
}

.languages__list a:hover .mono {
    color: inherit;
}

.languages__arrow {
    margin-left: auto;
    transition: transform 0.25s var(--ease);
}

.languages__list a:hover .languages__arrow {
    transform: translateX(4px);
}

.languages__list a.is-suggested {
    border-color: var(--ink);
}

.languages__list a.is-suggested::after {
    content: "";
    position: absolute;
    top: -0.45rem;
    right: 1rem;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink);
}

.languages__name {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.languages__tagline {
    font-size: 0.9375rem;
    line-height: 1.4;
}

.languages__meta {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.languages__list a:hover .languages__meta {
    color: inherit;
}

.languages__promises {
    margin-top: 1.75rem;
}

.languages__inside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: clamp(2rem, 5vw, 4rem);
    padding: clamp(3rem, 7vw, 5rem) 0;
    border-top: 1px solid var(--line);
}

.languages__intro h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.035em;
}

.languages__intro > p {
    margin: 0 0 1.5rem;
    color: var(--ink-2);
    line-height: 1.6;
}

.languages__parts {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.languages__parts a {
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
    padding: 1rem 1.1rem;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s var(--ease);
}

.languages__parts a:hover {
    border-color: var(--ink);
    transform: translateX(3px);
}

.languages__parts strong {
    font-size: 1.0625rem;
}

.languages__parts span:not(.part__letter, .languages__meta) {
    grid-column: 2 / -1;
    color: var(--ink-2);
    font-size: 0.9375rem;
}

.languages__parts .languages__meta {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
}

@media (max-width: 52rem) {
    .languages__inside {
        grid-template-columns: 1fr;
    }
}

/* 404 */

.not-found {
    max-width: 40rem;
    padding-top: clamp(3rem, 8vw, 6rem);
}

.not-found h1 {
    font-family: var(--mono);
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 500;
    letter-spacing: -0.08em;
    line-height: 0.85;
}

.not-found ul {
    margin: 2rem 0;
    padding: 1.1rem 1.25rem;
    list-style: none;
    border-radius: 10px;
    background: var(--code-bg);
    color: var(--code-text);
    font-family: var(--mono);
    font-size: 0.9375rem;
}

.not-found li span {
    display: inline-block;
    width: 2rem;
}

.not-found .ok {
    color: var(--lime);
}

.not-found .ko {
    color: #ff6b5f;
}

/* Stats dashboard */

.stats__periods {
    display: flex;
    gap: 0.4rem;
    margin-top: 1rem;
    font-family: var(--mono);
    font-size: 0.8125rem;
}

.stats__periods a {
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    text-decoration: none;
}

.stats__periods a[aria-current] {
    border-color: var(--ink);
    background: var(--lime);
    color: var(--lime-ink);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 0.75rem;
}

.stats__card {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.stats__card p {
    margin: 0 0 0.3rem;
    color: var(--ink-3);
    font-size: 0.8125rem;
}

.stats__card strong {
    font-family: var(--mono);
    font-size: 1.75rem;
    font-weight: 500;
}

.stats__columns {
    display: grid;
    gap: 2rem;
}

@media (min-width: 60rem) {
    .stats__columns {
        grid-template-columns: 1.4fr 1fr;
    }
}

.stats__section h2 {
    margin: 2rem 0 0.75rem;
    font-size: 1.125rem;
}

.stats__section table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.stats__section td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid var(--line);
}

.stats__chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 8rem;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.stats__chart span {
    flex: 1;
    max-width: 1.5rem;
    height: calc(var(--h) * 100%);
    min-height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--progress);
}

/* Reveal on scroll */

[data-reveal] {
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    transition-delay: calc(var(--i, 0) * 45ms);
}

[data-reveal].is-pending {
    opacity: 0;
    transform: translateY(14px);
}

/* Confetti */

.burst {
    position: fixed;
    z-index: 200;
    width: 0.5rem;
    height: 0.5rem;
    pointer-events: none;
}

/* Keyframes */

@keyframes highlight {
    to {
        background-size: 100% 0.36em;
    }
}

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

@keyframes line-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

@keyframes pop {
    40% {
        transform: scale(1.18);
    }
}

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

@keyframes drop {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.99);
    }
}

@keyframes grow {
    to {
        transform: scaleX(1);
    }
}

@keyframes giant-in {
    from {
        opacity: 0;
        transform: translateX(2rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    @view-transition {
        navigation: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .marquee__track {
        animation: none !important;
    }

    .js .hero mark {
        background-size: 100% 0.36em;
    }
}

@media print {
    .site-header,
    .site-footer,
    .toc,
    .env-nav,
    .pager,
    .copy,
    .toolbar,
    .marquee,
    .giant {
        display: none !important;
    }

    [data-reveal].is-pending {
        opacity: 1;
        transform: none;
    }
}

/* Shareable section links and environment versions */

.prose h2,
.prose h3 {
    position: relative;
}

.heading-anchor {
    position: relative;
    margin-left: 0.45rem;
    padding: 0 0.2rem;
    border-radius: 4px;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.8em;
    font-weight: 400;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s, background-color 0.15s;
}

.heading-anchor::before {
    content: "#";
}

.prose h2:hover .heading-anchor,
.prose h3:hover .heading-anchor,
.heading-anchor:focus-visible,
.heading-anchor[data-copied] {
    opacity: 1;
}

.heading-anchor:hover {
    background: var(--lime);
    color: var(--lime-ink);
}

.heading-anchor[data-copied]::after {
    content: attr(data-copied);
    position: absolute;
    left: calc(100% + 0.5rem);
    top: 50%;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: var(--ink);
    color: var(--bg);
    font-family: var(--font);
    font-size: 0.75rem;
    letter-spacing: 0;
    white-space: nowrap;
    transform: translateY(-50%);
    animation: fade-up 0.2s var(--ease);
}

@media (hover: none) {
    .heading-anchor {
        opacity: 0.6;
    }
}

.prose .env-version {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin: -0.2rem 0 1rem;
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg-2);
    color: var(--ink-2);
    font-size: 0.875rem;
}

.prose .env-version span {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Resources: a quiet list of sources, set apart from the article body */

.prose .resources {
    margin-top: 3.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.prose .resources h2 {
    gap: 0.6rem;
    margin: 0 0 1rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.prose[data-guide] .resources h2::before {
    content: none;
}

.prose .resources .heading-anchor {
    display: none;
}

.prose .resources ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: 0.9rem 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.prose .resources ul > li::marker {
    content: none;
}

.prose .resources li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    color: var(--ink-3);
    font-size: 0.875rem;
    line-height: 1.4;
}

.prose .resources li + li {
    margin-top: 0;
}

.prose .resources a {
    color: var(--ink-2);
    text-decoration: none;
}

.prose .resources a:hover {
    background: none;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: 1px;
}

.prose .resources a.external::after {
    width: 0.55em;
    height: 0.55em;
    opacity: 0.7;
}

.prose .resources a:has(> code) {
    display: inline;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: inherit;
    line-height: inherit;
}

.prose .resources a:has(> code):hover {
    background: none;
}

.prose .resources a.external:has(> code)::after {
    margin-left: 0.12em;
    vertical-align: 0.32em;
}

.resources__host {
    overflow: hidden;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.6875rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prose .resources p {
    margin: 1rem 0 0;
    color: var(--ink-3);
    font-size: 0.875rem;
}

/* Version tabs inside an environment section */

.version-tabs {
    margin: 0.5rem 0 1.25rem;
}

.version-tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.9rem;
    padding: 0.25rem;
    width: fit-content;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-2);
}

.version-tabs__tab {
    padding: 0.4rem 0.8rem;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ink-3);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 550;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.version-tabs__tab:hover {
    color: var(--ink);
}

.version-tabs__tab[aria-selected="true"] {
    background: var(--bg);
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--line);
}

.version-tabs__panel:focus-visible {
    outline: 2px solid var(--lime-ink);
    outline-offset: 4px;
    border-radius: 6px;
}

.version-tabs__panel:not([hidden]) {
    animation: fade-up 0.25s var(--ease);
}

/* Syntax highlighting (server side, highlight.php classes) */

.hljs-comment,
.hljs-quote {
    color: #737a82;
    font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-built_in,
.hljs-doctag,
.hljs-type {
    color: #bba3eb;
}

.hljs-string,
.hljs-regexp,
.hljs-addition,
.hljs-meta-string {
    color: #aed07a;
}

.hljs-number,
.hljs-literal,
.hljs-symbol,
.hljs-bullet {
    color: #e8ba74;
}

.hljs-attr,
.hljs-attribute,
.hljs-property,
.hljs-selector-attr,
.hljs-selector-pseudo {
    color: #82b4e6;
}

.hljs-tag,
.hljs-name,
.hljs-selector-id,
.hljs-selector-class {
    color: #e49a8a;
}

.hljs-title,
.hljs-section,
.hljs-function .hljs-title {
    color: #86cdc2;
}

.hljs-variable,
.hljs-template-variable,
.hljs-template-tag,
.hljs-subst {
    color: #dba5d3;
}

.hljs-meta,
.hljs-meta .hljs-keyword {
    color: #8a99a9;
}

.hljs-deletion {
    color: #e48c8c;
}

.hljs-emphasis {
    font-style: italic;
}

.hljs-strong {
    font-weight: 600;
}

/* Common mistakes: a red cross instead of the dash */

.prose .mistakes ul {
    padding-left: 1.75rem;
}

.prose .mistakes ul > li {
    position: relative;
}

.prose .mistakes ul > li::marker {
    content: none;
}

.prose .mistakes ul > li::before {
    content: "";
    position: absolute;
    top: 0.32em;
    left: -1.75rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--red) 14%, var(--bg));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 30%, transparent);
}

.prose .mistakes ul > li::after {
    content: "";
    position: absolute;
    top: calc(0.32em + 0.3rem);
    left: calc(-1.75rem + 0.3rem);
    width: 0.5rem;
    height: 0.5rem;
    background: var(--red);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6M8 2 2 8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6M8 2 2 8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* What it improves: one card per benefit */

.prose .improvements ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.75rem;
    margin: 0 0 1.4rem;
    padding: 0;
    list-style: none;
}

.prose .improvements ul > li::marker {
    content: none;
}

.prose .improvements li {
    position: relative;
    margin: 0;
    padding: 0.95rem 1rem 1rem 3rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-2);
    color: var(--ink-2);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.prose .improvements li + li {
    margin-top: 0;
}

.prose .improvements li strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.35;
}

.prose .improvements li::before {
    content: "";
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: var(--lime);
}

.prose .improvements li::after {
    content: "";
    position: absolute;
    top: calc(1rem + 0.35rem);
    left: calc(1rem + 0.35rem);
    width: 0.6rem;
    height: 0.6rem;
    background: var(--lime-ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.8 5.3 4 7.4l4.2-4.8' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.8 5.3 4 7.4l4.2-4.8' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Code blocks: a thin scrollbar that blends with the dark background */

.prose pre {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--code-text) 28%, transparent) transparent;
}

/* Coding assistant prompt, at the top of « Mise en place » */

.agent {
    display: grid;
    gap: 0.9rem;
    margin: 0 0 2rem;
    padding: 1.1rem 1.2rem 1rem;
    border: 1px solid var(--code-line);
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--lime) 14%, transparent), transparent 55%),
        var(--code-bg);
    color: var(--code-text);
}

.agent p {
    margin: 0;
}

.agent__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.0625rem;
    font-weight: 620;
    letter-spacing: -0.01em;
}

.agent__title svg {
    color: var(--lime);
}

.agent__intro {
    margin-top: 0.25rem;
    color: color-mix(in srgb, var(--code-text) 70%, transparent);
    font-size: 0.875rem;
    line-height: 1.5;
}

.agent__row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.75rem;
}

.agent__env {
    display: grid;
    gap: 0.3rem;
}

.agent__label {
    color: color-mix(in srgb, var(--code-text) 60%, transparent);
    font-family: var(--mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.agent-env {
    position: relative;
}

.agent-env summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 13rem;
    height: 2.75rem;
    padding: 0 0.85rem;
    border: 1px solid color-mix(in srgb, var(--code-text) 32%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--code-text) 14%, var(--code-bg));
    color: var(--code-text);
    font-size: 0.9375rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
    transition: border-color 0.15s;
}

.agent-env summary::-webkit-details-marker {
    display: none;
}

.agent-env summary:hover,
.agent-env[open] summary {
    border-color: var(--code-text);
}

.agent-env summary:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 2px;
}

.agent-env summary svg {
    flex: none;
    transition: transform 0.2s var(--ease);
}

.agent-env[open] summary svg {
    transform: rotate(180deg);
}

.agent-env__current,
.agent-env__option {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.agent-env .env-icon {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    padding: 2px;
    border-radius: 4px;
    background: #fff;
}

.agent-env__list {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(2, minmax(9.5rem, 1fr));
    gap: 0.25rem;
    width: max-content;
    max-width: min(26rem, calc(100vw - 3rem));
    max-height: 20rem;
    padding: 0.4rem;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.35);
    animation: drop 0.18s var(--ease);
}

.agent-env__option {
    padding: 0.5rem 0.6rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
}

.agent-env__option:hover,
.agent-env__option:focus-visible {
    border-color: var(--line);
    background: var(--bg-2);
    outline: none;
}

.agent-env__option[aria-selected="true"] {
    border-color: var(--ink);
    background: color-mix(in srgb, var(--lime) 30%, var(--bg));
    font-weight: 600;
}

.agent__open {
    display: grid;
    gap: 0.4rem;
}

.agent__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.agent .ai-button {
    border-color: color-mix(in srgb, var(--code-text) 32%, transparent);
    background: color-mix(in srgb, var(--code-text) 14%, var(--code-bg));
    color: var(--code-text);
    text-decoration: none;
}

.agent .ai-button:hover {
    border-color: var(--code-text);
    background: color-mix(in srgb, var(--code-text) 22%, var(--code-bg));
    color: var(--code-text);
}

.agent .ai-button--primary,
.agent .ai-button--primary:hover {
    border-color: var(--lime);
    background: var(--lime);
    color: var(--lime-ink);
}

.agent .ai-button--primary.is-done {
    background: var(--code-text);
    border-color: var(--code-text);
    color: var(--code-bg);
}

.agent .ai-button svg:last-child {
    color: inherit;
    opacity: 0.6;
}

.agent__plugin {
    min-width: 0;
    display: grid;
    gap: 0.5rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid color-mix(in srgb, var(--lime) 55%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--lime) 7%, var(--code-bg));
}

.agent__badge {
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: var(--lime);
    color: var(--lime-ink);
    font-size: 0.625rem;
    letter-spacing: 0.04em;
}

.agent__plugin-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.agent__plugin-head .agent__label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.agent__plugin-link {
    color: var(--code-text);
    font-size: 0.8125rem;
}

.agent__plugin-text {
    color: color-mix(in srgb, var(--code-text) 80%, transparent);
    font-size: 0.875rem;
}

.agent__plugin-text code {
    font-family: var(--mono);
    font-size: 0.8125rem;
    color: var(--lime);
}

.agent__plugin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

.agent__plugin-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 2.2rem;
    padding: 0 0.9rem;
    border: 1px solid color-mix(in srgb, var(--code-text) 28%, transparent);
    border-radius: 999px;
    background: transparent;
    color: var(--code-text);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.agent__plugin-tab:hover {
    border-color: var(--code-text);
}

.agent__plugin-tab[aria-selected="true"] {
    border-color: var(--lime);
    background: var(--lime);
    color: var(--lime-ink);
}

.agent__plugin-tab[aria-selected="true"] .brand {
    filter: none;
}

.agent__plugin-tab:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 2px;
}

.agent .agent__plugin-steps[hidden] {
    display: none;
}

.agent .agent__plugin-steps {
    display: grid;
    gap: 0.7rem;
    margin: 0.2rem 0 0;
    padding: 0;
    padding-left: 0;
    list-style: none;
    counter-reset: plugin-step;
}

.agent .agent__plugin-steps li {
    min-width: 0;
    position: relative;
    margin: 0;
    padding: 0 0 0 2.6rem;
    display: grid;
    gap: 0.4rem;
    counter-increment: plugin-step;
}

.agent .agent__plugin-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.9rem;
    bottom: -0.7rem;
    left: 0.85rem;
    width: 2px;
    background: color-mix(in srgb, var(--lime) 45%, transparent);
}

.agent__plugin-step {
    display: flex;
    align-items: center;
    min-height: 1.75rem;
    color: var(--code-text);
    font-size: 0.9375rem;
    font-weight: 700;
}

.agent__plugin-step::before {
    content: counter(plugin-step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--lime);
    color: var(--lime-ink);
    font-family: var(--mono);
    font-size: 0.875rem;
    font-weight: 700;
}

.agent__or {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0.3rem 0 0;
    color: var(--code-text);
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.agent__or::before,
.agent__or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: color-mix(in srgb, var(--code-text) 28%, transparent);
}

.agent__plugin-code {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.6rem 0.6rem 0.85rem;
    border: 1px solid var(--code-line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--code-text) 6%, var(--code-bg));
}

.agent__plugin-code pre {
    flex: 1;
    min-width: 0;
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding: 0;
    border: 0;
    background: none;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--code-text);
}

.agent__plugin-code .copy {
    flex: none;
    height: 2rem;
    padding: 0 0.8rem;
    border-color: color-mix(in srgb, var(--lime) 45%, transparent);
    background: color-mix(in srgb, var(--lime) 12%, transparent);
    color: var(--lime);
    font-size: 0.8125rem;
    font-weight: 600;
}

.agent__plugin-code .copy:hover {
    border-color: var(--lime);
    background: var(--lime);
    color: var(--lime-ink);
}

.agent__note {
    color: color-mix(in srgb, var(--code-text) 55%, transparent);
    font-size: 0.8125rem;
}

.agent .brand--chatgpt,
.agent .brand--cursor,
.agent .brand--githubcopilot {
    filter: invert(1);
}

.agent .ai-button--small {
    height: 2.4rem;
    padding: 0 0.85rem 0 0.7rem;
    font-size: 0.875rem;
}

.site-footer .site-footer__license {
    max-width: 46rem;
    margin-top: 1.5rem;
    color: var(--ink-3);
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* PDF downloads */

.download {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.55rem;
    margin-top: 1rem;
    padding: 0.55rem 0.9rem 0.55rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s var(--ease);
}

.download:hover {
    border-color: var(--ink);
    background: var(--bg);
    color: var(--ink);
    transform: translateY(-1px);
}

.download small {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 400;
}

.download--primary {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--bg);
}

.download--primary small {
    color: color-mix(in srgb, var(--bg) 65%, transparent);
}

.download--primary:hover {
    border-color: var(--ink);
    background: var(--lime);
    color: var(--lime-ink);
}

.download--primary:hover small {
    color: var(--lime-ink);
}

.guide-updated__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

a.cite-button {
    text-decoration: none;
}

/* Home: the whole checklist as a PDF */

.pdf-band {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    margin-top: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border: 1.5px solid var(--ink);
    border-radius: 18px;
    background:
        radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--lime) 30%, transparent), transparent 55%),
        var(--bg);
}

.pdf-band h2 {
    margin: 0.5rem 0 0.75rem;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.pdf-band__text > p {
    max-width: 34rem;
    margin: 0;
    color: var(--ink-2);
}

.pdf-band .download {
    margin-top: 1.25rem;
    font-size: 1rem;
}

.pdf-band__note {
    margin-top: 0.75rem !important;
    color: var(--ink-3) !important;
    font-size: 0.875rem;
}

.pdf-cover {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-self: center;
    width: min(100%, 17rem);
    aspect-ratio: 210 / 297;
    padding: 1.4rem 1.3rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: #0d0e10;
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    transform: rotate(-3deg);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.pdf-cover:hover {
    background: #fff;
    color: #0d0e10;
    transform: rotate(0deg) translateY(-6px);
    box-shadow: 0 40px 70px -24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.pdf-cover__bar {
    width: 40%;
    height: 0.4rem;
    background: #c6f432;
}

.pdf-cover__brand {
    color: #5c6168;
    font-family: var(--mono);
    font-size: 0.6rem;
}

.pdf-cover__brand i {
    color: #6f8f00;
    font-style: normal;
}

.pdf-cover__title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.pdf-cover__title mark {
    background: #c6f432;
    color: #0d0e10;
    padding: 0 0.2rem;
}

.pdf-cover__rows {
    display: grid;
    gap: 0.35rem;
    margin-top: auto;
}

.pdf-cover__rows span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow: hidden;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #e3e5e8;
    font-size: 0.55rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pdf-cover__rows i {
    flex: none;
    width: 0.55rem;
    height: 0.55rem;
    border: 1px solid #0d0e10;
    border-radius: 2px;
}

.pdf-cover__foot {
    padding-top: 0.5rem;
    border-top: 1px solid #0d0e10;
    font-size: 0.65rem;
    font-weight: 700;
}

@media (max-width: 48rem) {
    .pdf-band {
        grid-template-columns: 1fr;
    }

    .pdf-cover {
        width: min(70%, 14rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pdf-cover,
    .pdf-cover:hover {
        transform: none;
    }
}

/* Home: audit the whole project with a coding assistant */

.agent--audit {
    margin: clamp(2.5rem, 6vw, 4rem) 0 0;
    padding: clamp(1.4rem, 3.5vw, 2.25rem);
    gap: 1.25rem;
}

.agent__kicker {
    margin: 0 0 0.5rem !important;
    color: var(--lime) !important;
}

.agent__title--big {
    margin: 0;
    color: var(--code-text);
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.agent--audit .agent__intro {
    max-width: 46rem;
    font-size: 1rem;
}

.start__audit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-right: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: var(--code-bg);
    color: var(--code-text);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s var(--ease), background-color 0.15s, color 0.15s;
}

.start__audit svg:first-child {
    color: var(--lime);
}

.start__audit:hover {
    background: var(--lime);
    color: var(--lime-ink);
    transform: translateY(-1px);
}

.start__audit:hover svg:first-child {
    color: var(--lime-ink);
}

.start__audit-label svg:first-child {
    color: var(--lime);
}

.start__audit:hover .start__audit-label svg:first-child {
    color: var(--lime-ink);
}


.start__audit-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.start__badge {
    position: absolute;
    top: -0.85rem;
    right: 1rem;
    z-index: 1;
    transform: rotate(4deg);
    transition: transform 0.2s var(--ease);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--lime);
    color: var(--lime-ink);
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.18), 0 0 0 2px var(--code-bg);
}

.start__audit:hover .start__badge {
    transform: rotate(-2deg) scale(1.05);
}

#audit {
    scroll-margin-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
    html:has(#audit) {
        scroll-behavior: smooth;
    }
}

.hero__side {
    display: grid;
    gap: 0.85rem;
    min-width: 0;
}

.hero__side .start__audit {
    justify-content: center;
    margin: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--code-line);
    border-radius: 12px;
    font-size: 0.8125rem;
    text-align: center;
}

.hero__side .start__audit svg {
    flex: none;
}

.agent__site {
    display: grid;
    gap: 0.3rem;
    flex: 1 1 14rem;
}

.agent__site input {
    height: 2.75rem;
    padding: 0 0.85rem;
    border: 1px solid color-mix(in srgb, var(--code-text) 32%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--code-text) 14%, var(--code-bg));
    color: var(--code-text);
    font: inherit;
    font-size: 0.9375rem;
}

.agent__site input::placeholder {
    color: color-mix(in srgb, var(--code-text) 45%, transparent);
}

.agent__site input:focus {
    border-color: var(--lime);
    outline: none;
}

/* Hero audit link: a slowly moving gradient border, filled on hover */

.hero__side .start__audit {
    position: relative;
    border: 2px solid transparent;
    background:
        linear-gradient(var(--code-bg), var(--code-bg)) padding-box,
        linear-gradient(90deg, #c6f432, #4fd8c4, #a68bff, #ff9b85, #c6f432) border-box;
    background-size: 100% 100%, 300% 100%;
    box-shadow: 0 10px 30px -18px rgba(198, 244, 50, 0.6);
    animation: audit-glow 6s linear infinite;
}

.hero__side .start__audit:hover {
    background:
        linear-gradient(var(--lime), var(--lime)) padding-box,
        linear-gradient(90deg, #c6f432, #4fd8c4, #a68bff, #ff9b85, #c6f432) border-box;
    background-size: 100% 100%, 300% 100%;
    color: var(--lime-ink);
}

.hero__side .start__audit:has(.start__badge) {
    z-index: 2;
    overflow: visible;
}

@keyframes audit-glow {
    from {
        background-position: 0 0, 0 0;
    }

    to {
        background-position: 0 0, 300% 0;
    }
}


@media (prefers-reduced-motion: reduce) {
    .hero__side .start__audit,
    .hero__side .start__audit:hover {
        animation: none;
    }
}

/* Idle state: faster border, a light sweep and a breathing glow */

.hero__side .start__audit {
    overflow: hidden;
    isolation: isolate;
    animation: audit-glow 3s linear infinite, audit-breathe 3s ease-in-out infinite;
}

.hero__side .start__audit::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 30%, rgba(198, 244, 50, 0.4) 46%, rgba(255, 255, 255, 0.5) 50%, rgba(166, 139, 255, 0.4) 54%, transparent 70%);
    background-size: 250% 100%;
    background-position: 130% 0;
    animation: audit-sweep 3.5s ease-in-out infinite;
    pointer-events: none;
}

.hero__side .start__audit:hover::after {
    opacity: 0;
}

@keyframes audit-sweep {
    0%, 35% {
        background-position: 130% 0;
    }

    75%, 100% {
        background-position: -30% 0;
    }
}

@keyframes audit-breathe {
    0%, 100% {
        box-shadow: 0 10px 28px -16px rgba(198, 244, 50, 0.55);
    }

    50% {
        box-shadow: 0 12px 34px -12px rgba(166, 139, 255, 0.65);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__side .start__audit,
    .hero__side .start__audit::after {
        animation: none;
    }
}

/* Desktop: wide tables use the empty space on the right of the text column */

@media (min-width: 64rem) {
    .guide {
        container-type: inline-size;
    }

    .prose[data-guide] .table-wrap {
        width: max-content;
        min-width: 100%;
        max-width: calc(100cqw - 18rem);
    }
}

.env-nav a.is-current:not(.is-active) {
    border-color: var(--ink);
    box-shadow: inset 0 -2px 0 var(--progress);
}


@media (max-width: 44rem) {
    .env-nav a:not([data-env]) {
        display: block;
        max-width: 72vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Sticky bar: section being read, shown on small screens where the outline is not visible; tap to jump */

.context-bar__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.context-bar__sections {
    display: none;
}

@media (max-width: 63.99rem) {
    .context-bar__sections {
        display: block;
        min-width: 0;
    }

    .context-bar__sections summary {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        max-width: 100%;
        color: var(--progress);
        font-family: var(--mono);
        font-size: 0.6875rem;
        font-weight: 500;
        list-style: none;
        cursor: pointer;
    }

    .context-bar__sections summary::-webkit-details-marker {
        display: none;
    }

    .context-bar__sections summary span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .context-bar__sections summary svg {
        flex: none;
        transition: transform 0.2s var(--ease);
    }

    .context-bar__sections[open] summary svg {
        transform: rotate(180deg);
    }

    .context-bar__text .context-bar__title {
        line-height: 1.25;
    }

    .context-bar__menu {
        position: absolute;
        top: calc(100% + 0.35rem);
        left: 1rem;
        right: 1rem;
        z-index: 30;
        display: grid;
        gap: 0.15rem;
        margin: 0;
        padding: 0.4rem;
        list-style: none;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--bg);
        box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.3);
        animation: drop 0.18s var(--ease);
    }

    .context-bar__menu a {
        display: flex;
        align-items: baseline;
        gap: 0.6rem;
        padding: 0.6rem 0.7rem;
        border-radius: 8px;
        color: var(--ink);
        font-size: 0.9375rem;
        text-decoration: none;
    }

    .context-bar__menu a .mono {
        flex: none;
        width: 1.35rem;
        color: var(--ink-3);
        font-size: 0.75rem;
    }

    .context-bar__sections summary:focus {
        outline: none;
    }

    .context-bar__sections summary:focus-visible {
        outline: 2px solid var(--ink);
        outline-offset: 2px;
        border-radius: 4px;
    }

    .context-bar__menu a:hover,
    .context-bar__menu a.is-active {
        background: color-mix(in srgb, var(--lime) 30%, var(--bg));
        color: var(--ink);
        font-weight: 600;
    }
}

.context-bar__done-short {
    display: none;
}

@media (max-width: 40rem) {
    .context-bar__done-short {
        display: inline;
    }
}
