:root {
    color-scheme: dark;
    --bg: #101310;
    --surface: #171b17;
    --line: #30372f;
    --line-strong: #475047;
    --text: #eee9df;
    --muted: #9ba098;
    --quiet: #686f68;
    --accent: #e7a74b;
    --accent-dark: #2e261a;
    --content-width: 1120px;
}

@media (prefers-reduced-motion: no-preference) {
    @view-transition {
        navigation: auto;
    }
}

::view-transition-group(root),
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 220ms;
}

::view-transition-group(site-logo),
::view-transition-old(site-logo),
::view-transition-new(site-logo) {
    animation: none;
}

::view-transition-group(plugins-title),
::view-transition-group(trainer-title) {
    animation-duration: 360ms;
    animation-timing-function: cubic-bezier(.2, .8, .2, 1);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

::selection {
    background: var(--accent);
    color: #15120d;
}

article {
    width: min(calc(100% - 48px), var(--content-width));
}

.site-header {
    min-height: 88px;
}

.site-logo {
    position: fixed;
    top: 16px;
    left: 18px;
    z-index: 20;
    width: 180px;
    display: block;
    padding: 3px 5px;
    transition: opacity 150ms ease;
    view-transition-name: site-logo;
}

.site-logo:hover {
    opacity: .78;
}

.site-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.transition-title {
    width: fit-content;
}

.transition-title-plugins {
    view-transition-name: plugins-title;
}

.transition-title-trainer {
    view-transition-name: trainer-title;
}

main {
    min-height: calc(100vh - 174px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-intro {
    max-width: 820px;
    padding: clamp(110px, 18vh, 190px) 0 90px;
}

.eyebrow {
    margin: 0 0 22px;
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 900px;
    margin-bottom: 26px;
    font-size: clamp(42px, 7vw, 78px);
    font-weight: 520;
    letter-spacing: -.055em;
    line-height: .98;
}

.lede {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.55;
}

.home-links {
    margin: auto;
}

.feature-link {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 28px 2px;

    transition: border-color 150ms ease;
}

.feature-link + .feature-link {
    border-top: 1px solid var(--line);
}

.feature-link:hover {
    border-color: var(--line-strong);
}

.feature-link strong,
.feature-link small {
    display: block;
}

.feature-link strong {
    margin-bottom: 2px;
    font-size: 19px;
    font-weight: 550;
}

.feature-link small {
    color: var(--muted);
    font-size: 14px;
}

.arrow {
    color: var(--accent);
    font-size: 20px;
}

.site-footer {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--quiet);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    letter-spacing: .04em;
}

.page-heading {
    max-width: 820px;
    padding: 100px 0 80px;
}

.page-heading h1 {
    font-size: clamp(38px, 6vw, 68px);
}

.project-list {
    border-top: 1px solid var(--line);
    min-width: calc(min(60vw, 600px));
}

.project-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto 24px;
    gap: 20px;
    align-items: center;
    padding: 32px 2px;
    border-bottom: 1px solid var(--line);
    transition: border-color 150ms ease;
}

.project-row:hover {
    border-color: var(--line-strong);
}

.project-copy strong,
.project-copy small {
    display: block;
}

.project-copy strong {
    font-size: 22px;
    font-weight: 550;
}

.project-copy small {
    color: var(--muted);
}

.project-meta {
    display: flex;
    gap: 8px;
}

.project-meta span {
    padding: 3px 9px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    text-transform: uppercase;
}

.back-link {
    display: inline-block;
    margin: 42px 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.back-link:hover,
.content-section a,
.text-link:hover {
    color: var(--accent);
}

.plugin-hero {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(400px, 1.05fr);
    gap: clamp(56px, 8vw, 110px);
    align-items: center;
    min-height: 570px;
    padding: 60px 0 90px;
}

.plugin-heading h1 {
    font-size: clamp(50px, 50px, 70px);
}

.download-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 38px;
}

.download-actions,
.footer-links {
    display: flex;
    align-items: center;
}

.download-actions {
    gap: 10px;
}

.footer-links {
    gap: 7px;
}

.platform-button {
    width: 48px;
    min-width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    background: transparent;
    transition: border-color 150ms ease, background 150ms ease;
}

.platform-button img {
    width: 36px;
    height: 36px;
    display: block;
    filter: invert(90%);
    opacity: .72;
    transition: opacity 150ms ease;
}

.platform-button[href]:hover {
    border-color: var(--accent);
    background: var(--accent-dark);
}

.platform-button[href]:hover img {
    opacity: 1;
}

.footer-links .platform-button {
    width: 34px;
    min-width: 34px;
    height: 34px;
}

.footer-links .platform-button img {
    width: 24px;
    height: 24px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    transition: background 150ms ease, color 150ms ease;
}

.button:hover {
    background: var(--accent-dark);
}

.release-note {
    color: var(--quiet);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
}

.screenshot-placeholder {
    margin: 0;
}

.screenshot-placeholder img {
    width: 100%;
    height: 100%
}

.screenshot-placeholder > div {
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    border: 1px dashed var(--line-strong);
    background: var(--surface);
    color: var(--muted);
}

.screenshot-placeholder span {
    font-size: 14px;
}

.screenshot-placeholder small {
    color: var(--quiet);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 10px;
}

kbd,
code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.page-toc {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.page-toc a {
    color: var(--muted);
    font-size: 13px;
}

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

.content-section {
    display: grid;
    grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr);
    gap: clamp(40px, 8vw, 100px);
    padding: 90px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 24px;
}

.content-section h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 520;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 46px 44px;
}

.feature-grid h3 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}

.feature-grid p,
.steps p,
.usage-note {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

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

.steps li {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 18px;
    padding: 19px 0;
    border-top: 1px solid var(--line);
}

.steps li:first-child {
    padding-top: 0;
    border-top: 0;
}

.steps li > span {
    color: var(--quiet);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
}

.steps code,
.package-note code {
    color: var(--text);
    overflow-wrap: anywhere;
}

.key-list {
    border-top: 1px solid var(--line);
}

.key-list > div {
    display: grid;
    grid-template-columns: 75px 1fr;
    gap: 20px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.key-list kbd {
    width: 46px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-bottom-width: 3px;
    background: var(--surface);
    font-size: 11px;
}

.key-list strong,
.key-list small {
    display: block;
}

.key-list strong {
    margin-bottom: 1px;
    font-size: 14px;
    font-weight: 600;
}

.key-list small {
    color: var(--quiet);
    font-size: 12px;
}

.usage-note {
    margin-top: 24px;
}

.usage-note strong {
    color: var(--text);
}

.package-note {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 28px;
    padding: 25px 0;
    color: var(--quiet);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 10px;
    scroll-margin-top: 24px;
}

.not-found {
    padding: 170px 0;
}

.not-found h1 {
    font-size: clamp(42px, 6vw, 68px);
}

.text-link {
    color: var(--muted);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

@media (max-width: 820px) {
    .plugin-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 55px;
    }

    .screenshot-placeholder {
        max-width: 590px;
    }

    .content-section {
        grid-template-columns: 1fr;
        gap: 45px;
    }
}

@media (max-width: 620px) {
    .site-header,
    main,
    .site-footer {
        width: min(calc(100% - 30px), var(--content-width));
    }

    .site-header {
        min-height: 72px;
    }

    .site-logo {
        top: 11px;
        left: 10px;
        width: 148px;
    }

    .home-intro {
        padding: 90px 0 70px;
    }

    h1 {
        font-size: 44px;
    }

    .feature-link {
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding-block: 22px;
    }

    .page-heading {
        padding: 80px 0 65px;
    }

    .project-row {
        grid-template-columns: minmax(0, 1fr) 18px;
        gap: 10px;
        padding-block: 24px;
    }

    .project-meta {
        display: none;
    }

    .plugin-hero {
        gap: 60px;
        padding-bottom: 80px;
    }

    .plugin-heading h1 {
        font-size: 52px;
    }

    .download-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .page-toc {
        gap: 10px 20px;
        flex-wrap: wrap;
    }

    .content-section {
        padding: 68px 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .package-note {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .site-footer {
        min-height: 74px;
    }

    .site-footer span:first-child {
        display: none;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
