/* Buckland Memorial Hall — site styles
   Look and feel: warm photo on top, sage panel below, heavy rounded headline,
   yellow "pill" for the key detail. */

@font-face {
  font-family: "Jakarta";
  src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jakarta";
  src: url("/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --sage: #adc8c1;
  --sage-soft: #d7e5e1;
  --sage-deep: #7fa59b;
  --ink: #221f1e;
  --ink-soft: #4a4542;
  --cream: #faf7f0;
  --paper: #ffffff;
  --yellow: #f5ec6f;
  --yellow-deep: #e6da3f;
  --navy: #1f3561;
  --line: rgba(34, 31, 30, 0.14);

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(34, 31, 30, 0.06), 0 8px 24px rgba(34, 31, 30, 0.07);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);

  --font: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.05; letter-spacing: -0.025em; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 30px; width: auto; }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 0.95rem;
  background: var(--sage); color: var(--ink); border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 9px 15px; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.98rem;
}
.site-nav a:hover { background: var(--sage-soft); }
.site-nav a[aria-current="page"] { background: var(--sage); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 10px var(--gutter) 18px; gap: 2px; }
  .site-nav a { padding: 12px 16px; font-size: 1.05rem; }
}

/* -------------------------------------------------------------- hero */
/* Photo on top, sage panel underneath — straight from the poster. */

.hero { background: var(--sage); }
.hero-photo { position: relative; height: clamp(260px, 52vh, 560px); overflow: hidden; background: var(--sage-deep); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo.pos-top img { object-position: center 30%; }
.hero-photo.pos-bottom img { object-position: center 70%; }
.hero-panel { padding: clamp(36px, 6vw, 72px) 0 clamp(44px, 7vw, 84px); text-align: center; }
.hero-panel h1 { max-width: 14ch; margin: 0 auto 0.3em; }
.kicker { font-weight: 600; font-size: clamp(1.05rem, 1.8vw, 1.3rem); margin: 0 0 0.6em; letter-spacing: -0.01em; }
.lede { font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 36ch; margin: 0 auto 1.4em; letter-spacing: -0.01em; }

/* ------------------------------------------------------------- pills */

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--yellow); color: var(--ink);
  border: 2px solid var(--yellow); border-radius: 999px;
  padding: 12px 26px; min-height: 52px;
  font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.pill svg { width: 24px; height: 24px; flex: none; }
a.pill:hover, button.pill:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); color: var(--ink); transform: translateY(-1px); }
.pill.ghost { background: transparent; border-color: var(--ink); }
a.pill.ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.pill.ink { background: var(--ink); border-color: var(--ink); color: var(--cream); }
a.pill.ink:hover { background: #000; border-color: #000; color: #fff; }
.pill.small { min-height: 40px; padding: 7px 16px; font-size: 0.95rem; gap: 8px; }
.pill.small svg { width: 18px; height: 18px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------------------------------------------------------- sections */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.sage { background: var(--sage); }
.section.sage-soft { background: var(--sage-soft); }
.section.paper { background: var(--paper); }
.section-head { max-width: 680px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section-head p { font-size: 1.15rem; color: var(--ink-soft); }
.eyebrow { display: inline-block; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 10px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

.rounded-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--sage-soft); }
.rounded-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* facilities chips */
.features { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.features li {
  display: flex; align-items: center; gap: 12px;
  background: var(--paper); border-radius: 14px; padding: 12px 16px;
  font-weight: 600; font-size: 0.98rem; line-height: 1.3; border: 1px solid var(--line);
}
.section.paper .features li { background: var(--cream); }
.features svg { width: 22px; height: 22px; flex: none; color: var(--sage-deep); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 22px 24px 26px; }
.card-body p:last-child { margin-bottom: 0; }

/* call-to-action band */
.cta-band { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: var(--radius-lg); overflow: hidden; background: var(--sage); box-shadow: var(--shadow); }
.cta-band .photo img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.cta-band .copy { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.cta-band .copy p { font-size: 1.15rem; font-weight: 500; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } .cta-band .photo img { min-height: 220px; max-height: 300px; } }

/* --------------------------------------------------- event listings */

.today-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow); border-radius: 999px; padding: 3px 12px; font-size: 0.82rem; font-weight: 700;
}

.day-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 36px; }
.day-filter button {
  font: inherit; font-weight: 700; font-size: 0.95rem;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; min-height: 42px;
}
.day-filter button:hover { border-color: var(--ink); }
.day-filter button[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.day-group { margin-bottom: 44px; }
.day-group > h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 20px;
}
.event-list { display: grid; gap: 14px; }
.event {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px;
  background: var(--paper); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow);
}
.event-time { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.15; }
.event-time small { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; margin-top: 4px; }
.event h3 { margin-bottom: 6px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.event-meta li { background: var(--sage-soft); border-radius: 999px; padding: 2px 12px; font-size: 0.86rem; font-weight: 600; }
.event-meta li.cat { background: var(--sage); }
.event p { color: var(--ink-soft); margin-bottom: 8px; }
.event .contact { font-size: 0.95rem; color: var(--ink); margin: 0; }
.event .contact strong { font-weight: 700; }
@media (max-width: 640px) {
  .event { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
}

.upcoming { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.upcoming .item { background: var(--paper); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.upcoming .when { font-weight: 700; font-size: 0.92rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.upcoming h3 { margin: 0; }
.upcoming .where { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

.empty {
  background: var(--paper); border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 40px 24px; text-align: center; color: var(--ink-soft);
}
.empty strong { display: block; color: var(--ink); font-size: 1.2rem; margin-bottom: 6px; }

/* ---------------------------------------------------------- gallery */

.gallery { columns: 3 280px; column-gap: 14px; }
.gallery button {
  display: block; width: 100%; padding: 0; margin: 0 0 14px; border: 0; background: var(--sage-soft);
  border-radius: 14px; overflow: hidden; cursor: zoom-in; break-inside: avoid;
}
.gallery img { width: 100%; height: auto; transition: transform 0.3s; }
.gallery button:hover img { transform: scale(1.03); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; }
.lightbox::backdrop { background: rgba(20, 18, 17, 0.88); }
.lightbox img { max-width: min(96vw, 1400px); max-height: 84vh; width: auto; height: auto; border-radius: 12px; margin: 0 auto; }
.lightbox .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 4px 0; color: #fff; }
.lightbox .bar p { margin: 0; font-weight: 600; }
.lightbox .bar .pill-row { justify-content: flex-end; flex-wrap: nowrap; }

/* ---------------------------------------------------------- contact */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact-card { background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-card .icon { width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; margin-bottom: 16px; }
.contact-card .icon svg { width: 26px; height: 26px; }
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { margin: 0 0 4px; }
.contact-card a { font-weight: 700; word-break: break-word; }

/* ----------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: #e9e5dc; padding: 64px 0 32px; font-size: 0.98rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer img { height: 30px; width: auto; margin-bottom: 18px; }
.site-footer h2 { font-size: 1rem; letter-spacing: 0; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sage); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .small { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #b9b4aa; font-size: 0.9rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- misc */

.note { background: var(--sage-soft); border-radius: var(--radius); padding: 22px 26px; }
.note p:last-child { margin-bottom: 0; }
.loading { color: var(--ink-soft); text-align: center; padding: 30px 0; }
.more-link { margin: 32px 0 0; }
[hidden] { display: none !important; }
