/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0f0f11;
    --fg: #e1e1e6;
    --muted: #7f7f8a;
    --accent: #a78bfa;
    --accent-dim: #6d5db5;
    --border: #1f1f23;
    --radius: 8px;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main {
    max-width: 640px;
    margin: 0 auto;
    padding: 4rem 1.5rem 3rem;
    flex: 1;
}

/* ─── Hero ─── */
.hero {
    margin-bottom: 2.5rem;
}

h1 {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--muted);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ─── Sections ─── */
section {
    margin-bottom: 2.5rem;
}

h2 {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--accent);
}

.about p {
    color: var(--muted);
    max-width: 540px;
}

/* ─── Projects ─── */
.project {
    margin-bottom: 1.25rem;
}

.project a {
    color: var(--fg);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

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

.project .desc {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    line-height: 1.5;
}

/* ─── Links ─── */
.links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.15s;
}

.links a:hover {
    color: var(--fg);
    border-color: var(--accent-dim);
    background: rgba(167, 139, 250, 0.06);
}

/* ─── Footer ─── */
footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

footer p {
    color: var(--muted);
    font-size: 0.75rem;
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
    html { font-size: 16px; }
    main { padding: 2.5rem 1.25rem 2rem; }
    h1 { font-size: 2.25rem; }
}
