:root {
    --paper: #fff6ea;
    --ink: #2a2a2a;
    --leaf: #849737;
    --leaf-2: #505e20;
    --soil: #56361e;
    --accent: #de7d49;
    --accent-2: #013e9b;
    --accent-3: #bd452a;
    --muted: #e8ded1;
    --bad: #bd452a;
    --good: #505e20;
    --sky: #d1d9b4;
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0
}

body {
    font-family: Nunito, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6
}

a {
    color: var(--leaf-2);
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px
}

/* ===== Hero ===== */
header.hero {
    background: linear-gradient(180deg, var(--paper), var(--sky));
    border: 1px solid var(--leaf);
    border-radius: 24px;
    padding: 28px;
    display: grid;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(31, 122, 62, .08);
}

/* Top row: brand + menu button inside hero */
.hero .hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

/* Legacy brand (kept for backward compatibility) */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin: 0 auto
}

.brand .leaf {
    font-size: 28px
}

.brand .name {
    font-family: Chewy, system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(22px, 3.4vw, 34px);
    color: var(--leaf);
    letter-spacing: .05em
}

/* New brand link */
.brandlink {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none
}

.brandlink .leaf {
    font-size: 24px
}

.brandlink .name {
    font-family: Chewy, system-ui, sans-serif;
    letter-spacing: .05em;
    color: var(--leaf);
    font-size: 22px
}

/* Menu button (mobile) */
.hero-nav-toggle {
    display: inline-block;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .12);
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

/* Hero nav (pills) */
.hero-nav {
    display: none;
    /* hidden by default */
    flex-direction: column;
    gap: 6px;
    margin: 6px 0 8px;
    border-radius: 12px;
    padding: 8px;
}

.hero-nav.open {
    display: flex;
}

/* Keep the toggle visible on ALL screen sizes */
.hero-nav-toggle {
    display: inline-flex !important;
    /* force it to show */
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .12);
    padding: 8px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    color: var(--leaf-2);
}

.hero-nav a {
    display: inline-block;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    color: var(--leaf-2);
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06)
}

.hero-nav a:hover {
    background: #fff
}

/* Active page highlight */
.hero-nav a[aria-current="page"] {
    background: color-mix(in oklab, var(--leaf) 20%, #fff);
    border-color: var(--leaf);
    outline: 0;
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--leaf) 40%, #fff);
    color: var(--leaf-2);
}

/* Headings + strapline */
.hero h1 {
    font-family: Chewy, system-ui, sans-serif;
    font-size: clamp(28px, 8vw, 42px);
    line-height: 1.1;
    color: var(--accent);
    letter-spacing: .05em;
    justify-self: center;
    text-align: center;
    margin: 0 auto;
}

.hero h2 {
    color: var(--soil);
    letter-spacing: .05em;
    justify-self: center;
    text-align: center;
    margin: 0 auto;
    font-size: clamp(18px, 5.5vw, 28px);
    line-height: 1.2;
}

.hero p {
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word
}

.btn {
    display: inline-block;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06)
}

.notice {
    margin-top: 8px;
    background: #fff;
    border: 1px dashed rgba(31, 122, 62, .25);
    padding: 12px 14px;
    border-radius: 12px;
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word
}

/* ===== Layout & Cards ===== */
section {
    margin-top: 28px
}

h2 {
    font-family: Chewy, system-ui, sans-serif;
    letter-spacing: .05em;
    font-size: clamp(22px, 3.4vw, 32px);
    color: var(--leaf);
    margin: 0 0 10px
}

h3 {
    font-size: 20px;
    margin: 8px 0 6px;
    color: var(--ink)
}

.kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent)
}

.grid {
    display: grid;
    gap: 16px
}

@media (min-width:800px) {
    .cols-2 {
        grid-template-columns: 1fr 1fr
    }

    .cols-3 {
        grid-template-columns: repeat(3, 1fr)
    }

    .cols-4 {
        grid-template-columns: repeat(4, 1fr)
    }
}

.card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06)
}

.card img {
    max-width: 100%;
    height: auto;
    display: block
}

/* Preview cards with image header + sticky button */
.card.preview {
    display: flex;
    /* make the whole card a flex column */
    flex-direction: column;
    padding: 0;
    /* content padding moves inside .content */
    overflow: hidden;
    /* rounds the image corners */
}

.card.preview .media {
    height: clamp(200px, 24vw, 220px);
    /* min, fluid, max */
    background: #eee;
}

.card.preview .media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* crops nicely */
    display: block;
    border-radius: 18px 18px 0 0;
}

.card.preview .content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    /* replaces the card’s padding */
    flex: 1;
    /* take remaining height */
}

.card.preview .btn.link {
    margin-top: auto;
    /* pushes the button to the bottom */
    align-self: flex-start;
    /* keeps it left-aligned */
}

/* make all preview cards equal height in the grid */
#previews .grid>.card.preview {
    height: 100%;
}

.paper {
    background: var(--paper)
}

/* Steps */
.steps .step {
    position: relative;
    padding-top: 36px
}

.badge {
    font-family: Chewy, system-ui, sans-serif;
    letter-spacing: .05em;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-50%);
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12)
}

/* Lists */
.list {
    margin: 8px 0 0 16px
}

.list li {
    margin: 6px 0
}

.good {
    color: var(--good)
}

.bad {
    color: var(--bad)
}

/* ===== FAQ (refined <details>) ===== */
.faq details {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.faq details+details {
    margin-top: 12px
}

.faq summary {
    background: #fff;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 700;
    user-select: none;
    outline: none;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.faq summary::-webkit-details-marker {
    display: none
}

.faq summary .q {
    letter-spacing: .05em;
    font-size: 1.05rem
}

.faq summary::after {
    content: "";
    margin-left: auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--leaf-2);
    border-bottom: 2px solid var(--leaf-2);
    transform: rotate(-45deg);
    transition: transform .25s;
}

.faq details[open] summary::after {
    transform: rotate(45deg)
}

.faq .content {
    background: #fff;
    padding: 0 16px 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s
}

.faq details[open] .content {
    max-height: 480px
}

.faq details[open] {
    background: #fff;
    border-color: var(--leaf);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08)
}

.faq summary:focus-visible {
    outline: 3px solid color-mix(in oklab, var(--leaf) 35%, white);
    outline-offset: 2px
}

/* ===== Stats & Previews ===== */
.stat .icon {
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: 6px
}

.stat h3 {
    margin: 6px 0 8px;
    font-weight: 700;
    color: var(--leaf)
}

.stat p {
    margin: 0;
    line-height: 1.7
}

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

.preview h3 {
    color: var(--leaf);
    font-weight: 800
}

.preview p {
    margin: 0 0 6px;
    line-height: 1.7
}

.btn.link {
    align-self: start;
    background: #fff;
    color: var(--leaf-2);
    border: 1px solid rgba(0, 0, 0, .08);
    padding: 10px 12px
}

.btn.link:hover {
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06)
}

@media (max-width:800px) {
    #previews .grid {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:520px) {
    #previews .grid {
        grid-template-columns: 1fr
    }
}

/* Emphasis */
strong {
    font-weight: 800;
    color: var(--leaf-2)
}

h1 strong,
h2 strong,
h3 strong {
    font-weight: inherit;
    color: inherit
}

/* Footer */
footer {
    color: var(--soil);
    font-size: 14px;
    text-align: center;
    padding: 24px 0 10px
}

/* ===== Mobile safety & tweaks ===== */
header.hero {
    padding: 16px
}

header.hero>* {
    min-width: 0
}

.notice {
    margin-left: 0;
    margin-right: 0
}

.container {
    padding: 16px
}

.container,
header.hero {
    width: 100%;
    max-width: 1080px
}

.cta-row .btn {
    min-width: 0
}

.small {
    color: var(--accent);
    font-size: 14px;
}

/* Collapse hero nav on small screens */
@media (min-width: 861px) {
    .hero-nav {
        display: none;
    }

    /* stays collapsed */
    .hero-nav.open {
        display: flex;
    }

    /* opens only when toggled */
    .hero-nav-toggle {
        display: inline-block;
    }
}

/* Desktop: hide toggle */
@media (min-width:861px) {
    .hero-nav-toggle {
        display: none
    }
}

/* Extra-tight mobile */
@media (max-width:400px) {
    header.hero {
        padding: 12px
    }

    .btn {
        padding: 10px 12px
    }
}

/* A11y utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Center the brand at the top of the hero */
.hero .hero-top {
    position: relative;
    justify-content: center;
    /* center the row contents */
}

.hero .brandlink {
    margin: 0 auto;
    /* center the brand */
    text-align: center;
    text-decoration: none;
}

/* Keep the toggle pinned to the right without affecting centering */
.hero .hero-nav-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* (Optional) tiny safety on very narrow screens */
@media (max-width: 360px) {
    .hero .hero-top {
        padding-right: 44px;
    }

    /* ensures space for the toggle */
}

/* Compact, readable event blocks */
.accent { color: var(--accent); }
.event-lines { margin-top: 4px; }
.event-title { line-height: 1.25; margin: 0 0 2px; }
.event-when  { line-height: 1.3; font-weight: 700; }
.event-where,
.event-desc  { line-height: 1.3; }

/* Tidy spacing inside cards */
.card .event-lines > * { margin: 0; }
.card .event-lines > * + * { margin-top: 2px; }

/* Notice readability on small screens */
.notice { overflow-wrap: anywhere; }

/* Event Gallery placeholder */
.gallery-empty { text-align: center; padding: 28px; }
.gallery-placeholder {
  font-size: 42px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  width: 84px; height: 84px;
  margin: 4px auto 10px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

/* When you start adding images later, drop them in a grid like this: */
.gallery-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { position: relative; overflow: hidden; border-radius: 12px; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; display: block; }
