:root {
    --ink: #263238;
    --muted: #66757f;
    --paper: #fffdf8;
    --soft: #f4fbf8;
    --brand: #0f8b8d;
    --brand-dark: #09686a;
    --sunny: #f7b538;
    --line: #d9e7e3;
    --radius: 8px;
    --shadow: 0 12px 30px rgba(38, 50, 56, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--brand-dark);
}

.skip-link {
    left: 1rem;
    position: absolute;
    top: -4rem;
    z-index: 10;
}

.skip-link:focus {
    background: white;
    padding: 0.5rem 0.75rem;
    top: 1rem;
}

.site-header {
    background: white;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 5;
}

.site-nav {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 auto;
    max-width: 1120px;
    padding: 1rem;
}

.brand {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-mark {
    align-items: center;
    background: var(--sunny);
    border-radius: 50%;
    color: var(--ink);
    display: inline-flex;
    font-weight: 700;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.brand-logo {
    display: block;
    height: 3rem;
    object-fit: contain;
    width: 3rem;
}

.brand small {
    color: var(--muted);
    display: block;
    font-size: 0.8rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-links a {
    border-radius: 999px;
    color: var(--ink);
    padding: 0.45rem 0.7rem;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.is-active {
    background: var(--soft);
    color: var(--brand-dark);
}

.site-main {
    margin: 0 auto;
    max-width: 1120px;
    padding: 2rem 1rem;
}

.stack {
    display: grid;
    gap: 1.5rem;
}

.page-intro {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

.page-intro h1 {
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

.page-intro p {
    color: var(--muted);
    margin: 0;
}

.homepage-hero {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.homepage-hero img {
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    width: 100%;
}

.homepage-hero-content {
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem;
}

.homepage-hero-content h1 {
    font-size: clamp(2rem, 8vw, 4.25rem);
    line-height: 1;
    margin: 0;
}

.homepage-hero-content p {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0;
    max-width: 56rem;
}

.homepage-hero-meta {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.section-header {
    display: grid;
    gap: 0.25rem;
    margin-top: 1rem;
}

.section-header h2 {
    margin: 0;
}

.section-header p {
    color: var(--muted);
    margin: 0;
}

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

.content-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.content-card h3 {
    margin: 0.5rem 0;
}

.content-card p {
    color: var(--muted);
}

.content-card img {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    height: auto;
    object-fit: cover;
    width: 100%;
}

.document-card {
    display: grid;
    gap: 0.5rem;
}

.document-action {
    align-self: end;
    background: var(--brand);
    border-radius: var(--radius);
    color: white;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    padding: 0.6rem 0.75rem;
    text-decoration: none;
}

.document-action.muted {
    background: var(--soft);
    color: var(--muted);
}

.secondary-action {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--brand-dark);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.contact-location {
    display: grid;
    gap: 1rem;
}

.map-card {
    display: grid;
    gap: 0.75rem;
}

.map-frame {
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.map-frame iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.staff-card img {
    aspect-ratio: 1;
    border-radius: 50%;
}

.staff-profile-link {
    font-weight: 700;
}

.staff-profile-hero {
    align-items: center;
    display: grid;
    gap: 1rem;
}

.staff-profile-hero img {
    aspect-ratio: 1;
    border-radius: 50%;
    max-width: 14rem;
    object-fit: cover;
    width: 100%;
}

.profile-facts {
    display: grid;
    gap: 0.35rem;
    margin: 1rem 0 0;
}

.profile-facts dt {
    font-weight: 700;
}

.profile-facts dd {
    color: var(--muted);
    margin: 0 0 0.75rem;
}

.staff-profile-details blockquote {
    border-left: 0.3rem solid var(--sunny);
    color: var(--muted);
    margin: 1rem 0 0;
    padding-left: 1rem;
}

.gallery-card {
    text-align: center;
}

.gallery-card a {
    color: var(--ink);
    border-radius: var(--radius);
    display: block;
    position: relative;
    text-decoration: none;
}

.gallery-card.is-selected a {
    outline: 3px solid var(--brand);
    outline-offset: 4px;
}

.gallery-card img {
    aspect-ratio: 1;
    border: 6px solid white;
    border-radius: 50%;
    box-shadow: var(--shadow);
    object-fit: cover;
    width: 100%;
}

.gallery-card h3 {
    font-size: 1rem;
    margin: 0.75rem 0 0;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gallery-filters a {
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    padding: 0.45rem 0.75rem;
    text-decoration: none;
}

.gallery-filters a.is-active {
    background: var(--brand);
    color: white;
}

.gallery-display {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.gallery-display img {
    border-radius: var(--radius);
    max-height: 30rem;
    object-fit: cover;
    width: 100%;
}

.media-video-frame {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    width: 100%;
}

.media-video-frame iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.is-hidden {
    display: none;
}

.media-type-badge {
    background: rgba(38, 50, 56, 0.9);
    border-radius: 999px;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
}

.gallery-display h2 {
    margin: 0 0 0.5rem;
}

.gallery-display p {
    color: var(--muted);
    margin: 0;
}

.meal-card { border-left: 0.4rem solid var(--brand); }
.meal-breakfast { border-left-color: #f7b538; }
.meal-lunch { border-left-color: #3d9a54; }
.meal-snack { border-left-color: #8b5bd6; }
.meal-other { border-left-color: var(--brand); }

.meal-note,
.meal-alert {
    background: #fff0ef;
    border: 1px solid #f2c3bf;
    border-radius: var(--radius);
    padding: 0.75rem;
}

.meal-calendar-shell {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.calendar-heading {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-heading h2 {
    font-size: 1.2rem;
    margin: 0;
    text-align: center;
}

.meal-calendar {
    display: grid;
    gap: 0.35rem;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-day-name {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

.calendar-cell {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 0.35rem;
    min-height: 6.5rem;
    padding: 0.45rem;
}

.calendar-cell.is-empty {
    background: var(--soft);
}

.calendar-cell.is-today {
    border-color: var(--brand);
}

.calendar-muted {
    color: var(--muted);
    font-size: 0.75rem;
}

.meal-chip {
    border-radius: 999px;
    display: block;
    font-size: 0.72rem;
    padding: 0.2rem 0.4rem;
}

.meal-chip-breakfast { background: #fff6df; }
.meal-chip-lunch { background: #ecf8ed; }
.meal-chip-snack { background: #f2eefb; }
.meal-chip-other { background: var(--soft); }

.pill {
    background: var(--soft);
    border-radius: 999px;
    color: var(--brand-dark);
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
}

.meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

.announcement {
    border-radius: var(--radius);
    padding: 1rem;
}

.announcement-heading {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.announcement-heading span {
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
}

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

.announcement-blue,
.announcement-teal {
    background: #e8f6f7;
    border: 1px solid #b8e0e3;
}

.announcement-yellow,
.announcement-orange {
    background: #fff6df;
    border: 1px solid #f6daa0;
}

.announcement-red {
    background: #fff0ef;
    border: 1px solid #f2c3bf;
}

.announcement-green {
    background: #ecf8ed;
    border: 1px solid #c5e7c8;
}

.announcement-purple {
    background: #f2eefb;
    border: 1px solid #d8c9f1;
}

.announcement-gray {
    background: #f3f5f6;
    border: 1px solid #d8dee2;
}

.announcement-priority-urgent {
    border-left: 0.45rem solid #b8322a;
}

.announcement-priority-important {
    border-left: 0.45rem solid #d98218;
}

.split {
    display: grid;
    gap: 1rem;
}

.site-footer {
    background: var(--ink);
    color: white;
    display: grid;
    gap: 1.4rem;
    padding: 2rem 1rem;
}

.site-footer a {
    color: white;
}

.social-link::before {
    align-items: center;
    background: #1877f2;
    border-radius: 999px;
    content: "f";
    display: inline-flex;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    height: 1.35rem;
    justify-content: center;
    margin-right: 0.4rem;
    width: 1.35rem;
}

.site-footer h2 {
    font-size: 1rem;
    margin: 0 0 0.6rem;
}

.site-footer p {
    margin: 0.25rem 0 0;
}

.footer-brand strong {
    display: block;
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.footer-links {
    display: grid;
    gap: 1rem;
}

.footer-links a {
    display: block;
    margin: 0.35rem 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    display: grid;
    gap: 0.4rem;
    padding-top: 1rem;
}

@media (min-width: 760px) {
    .site-nav {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
    }

    .site-footer {
        grid-template-columns: 1.1fr 1fr;
        padding-left: calc((100% - 1120px) / 2 + 1rem);
        padding-right: calc((100% - 1120px) / 2 + 1rem);
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        align-items: center;
        grid-column: 1 / -1;
        grid-template-columns: 1fr auto;
    }

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

    .split {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .contact-location {
        grid-template-columns: 0.85fr 1.15fr;
    }

    .staff-profile-hero {
        grid-template-columns: auto 1fr;
    }
}

@media (min-width: 1020px) {
    .grid-three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid-four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media print {
    .site-header,
    .site-footer,
    .skip-link,
    .calendar-heading a {
        display: none;
    }

    body {
        background: white;
    }

    .site-main {
        max-width: none;
        padding: 0;
    }

    .meal-calendar-shell,
    .content-card,
    .page-intro {
        box-shadow: none;
    }
}
