:root {
  --color-bg: #fdf7ec;
  --color-bg-soft: #f7eeda;
  --color-bg-card: #fffdf7;
  --color-text: #2a221d;
  --color-muted: #6b5e52;
  --color-primary: #8a1f1f;
  --color-primary-dark: #6a1414;
  --color-accent: #c98a1a;
  --color-border: #e5d7bf;
  --max: 68rem;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(42, 34, 29, 0.06), 0 6px 20px rgba(42, 34, 29, 0.06);
  --font-serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-primary-dark);
  font-weight: 500;
  line-height: 1.25;
  margin-top: 0;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); letter-spacing: 0; font-weight: 500; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.7rem); margin-top: 0; font-weight: 500; }
h3 { font-size: 1.2rem; margin-top: 1.5rem; font-weight: 500; }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 600; }

p { margin: 0 0 1rem; }

a {
  color: var(--color-primary);
  text-decoration-color: rgba(138, 31, 31, 0.25);
  text-underline-offset: 3px;
}
a:hover { color: var(--color-primary-dark); text-decoration-color: currentColor; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-primary-dark);
  text-decoration: none;
  line-height: 1.1;
}
.brand span { display: block; font-size: 0.75rem; color: var(--color-muted); font-family: var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }

.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav a:hover, .nav a.is-active { color: var(--color-primary); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-text);
}

@media (max-width: 780px) {
  .nav { display: none; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-bg-card); padding: 0.75rem 1.25rem 1rem; border-bottom: 1px solid var(--color-border); }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.6rem 0; border-bottom: 1px solid var(--color-border); }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: inline-block; }
}

/* ---------- Opening (quiet, typography-first) ---------- */
.opening {
  padding: clamp(3rem, 8vw, 6rem) 1.25rem clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.opening__name {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--color-primary-dark);
  margin: 0 0 0.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.opening__place {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--color-muted);
  margin: 0;
}

/* ---------- Banner image (full-bleed panoramic photo) ---------- */
.banner {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;   /* was 3/1; loosened for the header2 close-up (crop file to 2009x1005 to match) */
  object-fit: cover;
}

/* ---------- Banner hero: quote overlaid on the banner photo ---------- */
.banner-hero { position: relative; }
/* Scrim: transparent over the Buddha, darkening toward the bottom so the quote reads. */
.banner-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 12, 6, 0) 40%, rgba(20, 12, 6, 0.6) 100%);
  pointer-events: none;
}
.banner-hero__quote {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 0 1.5rem clamp(1rem, 3vw, 2rem);
  text-align: center;
  color: #fdf7ec;
}
.banner-hero__quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
  line-height: 1.4;
  max-width: 40rem;
  margin: 0 auto 0.5rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
}
.banner-hero__quote cite {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #f0e2c6;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

/* On phones the overlaid quote gets lost over the busy photo — drop it below the
   image onto white and switch to the normal dark text colours. */
@media (max-width: 780px) {
  .banner-hero::after { display: none; }
  .banner-hero__quote {
    position: static;
    max-width: 38rem;
    margin: clamp(2rem, 8vw, 3rem) auto 0;
    padding: 0 1.25rem;
  }
  .banner-hero__quote blockquote {
    color: var(--color-primary-dark);
    text-shadow: none;
  }
  .banner-hero__quote cite {
    color: var(--color-muted);
    text-shadow: none;
  }
}

/* ---------- Feature band (full-bleed photo divider) ---------- */
.feature-band {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  min-height: 260px;
  max-height: 60vh;
  margin: clamp(3rem, 6vw, 4.5rem) 0;
  background-image: url("../images/body3.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;   /* parallax on desktop; iOS/mobile ignore it and show a clean static band (body2 is wide, so no bisection) */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* Soft scrim keeps the line legible over the busy photo.
   For a silent image-only band, drop the ::before and the __text element. */
.feature-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28, 18, 10, 0.32), rgba(28, 18, 10, 0.5));
}
.feature-band__text {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  padding: 0 1.5rem;
  margin: 0;
  color: #fdf7ec;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

/* ---------- Panel: passage of text with generous margin ---------- */
.passage {
  max-width: 42rem;
  margin: clamp(3rem, 6vw, 4.5rem) auto;
  padding: 0 1.25rem;
}
.passage p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.1rem;
  text-indent: 1.5em;
}
.passage p:last-child { margin-bottom: 0; }

/* Don't indent centered passages (mantra, closing links) — indent on centered text looks awkward */
.passage[style*="center"] p { text-indent: 0; }
/* The eyebrow label itself shouldn't be indented (it's a mini heading, not body copy) */
.passage .section-eyebrow { text-indent: 0; }
/* Utility: opt out of the first-line indent on specific paragraphs (addresses, attributions, metadata) */
.passage p.plain, .passage .plain p { text-indent: 0; }

/* ---------- Sub-page title + intro pattern ---------- */
.page-title {
  text-align: center;
  margin: clamp(2.75rem, 6vw, 4rem) 1.25rem 0.75rem;
  font-family: var(--font-serif);
  font-weight: 500;
}
.page-intro {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.pull-quote {
  max-width: 38rem;
  margin: clamp(3.5rem, 7vw, 5rem) auto;
  padding: 0 1.25rem;
  text-align: center;
}
.pull-quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  line-height: 1.45;
  color: var(--color-primary-dark);
  margin: 0 0 0.75rem;
  letter-spacing: 0.005em;
}
.pull-quote cite {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-muted);
}

/* ---------- Ornament (small dharmachakra or thin rule) ---------- */
.ornament {
  display: flex;
  justify-content: center;
  margin: 3rem auto;
}
.ornament svg { width: 22px; height: 22px; color: var(--color-accent); opacity: 0.75; }
.ornament--rule {
  max-width: 3rem;
  margin: 3rem auto;
  border: 0;
  border-top: 1px solid var(--color-accent);
  opacity: 0.5;
}

/* ---------- Notice (kept quiet) ---------- */
.notice {
  background: transparent;
  border: 0;
  border-left: 2px solid var(--color-accent);
  padding: 0.25rem 0 0.25rem 1rem;
  margin: 1.5rem 0;
  color: var(--color-muted);
  font-style: italic;
  font-size: 0.98rem;
}
.notice strong { color: var(--color-primary-dark); font-style: normal; font-weight: 600; }

/* ---------- Sections ---------- */
main { padding: 0; }
section { margin-bottom: 0; }

.section-heading {
  font-family: var(--font-serif);
  font-weight: 500;
  margin-bottom: 1.25rem;
  text-align: center;
}
.section-eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--color-muted);
  text-align: center;
  margin: 0 0 0.5rem;
}

.lede { font-size: 1.12rem; color: var(--color-muted); line-height: 1.7; }

.mantra {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--color-primary-dark);
  text-align: center;
  padding: 0;
  margin: 1.5rem 0 0;
  letter-spacing: 0.02em;
}

/* ---------- Schedule events (public) ---------- */
.event-list {
  max-width: 42rem;
  margin: clamp(2rem, 5vw, 3rem) auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 1.5rem;
}
.event {
  border-left: 2px solid var(--color-accent);
  padding: 0.15rem 0 0.15rem 1.25rem;
}
.event__when {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin: 0 0 0.25rem;
}
.event__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--color-primary-dark);
  margin: 0 0 0.35rem;
}
.event__loc {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 0 0 0.4rem;
}
.event__desc { margin: 0; }

/* ---------- Cards (teachers, sister centres) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); margin-bottom: 0.75rem; }
.card__link { font-weight: 600; font-size: 0.95rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-grid a { display: block; }
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.gallery-grid a:hover img { opacity: 0.9; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(20, 12, 6, 0.92);
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.75rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}
.lightbox__close:hover { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--color-primary-dark); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn--ghost:hover { background: var(--color-primary); color: #fff; }

/* ---------- Contact info block ---------- */
.contact-block {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-block p { margin-bottom: 0.5rem; }
.contact-block strong { color: var(--color-primary-dark); }

/* ---------- Form ---------- */
form.contact-form { display: grid; gap: 1rem; max-width: 36rem; }
.form-field { display: grid; gap: 0.35rem; }
.form-field label { font-size: 0.9rem; font-weight: 600; color: var(--color-text); }
.form-field input, .form-field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-card);
  color: var(--color-text);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(138, 31, 31, 0.12);
}
.form-field textarea { min-height: 8rem; resize: vertical; }

/* Honeypot: hidden from people, visible to naive bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  background: #fbeaea;
  border: 1px solid #e6c3c3;
  color: #7a1a1a;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  margin: 0 0 0.85rem;
  max-width: 36rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: #f4e5c9;
  padding: 2.5rem 1.25rem 2rem;
  margin-top: 4rem;
}
.site-footer a { color: #f4e5c9; }
.site-footer a:hover { color: #fff; }
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.site-footer h4 { color: #fff; margin-top: 0; margin-bottom: 0.5rem; }
.site-footer__bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(244, 229, 201, 0.2);
  font-size: 0.85rem;
  color: #d4c29e;
  text-align: center;
}

/* Utility */
.hidden { display: none; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
