/* ---------- Shared Styles (classy, recital-like) ---------- */
:root {
  --bg: burlywood;
  --ink: #1b1b1b;
  --muted: #6b6b6b;
  --accent: #111;
  --link: #0b57d0;
  --ring: rgba(17, 17, 17, 0.12);
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.headline {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 12px;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}
/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e6e2da;
}
.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  color: #333;
}
.nav a:hover,
.nav a.active {
  background: #111;
  color: #fff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand .dot {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #111, #444);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.brand h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  margin: 0;
}
.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.small {
  font-size: 13px;
  color: #6b6b6b;
}

/* Hero */
/* Hero */
.hero {
  /* — your original styling — */
  background: radial-gradient(
      80% 120% at 90% -10%,
      #efe7d8 0%,
      rgba(239, 231, 216, 0) 50%
    ),
    radial-gradient(
      70% 90% at -10% 110%,
      #d7dadf 0%,
      rgba(215, 218, 223, 0) 50%
    ),
    #fff;
  border: 1px solid #e6e2da;
  border-radius: 24px;
  padding: 40px; /* keep your original padding */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);

  /* — new layout for image slider — */
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
}

.hero p {
  max-width: 60ch;
  color: #454545;
}
/* ===== Home hero layout ===== */

.hero-text {
  max-width: 600px;
}

/* ===== Right-side slider ===== */

.hero-visual {
  max-width: 420px;
  width: 100%;
  justify-self: end;
}

.hero-slider {
  position: relative;
  width: 100%;
  max-height: 400px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background: transparent;
}

/* Base card */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;

  transition: transform 0.7s cubic-bezier(0.33, 0.02, 0.11, 0.99),
    box-shadow 0.7s ease, opacity 0.7s ease;
}

/* Top card */
.hero-slide.is-front {
  transform: translate(0, 0) scale(1) rotate(0deg);
  opacity: 1;
  z-index: 2;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* Underneath card */
.hero-slide.is-back {
  transform: translate(20px, 14px) scale(0.96) rotate(-2deg);
  opacity: 0.92;
  z-index: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* ===== Mobile: stack text and image ===== */

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    justify-self: center;
  }

  .hero-visual {
    justify-self: center;
    max-width: 320px;
  }
}

.btn {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
}
.btn.outline {
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
}
.btn + .btn {
  margin-left: 10px;
}

/* Cards, grids */
.grid {
  display: grid;
  gap: 16px;
}
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 880px) {
  .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: #fff;
  border: 1px solid var(--border, #ece7de);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
  display: grid; /* key */
  grid-template-rows: auto 1fr auto; /* heading/text | flex area | actions */
}
.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.card p {
  margin: 0;
  color: #555;
  font-size: 14px;
}

.card-actions {
  margin-top: auto; /* pushes this block to the bottom */
  text-align: center; /* center the button horizontally */
}
.card-actions .btn {
  display: inline-block; /* keeps the button sized nicely when centered */
}

@media (max-width: 980px) {
  .cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
}

/* Only affect cards marked with .reveal-list */
.reveal-list ul {
  max-height: 0; /* hide the list */
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  margin-top: 0; /* override .mt-2 while hidden */
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease,
    margin-top 0.2s ease;
}

/* Show when the card is hovered (mouse) or focused (keyboard/tab) */
.reveal-list:hover ul,
.reveal-list:focus-within ul {
  max-height: 600px; /* big enough to contain the list */
  opacity: 1;
  transform: translateY(0);
  margin-top: 8px; /* restore spacing when open */
}

/* Optional: a little fade-in for each item */
.reveal-list ul li {
  transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
  opacity: 0;
  transform: translateY(-2px);
}
.reveal-list:hover ul li,
.reveal-list:focus-within ul li {
  opacity: 1;
  transform: translateY(0);
}

/* Tables / lists */

/* ==== Events page styling (scoped) ==== */
body[data-page="events"] .section-title {
  font-weight: 600;
  font-size: 18px;
}

body[data-page="events"] .list {
  background: #fff;
  border: 1px solid #ece7de;
  border-radius: 16px;
  overflow: hidden;
}

/* 4-column grid: icon | date | details | actions */
body[data-page="events"] .event {
  display: grid;
  gap: 24px;
  align-items: start;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  padding: 16px;
  border-top: 1px solid #ece7de;
}
body[data-page="events"] .event:first-child {
  border-top: 0;
}

body[data-page="events"] .date {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
body[data-page="events"] .date .time {
  display: block;
  font-weight: 400;
  font-size: 14px;
  color: #666;
  margin-top: 2px;
}

body[data-page="events"] .meta {
  color: #666;
  font-size: 14px;
  margin: 0;
}
body[data-page="events"] .details {
  color: #555;
  font-size: 14px;
  margin-top: 6px;
}

/* Buttons & fallback badge */
body[data-page="events"] .btn {
  padding: 8px 12px;
  text-decoration: none;
}
body[data-page="events"] .pill {
  background: #f0f0f0;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 12px;
  color: #444;
}

/* Venue → Google Maps link */
body[data-page="events"] .venue-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body[data-page="events"] .venue-link:hover {
  text-decoration-thickness: 2px;
}
.venue-link .icon {
  line-height: 0;
  flex: 0 0 auto;
}
.venue-link svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

/* Responsive layout */
@media (max-width: 800px) {
  body[data-page="events"] .event {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "emoji date cta"
      "text  text text";
    gap: 10px 12px;
    align-items: center; /* nicer first row alignment */
  }

  /* Map existing children to areas (no HTML changes needed) */
  .event > :first-child {
    grid-area: emoji;
  }
  .event .date {
    grid-area: date;
  }
  .event .event-info {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .event > :last-child {
    grid-area: cta;
    justify-self: end;
    white-space: nowrap;
  }

  /* Make sure the title doesn’t squish */
  .event .event-text p.font-medium {
    max-width: 100%;
  }
}

/*place .event here */
hr {
  border: none;
  border-top: 1px solid #e6e2da;
  margin: 24px 0;
}

/* --- Recordings grid helpers --- */
.video-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.video-card {
  background: #fff;
  border: 1px solid var(--border, #ece7de);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}
.video-ratio {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
}
.video-ratio iframe,
.video-ratio .thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* Thumbnail image sizing (choose one) */
.video-ratio .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 'cover' fills box (may crop). use 'contain' to letterbox */
  display: block;
}

/* Overlay label */
.video-ratio .play-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

/* Remove underline on the whole thumb link */
.video-ratio .thumb {
  text-decoration: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e6e2da;
  padding: 8px 0;
  color: #666;
  font-size: 14px;
  background: #fff;
}
.center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Dropdown in header */
.nav .has-submenu {
  position: relative;
}
.nav .parent {
  cursor: pointer;
}

.nav .submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  display: none;
  padding: 8px;
  background: #fff;
  border: 1px solid #e6e2da;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  z-index: 100;
  min-width: 0; /* override previous min-width:200px */
  width: max-content; /* size to the widest item */
  max-width: calc(100vw - 2rem); /* safety on narrow screens */
}

.nav .submenu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.nav .submenu a:hover {
  background: #111;
  color: #fff;
}

/* open on hover or keyboard focus */
.nav .has-submenu:hover .submenu,
.nav .has-submenu:focus-within .submenu {
  display: block;
}

/* when a submenu item is active, also highlight the parent */
.nav .parent.active {
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
}

/* Blog */
.post {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #ece7de;
  background: #fff;
}
.post h3 {
  margin: 0 0 6px;
}
.post .date {
  font-size: 12px;
  color: #7a7a7a;
  margin-bottom: 8px;
}

/* link */
.link-grid {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.link-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e6e2da;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  color: inherit;
  text-decoration: none;
}
.link-pill:hover {
  background: #111;
  color: #fff;
  text-decoration: none;
}
.link-pill .icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* About */
.prose p {
  max-width: 75ch;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: 24px;
  align-items: start;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.about-photo figcaption {
  margin-top: 6px;
  color: #666;
  font-size: 12px;
}

/* Mobile: stack, photo after text */
@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* 2×2 layout: [text | photo] then [photo | text] */
.duochord-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 50/50 */
  grid-template-areas:
    "text1 photo1"
    "photo2 text2";
  gap: 24px;
  align-items: start;
}

/* place items in the grid areas */
.duochord-grid .text1 {
  grid-area: text1;
}
.duochord-grid .photo1 {
  grid-area: photo1;
  margin-top: 16px;
}
.duochord-grid .photo2 {
  grid-area: photo2;
  width: 60%;
  justify-self: start;
}
.duochord-grid .text2 {
  grid-area: text2;
}

/* images */
.duochord-photo {
  margin: 0;
}
.duochord-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.duochord-photo figcaption {
  margin-top: 6px;
  color: #666;
  font-size: 12px;
}

/* Let paragraphs use full column width on this page */
.duochord-grid .prose p {
  max-width: none;
}

/* Mobile: stack nicely */
@media (max-width: 820px) {
  .duochord-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo1"
      "text1"
      "photo2"
      "text2";
  }
  .duochord-grid .photo2 {
    width: 100%;
  }
}

/* Solomon–Schwarz: top-right floated image with L-shaped wrap */
.solomon-photo {
  float: right;
  width: clamp(220px, 33vw, 380px); /* responsive but not huge */
  margin: 0 0 12px 20px; /* space below and to the left */
  shape-outside: margin-box; /* help text wrap cleanly around margins */
}
.solomon-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
/* clearfix so the parent surrounds the floated figure */
.solomon-wrap::after {
  content: "";
  display: table;
  clear: both;
}
/* Let paragraphs use full width beside the floated image on this page */
body[data-page="solomon"] .prose p {
  max-width: none;
}

/* Mobile: stop floating, show image above the text */
@media (max-width: 760px) {
  .solomon-photo {
    float: none;
    margin: 0 0 16px 0;
    width: 100%;
  }
}

p {
  font-family: "Comic Sans MS", "Comic Sans", "Comic Neue", cursive !important;
}

/* Utility */
.mt-1 {
  margin-top: 6px;
}
.mt-2 {
  margin-top: 12px;
}
.mt-3 {
  margin-top: 18px;
}
.mt-4 {
  margin-top: 24px;
}
.mt-6 {
  margin-top: 32px;
}
.mt-8 {
  margin-top: 40px;
}
