:root {
    --bg: #f9f7f2;
    --paper: #ffffff;
    --ink: #1f2328;
    --muted: #5e5e5e;
    --accent: #6e5033;
    --accent-2: #b08968;
    --line: #e7dfd6;
    --radius: 14px;
    --container: 1100px;
    --prose: 75ch;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font: 16.5px/1.75 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    color: var(--ink);
    background: linear-gradient(180deg, rgba(110,80,51,.06), rgba(110,80,51,0) 250px), var(--bg);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.25rem
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: rgba(249,247,242,.92);
    backdrop-filter: saturate(1.1) blur(6px);
    border-bottom: 1px solid var(--line);
    z-index: 30
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
    letter-spacing: .02em
}

    .brand img {
        width: 28px;
        height: 28px
    }

.nav a {
    color: var(--ink);
    text-decoration: none;
    padding: .6rem .4rem;
    border-bottom: 2px solid transparent
}

    .nav a:hover {
        border-bottom-color: var(--accent-2)
    }

    .nav a[aria-current="page"] {
        border-bottom-color: var(--accent)
    }

/* Hero */
.hero {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper);
}

    .hero .wrap {
        display: grid;
        grid-template-columns: 1.1fr 1fr;
        gap: 2rem;
        align-items: center;
        padding: 2rem
    }

    .hero h1 {
        font: 700 clamp(1.9rem, 3.6vw, 3rem)/1.15 Georgia, 'Times New Roman', serif;
        margin: .2rem 0
    }

    .hero .lead {
        color: var(--muted);
        font-size: 1.05rem
    }

    .hero .media {
        border-left: 1px solid var(--line);
    }

        .hero .media .ph {
            display: block;
            width: 100%;
            height: 100%;
            min-height: 240px;
            object-fit: cover
        }

@media (max-width: 900px) {
    .hero .wrap {
        grid-template-columns: 1fr
    }

    .hero .media {
        border-left: 0;
        border-top: 1px solid var(--line)
    }
}

/* Sections */
.section {
    padding: 2rem 0
}

.band {
    background: linear-gradient(180deg, rgba(176,137,104,.10), rgba(255,255,255,0));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* Prose */
.prose {
    max-width: var(--prose);
    margin-inline: auto;
    padding: 1rem 0
}

    .prose p {
        margin: .9rem 0
    }

    .prose h2 {
        font: 700 1.6rem/1.2 Georgia, 'Times New Roman', serif;
        margin: 1.4rem 0 .6rem
    }

    .prose h3 {
        font: 700 1.2rem/1.25 Georgia, 'Times New Roman', serif;
        margin: 1.2rem 0 .3rem
    }

    .prose img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 12px;
        border: 1px solid var(--line);
        background: #fff
    }

    .prose figure {
        margin: 1.2rem 0
    }

    .prose figcaption {
        color: var(--muted);
        font-size: .95rem;
        margin-top: .35rem
    }

    .prose a {
        color: var(--accent);
        text-decoration: underline
    }

blockquote {
    margin: 1rem 0;
    padding: .8rem 1rem;
    background: #fff7ee;
    border-left: 4px solid var(--accent-2);
    border-radius: 8px
}

/* Buttons */
.btn {
    display: inline-block;
    padding: .7rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--accent-2);
    background: linear-gradient(#fffdfb, #fff7ee);
    color: #1f2328;
    text-decoration: none
}

    .btn:hover {
        background: #fff7ee
    }

/* Events */
.filters {
    display: flex;
    gap: .6rem 1rem;
    flex-wrap: wrap;
    margin: 1rem 0
}

    .filters input, .filters button {
        padding: .55rem .75rem;
        border-radius: 10px;
        border: 1px solid var(--line);
        background: #fff
    }

        .filters input:focus {
            outline: 2px solid rgba(176,137,104,.35)
        }

.events {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
    gap: 1rem
}

.event {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem
}

    .event h3 {
        margin: .2rem 0 .45rem;
        font-weight: 700
    }

    .event time {
        display: block;
        color: #6b6b6b;
        margin-bottom: .35rem
    }

    .event .where {
        color: #6b6b6b
    }

.datechip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 600;
    font-size: .9rem;
    color: #4b3a2c;
    background: #fff2e2;
    border: 1px solid #efd8c2;
    padding: .15rem .5rem;
    border-radius: 999px
}

/* Footer (single, consistent block) */
footer {
    border-top: 1px solid var(--line);
    color: #6b6b6b;
    margin-top: 2rem
}

    footer .container {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem 1.25rem;
        gap: .75rem;
        flex-wrap: wrap;
    }

    footer .copyright {
        white-space: nowrap;
        color: #666;
        font-size: .95rem
    }

/* === Self-contained 3-up gallery cards === */
.tg-gallery-3 {
    display: grid;
    gap: 1.25rem;
    margin: 1.5rem 0;
    grid-template-columns: 1fr;
}

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

.tg-gallery-3 > .card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .75rem;
}

    .tg-gallery-3 > .card img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 10px;
        background: #fff;
        object-fit: cover;
        aspect-ratio: 16/9;
    }

    .tg-gallery-3 > .card h3 {
        margin: .6rem 0 .25rem;
        font-weight: 700;
    }

    .tg-gallery-3 > .card p {
        margin: .4rem 0 0;
    }

.caption {
    color: #666;
    font-size: .95rem;
    margin-top: .5rem;
    text-align: center;
}

.tg-gallery-3 > .card .btn {
    margin-top: .6rem;
}

/* ===== Dramatic "What we do" full-bleed section (with inline picture/img) ===== */
.feature-bleed {
    position: relative;
    min-height: 40vh;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    .feature-bleed > img,
    .feature-bleed > picture {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
        z-index: 0;
    }

        .feature-bleed > picture > img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .feature-bleed .overlay {
        position: relative;
        z-index: 2;
    }

    .feature-bleed::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.35));
        z-index: 1;
    }

    .feature-bleed .container {
        position: relative;
        padding: 3rem 1.25rem;
    }

.feature-box {
    max-width: 860px;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(2px);
}

/* invert prose colours inside the feature block */
.prose-invert h2,
.prose-invert h3,
.prose-invert p,
.prose-invert li,
.prose-invert a {
    color: #fff;
}

.prose-invert a {
    text-decoration: underline;
}

.prose-invert ol, .prose-invert ul {
    color: #fff;
}

/* Subtitle & note */
.tg-subtitle {
    font: 600 1.15rem/1.4 Georgia, 'Times New Roman', serif;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 0 0 1.25rem 0;
}

.tg-note {
    color: #5e5e5e;
    margin-top: 1rem;
}

/* ===== Modals ===== */
.no-scroll {
    overflow: hidden;
}

.period-trigger {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    text-align: inherit;
    cursor: pointer;
}

    .period-trigger img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .period-trigger:focus {
        outline: 3px solid rgba(176,137,104,.55);
        outline-offset: 4px;
    }

.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
}

    .modal[hidden] {
        display: none !important;
    }

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
}

.modal__panel {
    position: absolute;
    inset: auto;
    left: 50%;
    top: 8vh;
    transform: translateX(-50%);
    width: min(860px, calc(100% - 2rem));
    max-height: 84vh;
    overflow: auto;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    padding: 1.25rem 1.25rem 1.5rem;
}

.modal__close {
    position: absolute;
    top: .6rem;
    right: .6rem;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 10px;
    padding: .35rem .6rem;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

    .modal__close:hover {
        background: #fff7ee;
        border-color: #efd8c2;
    }

.modal__panel .prose {
    max-width: 65ch;
}

.modal__panel h2 {
    margin: 0 0 .5rem;
    font: 700 1.6rem/1.2 Georgia, 'Times New Roman', serif;
}

/* Clickable image buttons */
.lb-trigger {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

    .lb-trigger img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
}

    .lightbox[hidden] {
        display: none !important;
    }

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(2px);
}

.lightbox__panel {
    position: absolute;
    inset: auto;
    left: 50%;
    top: 6vh;
    transform: translateX(-50%);
    width: min(1100px, calc(100% - 2rem));
    max-height: 88vh;
    background: #0b0b0b;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    padding: 2.25rem 2.25rem 1.5rem;
    color: #f8f8f8;
}

.lightbox__figure {
    margin: 0;
}

    .lightbox__figure img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .lightbox__figure figcaption {
        margin-top: .6rem;
        color: #d0d0d0;
        text-align: center;
    }

.lightbox__close {
    position: absolute;
    top: .6rem;
    right: .6rem;
    z-index: 2;
    border: 1px solid rgba(255,255,255,.25);
    background: transparent;
    color: #fff;
    border-radius: 10px;
    padding: .35rem .6rem;
    font-size: 1.1rem;
    cursor: pointer;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: rgba(0,0,0,.35);
    color: #fff;
    cursor: pointer;
    padding: .4rem .6rem;
    font-size: 1.6rem;
    line-height: 1;
    border-radius: 10px;
}

    .lightbox__nav:hover {
        background: rgba(0,0,0,.55);
    }

    .lightbox__nav.prev {
        left: .6rem;
    }

    .lightbox__nav.next {
        right: .6rem;
    }

/* Visually-hidden (for the lightbox title) */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

@media (max-width:720px) {
    .lb-trigger[disabled] {
        cursor: default;
        outline: none;
    }

        .lb-trigger[disabled] img {
            outline: none;
        }

    #lightbox:not(.lb--mobile) .lightbox__nav {
        display: none !important;
    }

    #lightbox.lb--mobile .lightbox__nav {
        display: inline-flex !important;
    }
}

/* Events diary: toggle + meta */
.tg-toggle {
    display: flex;
    gap: .5rem 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 1rem;
}

    .tg-toggle .btn.tab {
        padding: .55rem 1rem;
        border-radius: 999px;
    }

        .tg-toggle .btn.tab.is-active,
        .tg-toggle .btn.tab[aria-selected="true"] {
            background: #fff2e2;
            border-color: #efd8c2;
        }

.tg-meta {
    color: #5e5e5e;
    margin-left: .25rem;
}

.tg-updated {
    color: #6b6b6b;
    margin: .25rem 0 1rem;
}

/* 4-up gallery that collapses 2 -> 1 on small screens */
.tg-gallery {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 1rem;
}

@media (max-width:980px) {
    .tg-gallery {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width:560px) {
    .tg-gallery {
        grid-template-columns: 1fr;
    }
}

.tg-gallery .card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 10px;
}

/* Lightbox nav visibility on mobile */
@media (max-width:720px) {
    #lightbox .lightbox__nav {
        display: none;
    }

    #lightbox.lb--mobile .lightbox__nav {
        display: inline-flex;
    }
}

/* Ensure tap-friendly targets (apply to the buttons themselves) */
#lightbox .lightbox__nav {
    min-width: 44px;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}
/* Mobile nav */
.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 10px;
    padding: .45rem .7rem;
    font: 600 0.95rem/1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

@media (max-width:720px) {
    .nav {
        position: relative;
    }

    /* show button, hide inline menu on mobile */
    .nav-toggle {
        display: inline-block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 1.25rem;
        display: none;
        flex-direction: column;
        background: rgba(249,247,242,.98);
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,.10);
        padding: .25rem;
        min-width: 180px;
        z-index: 40;
    }

        .nav-menu.is-open {
            display: flex;
        }

        /* links inside the dropdown */
        .nav-menu a {
            display: block;
            padding: .6rem .8rem;
            border-bottom: 0; /* remove the underline border effect */
        }

    /* optional: slightly reduce brand title on small screens */
    .brand .brand-title {
        font-size: 1rem;
    }
}
