/* --- 1. FONTS & THEME --- */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,700;1,400&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --ink: #1a1a1a;
    --paper: #fdfdfb;
    /* Soft cream color */
    --gold: #8e7341;
}

/* --- 2. BASE RESET & ACCESSIBILITY --- */
body {
    font-family: 'EB Garamond', Georgia, 'Times New Roman', Verdana, serif;
    font-size: 19px;
    line-height: 1.2;
    /* Tightened line spacing for a professional look */
    color: var(--ink);
    background-color: var(--paper);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- 3. THE CONTAINER --- */
.container {
    width: 95%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- 4. HEADER & NAV --- */
.site-header {
    background: #fff;
    /* border-bottom removed to clear the line above Education */
    padding: 40px 0 10px 0;
    /* Reduced bottom padding to 10px */
}

.header-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.site-title {
    margin: 0;
    font-size: 2.2em;
    line-height: 1.1;
    color: var(--gold);
}

.tagline {
    margin: 0;
    /* Removes space between "Curriculum Vitae" and your name */
    margin-bottom: 5px;
    /* Reduces space below your contact info */
    font-style: normal;
    color: var(--ink);
    font-size: 1.1em;
}

/* --- 5. SECTION STYLING --- */
section {
    margin-bottom: 30px;
    /* Space at the bottom of each section (Education, Employment, etc.) */
}

h2 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    margin-top: 15px;
    /* Gap between the text and whatever is above it */
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 1.3em;
    letter-spacing: 1px;
    border-bottom: none;
    /* Ensure no line appears under the word Education */
}

/* --- 6. UTILITIES & SPECIFICS --- */
.my-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    font-weight: 700;
    color: var(--ink);
    display: inline-block;
    margin-bottom: 12px;
    /* Gap between your name and the email/phone line */
    line-height: 1;
}

main {
    padding-top: 0px;
    /* Reduced from 50px to bring content closer to header */
    padding-bottom: 50px;
}

/* Nav links styling */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 20px 0 0 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--ink);
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.nav-links a:hover {
    border-bottom: 2px solid var(--gold);
}

/* Footer styling */
.site-footer {
    padding: 40px 0;
    margin-top: auto;
    text-align: center;
    font-size: 0.9em;
    color: #888;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .site-title {
        font-size: 1.8em;
    }

    .my-name {
        font-size: 1.8em;
    }

    .nav-links {
        gap: 15px;
    }
}