@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Karla:wght@400;500;700&display=swap');

:root {
  --ink: #2c2620;
  --cream: #faf6ee;
  --cream-2: #f2ead9;
  --saffron: #c76b1e;
  --saffron-dark: #a8541a;
  --indigo: #2a2f52;
  --indigo-deep: #1b1e38;
  --gold: #c99a3e;
  --line: rgba(44,38,32,0.12);
  --max: 980px;
}

* { box-sizing: border-box; }
figure { margin: 0; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Karla', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: var(--indigo-deep);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.35rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--saffron-dark); }
h4 { font-size: 1.15rem; color: var(--ink); font-style: italic; font-weight: 500; }

p { margin: 0 0 1.1em; }

a { color: var(--saffron-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* Header */
header.site {
  background: var(--indigo-deep);
  color: #efe9da;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: #f6efdd;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand strong { font-weight: 600; }
.brand span { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-family: 'Karla', sans-serif; }

nav.main { display: flex; align-items: center; gap: 1.6rem; }
nav.main a {
  color: #d8d2c2;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
nav.main a:hover, nav.main a.active {
  color: #fff;
  border-bottom-color: var(--gold);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #f6efdd;
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  nav.main {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--indigo-deep);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
    display: none;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  nav.main.open { display: flex; }
  nav.main a { width: 100%; padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--indigo-deep) 0%, var(--indigo) 60%, #33305a 100%);
  color: #f3ecdb;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}
.hero .eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.hero h1 { color: #fbf7ec; }
.hero p.lead {
  max-width: 640px;
  margin: 1.1rem auto 0;
  color: #d9d2bd;
  font-size: 1.08rem;
}
.hero.small { padding: 3rem 0 2.6rem; }

/* Content sections */
main { padding: 3.2rem 0 1rem; }
section.block { margin-bottom: 3rem; }

.divider {
  width: 70px;
  height: 2px;
  background: var(--gold);
  margin: 0.4rem auto 1.6rem;
}
.divider.left { margin: 0.4rem 0 1.6rem; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.8rem;
}

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

.activity-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}
.activity-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(27,30,56,0.1); text-decoration: none; }
.activity-card img { height: 170px; object-fit: cover; width: 100%; }
.activity-card .body { padding: 1.3rem 1.4rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.activity-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.activity-card p { color: var(--ink); font-size: 0.95rem; margin-bottom: 0; flex: 1; }
.activity-card .more { margin-top: 0.9rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--saffron-dark); font-weight: 700; }

.figure {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.figure img { width: 100%; }
.figure figcaption {
  font-size: 0.8rem;
  color: #6b6355;
  text-align: center;
  padding: 0.5rem 0.6rem 0;
  font-style: italic;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: center;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.two-col.reverse .text { order: 2; }
@media (max-width: 760px) { .two-col.reverse .text { order: unset; } }

.pull-quote {
  border-left: 3px solid var(--gold);
  padding: 0.2rem 0 0.2rem 1.4rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--indigo-deep);
  margin: 1.8rem 0;
}
.pull-quote cite { display: block; font-style: normal; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--saffron-dark); margin-top: 0.5rem; }

.schedule-box {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin: 1.4rem 0;
}
.schedule-box .when {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--indigo-deep);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.schedule-box ol, .schedule-box ul { margin: 0; padding-left: 1.2rem; }
.schedule-box li { margin-bottom: 0.3rem; }

table.calendar {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0 0.6rem;
}
table.calendar th {
  text-align: left;
  font-family: 'Karla', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b6355;
  border-bottom: 2px solid var(--line);
  padding: 0.5rem 0.7rem;
}
table.calendar td {
  padding: 0.75rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.calendar td.date {
  font-weight: 700;
  color: var(--indigo-deep);
  white-space: nowrap;
  width: 190px;
}
table.calendar tr:last-child td { border-bottom: none; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
}
.contact-card .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: #6b6355; margin-bottom: 0.35rem; }
.contact-card .value { font-size: 1.05rem; font-weight: 700; color: var(--indigo-deep); }
.contact-card .value a { color: inherit; }

.teacher-list { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); }
.teacher-list li { background: var(--cream-2); border-radius: 8px; padding: 1rem 1.2rem; }
.teacher-list strong { display: block; color: var(--indigo-deep); font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; }

.btn {
  display: inline-block;
  background: var(--saffron);
  color: #fff !important;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--saffron-dark); }
.btn.ghost {
  background: transparent;
  color: #f3ecdb !important;
  border: 1px solid rgba(243,236,219,0.5);
}
.btn.ghost:hover { background: rgba(255,255,255,0.08); }

.cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

.notice {
  background: var(--cream-2);
  border: 1px dashed var(--gold);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  color: #6b6355;
  font-style: italic;
}

.breadcrumb {
  font-size: 0.82rem;
  color: #8a8271;
  margin-bottom: 0.6rem;
}
.breadcrumb a { color: var(--saffron-dark); font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }

/* Footer */
footer.site {
  background: var(--indigo-deep);
  color: #cfc8b6;
  margin-top: 4rem;
  padding: 2.8rem 0 2rem;
}
footer.site .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
footer.site h4 { color: var(--gold); font-family: 'Karla', sans-serif; font-style: normal; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.08em; margin-bottom: 0.9rem; }
footer.site a { color: #cfc8b6; }
footer.site a:hover { color: #fff; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 0.5rem; font-size: 0.92rem; }
footer.site .bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.2rem; font-size: 0.8rem; color: #8b8571; text-align: center; }

@media (prefers-color-scheme: dark) {
  /* Site keeps a single warm-light theme by design; no separate dark mode. */
}

/* Lightbox */
main img, .figure img { cursor: zoom-in; }
.activity-card img { cursor: pointer; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 30, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  padding: 2rem;
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  background: none;
  border: none;
  color: #f3ecdb;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.6rem;
}
.lightbox-close:hover { color: var(--gold); }

/* Editable lists rendered from admin collections */
.event-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.6rem;
}
.event-card .event-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--saffron-dark);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.event-card h3 { margin-bottom: 0.5rem; }
.event-card p { margin-bottom: 0; color: var(--ink); font-size: 0.95rem; }
