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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #1a1a1a;
    background: #fafafa;
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */
nav {
    position: sticky;
    top: 0;
    background: rgba(250, 250, 250, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e5e5;
    z-index: 100;
}

.nav-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-name {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #1a1a1a;
}

/* ── Main Content ── */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

/* ── Sections ── */
section {
    padding: 3rem 0;
    border-bottom: 1px solid #eee;
}

section:last-child {
    border-bottom: none;
}

h2 {
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 1.75rem;
}

/* ── Hero / About ── */
.hero {
    padding: 4.5rem 0 3rem;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #111;
    margin-bottom: 0.4rem;
}

.subtitle {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.bio {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #333;
    max-width: 640px;
    margin-bottom: 1.75rem;
}

.hero-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-links a {
    display: inline-block;
    padding: 0.55rem 1.25rem;
    border: 1.5px solid #1a1a1a;
    border-radius: 6px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.hero-links a:hover {
    background: #1a1a1a;
    color: #fff;
}

/* ── Entries (Experience, Education, Writing) ── */
.entry {
    margin-bottom: 2rem;
}

.entry:last-child {
    margin-bottom: 0;
}

.entry-header {
    margin-bottom: 0.6rem;
}

.entry h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.entry-meta {
    display: block;
    font-size: 0.88rem;
    color: #777;
    margin-top: 0.15rem;
    font-weight: 500;
}

.entry p {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.7;
}

.entry ul {
    list-style: none;
    padding: 0;
}

.entry ul li {
    position: relative;
    padding-left: 1.15rem;
    margin-bottom: 0.45rem;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
}

.entry ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #bbb;
}

.entry ul li strong {
    color: #111;
    font-weight: 700;
}

/* ── Writing ── */
.writing-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.writing-link:hover {
    color: #1d4ed8;
}

/* ── Projects Grid ── */
.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.project-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 1.5rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.project-card:hover {
    border-color: #ccc;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.project-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.project-card strong {
    color: #111;
}

.tags {
    font-size: 0.78rem;
    color: #999;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ── Skills ── */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: #f0f0f0;
    border-radius: 100px;
    font-size: 0.85rem;
    color: #444;
    font-weight: 500;
}

/* ── Contact ── */
#contact p {
    color: #555;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-grid a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.contact-grid a:hover {
    color: #1d4ed8;
}

/* ── Footer ── */
footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: center;
    color: #aaa;
    font-size: 0.82rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 1.85rem;
    }

    .bio {
        font-size: 1rem;
    }

    .nav-links {
        display: none;
    }

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

    section {
        padding: 2.25rem 0;
    }

    .hero {
        padding: 3rem 0 2.25rem;
    }

    .hero-links a {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}
