:root {
    --ink: #17202a;
    --muted: #5f6872;
    --paper: #fffaf2;
    --surface: #ffffff;
    --line: #e6dfd4;
    --yellow: #f3bf25;
    --red: #df4d3f;
    --green: #2f9c75;
    --blue: #3278bd;
    --shadow: 0 18px 55px rgba(23, 32, 42, .12);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
}
a { color: var(--blue); }
img { max-width: 100%; display: block; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 250, 242, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}
.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.brand img {
    width: clamp(150px, 22vw, 250px);
    height: auto;
}
.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.nav-link {
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    font-size: .95rem;
}
.nav-link.is-active {
    background: var(--yellow);
}
.nav-link.is-disabled {
    color: #9b9b9b;
    cursor: not-allowed;
}
.menu-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}
.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
}

.hero {
    min-height: 36vh;
    position: relative;
    display: grid;
    align-items: end;
    overflow: hidden;
}
.hero picture, .hero picture img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.hero picture img {
    object-fit: cover;
    object-position: center 44%;
    filter: saturate(1.04);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(255,250,242,.96), rgba(255,250,242,.72) 48%, rgba(255,250,242,.18));
}
.hero-content {
    position: relative;
    z-index: 3;
    width: min(720px, calc(100% - 40px));
    margin: 0 auto 38px max(24px, calc((100vw - 1180px) / 2));
    padding: 0 0 8px;
}
.eyebrow {
    margin: 0 0 10px;
    color: var(--red);
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: .78rem;
}
.hero-eyebrow {
    font-size: clamp(.62rem, 1.15vw, .72rem);
    max-width: 460px;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
    margin: 0;
    font-size: clamp(2.35rem, 6vw, 5.4rem);
    line-height: .98;
    letter-spacing: 0;
}
.hero-content h1 {
    font-size: clamp(1.55rem, 3.3vw, 3.05rem);
    max-width: 620px;
}
.hero-content p:not(.eyebrow), .page-title p {
    max-width: 690px;
    color: var(--muted);
    font-size: 1.16rem;
}
.button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--ink);
    color: white;
    text-decoration: none;
    font-weight: 700;
}
.button.secondary {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
}

.content-band {
    padding: 58px 22px;
    max-width: 1180px;
    margin: 0 auto;
}
.content-band.muted {
    max-width: none;
    background: #f4efe6;
}
.content-band.muted > * {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}
.narrow {
    max-width: 840px;
}
.richtext {
    font-size: 1.08rem;
}
.page-title {
    padding: 70px 22px 30px;
    max-width: 1180px;
    margin: 0 auto;
}
.page-title h1 {
    font-size: clamp(2.1rem, 5vw, 4.5rem);
}
.section-head {
    margin-bottom: 26px;
}
.section-head h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.teaser-grid, .topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.teaser, .topic-card, .event-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(23, 32, 42, .05);
}
.teaser h3, .topic-card h2, .event-item h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}
.center { text-align: center; margin-top: 26px; }

.topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.topic-card {
    display: grid;
    gap: 14px;
    padding: 0;
    overflow: hidden;
}
.topic-card > div:last-child { padding: 0 18px 18px; }
.topic-card img, .topic-placeholder {
    aspect-ratio: 4 / 3;
    width: 100%;
    object-fit: cover;
    background:
        linear-gradient(135deg, rgba(243,191,37,.92), rgba(223,77,63,.84)),
        repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,.32) 14px 28px);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    align-items: start;
}
.event-list {
    display: grid;
    gap: 14px;
}
.event-item time {
    color: var(--green);
    font-weight: 800;
}
.event-item .meta {
    margin: 0 0 8px;
    color: var(--muted);
}
.calendar {
    position: sticky;
    top: 94px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    box-shadow: var(--shadow);
}
.calendar h2 {
    margin: 0;
}
.calendar-controls {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.calendar-controls a {
    display: grid;
    place-items: center;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf9;
    color: var(--ink);
    text-decoration: none;
    font-size: 1.8rem;
    line-height: 1;
}
.calendar-controls h2 {
    text-align: center;
    font-size: 1.2rem;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.calendar-grid span {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    place-items: center;
    position: relative;
    background: #fffdf9;
}
.calendar-grid.weekdays span {
    min-height: auto;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
}
.calendar-grid .empty {
    background: transparent;
    border: 0;
}
.calendar-grid .has-event {
    background: var(--yellow);
    border-color: #c79500;
    font-weight: 900;
}
.calendar-grid small {
    position: absolute;
    right: 5px;
    bottom: 2px;
    font-size: .68rem;
}

.activity-table {
    display: grid;
    border-top: 1px solid var(--line);
}
.activity-table article {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}
.activity-table h2 {
    margin: 0 0 4px;
}
.activity-table p {
    margin: 0;
    color: var(--muted);
}
.period {
    font-weight: 900;
    color: var(--blue);
}

.gallery-section {
    padding-top: 24px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.gallery-tile {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
}
.gallery-tile img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .2s ease;
}
.gallery-tile:hover img {
    transform: scale(1.03);
}
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(23, 32, 42, .88);
    display: grid;
    place-items: center;
    padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
    max-height: 88vh;
    max-width: 92vw;
    object-fit: contain;
}
.lightbox button {
    position: absolute;
    top: 14px;
    right: 18px;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 30px;
    background: white;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 24px 22px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
}
.site-footer div {
    display: grid;
    gap: 3px;
}

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        flex-direction: column;
        align-items: stretch;
    }
    .main-nav.is-open { display: flex; }
    .header-inner { flex-wrap: wrap; }
    .teaser-grid, .topic-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: 1fr; }
    .calendar { position: static; }
}

@media (max-width: 620px) {
    .hero { min-height: 42vh; }
    .hero::after { background: rgba(255,250,242,.82); }
    .hero-content { margin: 0 20px 42px; width: auto; }
    .content-band { padding: 42px 18px; }
    .page-title { padding: 50px 18px 20px; }
    .teaser-grid, .topic-grid, .gallery-grid { grid-template-columns: 1fr; }
    .activity-table article { grid-template-columns: 1fr; gap: 8px; }
    .site-footer { flex-direction: column; }
}
