:root {
    --brand: #6366f1;
    --brand-dark: #4338ca;
    --surface: #0f1117;
    --surface-2: #171a24;
    --edge: #2a2e3a;
    --type: #e6e8ef;
    --type-dim: #9aa0b4;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--surface);
    color: var(--type);
    line-height: 1.6;
}

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

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--edge);
    flex-wrap: wrap;
}

.site-header .logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--type);
}

.site-header nav a {
    margin-left: 20px;
    color: var(--type-dim);
    font-weight: 600;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

h1 { font-size: 2rem; margin-bottom: 8px; }
h2 { font-size: 1.5rem; margin-top: 40px; border-left: 4px solid var(--brand); padding-left: 12px; }
h3 { font-size: 1.15rem; margin-top: 24px; color: var(--type); }

p.lead {
    font-size: 1.1rem;
    color: var(--type-dim);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: var(--surface-2);
    border: 1px solid var(--edge);
}

th, td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--edge);
}

th { color: var(--brand); width: 220px; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.card {
    display: block;
    background: var(--surface-2);
    border: 1px solid var(--edge);
    border-radius: 10px;
    padding: 18px;
    transition: border-color 0.15s;
}

.card:hover {
    border-color: var(--brand);
    text-decoration: none;
}

.card h2, .card h3 {
    margin: 0;
    border: none;
    padding: 0;
    color: var(--type);
    font-size: 1.05rem;
}

.hero {
    text-align: center;
    padding: 40px 0 20px;
}

.cta-block {
    background: var(--surface-2);
    border: 1px solid var(--brand);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    margin-top: 48px;
}

.cta-block a {
    font-weight: 700;
}

.site-footer {
    text-align: center;
    padding: 24px;
    font-size: 0.85rem;
    color: var(--type-dim);
    border-top: 1px solid var(--edge);
}

@media (max-width: 600px) {
    th { width: 140px; }
}
