:root {
  --bg: #faf8f4;
  --ink: #1a1a1a;
  --muted: #6b6760;
  --line: #e8e3da;
  --warn: #b00020;

  /* Brand palette */
  --b-trad-diff: #c97534;
  --b-trad-diff-soft: #f5e2d2;
  --b-dharma: #2c8a85;
  --b-dharma-soft: #d8efed;
  --b-stonebc: #5a7a3e;
  --b-stonebc-soft: #e1ebd5;
  --b-family: #a8442f;
  --b-family-soft: #f3d9d2;
  --b-pop: #2c5d8a;
  --b-pop-soft: #d3e0ed;
  --b-btybd: #3a8c5e;
  --b-btybd-soft: #d6ebde;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 48px 32px 96px; }
a { color: inherit; }

/* HERO */
header.hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
  margin-bottom: 48px;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 600;
}
header.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.05;
  margin: 12px 0 16px;
  letter-spacing: -1.5px;
}
header.hero .sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
}
header.hero .meta {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  align-items: center;
}
header.hero .meta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  transition: border-color 0.15s ease;
}
header.hero .meta a:hover { border-color: var(--ink); }

/* SECTION */
section { margin-bottom: 64px; }
section h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
section .section-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}
.empty {
  font-size: 14px;
  color: var(--muted);
  background: white;
  padding: 24px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  text-align: center;
}

/* UPCOMING / PAST GRID */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) {
  .events-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .events-grid.three-col { grid-template-columns: 1fr 1fr 1fr; }
}

/* CARD */
.card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.card .img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.card .img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 100%);
}
.card .date-overlay {
  position: absolute;
  bottom: 16px;
  left: 20px;
  color: white;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.card .day {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  opacity: 0.95;
}
.card .date-big {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin-top: 4px;
  letter-spacing: -1px;
}
.card .body {
  padding: 24px;
  border-top: 5px solid var(--line);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card .brand-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.cal-tag {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.cal-tag.b-trad-diff { background: var(--b-trad-diff-soft); color: var(--b-trad-diff); }
.cal-tag.b-dharma { background: var(--b-dharma-soft); color: var(--b-dharma); }
.cal-tag.b-stonebc { background: var(--b-stonebc-soft); color: var(--b-stonebc); }
.cal-tag.b-family { background: var(--b-family-soft); color: var(--b-family); }
.cal-tag.b-pop { background: var(--b-pop-soft); color: var(--b-pop); }
.cal-tag.b-btybd { background: var(--b-btybd-soft); color: var(--b-btybd); }

.card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}
.card .tagline {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
  font-style: italic;
}
.card .meta-row {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.card .meta-row span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
  margin-right: 8px;
  vertical-align: middle;
}
.card .meta-row span:first-child::before { display: none; }
.card .desc {
  font-size: 14px;
  color: #3a3a3a;
  margin-bottom: 16px;
}
.card .cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  margin-top: auto;
  transition: opacity 0.15s ease;
}
.card .cta:hover { opacity: 0.85; }

/* Brand stripe colors */
.card .body.stripe-trad-diff { border-top-color: var(--b-trad-diff); }
.card .body.stripe-dharma { border-top-color: var(--b-dharma); }
.card .body.stripe-stonebc { border-top-color: var(--b-stonebc); }
.card .body.stripe-family { border-top-color: var(--b-family); }
.card .body.stripe-pop { border-top-color: var(--b-pop); }
.card .body.stripe-btybd { border-top-color: var(--b-btybd); }

/* RECURRING — small grid */
.recurring-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .recurring-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .recurring-grid { grid-template-columns: 1fr 1fr 1fr; } }
.recurring-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease;
}
.recurring-card:hover { border-color: var(--ink); }
.recurring-card .when {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--muted);
}
.recurring-card h4 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.recurring-card .where {
  font-size: 13px;
  color: var(--muted);
}
.recurring-card .desc-small {
  font-size: 13px;
  color: #3a3a3a;
  margin-top: 6px;
}

/* PAST events — compact */
.past-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .past-grid { grid-template-columns: 1fr 1fr; } }
.past-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 120px 1fr;
}
.past-card .img-small {
  background-size: cover;
  background-position: center;
  min-height: 120px;
}
.past-card .body-small {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.past-card .date-small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--muted);
}
.past-card h4 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.past-card .recap-stats {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
}
.past-card .recap-stats .stat {
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
}
.past-card .summary-small {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.past-card .instagram-link {
  font-size: 12px;
  color: var(--b-trad-diff);
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
}

/* FOOTER */
footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
}
footer a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dotted var(--muted);
}

@media print {
  body { background: white; }
  .wrap { padding: 24px; }
  .card { break-inside: avoid; box-shadow: none; }
  .card:hover { transform: none; box-shadow: none; }
}
