:root {
    --cream: #faf7ed;
    --cream-soft: #fffdf6;
    --line: #d0d4c8;
    --black: #1e1414;
    --brown: #664a42;
    --green: #d5e798;
    --green-dark: #57772e;
    --white: #ffffff;
    --header-height: 82px;
    --menu-height: 540px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--black);
    background: var(--cream);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

/* Header */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100vw;
    height: var(--header-height);
    overflow: hidden;
    color: var(--black);
    background: var(--cream);
    border-radius: 0;
    transform: translateY(0);
    transition:
        height 520ms cubic-bezier(0.33, 1, 0.68, 1),
        background-color 220ms cubic-bezier(0.33, 1, 0.68, 1),
        color 180ms cubic-bezier(0.33, 1, 0.68, 1),
        border-radius 420ms cubic-bezier(0.33, 1, 0.68, 1),
        box-shadow 220ms cubic-bezier(0.33, 1, 0.68, 1),
        transform 320ms cubic-bezier(0.33, 1, 0.68, 1);
}

.home-page .site-header.nav-white {
    color: var(--white);
    background: transparent;
}

.home-page .site-header.nav-white.is-top-hover,
.home-page .site-header.nav-white.menu-open {
    color: var(--black);
    background: var(--cream);
}

.site-header.menu-open {
    height: var(--menu-height);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
    transform: translateY(0);
}

.home-page .site-header.is-past-hero:not(.menu-open) {
    transform: translateY(-112%);
    pointer-events: none;
}

.nav-bar {
    height: var(--header-height);
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 74px;
    padding: 0 38px;
}

.brand {
    display: inline-flex;
    align-items: center;
    font-size: 48px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.10em;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.nav-trigger,
.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 17px;
    border: 0;
    border-radius: 999px;
    color: currentColor;
    background: transparent;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.04em;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background-color 220ms cubic-bezier(0.33, 1, 0.68, 1),
        color 180ms cubic-bezier(0.33, 1, 0.68, 1),
        opacity 180ms cubic-bezier(0.33, 1, 0.68, 1);
}

.nav-trigger .plus {
    display: inline-block;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    transform-origin: center;
    transition: transform 360ms cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.site-header.menu-open .nav-trigger,
.site-header.menu-open .nav-link {
    opacity: 0.58;
}

.site-header.menu-open .nav-trigger.is-active,
.site-header.menu-open .nav-link.is-active,
.nav-trigger.active-page,
.nav-link.active-page {
    opacity: 1;
    background: var(--green);
    color: var(--black);
}

.nav-trigger.is-active .plus {
    transform: rotate(135deg);
}

/* Dropdown */

.dropdown-area {
    position: relative;
    height: calc(var(--menu-height) - var(--header-height));
    padding: 30px 58px 46px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    opacity: 0;
    transform: translateY(-22px);
    transition:
        opacity 260ms cubic-bezier(0.33, 1, 0.68, 1),
        transform 520ms cubic-bezier(0.33, 1, 0.68, 1);
    pointer-events: none;
}

.site-header.menu-open .dropdown-area {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-panel {
    position: absolute;
    inset: 30px 58px 46px;
    display: flex;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(-14px);
    transition:
        opacity 220ms cubic-bezier(0.33, 1, 0.68, 1),
        transform 360ms cubic-bezier(0.33, 1, 0.68, 1);
    pointer-events: none;
}

.dropdown-panel.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 30px 46px;
}

.dropdown-card {
    min-height: 104px;
    display: grid;
    grid-template-columns: 104px 1fr;
    grid-template-areas:
        "icon title"
        "icon subtitle";
    gap: 5px 26px;
    align-items: center;
    color: var(--black);
    border-radius: 18px;
    transition:
        color 180ms cubic-bezier(0.33, 1, 0.68, 1),
        transform 180ms cubic-bezier(0.33, 1, 0.68, 1);
}

.dropdown-card:hover {
    color: var(--green-dark);
    transform: translateY(-2px);
}

.dropdown-icon {
    grid-area: icon;
    width: 104px;
    height: 78px;
    margin: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--cream-soft);
    transition:
        background-color 180ms cubic-bezier(0.33, 1, 0.68, 1),
        border-color 180ms cubic-bezier(0.33, 1, 0.68, 1);
}

.dropdown-card:hover .dropdown-icon {
    background: var(--green);
    border-color: var(--green);
}

.dropdown-icon img {
    width: 37px;
    height: 37px;
    object-fit: contain;
}

.dropdown-copy {
    display: contents;
}

.dropdown-title {
    grid-area: title;
    align-self: end;
    color: currentColor;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -0.04em;
}

.dropdown-subtitle {
    grid-area: subtitle;
    align-self: start;
    color: var(--brown);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
}

/* Home Hero */

.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 140px 32px 90px;
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.50),
            rgba(0, 0, 0, 0.48)
        ),
        url("/static/School_Photo.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    width: min(1100px, 92vw);
    color: var(--white);
    text-align: center;
}

.hero-kicker {
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 1050px;
    margin: 0 auto;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(64px, 10vw, 138px);
    line-height: 0.92;
    font-weight: 400;
    letter-spacing: -0.065em;
}

/* Hero Search */

.hero-search {
    position: relative;
    width: min(620px, 92vw);
    margin: 34px auto 0;
    text-align: left;
}

.search-label {
    display: block;
    margin: 0 0 9px 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.search-input-shell {
    position: relative;
    display: flex;
    align-items: center;
}

.quick-search-input {
    width: 100%;
    height: 62px;
    padding: 0 64px 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.40);
    border-radius: 999px;
    outline: none;
    color: var(--black);
    background: rgba(255, 253, 246, 0.94);
    font-size: 17px;
    font-weight: 850;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.20);
    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.quick-search-input:focus {
    border-color: var(--green);
    background: var(--cream-soft);
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.28);
}

.quick-search-input::placeholder {
    color: rgba(30, 20, 20, 0.55);
}

.search-icon {
    position: absolute;
    right: 24px;
    width: 24px;
    height: 24px;
    fill: var(--green-dark);
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 20;
    width: 100%;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--cream-soft);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.search-results.is-visible {
    display: grid;
    gap: 8px;
}

.search-result-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: center;
    min-height: 66px;
    padding: 10px 12px;
    border-radius: 18px;
    color: var(--black);
    transition:
        background-color 160ms ease,
        transform 160ms ease;
}

.search-result-card:hover {
    background: var(--green);
    transform: translateY(-1px);
}

.search-result-card img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.search-result-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-title {
    color: var(--black);
    font-size: 16px;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-subtitle {
    color: var(--brown);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-empty {
    padding: 18px;
    color: var(--brown);
    font-size: 15px;
    font-weight: 900;
    text-align: center;
}

/* Hero Button */

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 34px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    border: 0;
    background: var(--green-dark);
    color: var(--white);
    font-size: 16px;
    font-weight: 900;
    transition:
        transform 180ms ease,
        background-color 180ms ease;
}

.primary-button {
    min-width: 250px;
    padding: 0 22px 0 28px;
    border-radius: 999px;
}

.arrow-button {
    gap: 18px;
}

.button-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: var(--green-dark);
    background: var(--white);
    line-height: 1;
    transition:
        transform 220ms cubic-bezier(0.33, 1, 0.68, 1),
        background-color 180ms ease;
}

.button-arrow svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.primary-button:hover {
    background: #466325;
    transform: translateY(-2px);
}

.primary-button:hover .button-arrow {
    transform: translateY(4px);
}

/* Shared sections */

.announcements-section,
.quick-section,
.staff-section {
    padding: 90px 64px;
    background: var(--cream);
}

.section-header {
    max-width: 1320px;
    margin: 0 auto 38px;
}

.section-kicker {
    margin: 0 0 12px;
    color: var(--brown);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section-header h2,
.staff-hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 6vw, 86px);
    line-height: 0.95;
    font-weight: 400;
    letter-spacing: -0.055em;
}

/* Announcements */

.bulletin-embed-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 14px;
    scroll-margin-top: 112px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--cream-soft);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.10);
}

.slides-frame-shell {
    position: relative;
    width: min(100%, 920px);
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #000000;
}

.slides-iframe,
.bulletin-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.bulletin-embed-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 6px 2px;
    color: var(--brown);
    font-size: 15px;
    font-weight: 850;
}

.open-bulletin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    color: var(--white);
    background: var(--green-dark);
    font-size: 14px;
    font-weight: 950;
    white-space: nowrap;
    transition:
        transform 180ms ease,
        background-color 180ms ease;
}

.open-bulletin-link:hover {
    background: #466325;
    transform: translateY(-2px);
}


.announcement-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
}

.announcement-card {
    min-height: 220px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--cream-soft);
    transition:
        background-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.announcement-card.large {
    min-height: 280px;
}

.announcement-card:hover {
    background: var(--green);
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}

.announcement-card img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.announcement-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.announcement-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.announcement-text {
    color: var(--brown);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
}

/* Quick links */

.quick-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 18px;
}

.quick-card {
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--cream-soft);
    color: var(--black);
    font-size: 18px;
    font-weight: 900;
    transition:
        background-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.quick-card:hover {
    background: var(--green);
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
}

.quick-card img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

/* Staff page */

.staff-page {
    padding-top: var(--header-height);
}

.staff-header {
    color: var(--black);
    background: var(--cream);
}

.staff-main {
    background: var(--cream);
}

.staff-hero {
    max-width: 1320px;
    margin: 0 auto;
    padding: 86px 64px 38px;
}

.staff-intro {
    max-width: 650px;
    margin: 24px 0 0;
    color: var(--brown);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
}

.staff-section {
    padding-top: 24px;
}

.staff-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 18px;
}

.staff-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--cream-soft);
    transition:
        background-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.staff-card:hover {
    background: var(--green);
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
}

.staff-name {
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.staff-role {
    color: var(--brown);
    font-size: 15px;
    font-weight: 800;
}

.staff-email {
    margin-top: auto;
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 800;
    word-break: break-word;
}

/* Tablet */

@media (max-width: 1200px) {
    :root {
        --header-height: 78px;
    }

    .nav-bar {
        padding: 0 28px;
        gap: 42px;
    }

    .brand {
        font-size: 42px;
    }

    .main-nav {
        gap: 8px;
    }

    .nav-trigger,
    .nav-link {
        padding: 0 13px;
        font-size: 13px;
        letter-spacing: 0.02em;
    }

    .dropdown-area {
        padding: 28px 34px 42px;
    }

    .dropdown-panel {
        inset: 28px 34px 42px;
    }

    .dropdown-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
        gap: 30px;
    }

    .quick-grid,
    .staff-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

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

/* Phone */

@media (max-width: 760px) {
    :root {
        --header-height: auto;
        --menu-height: 100vh;
    }

    .site-header {
        position: absolute;
        height: auto;
        color: var(--black);
        background: var(--cream);
        overflow: visible;
    }

    .home-page .site-header.nav-white {
        color: var(--black);
        background: var(--cream);
    }

    .site-header.menu-open {
        height: auto;
        min-height: 100vh;
        border-radius: 0;
    }

    .home-page .site-header.is-past-hero:not(.menu-open) {
        transform: none;
        pointer-events: auto;
    }

    .nav-bar {
        height: auto;
        display: block;
        padding: 20px;
    }

    .brand {
        font-size: 44px;
    }

    .main-nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 18px;
    }

    .nav-trigger,
    .nav-link {
        width: 100%;
        justify-content: space-between;
        background: rgba(0, 0, 0, 0.05);
    }

    .dropdown-area {
        position: relative;
        height: auto;
        min-height: 0;
        padding: 0 20px 24px;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .dropdown-panel {
        position: relative;
        inset: auto;
        display: none;
        opacity: 1;
        transform: none;
    }

    .dropdown-panel.is-active {
        display: block;
    }

    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .dropdown-card {
        grid-template-columns: 86px 1fr;
        min-height: 98px;
        gap: 6px 18px;
    }

    .dropdown-icon {
        width: 86px;
        height: 72px;
    }

    .dropdown-title {
        font-size: 24px;
    }

    .hero {
        padding: 330px 22px 70px;
    }

    .hero h1 {
        font-size: clamp(54px, 17vw, 82px);
    }

    .hero-search {
        width: 100%;
        margin-top: 28px;
    }

    .quick-search-input {
        height: 58px;
        font-size: 16px;
    }

    .search-results {
        border-radius: 22px;
    }

    .hero-actions {
        margin-top: 28px;
    }

    .primary-button {
        min-width: 100%;
    }

    .announcements-section,
    .quick-section,
    .staff-section {
        padding: 64px 22px;
    }

    .staff-hero {
        padding: 64px 22px 26px;
    }

    .announcement-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .bulletin-embed-card {
        max-width: 100%;
        padding: 10px;
        border-radius: 24px;
        scroll-margin-top: 24px;
    }

    .slides-frame-shell {
        border-radius: 18px;
    }

    .bulletin-embed-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 4px 4px;
    }

    .open-bulletin-link {
        width: 100%;
    }

    .quick-grid,
    .staff-grid {
        grid-template-columns: 1fr;
    }
}