* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100vw;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;

    font-family: Playfair Display;

    background-color: #29201D;
    color: #29201D;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =====================================================
   VARIABLES
===================================================== */

:root {
    --dark-brown: #29201D;
    --brown: #504642;
    --light-brown: #998D84;
    --accent-brown: #623E32;
    --cream: #E8E0D9;
    --light: #99948e;
    --white: #FFFFFF;
    --muted: #CFC5BE;

    --nav-height: 80px;
}

/* ===================================================== CENTER CONTENT ON SCREEN ===================================================== */ 
/* Keep backgrounds full width */ 

.hero, .mission, .people, .calendar, .events, .whitepaper, .contact {
    width: 100%; max-width: 100%; 
} 

/* Center the actual content */ 
.hero-content, .mission-left, .people-content, .calendar-heading, .calendar-wrapper, .events-content, .whitepaper-content, .contact-content { 
    margin-left: auto; margin-right: auto; 
}

/* =====================================================
   NAVIGATION
===================================================== */

.site-header {
    position: relative;
    z-index: 1000;
}

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: var(--nav-height);

    padding: 0 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background-color: rgba(41, 32, 29, 0.97);

    box-shadow:
        0 2px 15px rgba(0, 0, 0, 0.25);

    backdrop-filter: blur(8px);
}


/* Logo */

.logo-container {
    height: 100%;

    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.logo-container img {
    width: 150px;
    max-height: 70px;

    object-fit: contain;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.logo-container:hover img {
    transform: scale(1.04);
    opacity: 0.9;
}


/* Navigation links */

.nav-links {
    display: flex;
    align-items: center;

    gap: clamp(18px, 3vw, 45px);

    list-style: none;
}

.nav-links a {
    position: relative;

    padding: 10px 0;

    color: var(--white);

    font-size: clamp(12px, 1.1vw, 16px);
    font-weight: 500;

    letter-spacing: 0.8px;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    color: #D8C8B8;
}


/* Animated underline */

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 3px;

    width: 0;
    height: 2px;

    background-color: #D8C8B8;

    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}


/* =====================================================
   GENERAL SECTION STYLES
===================================================== */

.section {
    position: relative;

    width: 100%;

    scroll-margin-top: var(--nav-height);
}

.section-label {
    margin-bottom: 20px;

    color: var(--dark-brown);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 2px;
    text-transform: uppercase;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 120px 5% 80px;

    background-image:
        url("background_pictures/library_interior_edited.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* Dark overlay */

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(41, 32, 29, 0.82),
            rgba(41, 32, 29, 0.35)
        );
}


/* Hero content */

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 1100px;

    text-align: center;

    color: var(--white);
}

.hero-eyebrow {
    margin-bottom: 25px;

    font-size: clamp(12px, 1.3vw, 18px);

    font-weight: 500;

    letter-spacing: 4px;

    text-transform: uppercase;

    color: #D8C8B8;
}

.hero h1 {
    margin-bottom: 25px;

    font-size: clamp(55px, 9vw, 125px);

    line-height: 0.95;

    font-weight: 500;

    letter-spacing: -3px;
}

.hero-description {
    max-width: 700px;

    margin: 0 auto 40px;

    font-size: clamp(17px, 2vw, 25px);

    line-height: 1.5;

    color: #F0EBE7;
}


/* Hero button */

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;

    padding: 15px 25px;

    border: 1px solid rgba(255, 255, 255, 0.6);

    color: var(--white);

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.hero-button span {
    font-size: 18px;

    transition: transform 0.3s ease;
}

.hero-button:hover {
    background-color: var(--white);
    color: var(--dark-brown);

    transform: translateY(-3px);
}

.hero-button:hover span {
    transform: translateY(3px);
}


/* =====================================================
   MISSION
===================================================== */

.mission {
    min-height: 90vh;

    display: flex;

    background-color: var(--light-brown);
}


/* Left */

.mission-left {
    width: 50%;

    padding:
        clamp(60px, 8vw, 120px)
        clamp(30px, 7vw, 100px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
}

.mission-left h2 {
    max-width: 650px;

    margin-bottom: 30px;

    color: var(--dark-brown);

    font-size: clamp(42px, 5vw, 75px);

    line-height: 1;

    font-weight: 500;

    letter-spacing: -2px;
}

.mission-left h2 span {
    display: block;

    color: #E8E0D9;
}

.mission-left p {
    max-width: 650px;

    margin-bottom: 18px;

    color: #403733;

    font-size: 17px;

    text-align: justify;

    line-height: 1.8;
}

.mission-logo {
    width: min(350px, 80%);

    margin-top: 35px;

    opacity: 0.85;
}


/* Right image */

.mission-right {
    position: relative;

    width: 50%;
    min-height: 650px;

    background-image:
        url("background_pictures/globe.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mission-image-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(41, 32, 29, 0.1),
            rgba(41, 32, 29, 0.65)
        );
}

.mission-image-text {
    position: absolute;

    bottom: 50px;
    left: 50px;

    display: flex;
    flex-direction: column;

    gap: 8px;

    color: white;

    font-size: clamp(22px, 3vw, 38px);

    font-weight: 400;

    letter-spacing: 1px;
}


/* =====================================================
   PEOPLE
===================================================== */

.people {
    min-height: 100vh;

    padding:
        clamp(70px, 9vw, 120px)
        5%;

    background-color: var(--brown);

    color: white;
}

.people-content {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
}


/* Heading */

.section-heading {
    max-width: 850px;

    margin-bottom: 70px;
}

.section-heading h2 {
    margin-bottom: 25px;

    font-size: clamp(45px, 6vw, 80px);

    line-height: 1;

    font-weight: 500;

    letter-spacing: -2px;
}

.section-heading h2 span {
    display: block;

    color: #877666;
}

.section-heading p {
    max-width: 650px;

    color: #DED7D2;

    font-size: 17px;

    line-height: 1.7;
}


/* People grid */

.people-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 25px;
}


/* Cards */

.person-card {
    overflow: hidden;

    background-color: #403935;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

.person-card:hover {
    transform: translateY(-8px);

    background-color: #443C38;
}

.person-card:focus-visible {
    outline: none;

    box-shadow: 0 0 0 3px #D8C8B8;
}


/* Image */

.person-image {
    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background-color: #29201D;
}

.person-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.person-card:hover .person-image img {
    transform: scale(1.05);
}


/* Information */

.person-info {
    padding: 25px;
}

.person-role {
    display: block;

    margin-bottom: 8px;

    color: #D8C8B8;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.person-info h3 {
    margin-bottom: 10px;

    font-size: 24px;

    font-weight: 500;
}

.person-info p {
    color: #CFC6C0;

    font-size: 14px;

    line-height: 1.6;
}


/* =====================================================
   EVENTS
===================================================== */

.events {
    min-height: 60vh;

    padding:
        clamp(70px, 9vw, 120px)
        5%;

    background-color: var(--muted);

    color: var(--dark-brown);
}

.events-content {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
}

.events .section-heading p {
    color: #5A504B;
}


/* Event card */

.event-card {
    display: flex;

    gap: 40px;

    padding: 45px;

    background-color: var(--dark-brown);

    color: white;

    box-shadow:
        15px 15px 0 var(--light-brown);
}

.event-date {
    flex-shrink: 0;

    width: 110px;

    padding: 20px 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.3);
}

.event-month {
    margin-bottom: 6px;

    color: #D8C8B8;

    font-size: 14px;
    font-weight: 600;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.event-day {
    font-size: 42px;
    font-weight: 500;
}

.event-tag {
    display: inline-block;

    margin-bottom: 12px;

    color: #998D84;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.event-details h3 {
    margin-bottom: 10px;

    font-size: 28px;

    font-weight: 500;
}

.event-meta {
    margin-bottom: 15px;

    color: #D8C8B8;

    font-size: 14px;

    letter-spacing: 0.5px;
}

.event-details > p:not(.event-meta) {
    max-width: 600px;

    margin-bottom: 20px;

    color: #CFC6C0;

    font-size: 15px;

    line-height: 1.7;
}

.event-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding-bottom: 4px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.5);

    color: white;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 1px;
    text-transform: uppercase;

    transition:
        color 0.3s ease,
        border-color 0.3s ease;
}

.event-link:hover {
    color: #D8C8B8;
    border-color: #D8C8B8;
}


/* =====================================================
   WHITE PAPER
===================================================== */

.whitepaper {
    min-height: 45vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        clamp(80px, 10vw, 130px)
        5%;

    background-color: var(--accent-brown);

    color: white;

    text-align: center;
}

.whitepaper-content {
    max-width: 750px;
}

.whitepaper .section-label {
    color: #D8C8B8;
}

.whitepaper h2 {
    margin-bottom: 25px;

    font-size: clamp(42px, 5vw, 70px);

    line-height: 1;

    font-weight: 500;

    letter-spacing: -2px;
}

.whitepaper h2 span {
    display: block;

    color: #E8E0D9;
}

.whitepaper-content > p {
    margin-bottom: 35px;

    color: #F0EBE7;

    font-size: 17px;

    line-height: 1.7;
}

.whitepaper-button {
    display: inline-flex;
    align-items: center;

    gap: 15px;

    padding: 15px 30px;

    border: 1px solid rgba(255, 255, 255, 0.6);

    color: white;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 1.5px;
    text-transform: uppercase;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.whitepaper-button span {
    font-size: 16px;

    transition: transform 0.3s ease;
}

.whitepaper-button:hover {
    background-color: white;
    color: var(--accent-brown);

    transform: translateY(-3px);
}

.whitepaper-button:hover span {
    transform: translateY(3px);
}


/* =====================================================
   CONTACT
===================================================== */

.contact {
    min-height: 75vh;

    display: flex;
    align-items: center;

    padding:
        100px 5%;

    background-color: var(--cream);

    color: var(--dark-brown);
}

.contact-content {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 100px;

    align-items: center;
}


/* Contact heading */

.contact-text h2 {
    margin-bottom: 25px;

    font-size: clamp(55px, 7vw, 90px);

    line-height: 0.95;

    font-weight: 500;

    letter-spacing: -3px;
}

.contact-text h2 span {
    display: block;

    color: var(--accent-brown);
}

.contact-text > p {
    max-width: 550px;

    color: #5A504B;

    font-size: 18px;

    line-height: 1.7;
}


/* Contact card */

.contact-card {
    padding: 45px;

    background-color: var(--dark-brown);

    color: white;

    box-shadow:
        15px 15px 0 #998D84;
}

.contact-item {
    padding: 25px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item:first-child {
    padding-top: 0;
}

.contact-item:last-child {
    padding-bottom: 0;

    border-bottom: none;
}

.contact-label {
    display: block;

    margin-bottom: 10px;

    color: #998D84;

    font-size: 22px;

    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.contact-item a,
.contact-item p {
    color: white;

    font-size: 19px;

    line-height: 1.6;
}

.contact-item a {
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #D8C8B8;
}


/* Social links */

.social-links {
    display: flex;

    gap: 25px;
}

.social-links a {
    text-decoration: underline;

    text-underline-offset: 5px;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    padding:
        60px 5% 25px;

    background-color: var(--dark-brown);

    color: white;

    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    width: 130px;

    margin: 0 auto;

    opacity: 0.9;
}

.footer > p {
    margin-bottom: 30px;

    color: #CFC5BE;

    font-size: 14px;

    letter-spacing: 0.5px;
}

.back-to-top {
    display: inline-block;

    padding: 12px 20px;

    border: 1px solid rgba(255, 255, 255, 0.35);

    font-size: 12px;

    letter-spacing: 1px;

    text-transform: uppercase;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.back-to-top:hover {
    background-color: white;

    color: var(--dark-brown);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.15);

    display: flex;
    justify-content: space-between;

    color: #958983;

    font-size: 11px;

    letter-spacing: 1px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 11px;
    }


    /* Mission */

    .mission-left {
        padding: 70px 5%;
    }


    /* People */

    .people-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    /* Contact */

    .contact-content {
        gap: 60px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 750px) {

    :root {
        --nav-height: 115px;
    }


    /* Navigation */

    .navbar {
        height: auto;
        min-height: var(--nav-height);

        padding:
            12px 5% 15px;

        flex-direction: column;

        gap: 8px;
    }

    .logo-container {
        height: 55px;
    }

    .logo-container img {
        width: 125px;
        max-height: 55px;
    }

    .nav-links {
        width: 100%;

        justify-content: center;

        flex-wrap: wrap;

        gap:
            5px 18px;
    }

    .nav-links a {
        padding: 5px 0;

        font-size: 10px;

        letter-spacing: 0.6px;
    }


    /* Hero */

    .hero {
        min-height: 100svh;

        padding:
            160px 7% 80px;
    }

    .hero-eyebrow {
        margin-bottom: 20px;

        font-size: 10px;

        letter-spacing: 2px;
    }

    .hero h1 {
        font-size: clamp(48px, 15vw, 80px);

        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 16px;
    }


    /* Mission */

    .mission {
        flex-direction: column;
    }

    .mission-left,
    .mission-right {
        width: 100%;
    }

    .mission-left {
        min-height: auto;

        padding:
            70px 7%;
    }

    .mission-left h2 {
        font-size: 48px;
    }

    .mission-left p {
        font-size: 16px;

        text-align: left;
    }

    .mission-logo {
        width: 250px;

        margin-top: 20px;
    }

    .mission-right {
        min-height: 450px;
    }

    .mission-image-text {
        left: 30px;
        bottom: 30px;
    }


    /* People */

    .people {
        padding:
            70px 7%;
    }

    .section-heading {
        margin-bottom: 45px;
    }

    .section-heading h2 {
        font-size: 50px;
    }

    .people-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    /* Calendar */

    .calendar {
        padding:
            70px 5%;
    }

    .calendar-heading {
        margin-bottom: 35px;
    }

    .calendar-heading h2 {
        font-size: 50px;
    }

    .calendar-wrapper {
        width: 100%;
    }

    .calendar iframe {
        height: 600px;
    }


    /* Events */

    .events {
        padding:
            70px 7%;
    }

    .event-card {
        flex-direction: column;

        padding: 30px;

        box-shadow:
            10px 10px 0 var(--light-brown);
    }

    .event-date {
        width: auto;

        flex-direction: row;

        gap: 12px;

        padding: 12px 20px;
    }

    .event-day {
        font-size: 28px;
    }


    /* White paper */

    .whitepaper {
        padding:
            70px 7%;
    }

    .whitepaper-button {
        padding: 14px 24px;
    }


    /* Contact */

    .contact {
        padding:
            80px 7%;
    }

    .contact-content {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .contact-text h2 {
        font-size: 60px;
    }

    .contact-card {
        padding: 30px;

        box-shadow:
            10px 10px 0 #998D84;
    }


    /* Footer */

    .footer-bottom {
        flex-direction: column;

        gap: 10px;
    }

}


/* =====================================================
   SMALL PHONES
===================================================== */

@media (max-width: 450px) {

    .nav-links {
        gap:
            4px 12px;
    }

    .nav-links a {
        font-size: 9px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-description {
        font-size: 15px;
    }

    .mission-left h2,
    .section-heading h2,
    .calendar-heading h2 {
        font-size: 42px;
    }

    .contact-text h2 {
        font-size: 50px;
    }

    .contact-card {
        padding: 25px;
    }

}


/* =====================================================
   BIO MODAL
===================================================== */

.bio-modal {
    position: fixed;
    inset: 0;

    z-index: 2000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 5%;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.bio-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.bio-modal-overlay {
    position: absolute;
    inset: 0;

    background-color: rgba(41, 32, 29, 0.85);

    backdrop-filter: blur(4px);
}

.bio-modal-card {
    position: relative;

    width: 100%;
    max-width: 700px;
    max-height: 85vh;

    overflow-y: auto;

    display: grid;
    grid-template-columns: 220px 1fr;

    background-color: var(--dark-brown);

    color: white;

    box-shadow: 15px 15px 0 var(--light-brown);

    transform: translateY(20px);

    transition: transform 0.3s ease;
}

.bio-modal.is-open .bio-modal-card {
    transform: translateY(0);
}

.bio-modal-close {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;

    color: white;

    font-size: 16px;
    font-family: inherit;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.bio-modal-close:hover {
    background-color: white;
    color: var(--dark-brown);
}

.bio-modal-image {
    width: 100%;
    height: 100%;
    min-height: 220px;

    overflow: hidden;

    background-color: #29201D;
}

.bio-modal-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.bio-modal-content {
    padding: 40px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bio-modal-content .person-role {
    color: #D8C8B8;
}

.bio-modal-content h3 {
    margin-bottom: 15px;

    font-size: 28px;

    font-weight: 500;
}

.bio-modal-content p {
    color: #DED7D2;

    font-size: 15px;

    line-height: 1.7;
}


@media (max-width: 600px) {

    .bio-modal-card {
        grid-template-columns: 1fr;

        max-height: 90vh;
    }

    .bio-modal-image {
        min-height: 200px;
    }

    .bio-modal-content {
        padding: 30px 25px;
    }

}