/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, p, figure, ul, ol {
    margin: 0;
    padding: 0;
}

ul, ol {
    list-style-position: outside;
    padding-left: 1.5em;
}

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

img {
    display: block;
    max-width: 100%;
}

/* ===== CSS VARIABLES ===== */
:root {
    --color-dark: #222222;
    --color-dark-90: rgba(34, 34, 34, 0.9);
    --color-dark-50: rgba(34, 34, 34, 0.5);
    --color-gray: #909090;
    --color-gray-20: rgba(144, 144, 144, 0.2);
    --color-gray-10: rgba(144, 144, 144, 0.1);
    --color-white: #ffffff;
    --color-link: #0335a1;
    --color-separator: rgba(144, 144, 144, 0.1);
    --font-primary: "Figtree", sans-serif;
}

body {
    background: var(--color-white);
    font-family: var(--font-primary);
}

/* ===== PAGE LAYOUT ===== */
.page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
}

.content {
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 128px;
    width: 100%;
    max-width: 880px;
    padding: 150px 0 40px;
    position: relative;
}

/* ===== ANIMATION ===== */
.anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== TYPOGRAPHY ===== */

/* Nav text - 15px semibold */
.nav-text {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    font-style: normal;
    letter-spacing: -0.02em;
    line-height: 110%;
    color: var(--color-dark);
    text-decoration: none;
}

/* H1 hero */
.hero-heading {
    font-family: var(--font-primary);
    font-size: 25px;
    font-weight: 600;
    font-style: normal;
    letter-spacing: -0.02em;
    line-height: 130%;
    color: var(--color-gray);
    white-space: pre-wrap;
}

.hero-heading .text-dark {
    color: var(--color-dark);
}

/* Section title - H2 */
.section-title {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    font-style: normal;
    letter-spacing: -0.02em;
    line-height: 130%;
    color: var(--color-dark);
}

/* H3 - Job titles, sidebar CTA */
.job-title,
.sidebar-cta {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    font-style: normal;
    letter-spacing: -0.02em;
    line-height: 130%;
    color: var(--color-dark);
}

/* Body text - 16px medium */
.body-text {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    letter-spacing: -0.02em;
    line-height: 150%;
    color: var(--color-dark);
}

.body-text strong {
    font-weight: 700;
}

/* Small / meta text - 14px medium */
.job-meta {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    font-style: normal;
    letter-spacing: -0.02em;
    line-height: 150%;
    color: var(--color-gray);
}

.job-meta strong {
    font-weight: 700;
}

/* Footer text */
.footer-text {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 150%;
    color: var(--color-gray);
}

/* Color utilities */
.text-dark { color: var(--color-dark); }
.text-gray { color: var(--color-gray); }
.text-muted { color: var(--color-dark-50); }
.text-right { text-align: right; }

/* Links */
.styled-link {
    color: var(--color-link);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.styled-link:hover {
    color: var(--color-gray);
    text-decoration: none;
}

.body-text a {
    color: var(--color-dark);
    text-decoration: none;
}

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

/* ===== HOME SECTION ===== */
.home {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 880px;
    scroll-margin-top: 200px;
}

.home-sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 1 0 0;
    width: 1px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
}

.logo-img {
    width: 105px;
    height: 105px;
    position: relative;
    overflow: visible;
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
    padding: 30px 0 42px;
    overflow: hidden;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    text-decoration: none;
}

.contact-link:hover .nav-text {
    color: var(--color-gray);
}

.sidebar-cta {
    white-space: pre-wrap;
    word-break: break-word;
    width: 100%;
    max-width: 100%;
}

.book-meeting {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    white-space: pre;
}

.home-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    gap: 40px;
    flex: 1 0 0;
    width: 1px;
}

.hero-spacer {
    width: 100%;
    min-height: 78px;
}

/* ===== ABOUT / EXPERIENCE / EDUCATION SECTIONS ===== */
.about,
.experience,
.education {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    width: 100%;
    scroll-margin-top: 50px;
}

.section-title-col {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 4px;
    flex: 1 0 0;
    width: 1px;
    position: sticky;
    top: 30px;
    z-index: 1;
}

/* ===== ABOUT CONTENT ===== */
.section-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    flex: 1 0 0;
    width: 1px;
}

.about-timeline {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    width: 440px;
    overflow: hidden;
}

.timeline-years {
    flex: none;
    width: auto;
}

.timeline-roles {
    flex: 1 0 0;
    width: 1px;
}

.about-bio {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== EXPERIENCE LIST ===== */
.experience-list,
.education-list {
    gap: 15px;
}

.job {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    overflow: hidden;
}

.job-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    width: 100%;
    overflow: hidden;
}

.job-header .job-title,
.job-header .job-meta {
    width: 100%;
    max-width: 100%;
    white-space: pre-wrap;
    word-break: break-word;
}

.job-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    overflow: hidden;
}

.job-body .body-text,
.job-body ul {
    width: 100%;
    max-width: 100%;
    white-space: pre-wrap;
    word-break: break-word;
}

.job-body ul {
    margin-top: 0;
}

.job-body ul li {
    margin-bottom: 0;
}

.job-body ul li p {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 150%;
    color: var(--color-dark);
}

.job-body ul li p strong {
    font-weight: 700;
}

/* ===== SEPARATOR ===== */
.separator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 32px 0;
    overflow: hidden;
}

.separator-line {
    width: 100%;
    height: 1px;
    background-color: var(--color-separator);
    border-radius: 1px;
}

/* ===== EDUCATION SPACER ===== */
.edu-spacer {
    width: 100%;
    min-height: 21px;
}

/* ===== FOOTER ===== */
.footer {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding-top: 50px;
}

.footer-divider-col {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 4px;
    flex: 1 0 0;
    width: 1px;
    position: sticky;
    top: 30px;
}

.footer-divider {
    /* empty, acts as spacer to match section title col */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    flex: 1 0 0;
    width: 1px;
}

/* ===== RESPONSIVE - TABLET (810px - 1199px) ===== */
@media (max-width: 1199px) and (min-width: 810px) {
    .content {
        max-width: 780px;
        padding: 120px 30px 40px;
        gap: 100px;
    }

    .hero-heading {
        font-size: 18px;
    }

    .nav-text {
        font-size: 15px;
    }

    .job-title,
    .sidebar-cta {
        font-size: 18px;
    }
}

/* ===== RESPONSIVE - MOBILE (max 809px) ===== */
@media (max-width: 809px) {
    .content {
        padding: 80px 20px 40px;
        gap: 80px;
    }

    .home {
        flex-direction: column;
        gap: 40px;
    }

    .home-sidebar {
        flex: none;
        width: 100%;
    }

    .home-main {
        flex: none;
        width: 100%;
    }

    .about,
    .experience,
    .education,
    .footer {
        flex-direction: column;
        gap: 30px;
    }

    .section-title-col {
        position: relative;
        top: auto;
        width: 100%;
        flex: none;
    }

    .section-content {
        width: 100%;
        flex: none;
    }

    .about-timeline {
        width: 100%;
    }

    .footer-divider-col {
        display: none;
    }

    .footer-content {
        width: 100%;
        flex: none;
    }

    .hero-heading {
        font-size: 16px;
    }

    .nav-text {
        font-size: 13px;
    }

    .job-title,
    .sidebar-cta {
        font-size: 16px;
    }

    .body-text,
    .job-body ul li p {
        font-size: 14px;
    }

    .section-title {
        font-size: 13px;
    }
}
