:root {
    --bg: #0d1117;
    --bg-elevated: #161c22;
    --bg-hover: #1c232a;
    --border: #2a313a;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --accent: #4ade80;
    --accent-hover: #6ee7a3;
    --accent-text: #052e16;
    --kbd-bg: #1f2733;
    --code-bg: #0a0e13;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 2px 8px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

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

code,
kbd {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
    font-size: 0.9em;
    background: var(--code-bg);
    border: 1px solid var(--border);
    padding: 0.1em 0.4em;
    border-radius: 4px;
}

kbd {
    background: var(--kbd-bg);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    font-size: 0.85em;
}

code.url {
    user-select: all;
    word-break: break-all;
}

.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Header ---- */

.site-header {
    background: linear-gradient(180deg, #0e1620 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
    padding: 4rem 0 2.5rem;
    text-align: center;
}

.site-header h1 {
    margin: 0 0 0.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-header .tagline {
    margin: 0 auto 1.5rem;
    max-width: 36rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.site-header nav {
    display: inline-flex;
    gap: 1.25rem;
    font-size: 0.95rem;
}

/* ---- Sections ---- */

main {
    padding: 3rem 1.5rem 4rem;
}

section + section {
    margin-top: 3.5rem;
}

section h2 {
    margin: 0 0 1.25rem;
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

section p {
    margin: 0 0 1rem;
}

.note {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.steps {
    padding-left: 1.5rem;
}

.steps li {
    margin-bottom: 0.5rem;
}

/* ---- Plugin cards ---- */

.plugin {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.plugin-header {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.plugin-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

.plugin-header h3 {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.plugin-summary {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.install-btn {
    background: var(--accent);
    color: var(--accent-text) !important;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.install-btn:hover {
    background: var(--accent-hover);
    text-decoration: none;
}

.plugin-body {
    padding: 1.25rem 1.5rem;
}

.plugin-body h4 {
    margin: 1.25rem 0 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.plugin-body h4:first-child {
    margin-top: 0;
}

.plugin-body ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.plugin-body ul li {
    margin-bottom: 0.4rem;
}

.plugin-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.3rem 0 0;
}

.plugin-meta code.url {
    color: var(--text);
}

/* ---- Footer ---- */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4rem;
}

.site-footer p {
    margin: 0;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
    .site-header {
        padding: 2.5rem 0 1.5rem;
    }

    .site-header h1 {
        font-size: 2rem;
    }

    .site-header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem 1rem;
    }

    .plugin-header {
        grid-template-columns: 40px 1fr;
        grid-template-areas:
            "icon name"
            "btn  btn";
    }

    .plugin-icon {
        grid-area: icon;
        width: 40px;
        height: 40px;
    }

    .plugin-header > div {
        grid-area: name;
    }

    .install-btn {
        grid-area: btn;
        text-align: center;
    }
}
