/* ========================================
   Ryan J. Parsons - Academic Website
   ======================================== */

:root {
    --navy: #14213d;
    --navy-light: #1d3557;
    --accent: #457b9d;
    --accent-light: #a8dadc;
    --cream: #f8f9fa;
    --text: #2b2d42;
    --text-light: #555;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
}

/* ---- Navigation ---- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navy);
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-name {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--accent-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--white);
}

/* ---- Hero Section ---- */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 8rem 2rem 4rem;
    color: var(--white);
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.headshot {
    width: 220px;
    height: 280px;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-text h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-text .title {
    font-size: 1.25rem;
    color: var(--accent-light);
    margin-bottom: 0.25rem;
}

.hero-text .affiliation {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
}

.hero-text .fellowships {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.contact-info a {
    color: var(--accent-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.contact-info a:hover {
    border-bottom-color: var(--accent-light);
}

/* ---- Main Content ---- */
main {
    max-width: 850px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section {
    padding: 2.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy-light);
    margin: 1.5rem 0 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text);
}

/* ---- Research Section ---- */
.research-list {
    list-style: none;
    padding: 0;
}

.research-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.research-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ---- Publications Section ---- */
.publication {
    margin-bottom: 1.5rem;
}

.publication-list {
    list-style: none;
    padding: 0;
}

.publication-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.publication-list li:last-child {
    border-bottom: none;
}

.pub-year {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    font-weight: 600;
}

.doi {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.doi:hover {
    text-decoration: underline;
}

.award {
    display: block;
    color: #b8860b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.working-papers li {
    color: var(--text-light);
    font-style: italic;
}

.note {
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
}

/* ---- Teaching Section ---- */
.teaching-list {
    list-style: none;
    padding: 0;
    columns: 2;
    column-gap: 2rem;
}

.teaching-list li {
    padding: 0.4rem 0;
    break-inside: avoid;
}

/* ---- CV Section ---- */
.cv-download {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.cv-download:hover {
    background: var(--navy-light);
}

/* ---- Footer ---- */
footer {
    background: var(--cream);
    padding: 3rem 2rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

footer p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .headshot {
        width: 180px;
        height: 230px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .teaching-list {
        columns: 1;
    }

    main {
        padding: 2rem 1.5rem;
    }
}
