
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

/* ========================================
   COLOR PALETTE
======================================== */

:root {
    --navy: #13294B;
    --text: #29465C;
    --powder-blue: #E1F0FA;
    --pastel-blue: #B8DCEF;
    --footer-blue: #C7E2F4;
    --ice-white: #F5FAFF;
    --white: #FFFFFF;
    --border: #C4DFEF;
    --accent: #4B9CD3;
}

/* ========================================
   GENERAL STYLING
======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: var(--white);
    color: var(--text);
    line-height: 1.9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: var(--navy);
}

h1, h2, h3 {
    color: var(--navy);
}

img {
    max-width: 100%;
}

/* ========================================
   HEADER AND NAVIGATION
======================================== */

header {
    background-color: var(--powder-blue);
    text-align: center;
    padding: 35px 20px 25px;
    border-bottom: 1px solid var(--border);
}

.site-name {
    display: inline-block;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 34px;
    font-weight: 400;
    letter-spacing: 3px;
    word-spacing: 14px;
    color: var(--navy);
    line-height: 1.5;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 45px;
    margin-top: 22px;
}

nav a {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--navy);
    padding-bottom: 7px;
    border-bottom: 2px solid transparent;
    transition: 0.3s ease;
}

nav a:hover,
nav a.active {
    border-bottom-color: var(--accent);
    color: #1E5C85;
}

/* ========================================
   HOMEPAGE AND OLD WELL BACKGROUND
======================================== */

.hero {
    min-height: 580px;

    background:
        linear-gradient(
            110deg,
            rgba(213, 234, 248, 0.45),
            rgba(234, 245, 252, 0.65)
        ),
        url('oldwell.jpg') center center / cover no-repeat;

    background-color: var(--powder-blue);

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 75px 40px;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 75px;
    max-width: 1100px;
    width: 100%;
    margin: auto;
}

.hero-headshot {
    width: 285px;
    height: 365px;
    object-fit: cover;
    object-position: center;
    border: 6px solid white;
    box-shadow: 0 5px 25px rgba(38, 75, 106, 0.18);
    flex-shrink: 0;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    text-align: left;
}

/* Larger university name */

.university-name {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(30px, 3.5vw, 42px);
    font-weight: 400;
    line-height: 1.4;
    color: var(--navy);
    margin-bottom: 20px;
}

/* Smaller connecting education statement */

.hero-tagline {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--navy);
    margin-bottom: 15px;
}

.hero p {
    font-size: 16px;
    color: var(--navy);
    line-height: 1.8;
    margin-bottom: 25px;
}

/* ========================================
   BUTTONS
======================================== */

.button {
    display: inline-block;
    background-color: var(--pastel-blue);
    border: 1px solid #77AFD1;
    color: var(--navy);
    padding: 13px 25px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-align: center;
    transition: 0.3s ease;
}

.button:hover {
    background-color: #9DCBE8;
    border-color: #579BC7;
    color: var(--navy);
}

.button-outline {
    background-color: var(--white);
    border: 1px solid #77AFD1;
    color: var(--navy);
}

.button-outline:hover {
    background-color: var(--powder-blue);
    color: var(--navy);
}

/* ========================================
   PAGE HEADINGS
======================================== */

.page-heading {
    background-color: #D7EAFA;
    text-align: center;
    padding: 50px 20px;
    border-bottom: 1px solid var(--border);
}

.page-heading h1 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 38px;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 10px;
}

.page-heading p {
    color: var(--text);
    font-size: 14px;
}

/* ========================================
   GENERAL CONTENT
======================================== */

.container {
    max-width: 1000px;
    width: 100%;
    margin: auto;
    padding: 55px 35px;
}

.container h2 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 26px;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 22px;
}

.container p {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.95;
}

/* ========================================
   ABOUT ME PAGE
======================================== */

.about-content {
    display: flow-root;
    max-width: 1000px;
}

.about-content p {
    line-height: 2;
    margin-bottom: 26px;
}

/* Speaking photograph with wrapped text */

.speaking-photo {
    float: right;
    width: 340px;
    margin: 8px 0 22px 30px;
    padding: 7px;
    background-color: var(--powder-blue);
    border: 1px solid var(--border);
}

.speaking-photo img {
    width: 100%;
    height: auto;
    display: block;
}

figcaption {
    font-size: 12px;
    color: var(--text);
    text-align: center;
    line-height: 1.6;
    padding: 10px 5px 5px;
}

/* ========================================
   SCIENTIST QUOTES
======================================== */

.quote-section {
    background-color: var(--powder-blue);
    text-align: center;
    padding: 55px 35px;
}

.home-quote {
    background-color: var(--ice-white);
    border-top: 1px solid var(--border);
    padding: 60px 35px;
}

.quote-mark {
    font-family: Georgia, serif;
    font-size: 75px;
    color: #4D83A8;
    line-height: 0.9;
    margin-bottom: 15px;
}

.quote-section blockquote {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 23px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.8;
    color: var(--navy);
    max-width: 850px;
    margin: auto;
}

.quote-author {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text);
    margin-top: 22px;
}

/* ========================================
   RESUME AND LINKEDIN
======================================== */

.resume-page {
    background-color: var(--ice-white);
}

.resume-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 35px;
}

.resume-frame {
    width: 100%;
    border: 1px solid var(--border);
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(38, 75, 106, 0.08);
    overflow: hidden;
}

/* Zoom controls */

.zoom-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    background-color: var(--footer-blue);
    border-bottom: 1px solid var(--border);
}

.zoom-toolbar button {
    background-color: var(--ice-white);
    color: var(--navy);
    border: 1px solid #77AFD1;
    padding: 7px 15px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s ease;
}

.zoom-toolbar button:hover {
    background-color: var(--pastel-blue);
}

.zoom-toolbar button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#zoom-level {
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
    min-width: 45px;
    text-align: center;
}

.fullscreen-link {
    color: var(--navy);
    font-size: 12px;
    font-weight: 500;
    margin-left: 10px;
}

.fullscreen-link:hover {
    text-decoration: underline;
}

/* Scrollable resume image */

.resume-scroll {
    width: 100%;
    height: 750px;
    overflow: auto;
    background-color: #E5EDF3;
    padding: 15px;
}

#resume-image {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(19, 41, 75, 0.12);
}

.container .resume-instructions {
    text-align: center;
    font-size: 12px;
    color: var(--text);
    margin-top: 15px;
    margin-bottom: 0;
}

#resume-error {
    text-align: center;
    padding: 30px;
    color: var(--navy);
}

/* ========================================
   RESEARCH PAGE
======================================== */

.research-section {
    padding-bottom: 10px;
}

/* ========================================
   CONTACT INFORMATION AND FOOTER
======================================== */

footer {
    background-color: var(--footer-blue);
    color: var(--text);
    text-align: center;
    padding: 40px 25px 35px;
    border-top: 1px solid var(--border);
}

footer h3 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 23px;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 17px;
}

footer p {
    font-size: 13px;
    color: var(--text);
    line-height: 1.9;
    margin: 7px auto;
    max-width: 650px;
}

footer a {
    color: var(--navy);
    transition: 0.3s ease;
}

footer a:hover {
    color: #1E5C85;
    text-decoration: underline;
}

.contact-links {
    padding-top: 5px;
}

.separator {
    margin: 0 12px;
}

footer .location {
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--text);
    margin-top: 23px;
}

/* ========================================
   ACCESSIBILITY
======================================== */

a:focus-visible,
button:focus-visible,
.resume-scroll:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 4px;
}

/* ========================================
   MOBILE AND TABLET FORMATTING
======================================== */

@media (max-width: 750px) {

    header {
        padding: 28px 15px 20px;
    }

    .site-name {
        font-size: 24px;
        letter-spacing: 2px;
        word-spacing: 8px;
    }

    nav {
        gap: 25px;
        margin-top: 17px;
    }

    nav a {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .hero {
        padding: 45px 25px;
        min-height: auto;
    }

    .hero-layout {
        flex-direction: column;
        gap: 30px;
    }

    .hero-headshot {
        width: 220px;
        height: 280px;
    }

    .hero-content {
        text-align: center;
    }

    .university-name {
        font-size: 28px;
    }

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

    .hero p {
        font-size: 15px;
    }

    .page-heading {
        padding: 35px 20px;
    }

    .page-heading h1 {
        font-size: 29px;
    }

    .container {
        padding: 35px 23px;
    }

    .container h2 {
        font-size: 23px;
    }

    .container p {
        font-size: 15px;
    }

    .speaking-photo {
        width: 45%;
        margin: 5px 0 15px 18px;
    }

    .quote-section,
    .home-quote {
        padding: 40px 25px;
    }

    .quote-section blockquote {
        font-size: 18px;
    }

    .resume-scroll {
        height: 550px;
        padding: 8px;
    }

    .zoom-toolbar {
        gap: 10px;
        padding: 12px;
    }

    .zoom-toolbar button {
        padding: 6px 12px;
    }

    .fullscreen-link {
        margin-left: 0;
    }

    footer {
        padding: 30px 20px;
    }

    footer p {
        font-size: 12px;
    }
}

@media (max-width: 400px) {

    .site-name {
        font-size: 21px;
        word-spacing: 5px;
    }

    nav {
        gap: 18px;
    }

    .university-name {
        font-size: 26px;
    }

    .hero-tagline {
        font-size: 17px;
    }

    .speaking-photo {
        float: none;
        width: 100%;
        margin: 20px auto;
    }

    .contact-links a {
        display: block;
    }

    .separator {
        display: none;
    }
}
