:root {
  --fg: #2a1f1a;
  --muted: #6b5f57;
  --bg: #fbf7f2;
  --bg-tint: #dfeae5;
  --accent: #8a1f2b;
  --accent-dark: #6e1822;
  --gold: #b8893d;
  --border: #e2d6c5;
  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--fg);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin: 0.25rem 0; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 1.25rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.5rem; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  -webkit-tap-highlight-color: transparent;
}

.site-nav .brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  margin: 0;
}

.tagline {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--muted);
  font-style: italic;
  margin: 0.5rem 0 1.25rem;
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stats li {
  font-size: 0.95rem;
  color: var(--muted);
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
}

.hero-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--fg);
}

.hero-lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 55ch;
  margin: 0 0 1.75rem;
}

/* ---------- CTA buttons ---------- */
.cta {
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
}

.section--cta .cta,
.section--tinted .cta {
  justify-content: center;
}

.cta button,
button.open-booking-btn,
#open-booking-btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cta button:hover,
button.open-booking-btn:hover,
#open-booking-btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* ---------- Image placeholders ---------- */
.image-placeholder {
  background: linear-gradient(135deg, var(--bg-tint) 25%, #ece1cf 25%, #ece1cf 50%, var(--bg-tint) 50%, var(--bg-tint) 75%, #ece1cf 75%);
  background-size: 24px 24px;
  border: 2px dashed var(--gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.1rem;
  padding: 1rem;
}

.image-placeholder small {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
  display: inline-block;
  margin-top: 0.4rem;
  opacity: 0.85;
}

.image-placeholder--portrait { aspect-ratio: 4 / 5; }
.image-placeholder--landscape { aspect-ratio: 4 / 3; }

.hero-image .image-placeholder {
  box-shadow: 0 20px 50px rgba(42, 31, 26, 0.12);
}

.hero-image img,
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.hero-image img { aspect-ratio: 4 / 5; box-shadow: 0 20px 50px rgba(42, 31, 26, 0.12); }
.about-image img { aspect-ratio: 2 / 3; }

/* ---------- Sections ---------- */
.section {
  padding: 4rem 1.5rem;
  display: grid;
  justify-items: center;
}

.section > * {
  width: 100%;
  max-width: 1100px;
}

.section > h2 {
  text-align: center;
}

#about .about-text p,
#lectures p {
  text-align: justify;
  hyphens: auto;
}

.section--tinted {
  background: var(--bg-tint);
}

.section--cta {
  text-align: center;
  background: var(--fg);
  color: var(--bg);
}

.section--cta h2,
.section--cta .lead {
  color: var(--bg);
}

.section--cta .cta button {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--fg);
}

.section--cta .cta button:hover {
  background: #a67a30;
  border-color: #a67a30;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 65ch;
  margin: 0 0 1.5rem;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  margin: 0 0 1rem;
  color: var(--fg);
}

/* ---------- Offer ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.offer-card {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: 4px;
  border-left: 3px solid var(--gold);
  box-shadow: 0 1px 3px rgba(42, 31, 26, 0.04);
}

.offer-card h3 {
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.offer-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.offer-note {
  font-style: italic;
  color: var(--muted);
  text-align: center;
  max-width: 60ch;
  margin: 1.5rem auto 0;
}

/* ---------- Topic list ---------- */
.topic-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem 1.5rem;
}

.topic-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--fg);
}

.topic-list li::before {
  content: "♪";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 1.1rem;
}

.contact-line {
  color: var(--muted);
  margin: 1rem 0 0;
}

/* ---------- Prices ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.price-card--highlight {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.price-duration {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}

.price-card--highlight .price-duration { color: rgba(255, 255, 255, 0.85); }

.price-amount {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--fg);
  line-height: 1.1;
}

.price-card--highlight .price-amount { color: var(--bg); }

.price-amount small {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.4rem;
}

.price-card--highlight .price-amount small { color: rgba(255, 255, 255, 0.85); }

/* ---------- Media ---------- */
.media-subhead {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--accent);
}

.media-subhead:first-of-type { margin-top: 0; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(42, 31, 26, 0.12);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.audio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.audio-item {
  margin: 0;
  background: var(--bg);
  padding: 1rem;
  border-radius: 4px;
  border-left: 3px solid var(--accent);
}

.audio-item figcaption {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.audio-item audio { width: 100%; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--fg);
  color: var(--bg);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.site-footer p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.site-footer a { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
    gap: 2rem;
  }
  .hero-image { order: -1; max-width: 360px; margin: 0 auto; }
  .hero-text { text-align: center; }
  .hero-stats { justify-content: center; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-image { max-width: 360px; margin: 0 auto; }
  .site-nav ul { gap: 0.75rem; }
  .section { padding: 3rem 1.25rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.6; }

  /* Nav: stack brand on top, scroll links horizontally */
  .site-nav {
    padding: 0.65rem 1rem;
    gap: 0.5rem;
  }
  .site-nav .brand { font-size: 1.1rem; }
  .site-nav ul {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 1rem;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav ul::-webkit-scrollbar { display: none; }
  .site-nav li { flex: 0 0 auto; }
  .site-nav a { font-size: 0.9rem; white-space: nowrap; }

  /* Hero */
  .hero {
    padding: 1.75rem 1rem 1.5rem;
    gap: 1.5rem;
  }
  .hero-image { max-width: 280px; }
  .hero-stats {
    gap: 1.25rem;
    margin-bottom: 1.25rem;
  }
  .hero-stats li { padding-left: 0.75rem; }
  .hero-stats strong { font-size: 1.25rem; }
  .tagline { font-size: 1.1rem; margin-bottom: 1rem; }
  .hero-lede { font-size: 1rem; margin-bottom: 1.25rem; }
  .eyebrow { font-size: 0.7rem; letter-spacing: 0.15em; }

  /* Sections */
  .section { padding: 2.5rem 1rem; }
  .section--cta { padding: 2.5rem 1rem; }
  h2 { margin-bottom: 1rem; }
  .lead { font-size: 1rem; }

  /* Justified body text reads poorly on narrow screens */
  #about .about-text p,
  #lectures p { text-align: left; }

  /* Cards / grids: collapse to single column for predictable layout */
  .offer-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .offer-card { padding: 1.1rem 1.25rem; }
  .offer-card h3 { font-size: 1.05rem; }

  .topic-list {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .price-grid { grid-template-columns: 1fr; gap: 1rem; }
  .price-card { padding: 1.5rem 1.25rem; }
  .price-amount { font-size: 2.1rem; }

  .video-grid { grid-template-columns: 1fr; gap: 1rem; }
  .audio-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .media-subhead { font-size: 1.25rem; margin-top: 2rem; }

  /* Buttons: full-width, larger touch target */
  .cta { width: 100%; }
  .cta button,
  button.open-booking-btn,
  #open-booking-btn {
    width: 100%;
    max-width: 360px;
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
  }

  /* Footer */
  .site-footer { padding: 2rem 1rem; }
  .site-footer p { font-size: 0.9rem; }
}

@media (max-width: 400px) {
  h1 { font-size: 2.1rem; }
  .hero { padding: 1.5rem 0.9rem 1.25rem; }
  .section { padding: 2.25rem 0.9rem; }
  .hero-stats {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
  .hero-stats li {
    border-left: none;
    border-top: 2px solid var(--gold);
    padding: 0.5rem 0 0;
    text-align: center;
  }
}

/* ---------- Booking dialog (preserved from original) ---------- */
dialog {
  border: none;
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: 0 20px 60px rgba(42, 31, 26, 0.25);
  max-width: 90vw;
  width: min(480px, 90vw);
  background: var(--bg);
  color: var(--fg);
}

dialog::backdrop { background: rgba(42, 31, 26, 0.5); }

dialog .form-error {
  display: none;
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid #f5c2c7;
  background: #fdecee;
  border-radius: 4px;
}

dialog .form-error.visible {
  display: block;
}

dialog .optional {
  font-weight: 400;
  font-size: 0.85em;
  color: var(--muted);
  font-style: italic;
}

dialog .slot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.5rem;
}

dialog .slot-grid label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

dialog .slot-summary {
  font-size: 0.85rem;
  color: var(--fg);
  min-height: 1.1em;
  margin: 0.5rem 0 0;
  font-weight: 500;
}

@media (max-width: 480px) {
  dialog {
    padding: 1.25rem 1rem;
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  dialog form { min-width: 0; }
  dialog .slot-grid { grid-template-columns: 1fr; }
  dialog menu {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }
  dialog menu button { width: 100%; padding: 0.75rem 1rem; }
  dialog input,
  dialog select,
  dialog textarea { font-size: 16px; } /* prevent iOS zoom on focus */
}

dialog form { display: grid; gap: 0.75rem; min-width: 320px; }
dialog h2 { margin: 0; font-family: var(--serif); }
dialog p { margin: 0; color: var(--muted); }

dialog label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

dialog input,
dialog select,
dialog textarea {
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
  color: var(--fg);
  background: #fff;
}

dialog fieldset.survey {
  display: grid;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem 0.75rem 0.75rem;
  margin: 0;
}

dialog fieldset.survey legend {
  padding: 0 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

dialog .survey-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
  font-size: 0.95rem;
}

dialog .survey-other {
  margin-top: 0.25rem;
}

dialog .survey-other:disabled {
  background: #f5f0e8;
  color: #999;
}

dialog .turnstile-container {
  display: flex;
  justify-content: center;
  min-height: 65px;
  margin: 0.25rem 0;
}

dialog .turnstile-container:empty { min-height: 0; margin: 0; }

dialog menu {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 0;
  margin: 0.5rem 0 0;
}

dialog button {
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  border: 1px solid #888;
  background: #fff;
  cursor: pointer;
  font: inherit;
}

dialog button[type="submit"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

dialog button:disabled {
  opacity: 0.6;
  cursor: progress;
}

#success-dialog[open] {
  display: grid;
  gap: 0.75rem;
}

#success-close-btn {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
