:root {
  --cream: #f4ebe0;
  --paper: #fbf6ef;
  --white: #fffaf4;
  --ink: #1c1410;
  --ink-2: #3a2d26;
  --muted: #74655a;
  --line: rgba(28, 20, 16, 0.12);
  --terracotta: #c24b1c;
  --terracotta-deep: #9a3512;
  --burgundy: #6b2030;
  --gold: #c9923a;
  --forest: #2c4638;
  --sunset: linear-gradient(90deg, #c24b1c 0%, #b13a28 42%, #6b2030 100%);
  --shadow: 0 18px 50px rgba(28, 20, 16, 0.12);
  --shadow-lg: 0 30px 80px rgba(28, 20, 16, 0.22);
  --radius: 16px;
  --header-h: 78px;
  --max: 1180px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 560; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
p { margin: 0; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 239, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--sunset);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: calc(var(--header-h) - 3px);
}
.logo img {
  height: 48px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a {
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 999px;
}
.site-nav a:hover { background: rgba(28, 20, 16, 0.05); }
.site-nav a.is-active { color: var(--terracotta-deep); font-weight: 650; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--terracotta);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 20px rgba(194, 75, 28, 0.25);
}
.btn:hover { background: var(--terracotta-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-dark {
  background: var(--ink);
  box-shadow: none;
}
.btn-dark:hover { background: #2a1f1a; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; box-shadow: none; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-outline:hover { background: var(--cream); }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: end stretch;
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28,20,16,0.18) 0%, rgba(28,20,16,0.15) 35%, rgba(28,20,16,0.78) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 64px 24px 72px;
}
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  max-width: 14ch;
  font-weight: 560;
}
.hero h1 em {
  font-style: italic;
  font-weight: 450;
  color: #f3d7b5;
}
.hero-lead {
  margin-top: 18px;
  max-width: 42ch;
  font-size: 1.15rem;
  color: rgba(255,250,244,0.88);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.search {
  margin-top: 28px;
  display: flex;
  gap: 8px;
  max-width: 560px;
  background: rgba(255,250,244,0.14);
  border: 1px solid rgba(255,250,244,0.22);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  backdrop-filter: blur(12px);
}
.search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  min-width: 0;
}
.search input::placeholder { color: rgba(255,250,244,0.7); }
.search .btn { padding: 10px 18px; }

.page-hero {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: end stretch;
  color: var(--white);
  overflow: hidden;
}
.page-hero .hero-content { padding: 48px 24px 44px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 16ch; }

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 88px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}
.section-head p { color: var(--muted); max-width: 46ch; }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}

/* Category tiles */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 340px;
  color: #fff;
  box-shadow: var(--shadow);
}
.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}
.cat-card:hover img { transform: scale(1.06); }
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(18,10,8,0.82) 100%);
}
.cat-card div {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 22px;
}
.cat-card h3 { font-size: 1.7rem; }
.cat-card p { margin-top: 6px; color: rgba(255,250,244,0.8); font-size: 0.95rem; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 8px 24px rgba(28,20,16,0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  text-align: left;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: #f3e4d4;
  padding: 4px 8px;
  border-radius: 999px;
}
.card h3 { font-size: 1.35rem; }
.card .meta { color: var(--muted); font-size: 0.92rem; }
.card .blurb {
  color: var(--ink-2);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Split story */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.split img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.split h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 10px 0 16px; }
.split p + p { margin-top: 14px; color: var(--ink-2); }

/* Events */
.event-list { display: grid; gap: 14px; }
.event-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  padding-right: 18px;
}
.event-row img {
  width: 180px;
  height: 120px;
  object-fit: cover;
}
.event-row h3 { font-size: 1.25rem; margin-bottom: 4px; }
.event-row p { color: var(--muted); font-size: 0.95rem; }
.when {
  font-weight: 650;
  color: var(--terracotta-deep);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* CTA */
.cta-band {
  background: var(--ink);
  color: var(--white);
  border-radius: 28px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(194,75,28,0.5), transparent 70%);
}
.cta-band h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 10px; }
.cta-band p { color: rgba(255,250,244,0.78); max-width: 50ch; }
.cta-band > * { position: relative; }

/* Filters */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  align-items: center;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.9rem;
}
.chip.is-on,
.chip:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.toolbar .search {
  margin: 0;
  margin-left: auto;
  background: var(--white);
  border: 1px solid var(--line);
  min-width: 280px;
}
.toolbar .search input { color: var(--ink); }
.toolbar .search input::placeholder { color: var(--muted); }
.empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 16px;
  grid-column: 1 / -1;
}

/* Modal */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(18, 10, 8, 0.55);
  backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  background: var(--white);
  border-radius: 22px;
  max-width: 680px;
  width: min(680px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  box-shadow: var(--shadow-lg);
}
.modal-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.modal-body { padding: 24px 26px 28px; }
.modal-body h2 { font-size: 2rem; margin: 8px 0 8px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.close-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,250,244,0.9);
  cursor: pointer;
  font-size: 1.2rem;
}

/* Form */
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  display: grid;
  gap: 14px;
}
.form label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 600; }
.form input,
.form select,
.form textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--paper);
}
.form textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.note { color: var(--muted); font-size: 0.92rem; }
.success {
  background: #e7f3ea;
  color: var(--forest);
  padding: 12px 14px;
  border-radius: 12px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #eadfd4;
  padding: 48px 0 28px;
  margin-top: 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-copy {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #b7a89c;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 8px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.stat {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 12px;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
}
.stat span { font-size: 0.88rem; color: rgba(255,250,244,0.7); }

@media (max-width: 980px) {
  .cat-grid, .card-grid { grid-template-columns: 1fr 1fr; }
  .split, .cta-band, .footer-grid { grid-template-columns: 1fr; }
  .split img { height: 360px; }
  .event-row { grid-template-columns: 140px 1fr; padding-right: 14px; }
  .event-row img { width: 140px; }
  .cta-band { padding: 32px 24px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 12px; right: 12px; top: calc(100% + 8px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    flex-direction: column;
    padding: 10px;
    box-shadow: var(--shadow);
  }
  body.nav-open .site-nav { display: flex; }
  .cat-grid, .card-grid, .form-row, .stats { grid-template-columns: 1fr; }
  .cat-card { min-height: 240px; }
  .section { padding: 56px 0; }
  .toolbar .search { margin-left: 0; width: 100%; }
  .hero { min-height: 86vh; }
  .logo img { height: 40px; max-width: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
