:root {
    --bg: #ffffff;
    --surface: #f5f7fa;
    --text: #1b2330;
    --muted: #5d6877;
    --border: #e1e6ed;
    --accent: #1f6feb;
    --accent-text: #ffffff;
    --ok: #1a7f37;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f141a;
        --surface: #171e27;
        --text: #e6ebf1;
        --muted: #9aa5b3;
        --border: #2a3441;
        --accent: #4c8dff;
        --accent-text: #0b1016;
        --ok: #3fb950;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.site-header { border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 18px; }
.brand:hover { text-decoration: none; }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { color: var(--muted); }

.hero { padding: 72px 0 48px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 16px; max-width: 760px; }
.lead { font-size: 19px; color: var(--muted); max-width: 680px; margin: 0 0 28px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 8px; border: 1px solid var(--border); color: var(--text); font-weight: 500; }
.btn:hover { text-decoration: none; background: var(--surface); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { filter: brightness(1.08); background: var(--accent); }

section { padding-bottom: 48px; }
h2 { font-size: 24px; margin: 0 0 16px; }

.formats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.formats li { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cards.two { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 24px 0; }
.card { border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; background: var(--surface); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0 0 10px; }
.status { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.status.available { color: var(--ok); }

.prose { padding-top: 48px; padding-bottom: 56px; max-width: 760px; }
.prose h1 { font-size: 34px; margin: 0 0 8px; }
.prose h2 { margin-top: 32px; }
.prose h3 { font-size: 17px; margin: 24px 0 4px; }
.prose code { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; font-size: 14px; }
.muted { color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
