
:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-muted: #eef3f8;
    --text: #172033;
    --text-soft: #4a5568;
    --primary: #0a62a8;
    --primary-dark: #08497b;
    --border: #d7e0ea;
    --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

/* Alternate palette A:
:root { --primary: #0d3b66; --primary-dark: #072746; }
*/
/* Alternate palette B:
:root { --primary: #2341b5; --primary-dark: #1a2f81; }
*/

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

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 3.5vw, 3rem); }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: clamp(1.1rem, 1.6vw, 1.25rem); }

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

#header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#logo {
    margin-bottom: 0.35rem;
}

#logo a {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    color: var(--primary-dark);
    letter-spacing: 0.02em;
}

#header p {
    color: var(--text-soft);
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

#nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.7rem;
}

#nav a {
    color: var(--text);
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    display: inline-flex;
    align-items: center;
}

#nav a:hover,
#nav a.active {
    color: var(--primary-dark);
    border-color: var(--border);
    background: var(--surface-muted);
}

#nav .icon {
    margin-right: 0.45rem;
}

#hero-banner {
    color: #ffffff;
    padding: 4.5rem 0;
    text-align: center;
    background: linear-gradient(140deg, rgba(8, 73, 123, 0.72), rgba(10, 98, 168, 0.7)),
                url("../images/phage.png") center center / cover no-repeat;
}

.hero-content {
    max-width: 860px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.17);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 0.92rem;
}

.hero-title {
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.6rem;
}

.btn-primary {
    display: inline-block;
    background: #ffffff;
    color: var(--primary-dark);
    font-weight: 800;
    border-radius: 999px;
    padding: 0.75rem 1.2rem;
    border: 1px solid #ffffff;
}

.btn-primary:hover {
    background: transparent;
    color: #ffffff;
}

#about,
#main,
#team-photo {
    background: var(--surface);
    padding: 3.25rem 0;
}

#main {
    margin-top: 0;
}

#about header,
#team-photo header,
#content header {
    text-align: center;
    margin-bottom: 2rem;
}

#content header p {
    max-width: 760px;
    margin: 0 auto;
}

.content.narrow {
    max-width: 840px;
    margin: 0 auto 1.75rem auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.card-grid.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.contact-box,
.team-member {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.info-card h3,
.info-card h4 {
    margin-bottom: 0.55rem;
}

#cta {
    background: var(--primary-dark);
    color: #ffffff;
    text-align: center;
    padding: 2.1rem 0;
}

#cta p {
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    font-size: 1.05rem;
}

#cta a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content-section {
    margin-bottom: 2.4rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

.styled-list {
    list-style: disc;
    padding-left: 1.25rem;
    color: var(--text-soft);
}

.styled-list li {
    margin-bottom: 0.55rem;
}

.feature-figure {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem;
    margin: 0;
}

.feature-figure img,
.infographic-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.feature-figure figcaption {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-top: 0.55rem;
}

.figure-grid {
    display: grid;
    gap: 1rem;
}

.figure-grid.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#infographic {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
}

.team-section {
    margin-bottom: 2.6rem;
}

.section-title {
    text-align: center;
    margin-bottom: 1.3rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--primary);
}

.team-grid {
    display: grid;
    gap: 1rem;
}

.staff-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.members-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.team-member {
    text-align: center;
}

.member-photo {
    margin-bottom: 0.9rem;
}

.member-photo img {
    width: 100%;
    max-width: 280px;
    height: 360px;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    object-position: center top;
    border: 2px solid var(--border);
}

.staff-grid .member-photo img {
    max-width: 340px;
    height: 460px;
    object-position: center 15%;
}

.member-title {
    color: var(--primary);
    font-weight: 700;
}

.member-major {
    margin-top: 0.3rem;
    margin-bottom: 0;
    color: var(--text-soft);
}

    .contact-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.contact-box ul {
    list-style-position: inside;
}

#footer {
    background: #101828;
    color: #c7d0de;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

#copyright {
    text-align: center;
}

#copyright .links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

#copyright a {
    color: #9cc9f8;
}

@media (max-width: 900px) {
    .card-grid,
    .card-grid.two-up,
    .figure-grid.two-up,
    .contact-info {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 700px) {
    #header {
        position: static;
    }

    #nav ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    #nav a {
        justify-content: center;
        min-height: 44px;
    }

    #hero-banner {
        padding: 3rem 0;
    }

    #about,
    #main,
    #team-photo {
        padding: 2.2rem 0;
    }
}

@media (max-width: 480px) {
    #nav ul {
        grid-template-columns: 1fr;
    }
}

body.is-preload * {
    animation: none !important;
    transition: none !important;
}
