/* ── Font ── */
@font-face {
    font-family: 'Raleway';
    src: url('/assets/fonts/Raleway-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

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

:root {
    --bg: #0a0a0c;
    --surface: #141418;
    --surface-hover: #1c1c22;
    --border: #2a2a32;
    --text: #e4e4e8;
    --text-muted: #8888a0;
    --accent: #7c8aff;
    --accent-dim: rgba(124, 138, 255, 0.12);
    --radius: 12px;
}

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

body {
    font-family: 'Raleway', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav__icon {
    width: 1.5rem;
    height: 1.5rem;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.nav__links a:hover {
    color: var(--text);
}

.nav__btn {
    padding: 0.4rem 1rem;
    border: 1px solid var(--border);
    border-radius: 99px;
    transition: background 0.2s, border-color 0.2s;
}

.nav__btn:hover {
    background: var(--surface);
    border-color: var(--text-muted);
}

/* ── Main ── */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* ── Hero ── */
.hero {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 4rem 0 5rem;
}

.hero__visual {
    position: relative;
    flex-shrink: 0;
}

.hero__glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero__avatar {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    z-index: 1;
}

.hero__text h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hero__tagline {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.4rem;
    font-weight: 400;
}

.hero__bio {
    margin-top: 1.2rem;
    max-width: 480px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.hero__links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* ── Pills ── */
.pill {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    background: var(--accent);
    color: #0a0a0c;
    transition: opacity 0.2s;
}

.pill:hover {
    opacity: 0.85;
}

.pill--ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.pill--ghost:hover {
    opacity: 1;
    color: var(--text);
    border-color: var(--text-muted);
}

/* ── Sections ── */
.section__title {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section__desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ── Card Grid ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.card:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.card__icon {
    display: inline-block;
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── Page (contacts, notes) ── */
.page {
    padding: 3rem 0;
}

.page h1 {
    margin-bottom: 1.5rem;
}

.page__body {
    max-width: 560px;
}

.page__body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.page__body h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5rem;
    color: var(--text);
}

.page__body a:not(.pill) {
    color: var(--accent);
}

/* ── Footer ── */
footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid var(--border);
}

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

/* ── Responsive ── */
@media (max-width: 700px) {
    .nav {
        padding: 1rem 1.25rem;
    }

    main {
        padding: 0 1.25rem 3rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 3rem 0 4rem;
    }

    .hero__avatar {
        width: 140px;
        height: 140px;
    }

    .hero__text h1 {
        font-size: 1.8rem;
    }

    .hero__bio {
        max-width: 100%;
    }

    .hero__links {
        justify-content: center;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}
