:root {
    --paper: #f7f8f4;
    --surface: #ffffff;
    --ink: #15304a;
    --text: #3d5160;
    --muted: #71808a;
    --line: #d9e3e6;
    --blue: #2877c7;
    --blue-dark: #185a9c;
    --blue-soft: #e8f3fa;
    --green: #3d8666;
    --warm: #f3eee3;
    --serif: "Newsreader", Georgia, serif;
    --sans: "Public Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 44px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; color: white; background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.site-header { position: relative; z-index: 10; background: rgba(247,248,244,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 700; text-decoration: none; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50% 50% 46% 54%; color: white; background: var(--blue); font-family: var(--serif); font-size: 1.2rem; box-shadow: inset -5px -5px 0 rgba(0,0,0,.08); }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: .8rem; font-weight: 600; }
.nav-links a { color: var(--text); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--blue); }
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; border-bottom: 1px solid var(--line); color: var(--text); background: transparent; font: inherit; font-size: .76rem; font-weight: 600; cursor: pointer; }
.theme-toggle:hover { color: var(--blue); }

.page-intro { position: relative; overflow: hidden; padding: clamp(65px, 8vw, 98px) 0; background: linear-gradient(145deg, #f9faf7 10%, #eef6f5 58%, #e6f2f7 100%); }
.page-intro::after { content: ""; position: absolute; right: -120px; top: -160px; width: 430px; height: 430px; border: 65px solid rgba(40,119,199,.05); border-radius: 50%; }
.intro-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr); gap: clamp(50px, 8vw, 100px); align-items: start; }
.eyebrow { margin: 0 0 14px; color: var(--blue-dark); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; }
h1 { max-width: 650px; margin: 0; font-size: clamp(2.65rem, 4.5vw, 3.8rem); line-height: 1.04; }
.intro-copy { max-width: 640px; }
.intro-copy p:first-child { margin-top: 0; color: var(--ink); font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; }

.catalog-section { min-height: 390px; padding: clamp(62px, 7vw, 92px) 0; background: var(--surface); }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 32px; }
.catalog-heading h2 { margin: 0; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.1; }
.catalog-count { margin: 0; color: var(--muted); font-size: .8rem; }
.catalog-count strong { color: var(--blue-dark); font-family: var(--serif); font-size: 1.8rem; font-weight: 500; }
.plugin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.loading-card, .catalog-message { grid-column: 1 / -1; min-height: 180px; display: grid; place-items: center; align-content: center; gap: 12px; margin: 0; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); background: var(--paper); text-align: center; }
.loading-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-family: var(--serif); font-size: 1.3rem; }

.plugin-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0 17px; padding: 25px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: 0 14px 35px rgba(21,48,74,.06); }
.plugin-icon { grid-row: 1 / span 5; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--ink); font-size: 1.45rem; }
.plugin-status { width: fit-content; display: inline-flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--green); font-size: .67rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.plugin-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(61,134,102,.11); }
.plugin-status.released { color: var(--blue-dark); }
.plugin-card h3 { margin: 0 0 8px; font-size: 1.45rem; line-height: 1.15; }
.plugin-description { margin: 0 0 15px; color: var(--muted); font-size: .86rem; }
.plugin-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 17px; padding: 0; list-style: none; }
.plugin-meta li { padding: 4px 8px; border-radius: 999px; color: var(--text); background: var(--blue-soft); font-size: .65rem; font-weight: 600; }
.plugin-link { width: fit-content; color: var(--blue-dark); font-size: .76rem; font-weight: 700; text-underline-offset: 4px; }

.catalog-note { padding: 42px 0; background: var(--warm); }
.note-grid { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); gap: 45px; align-items: start; }
.note-grid p:last-child { max-width: 800px; margin: 0; font-size: .88rem; }

.site-footer { padding: 42px 0; color: #c9d7dd; background: #0d2437; }
.footer-grid { display: flex; justify-content: space-between; gap: 35px; }
.footer-grid p { margin: 3px 0; }
.footer-title { color: white; font-family: var(--serif); font-size: 1.4rem; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; font-size: .8rem; }
.footer-links a { color: white; text-underline-offset: 4px; }

html[data-theme="dark"] {
    --paper: #0f1c22;
    --surface: #14262e;
    --ink: #f3f5f1;
    --text: #c7d3d6;
    --muted: #9dafb5;
    --line: #31464e;
    --blue: #69afe3;
    --blue-dark: #8fc7ec;
    --blue-soft: #193747;
    --green: #75b894;
    --warm: #19272a;
    color-scheme: dark;
}
html[data-theme="dark"] .site-header { background: rgba(15,28,34,.94); }
html[data-theme="dark"] .page-intro { background: linear-gradient(145deg, #102128 15%, #142a30 58%, #17323b 100%); }
html[data-theme="dark"] .plugin-card { box-shadow: 0 14px 35px rgba(0,0,0,.16); }
html[data-theme="dark"] .plugin-icon { color: #123047; background: #9bcceb; }

@media (max-width: 820px) {
    .nav { align-items: flex-start; padding-block: 17px; }
    .nav-links { justify-content: flex-end; flex-wrap: wrap; gap: 9px 16px; }
    .intro-grid, .note-grid { grid-template-columns: 1fr; gap: 28px; }
    .plugin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .shell { width: min(100% - 28px, 1120px); }
    .nav { display: block; }
    .nav-links { justify-content: flex-start; margin-top: 15px; }
    .catalog-heading { display: block; }
    .catalog-count { margin-top: 15px; }
    .plugin-card { grid-template-columns: 1fr; }
    .plugin-icon { grid-row: auto; margin-bottom: 15px; }
    .footer-grid { display: block; }
    .footer-links { margin-top: 22px; }
}
