:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-nav: #0d0d14;
    --text: #e0e0e6;
    --text-muted: #8888a0;
    --accent: #4a9eff;
    --accent-dim: #2a5a9f;
    --accent-green: #4aff8a;
    --border: #1e1e2e;
    --max-width: 720px;
    --max-width-wide: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
nav {
    border-bottom: 1px solid var(--border);
    background: var(--bg-nav);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .inner {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    text-decoration: none;
}

nav .links {
    display: flex;
    gap: 28px;
}

nav .links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

nav .links a:hover, nav .links a.active {
    color: var(--accent);
}

/* Layout */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px 120px;
}

main.wide {
    max-width: var(--max-width-wide);
}

/* Typography */
h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

h2 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 20px;
}

h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

p { margin-bottom: 16px; }

.tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 48px;
}

section { margin-bottom: 56px; }

/* Cards */
.card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
    background: var(--bg-card);
    transition: border-color 0.2s;
}

.card:hover { border-color: var(--accent-dim); }
.card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0; }

a.card {
    display: block;
    text-decoration: none;
    color: var(--text);
}

/* Dashboard grid */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.metric {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    background: var(--bg-card);
}

.metric .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.metric .value {
    font-size: 1.8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.metric .value.green { color: var(--accent-green); }
.metric .value.blue { color: var(--accent); }

/* Links */
.link-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.link-row a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.link-row a:hover { border-bottom-color: var(--accent); }

/* Footer */
.quiet {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 80px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 480px) {
    main { padding: 36px 20px 80px; }
    h1 { font-size: 1.8rem; }
    .dash-grid { grid-template-columns: 1fr; }
    nav .links { gap: 16px; }
}
