:root {
  --pine: #22382d;
  --pine-deep: #17271f;
  --cream: #f4ede1;
  --paper: #fffdf8;
  --rust: #b0532a;
  --rust-dark: #8f4220;
  --ink: #1f2420;
  --muted: #5d665f;
  --line: #e4dac6;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--rust-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 650; line-height: 1.15; color: var(--pine-deep); margin: 0 0 .5em; }
h2 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn { display: inline-block; background: var(--rust); color: #fff; text-decoration: none; font: 600 1rem/1 var(--sans);
  padding: .85em 1.4em; border-radius: 999px; border: 0; cursor: pointer; }
.btn:hover { background: var(--rust-dark); }
.btn-small { padding: .6em 1.05em; font-size: .92rem; }
.btn-big { font-size: 1.1rem; padding: 1em 1.8em; }

/* --- top bar --- */
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 64px; padding-top: 6px; padding-bottom: 6px; }
.brand { margin-right: auto; display: block; }
.brand img { height: 78px; width: auto; }
@media (max-width: 420px) { .brand img { height: 66px; } }
.menu { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; justify-content: flex-end; }
.menu a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:not(.btn):hover, .menu a[aria-current] { border-bottom-color: var(--rust); }
.menu-btn { display: none; background: none; border: 0; font-size: 1.7rem; line-height: 1; color: var(--pine-deep); padding: 8px; cursor: pointer; }
@media (max-width: 980px) {
  .menu-btn { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
  .menu a[aria-current] { color: var(--rust-dark); border-bottom-color: var(--line); }
  .menu .btn { margin-top: 14px; text-align: center; }
}

/* --- hero --- */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; color: #fff;
  background: var(--pine) center/cover no-repeat; overflow: hidden; }
.hero-plain { background: linear-gradient(170deg, #3d5a4a 0%, var(--pine) 45%, var(--pine-deep) 100%); align-items: center; }
.hero-shade { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,18,13,.72) 0%, rgba(10,18,13,.45) 45%, rgba(10,18,13,.05) 80%),
              linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45) 100%); }
@media (max-width: 700px) { .hero-shade { background: linear-gradient(180deg, rgba(10,18,13,.2) 0%, rgba(10,18,13,.55) 45%, rgba(10,18,13,.8) 100%); } }
.hero h1, .hero-when, .hero-tag { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero-plain .hero-shade { display: none; }
.hero-in { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; width: 100%; }
.hero h1 { color: #fff; font-size: clamp(1.5rem, 6.2vw, 4.6rem); white-space: nowrap; margin-bottom: .3em; }
.hero-when { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .95rem; margin-bottom: 1em; color: #f4e3c8; }
.hero-tag { font-size: clamp(1.15rem, 2.6vw, 1.45rem); max-width: 34ch; margin-bottom: 1.6em; }
.ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 160px; }

/* --- home --- */
.intro { padding: 64px 0 40px; }
.intro h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.photos { padding: 0 0 56px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 6px; }
.strip figure, .gallery figure { margin: 0; scroll-snap-align: start; }
.ph { display: block; padding: 0; border: 0; background: var(--line); cursor: zoom-in; width: 100%; border-radius: 10px; overflow: hidden; }
.strip img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
figcaption { font-size: .9rem; color: var(--muted); padding-top: 6px; }
.notify { background: var(--cream); border-top: 1px solid var(--line); padding: 56px 0 60px; }
.notify-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.notify-form input, .notify-form textarea { flex: 1 1 220px; font: inherit; padding: .75em 1em; border: 1px solid #cfc3aa; border-radius: 10px; background: #fff; min-width: 0; }
.notify-form textarea { flex-basis: 100%; resize: vertical; }
.notify-form .btn { flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notify-msg { margin-top: 12px; font-weight: 600; color: var(--pine); min-height: 1.4em; }

/* --- inner pages --- */
.page-head { background: var(--pine); color: #fff; padding: 48px 0 40px; text-align: center; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin: 0; }
.page-body { padding: 44px 0 64px; }
.block { margin-top: 36px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 28px 0 12px; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.updates { list-style: none; padding: 0; margin: 28px 0 0; border-left: 3px solid var(--line); }
.updates li { padding: 0 0 28px 22px; position: relative; }
.updates li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--rust); }
.u-date { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .2em; }
.updates h2 { font-size: 1.35rem; }
.faqs { margin-top: 20px; }
.faqs details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faqs summary { cursor: pointer; font: 650 1.15rem/1.3 var(--serif); color: var(--pine-deep); padding: 14px 28px 14px 0; list-style: none; position: relative; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 1.5rem/1 var(--sans); color: var(--rust); }
.faqs details[open] summary::after { content: "–"; }
.contact-email { font: 650 1.35rem/1.3 var(--serif); }
.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 12px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.card img, .card-ph { aspect-ratio: 1; object-fit: cover; width: 100%; }
.card-ph { display: grid; place-items: center; background: var(--cream); font: 650 4rem var(--serif); color: var(--line); }
.card-body { padding: 18px 20px 6px; }
.card-body h2 { font-size: 1.35rem; margin-bottom: .2em; }
.card-sub { color: var(--rust-dark); font-weight: 600; font-size: .95rem; }
.class { border-bottom: 1px solid var(--line); padding: 22px 0 8px; }
.class h2 { font-size: 1.35rem; margin-bottom: .2em; }
.day { margin-top: 34px; }
.day h2 { font-size: 1.4rem; border-bottom: 2px solid var(--rust); padding-bottom: 6px; }
.sched { width: 100%; border-collapse: collapse; }
.sched th, .sched td { text-align: left; vertical-align: top; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sched th { width: 6.5em; padding-right: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.where { display: block; font-size: .9rem; color: var(--muted); }

/* --- footer --- */
.foot { background: var(--pine-deep); color: #d9e2d9; padding: 52px 0 0; margin-top: 0; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot h4 { color: #f4e3c8; font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 8px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-name { font: 650 1.45rem/1.15 var(--serif); color: #fff; margin-bottom: 12px; }
/* The logo's blue and brown need a light ground, so it sits on a cream panel in the dark footer. */
.foot-logo { display: inline-block; background: var(--paper); border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; }
.foot-logo img { width: 230px; max-width: 100%; height: auto; }
.foot-when { font-weight: 600; color: #f4e3c8; }
.foot-mission { font-size: .95rem; max-width: 34ch; }
.socials { display: flex; gap: 10px; }
.social { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); }
.social svg { width: 20px; height: 20px; fill: #fff; }
.foot-base { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 40px; padding-top: 18px; padding-bottom: 22px; font-size: .85rem; color: #9fb0a3; }
.foot .edit-link { color: #7f9384; font-size: .8rem; }
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand, .foot-connect { grid-column: 1 / -1; }
}
@media (max-width: 340px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* --- lightbox --- */
.lightbox { position: fixed; inset: 0; background: rgba(10,14,11,.94); z-index: 50; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 16px; }
.lightbox img { max-height: 82vh; max-width: 100%; object-fit: contain; border-radius: 6px; }
.lightbox p { color: #e8e2d4; margin: 12px 0 0; text-align: center; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.2rem; padding: 10px 16px; cursor: pointer; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* --- editor helpers shown on the live site --- */
.edit-pill { position: fixed; right: 16px; bottom: 16px; z-index: 30; background: var(--pine-deep); color: #fff; text-decoration: none;
  font-weight: 600; padding: 12px 18px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.hidden-note { position: fixed; left: 16px; bottom: 16px; right: 190px; z-index: 30; background: #fff3cd; color: #6b4e00; border: 1px solid #e9cf7d;
  padding: 10px 14px; border-radius: 10px; font-size: .9rem; max-width: 420px; }

/* --- password gate --- */
.gate { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(170deg, #3d5a4a, var(--pine-deep)); padding: 24px 16px; }
.gate-card { background: var(--paper); border-radius: 18px; padding: 32px 24px 26px; width: 100%; max-width: 440px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.gate-logo { width: 100%; max-width: 340px; height: auto; margin: 0 auto; }
.gate-card h1 { margin: 0 0 14px; }
.gate-tease { text-align: center; color: var(--rust-dark); font-weight: 600; letter-spacing: .03em; margin-bottom: 26px; }
.gate-join { border-top: 1px solid var(--line); padding-top: 22px; }
.gate-join h2 { font-size: 1.25rem; margin-bottom: .3em; }
.gate-join p { color: var(--muted); font-size: .98rem; margin-bottom: 0; }
.gate .notify-form { margin-top: 12px; }
.gate .notify-form .btn { width: 100%; }
.gate-pw { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
.gate-pw label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 8px; color: var(--muted); }
.gate-row { display: flex; gap: 8px; }
.gate-row input { flex: 1; min-width: 0; font: inherit; padding: .7em 1em; border: 1px solid #cfc3aa; border-radius: 10px; }
.gate-row .btn { padding: .7em 1.2em; background: var(--pine); }
.gate-row .btn:hover { background: var(--pine-deep); }
.gate-err { color: #a3261b; font-weight: 600; margin: 10px 0 0; }
.notify-msg.static { margin-top: 10px; }
.notify-done { margin-top: 14px; padding: 16px 18px; border-radius: 12px; background: #e3efe3; color: var(--pine-deep);
  border: 1px solid #b9d3b9; font-weight: 600; }

/* --- instructors: photo grid and one page each --- */
.people { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 22px; }
.person { display: block; color: inherit; text-decoration: none; }
.person-img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 12px; background: var(--cream); }
.person-pic { display: block; position: relative; border-radius: 12px; transition: transform .2s ease, box-shadow .2s ease; }
.person:hover .person-pic, .person:focus-visible .person-pic { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.14); }
/* class space tags: Limited space / Almost full / Full – waitlist */
.space-tag { display: inline-block; padding: 4px 11px; border-radius: 999px; font: 700 .78rem/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: #fff; background: #c08a1e; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.space-almost { background: var(--rust); }
.space-full { background: var(--pine-deep); }
.person-pic .space-tag { position: absolute; top: 10px; left: 10px; }
.face-pic { position: relative; display: block; }
.face-tag { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); white-space: nowrap; padding: 1px 6px; border-radius: 999px; font: 700 .58rem/1.3 var(--sans); letter-spacing: .03em; text-transform: uppercase; color: #fff; background: #c08a1e; }
.face-tag.space-almost { background: var(--rust); }
.face-tag.space-full { background: var(--pine-deep); }
.person-ph { display: grid; place-items: center; font: 650 4rem var(--serif); color: var(--line); }
.person-name { display: block; font: 650 1.2rem/1.2 var(--serif); color: var(--pine-deep); margin-top: 12px; }
.person:hover .person-name { color: var(--rust-dark); }
.person-focus { display: block; color: var(--muted); font-size: .95rem; margin-top: 3px; }
.people-hint { margin-top: 28px; font-size: .92rem; }
@media (max-width: 520px) {
  .people { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .person-name { font-size: 1.05rem; }
  .person-focus { font-size: .88rem; }
}
.crumb { margin: 0 0 10px; font-size: .95rem; }
.crumb a { color: #e9dfc8; text-decoration: none; }
.crumb a:hover { color: #fff; text-decoration: underline; }
.page-sub { color: #e9dfc8; margin: 8px 0 0; font-size: 1.1rem; }
.person-page { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px; align-items: start; }
.person-photo-wrap { position: sticky; top: 90px; }
.person-photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 14px; background: var(--cream); }
.person-photo-wrap .space-tag { position: absolute; top: 14px; left: 14px; font-size: .9rem; padding: 6px 14px; }
.person-text section + section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.person-text h2 { font-size: 1.6rem; }
.person-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 600; }
.person-nav a { text-decoration: none; }
.person-nav a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .person-page { grid-template-columns: 1fr; gap: 24px; }
  .person-photo-wrap { position: relative; top: auto; max-width: 420px; width: 100%; margin: 0 auto; }
  .person-nav { font-size: .92rem; }
}

.map-frame { position: relative; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 640px) { .map-frame { aspect-ratio: 16/9; } }
.map-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 8px; }
.btn-alt { background: var(--ink); }
.btn-alt:hover { background: #000; }
.contact-map { margin-top: 24px; font-weight: 600; }
#map { scroll-margin-top: 110px; }
/* About page: photos centred and a bit larger than the venue gallery. */
.gallery.about-photos { display: flex; flex-wrap: wrap; justify-content: center; }
.about-photos figure { width: 340px; max-width: 100%; }
.reg-go { text-align: center; margin: 40px 0 16px; }
.reg-first { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap;
  margin: 24px 0 32px; padding: 16px 20px; background: #fbf1e7; border: 1px solid #ecd2bb; border-left: 5px solid var(--rust);
  border-radius: 12px; color: var(--ink); text-decoration: none; line-height: 1.45; }
.reg-first strong { color: var(--rust-dark); }
.reg-first-go { flex: none; font-weight: 700; color: var(--rust); white-space: nowrap; }
.reg-first:hover { background: #f8e8d8; }
.reg-first:hover .reg-first-go { text-decoration: underline; }
#register-now { scroll-margin-top: 110px; }
.reg-note { color: var(--muted, #6b6b6b); font-size: .95rem; margin-top: 10px; }
/* Bullets and indents typed in the editor (see fmt in render.js). */
ul.bul { margin: 0 0 1em; padding-left: 1.4em; }
ul.bul li { margin: .2em 0; }
p.in1, li.in1 { margin-left: 1.5em; }
p.in2, li.in2 { margin-left: 3em; }
p.in3, li.in3 { margin-left: 4.5em; }
li.in1 { list-style-type: circle; }
li.in2, li.in3 { list-style-type: square; }
.sec-photo { margin: 16px 0 8px; }
.sec-photo img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); display: block; }
.sec-photo figcaption { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.block[id] { scroll-margin-top: 110px; }

/* --- go-live: home classes line, explore cards, instructor faces, register strip --- */
.classes-line { font-family: var(--serif); font-size: 1.12rem; line-height: 1.55; color: var(--pine); margin-top: 1.2em; }
.intro-go { text-align: center; margin: 30px 0 0; }
.explore { padding: 8px 0 56px; }
.explore-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 760px; margin: 0 auto; }
.explore-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 26px 56px 26px 26px;
  background: var(--pine); color: #fff; text-decoration: none; border-radius: 16px;
  box-shadow: 0 6px 18px rgba(23, 39, 31, .18); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.explore-card:hover { background: var(--pine-deep); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(23, 39, 31, .26); }
.explore-k { font: 600 .82rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #e9c9a8; }
.explore-t { font: 600 1.6rem/1.15 var(--serif); }
.explore-arrow { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: #e9c9a8; transition: right .15s ease; }
.explore-card:hover .explore-arrow { right: 18px; }
.faces { list-style: none; padding: 0; margin: 30px auto 0; max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 12px; }
.faces a { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 66px; text-decoration: none; color: var(--muted); font-size: .8rem; }
.faces img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--line); transition: transform .15s ease, box-shadow .15s ease; }
.faces a:hover img { transform: scale(1.08); box-shadow: 0 0 0 2px var(--rust); }
.faces a:hover { color: var(--rust); }
.reg-band { background: var(--cream); border-top: 1px solid var(--line); padding: 40px 0 44px; text-align: center; margin-top: 48px; }
.reg-band p { font-family: var(--serif); font-size: 1.2rem; color: var(--pine); margin: 0 0 18px; }
@media (max-width: 560px) {
  .explore-t { font-size: 1.4rem; }
  .faces a { width: 58px; }
  .faces img { width: 54px; height: 54px; }
}
