:root {
    --background: #0d0d0d;
    --surface: #151515;
    --text: #f2f2f2;
    --muted: #a0a0a0;
    --border: #2a2a2a;
    --accent: #ffffff;
    --max-width: 1000px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* Header */

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

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.05em;
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

/* Layout */

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.eyebrow {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

/* Hero */

.hero {
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0 120px;
}

.hero h1 {
    max-width: 850px;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1;
    letter-spacing: -0.055em;
    margin: 0;
    font-weight: 650;
}

.hero h1 span {
    color: var(--muted);
}

.intro {
    max-width: 650px;
    font-size: 1.15rem;
    color: var(--muted);
    margin: 32px 0;
}

.hero-links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.button {
    background: var(--accent);
    color: #0d0d0d;
    padding: 13px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
}

.text-link {
    font-size: 0.95rem;
    color: var(--muted);
}

/* Typography */

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.04em;
    margin: 0 0 48px;
    line-height: 1.1;
}

h3 {
    margin: 0;
    font-size: 1.05rem;
}

p {
    margin-top: 0;
}

/* Experience */

.experience {
    border-top: 1px solid var(--border);
}

.job {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.job-header {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 16px;
}

.job-header p {
    color: var(--muted);
    margin: 4px 0 0;
}

.job-header span {
    color: var(--muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.job > p {
    color: var(--muted);
    max-width: 700px;
    margin-bottom: 0;
}

/* Skills */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 64px;
}

.skills-grid h3 {
    margin-bottom: 8px;
}

.skills-grid p {
    color: var(--muted);
}

/* Education */

.education {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
}

.education h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.education p {
    color: var(--muted);
}

/* Contact */

.contact {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.contact h2 {
    max-width: 700px;
    margin-bottom: 20px;
}

.contact > p {
    color: var(--muted);
    max-width: 550px;
}

.contact-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.email,
.linkedin {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--text);
}

/* Footer */

footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.85rem;
}

/* Mobile */

@media (max-width: 650px) {
    nav {
        display: none;
    }

    .hero {
        min-height: 65vh;
        padding: 60px 0 80px;
    }

    .section,
    .contact {
        padding: 72px 0;
    }

    .skills-grid,
    .education {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .job-header {
        flex-direction: column;
        gap: 8px;
    }

    footer {
        flex-direction: column;
        gap: 4px;
    }

    footer p {
        margin: 0;
    }
}
