/* Lab 501 archive — faithful recreation of the original site design */
:root {
    --green: #15843c;
    --footer-gray: #808080;
    --ink: #404040;
    --content-w: 980px;
}

* {
    box-sizing: border-box;
}

body {
    background: #ffffff;
    color: var(--ink);
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    font-weight: 300;
    margin: 0;
}

/* ---------- header ---------- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 2.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

.site-header .logo {
    height: 56px;
    width: auto;
    display: block;
}

.lab-nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    margin-left: 1.75rem;
}

.lab-nav a:hover {
    color: var(--green);
}

.lab-nav a[aria-current="page"] {
    color: var(--green);
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    width: 100%;
    height: 58vh;
    min-height: 380px;
    overflow: hidden;
}

.hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-box {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-box h1 {
    background: rgba(247, 247, 247, 0.4);
    color: var(--green);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    margin: 0;
    padding: 3rem 5rem;
}

/* ---------- content ---------- */
.doc {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green);
    margin: 0 0 1.5rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green);
    text-align: center;
    margin: 2.5rem 0 2rem;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ink);
    margin: 1.75rem 0 0.4rem;
}

p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0 0 1rem;
}

a {
    color: #032aea;
}

/* ---------- research area cards ---------- */
.areas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.area {
    display: block;
    text-decoration: none;
}

.area img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.area .band {
    background: var(--green);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
    padding: 1.75rem 1rem;
}

.area:hover .band {
    text-decoration: underline;
}

/* ---------- heading variants (per original page styles) ---------- */
h1.dark, h2.dark {
    color: var(--ink);
    text-align: left;
}

h1.dark {
    font-size: 3.5rem;
}

h1.center {
    text-align: center;
}

h2.big {
    font-size: 3.5rem;
}

/* hero with plain white overlay text (team page "Alumni") */
.hero.plain .hero-box h1 {
    background: none;
    color: #ffffff;
    font-size: 5.6rem;
    padding: 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

/* ---------- research page ---------- */
.hero-img {
    width: 100%;
    display: block;
    margin: 0 0 2rem;
}

.res-sec {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin: 1.5rem 0 3rem;
}

.res-sec .txt {
    flex: 1;
    min-width: 0;
}

.res-sec .txt h2 {
    color: var(--ink);
    text-align: left;
    font-size: 1.25rem;
    border: none;
    margin: 0 0 0.6rem;
    padding: 0;
}

.res-sec img {
    width: 42%;
    flex-shrink: 0;
}

/* ---------- team page ---------- */
.member {
    display: flex;
    gap: 1.5rem;
    margin: 1.75rem 0;
    align-items: flex-start;
}

.member > img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    flex-shrink: 0;
}

.member .who {
    font-weight: 600;
    font-size: 1.15rem;
}

.member p {
    margin: 0.4rem 0 0;
}

.ext {
    font-size: 0.85rem;
}

/* ---------- publications page ---------- */
.pub {
    margin: 0 0 2.25rem;
}

.pub > a {
    font-weight: 600;
    font-size: 1.05rem;
}

.pub p {
    margin: 0.35rem 0 0;
}

/* ---------- footer ---------- */
.site-footer {
    background: var(--footer-gray);
    padding: 3rem 2.5rem;
}

.footer-inner {
    max-width: var(--content-w);
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.footer-inner > img {
    height: 110px;
    width: auto;
    flex-shrink: 0;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #1f1f1f;
}

.footer-text p {
    margin: 0 0 0.3rem;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-text a {
    color: #032aea;
    text-decoration: underline;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .hero-box h1 {
        font-size: 2.5rem;
        padding: 2rem 2.5rem;
    }

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

    .res-sec {
        flex-direction: column;
        align-items: stretch;
    }

    .res-sec img {
        width: 100%;
    }

    .hero.plain .hero-box h1 {
        font-size: 3rem;
    }

    .area .band {
        font-size: 1.2rem;
        padding: 1.25rem 1rem;
    }

    h1, h2 {
        font-size: 1.9rem;
    }

    .site-header {
        padding: 1rem 1.25rem;
    }

    .lab-nav a {
        margin-left: 0.9rem;
        font-size: 0.85rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1.25rem;
    }
}
