/* ==========================================================================
   Alexandra's Dance School
   --------------------------------------------------------------------------
   Every colour is a --g-* token defined in the four ground blocks below, so
   all four palettes stay coherent. The only exception is the availability
   scale (OPEN / FEW / WAITLIST / CLOSED), which is deliberately constant
   across grounds because it carries meaning, not mood.

   Layout is two nested containers: .wrap (wide, for cards, photographs and
   grids) and .prose (narrow, for reading). .bleed escapes both.
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/cormorant-garamond-400.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/cormorant-garamond-600.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/cormorant-garamond-400-italic.woff2") format("woff2");
}

/* --- Ground tokens ------------------------------------------------------ */

:root[data-ground="cool"] { --g-bg:#FCFCFD; --g-ink:#2B2530; --g-soft:#635C6A; --g-line:#E7E5E9; --g-label:#9A93A0; --g-rule:#A9C3DA; --g-mark:#41697F; --g-surface:#FFFFFF; --g-wash:#F1F5F9; --g-tint:#E8F0F6; --g-accent-deep:#2F5163; --g-shadow-sm:0 1px 2px #2B25300F, 0 1px 3px #2B25300A; --g-shadow-lg:0 2px 4px #2B25300D, 0 14px 32px #2B253016; }

:root[data-ground="blush"] { --g-bg:#FDF8F8; --g-ink:#2E2530; --g-soft:#695C64; --g-line:#EEE2E4; --g-label:#A2919A; --g-rule:#DDA9B4; --g-mark:#8A4F5F; --g-surface:#FFFFFF; --g-wash:#FBF1F2; --g-tint:#F7E6EA; --g-accent-deep:#6E3A48; --g-shadow-sm:0 1px 2px #2E25300F, 0 1px 3px #2E25300A; --g-shadow-lg:0 2px 4px #2E25300D, 0 14px 32px #2E253016; }

:root[data-ground="lilac"] { --g-bg:#F8F6FA; --g-ink:#2A2333; --g-soft:#605868; --g-line:#E6E1EC; --g-label:#9990A4; --g-rule:#B9A6CC; --g-mark:#5F4A75; --g-surface:#FFFFFF; --g-wash:#F3EFF7; --g-tint:#EDE6F3; --g-accent-deep:#48355A; --g-shadow-sm:0 1px 2px #2A23330F, 0 1px 3px #2A23330A; --g-shadow-lg:0 2px 4px #2A23330D, 0 14px 32px #2A233316; }

:root[data-ground="blue"] { --g-bg:#F8FAFC; --g-ink:#252A30; --g-soft:#586068; --g-line:#E1E7EC; --g-label:#8D97A0; --g-rule:#A9C3DA; --g-mark:#3E6883; --g-surface:#FFFFFF; --g-wash:#F1F5F9; --g-tint:#E6EEF4; --g-accent-deep:#2C4E64; --g-shadow-sm:0 1px 2px #252A300F, 0 1px 3px #252A300A; --g-shadow-lg:0 2px 4px #252A300D, 0 14px 32px #252A3016; }

/* --- Reset & base ------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--g-bg);
  color: var(--g-ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.06rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* .bleed is 100vw, which overshoots by the scrollbar width — this clips that
     off. It must be `clip`, not `hidden`: `hidden` would make body a scroll
     container, and the sticky .site-header would then stick to body's
     scrollport (the whole document) instead of the viewport, i.e. not at all.
     `clip` does the same clipping without creating that container. */
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.7rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--g-mark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}
a:hover { color: var(--g-accent-deep); }

/* photo() stamps width/height attributes carrying the file's true size. Those
   map to the CSS width/height properties, and a specified height disables
   aspect-ratio. Every rule below that shapes a photograph with aspect-ratio
   depends on this height:auto to undo the attribute. */
img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid var(--g-mark);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--g-surface);
  color: var(--g-ink);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* --- Containers --------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.prose {
  max-width: 40rem;
  margin-inline: auto;
}

.prose-wide { max-width: 52rem; margin-inline: auto; }

.bleed {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* --- Header ------------------------------------------------------------- */

/* A playbill masthead: the name centred on its own line, a hairline rule, and
   the nav centred beneath it in letterspaced caps. It sticks, and once the
   page has scrolled past it header.js adds .is-condensed and it tightens in
   place — only padding, type size, opacity and shadow move, so the two rows
   never reflow into each other. With JS off it simply stays open. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--g-surface);
  border-bottom: 1px solid var(--g-line);
  padding-block: 1.5rem;
  transition: padding-block 0.28s ease, background-color 0.28s ease,
              box-shadow 0.28s ease, border-color 0.28s ease;
}

.site-header .inner {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  transition: gap 0.28s ease;
}

.school-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--g-ink);
  text-decoration: none;
  text-align: center;
  transition: color 0.18s ease, font-size 0.28s ease;
}
.school-name:hover { color: var(--g-mark); }

/* The rule between name and nav. A pseudo-element rather than a border on the
   nav so it can fade out on condense without the nav's own box shifting. */
.site-nav {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 0.5rem 2rem;
  flex-wrap: wrap;
  align-items: center;
  align-self: stretch;
  padding-top: 1.1rem;
  transition: padding-top 0.28s ease;
}

.site-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--g-line);
  transition: opacity 0.28s ease;
}

.site-nav a {
  color: var(--g-label);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding-block: 0.2rem;
  border-bottom: 1.5px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.site-nav a:hover { color: var(--g-ink); border-bottom-color: var(--g-rule); }
.site-nav a[aria-current="page"] { color: var(--g-ink); border-bottom-color: var(--g-rule); }

/* Condensed ------------------------------------------------------------- */

.header-sentinel { height: 0; }

.site-header.is-condensed {
  padding-block: 0.65rem;
  /* colour-mix keeps this on the ground tokens: the same surface, thinned so
     the blur has something to do, with an opaque fallback for browsers
     without backdrop-filter. */
  background: color-mix(in srgb, var(--g-surface) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--g-shadow-sm);
  border-bottom-color: transparent;
}

@supports not (backdrop-filter: blur(10px)) {
  .site-header.is-condensed { background: var(--g-surface); }
}

.site-header.is-condensed .inner { gap: 0.5rem; }
.site-header.is-condensed .school-name { font-size: 1.35rem; }
.site-header.is-condensed .site-nav { padding-top: 0.5rem; }
.site-header.is-condensed .site-nav::before { opacity: 0; }

/* Sticky header + the smooth scrolling on html: anchors must clear the bar.
   Sized for the condensed height, which is what an in-page jump lands under. */
html { scroll-padding-top: 5.5rem; }

@media (max-width: 640px) {
  .site-header { padding-block: 1.1rem; }
  .site-header .inner { gap: 0.8rem; }
  .school-name { font-size: 1.6rem; }
  .site-nav { gap: 0.4rem 1.1rem; padding-top: 0.8rem; }
  .site-nav a { font-size: 0.7rem; letter-spacing: 0.1em; }

  .site-header.is-condensed { padding-block: 0.5rem; }
  .site-header.is-condensed .inner { gap: 0.35rem; }
  .site-header.is-condensed .school-name { font-size: 1.15rem; }
  .site-header.is-condensed .site-nav { padding-top: 0.35rem; }

  html { scroll-padding-top: 6.5rem; }
}

/* --- Main --------------------------------------------------------------- */

.site-main { padding-bottom: 1rem; }

.section { margin-block: clamp(3rem, 6vw, 5rem); }
.section-tight { margin-block: clamp(2rem, 4vw, 3rem); }

.section-head { text-align: center; margin-bottom: 2.25rem; }
.section-head.left { text-align: left; }

.eyebrow {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g-label);
  margin-bottom: 0.85em;
}

.section-head h2 { margin-bottom: 0; }

.section-head .lede {
  color: var(--g-soft);
  max-width: 36rem;
  margin: 0.9em auto 0;
  font-size: 1.08rem;
}
.section-head.left .lede { margin-inline: 0; }

/* --- Ornament ----------------------------------------------------------- */

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: var(--g-rule);
  margin: 1.15rem auto 0;
  max-width: 15rem;
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.ornament svg { display: block; width: 1.6rem; height: 1.6rem; flex: none; }

.ornament-block {
  margin-block: clamp(2.5rem, 5vw, 4rem);
  max-width: 20rem;
}

/* --- Hero --------------------------------------------------------------- */

.hero { position: relative; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.hero-figure {
  margin-block: 0;
  overflow: hidden;
  background: var(--g-tint);
}

.hero-figure img {
  width: 100%;
  height: clamp(15rem, 46vw, 30rem);
  object-fit: cover;
  object-position: center 32%;
  display: block;
}

.hero-card {
  position: relative;
  max-width: 44rem;
  margin: -3.5rem auto 0;
  background: linear-gradient(to bottom, var(--g-surface), var(--g-wash));
  border: 1px solid var(--g-line);
  border-radius: 10px;
  box-shadow: var(--g-shadow-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
}

.hero-card h1 { margin-bottom: 0.3em; }

.hero-card .offer {
  color: var(--g-soft);
  font-size: 1.1rem;
  max-width: 32rem;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

@media (max-width: 640px) {
  .hero-card { margin-top: -2rem; border-radius: 8px; }
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  background: var(--g-mark);
  color: var(--g-surface);
  padding: 0.8em 2em;
  border: 1px solid var(--g-mark);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--g-shadow-sm);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover {
  background: var(--g-accent-deep);
  border-color: var(--g-accent-deep);
  color: var(--g-surface);
  transform: translateY(-1px);
}

.btn-quiet {
  background: transparent;
  color: var(--g-mark);
  border-color: var(--g-rule);
  box-shadow: none;
}
.btn-quiet:hover { background: var(--g-tint); color: var(--g-accent-deep); }

.btn-full { display: block; width: 100%; text-align: center; }

/* --- Cards -------------------------------------------------------------- */

.card {
  background: var(--g-surface);
  border: 1px solid var(--g-line);
  border-radius: 10px;
  padding: clamp(1.35rem, 3vw, 1.9rem);
  box-shadow: var(--g-shadow-sm);
}

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

/* --- Levels ------------------------------------------------------------- */

.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.75rem;
  max-width: 56rem;
  margin-inline: auto;
}

.level-card {
  background: var(--g-surface);
  border: 1px solid var(--g-line);
  border-radius: 10px;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--g-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.level-card:hover { transform: translateY(-3px); box-shadow: var(--g-shadow-lg); }

.level-disc {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--g-tint);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.9rem;
}

.level-card h3 { margin-bottom: 0.1em; }

.level-card .ages {
  color: var(--g-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9em;
}

.level-card .blurb { color: var(--g-soft); margin-bottom: 0; }

.level-card .cutoff {
  margin-top: 1em;
  padding-top: 0.9em;
  border-top: 1px solid var(--g-line);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--g-soft);
}

/* --- Split (asymmetric text + photograph) ------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}

.split-media { margin: 0; }

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.split-media.portrait img { aspect-ratio: 3 / 4; }

.split-body h2 { margin-bottom: 0.5em; }
.split-body p { color: var(--g-soft); }

.split.reverse .split-media { order: 2; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

/* A thin mat line offset from the photograph, like a print in a program. */
.matted {
  position: relative;
  border-radius: 8px;
}
.matted::after {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 1px solid var(--g-surface);
  border-radius: 4px;
  opacity: 0.55;
  pointer-events: none;
}

/* --- Photo band --------------------------------------------------------- */

.band { margin-block: clamp(3rem, 6vw, 5rem); background: var(--g-tint); }

.band figure { margin: 0; }

/* The photograph is 25% taller than the frame it shows through, and parallax.js
   slides it within that overhang as the band crosses the viewport. CSS centres
   it, which is the middle of the travel — so with JS off, blocked, or
   prefers-reduced-motion set, every band still shows the framing it was tuned
   for. The parallax is decoration on top of a layout that stands without it. */
.band-frame {
  position: relative;
  overflow: hidden;
  height: clamp(13rem, 32vw, 24rem);
}

/* Some photographs were shot with the subject hard against the top edge, so
   even focal-0 loses heads to the 25% overhang. A shallower band keeps the
   parallax but shortens its travel. parallax.js measures the overhang from
   offsetHeight, so it adapts on its own. */
.band-frame.shallow img { height: 110%; }

.band-frame img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 125%;
  object-fit: cover;
  display: block;
  transform: translate3d(0, -50%, 0);
}

/* Focal points, for any photograph whose frame is a harder crop than the
   photograph was shot for. object-fit: cover defaults to the centre, which is
   almost never where the faces are: the bands are a 3.75:1 letterbox at
   desktop over near-3:2 photographs, so a centred crop showed tutus and no
   heads on four of the five. Each number was measured against its own
   photograph — for a band, against the whole parallax travel, not just at
   rest — so re-measure it if that photograph is ever swapped out. */
img.focal-0 { object-position: center 0; }
img.focal-4 { object-position: center 4%; }
img.focal-10 { object-position: center 10%; }
img.focal-20 { object-position: center 20%; }
img.focal-50 { object-position: center 50%; }
img.focal-90 { object-position: center 90%; }

.band figcaption {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--g-soft);
  text-align: center;
  padding: 1rem 1.5rem;
}

/* --- Gallery ------------------------------------------------------------ */

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1.55fr;
  gap: 1rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 88%;
  border-radius: 8px;
  display: block;
  box-shadow: var(--g-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery img:hover { transform: scale(1.02); box-shadow: var(--g-shadow-lg); }

.gallery .wide { aspect-ratio: 1.55; object-position: center; }

@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .wide { grid-column: span 2; }
}

/* --- Staff preview banner ------------------------------------------------ */

/* Loud on purpose. Someone looking at another family's portal should never be
   in any doubt about whose it is, or that they are not that person. */
.staff-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding: clamp(0.9rem, 2vw, 1.2rem) clamp(1rem, 2.5vw, 1.5rem);
  background: var(--g-tint);
  border: 1px solid var(--g-rule);
  border-radius: 10px;
}

.staff-preview p { margin: 0; flex: 1 1 20rem; color: var(--g-ink); }

.staff-preview form { margin: 0; }

/* --- Portal: what is coming ---------------------------------------------- */

/* Deliberately quieter than a real feature card: no button, no border
   highlight, nothing that invites a click. A parent should read these and
   understand there is nothing to open yet. */
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
}

.upcoming-card {
  background: var(--g-wash);
  border: 1px dashed var(--g-line);
  border-radius: 10px;
  padding: clamp(1.35rem, 3vw, 1.8rem);
}

.upcoming-card h3 { margin: 0.25rem 0 0.6rem; }

.upcoming-card p { color: var(--g-soft); margin: 0 0 0.7rem; }

.upcoming-tag {
  display: inline-block;
  margin: 0 0 0.4rem;
  font-family: system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g-label);
  border: 1px solid var(--g-line);
  border-radius: 999px;
  padding: 0.2em 0.7em;
  background: var(--g-surface);
}

.upcoming-note {
  font-size: 0.92rem;
  border-top: 1px solid var(--g-line);
  padding-top: 0.7rem;
  margin-bottom: 0;
}

/* --- Portal tuition ------------------------------------------------------ */

.tuition-line {
  margin: 0 0 0.6rem;
  color: var(--g-soft);
}

.tuition-figure {
  font-size: 1.15rem;
  color: var(--g-ink);
}

.tuition-status {
  font-size: 0.92rem;
  color: var(--g-soft);
  border-top: 1px solid var(--g-line);
  padding-top: 0.7rem;
  margin-bottom: 0.4rem;
}

.tuition-pay {
  margin: 0 0 0.3rem;
}

.tuition-pay-form {
  margin: 0 0 0.3rem;
}

.tuition-pay-sub {
  font-size: 0.92rem;
  color: var(--g-soft);
  margin: 0;
}

/* --- Pay page checkout buttons ------------------------------------------- */

.pay-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.pay-button-form { margin: 0; }

/* --- Portal sign-out ----------------------------------------------------- */

.portal-signout {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.85rem;
  color: var(--g-label);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.linklike:hover { color: var(--g-mark); }

/* --- Calendar subscribe ------------------------------------------------- */

.calendar-subscribe {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.6rem, 3vw, 2.2rem);
  border-top: 1px solid var(--g-line);
  text-align: center;
}

.calendar-subscribe p {
  max-width: 34rem;
  margin: 0 auto 1.4rem;
  color: var(--g-soft);
}

.calendar-subscribe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* --- Testimonials ------------------------------------------------------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.5rem;
  align-items: start;
}

/* A figure, not a bare blockquote: the attribution is the caption for the
   quote, not part of what the family said. */
.testimonial {
  margin: 0;
  background: var(--g-surface);
  border: 1px solid var(--g-line);
  border-radius: 10px;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  box-shadow: var(--g-shadow-sm);
}

.testimonial blockquote { margin: 0; }

.testimonial p {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.08rem, 1rem + 0.3vw, 1.22rem);
  line-height: 1.55;
  color: var(--g-ink);
}

/* Curly quotes as decoration, so the marks are never selected or read out. */
.testimonial p::before,
.testimonial p::after {
  color: var(--g-rule);
  font-size: 1.15em;
  line-height: 0;
}
.testimonial p::before { content: "\201C"; }
.testimonial p::after { content: "\201D"; }

.testimonial figcaption {
  margin-top: 1.1em;
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--g-label);
}

/* --- Pull quote --------------------------------------------------------- */

.pullquote {
  position: relative;
  max-width: 34rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto;
  padding: 0 1rem;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.35rem, 1rem + 1.4vw, 1.85rem);
  line-height: 1.4;
  color: var(--g-ink);
}

.pullquote::before {
  content: "\201C";
  display: block;
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--g-rule);
  margin-bottom: 0.25em;
}

.pullquote cite {
  display: block;
  margin-top: 1em;
  font-style: normal;
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--g-label);
}

/* --- Drop cap ----------------------------------------------------------- */

.dropcap::first-letter {
  float: left;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 3.9em;
  line-height: 0.82;
  padding: 0.05em 0.11em 0 0;
  color: var(--g-mark);
}

/* --- Rule list (inside cards) -------------------------------------------- */

.rule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rule-list li {
  padding: 0.75em 0 0.75em 1.4em;
  position: relative;
  color: var(--g-soft);
}

.rule-list li + li { border-top: 1px solid var(--g-line); }

.rule-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45em;
  width: 0.7rem;
  height: 1px;
  background: var(--g-rule);
}

/* --- Why list ----------------------------------------------------------- */

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0 2.5rem;
  max-width: 52rem;
  margin-inline: auto;
}

.why-list li {
  padding: 0.85em 0 0.85em 1.9em;
  position: relative;
  border-bottom: 1px solid var(--g-line);
  color: var(--g-soft);
}

.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.55em;
  width: 0.85rem;
  height: 1px;
  background: var(--g-rule);
}

/* --- Class rows --------------------------------------------------------- */

.class-list {
  background: var(--g-surface);
  border: 1px solid var(--g-line);
  border-radius: 10px;
  box-shadow: var(--g-shadow-sm);
  overflow: hidden;
}

.class-row {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  align-items: center;
  gap: 0.35rem 1.25rem;
  padding: 1.15rem clamp(1.15rem, 3vw, 1.75rem);
  border-bottom: 1px solid var(--g-line);
}
.class-row:last-child { border-bottom: none; }

.class-row .time {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--g-ink);
}

.class-row .level {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.class-row .teacher {
  display: block;
  color: var(--g-soft);
  font-size: 0.92rem;
}

@media (max-width: 620px) {
  .class-row { grid-template-columns: 1fr auto; }
  .class-row .time { grid-column: 1 / -1; font-size: 0.9rem; color: var(--g-label); }
}

/* Availability — deliberately constant across all four grounds. */
.status-pill {
  display: inline-block;
  padding: 0.28em 0.75em;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.status-open { background: #E3F2E1; color: #3F6B44; }
.status-few, .status-few-spots { background: #FBE9D8; color: #8A5A21; }
.status-waitlist { background: #FBE9D8; color: #8A5A21; }
.status-closed { background: var(--g-line); color: #6B6B6B; }

/* --- Tuition tiers ------------------------------------------------------ */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.25rem;
  max-width: 54rem;
  margin-inline: auto;
}

.tier {
  background: var(--g-surface);
  border: 1px solid var(--g-line);
  border-radius: 10px;
  box-shadow: var(--g-shadow-sm);
  padding: 1.6rem 1.25rem;
  text-align: center;
}

.tier .tier-who {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g-label);
  margin-bottom: 0.7em;
}

.tier .tier-price {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--g-mark);
}

.tier .tier-unit {
  display: block;
  font-size: 0.88rem;
  color: var(--g-soft);
  margin-top: 0.5em;
}

.tier .tier-note {
  margin-top: 0.9em;
  padding-top: 0.8em;
  border-top: 1px solid var(--g-line);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--g-soft);
}

.cost-notes {
  max-width: 40rem;
  margin: 1.75rem auto 0;
  color: var(--g-soft);
  font-size: 0.98rem;
  text-align: center;
}

/* --- Fact list ---------------------------------------------------------- */

.fact-list {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7em 1.5rem;
  align-items: baseline;
}

.fact-list dt {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g-label);
  white-space: nowrap;
}

.fact-list dd { margin: 0; color: var(--g-ink); }

@media (max-width: 560px) {
  .fact-list { grid-template-columns: 1fr; gap: 0.15em; }
  .fact-list dd { margin-bottom: 0.9em; }
}

/* --- Calendar ----------------------------------------------------------- */

.month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.calendar-month {
  background: var(--g-surface);
  border: 1px solid var(--g-line);
  border-radius: 10px;
  box-shadow: var(--g-shadow-sm);
  padding: 1.5rem;
}

.calendar-month h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--g-line);
  color: var(--g-mark);
}

.calendar-entry {
  display: grid;
  grid-template-columns: 3.6rem 1fr;
  gap: 0.2rem 0.9rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--g-line);
}
.calendar-entry:last-child { border-bottom: none; }

.calendar-entry .date {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--g-mark);
  padding-top: 0.15em;
}

.calendar-entry .title { color: var(--g-ink); }

.calendar-entry .kind-label {
  grid-column: 2;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--g-label);
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.calendar-entry.no-class .date,
.calendar-entry.no-class .title { color: var(--g-label); }

.calendar-entry.highlight .title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
}

/* Upcoming strip (home page) */
.upcoming {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.25rem;
  max-width: 52rem;
  margin-inline: auto;
}

.upcoming .up-item {
  background: var(--g-surface);
  border: 1px solid var(--g-line);
  border-left: 3px solid var(--g-rule);
  border-radius: 8px;
  padding: 1.15rem 1.35rem;
  box-shadow: var(--g-shadow-sm);
}

.upcoming .up-date {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g-mark);
  margin-bottom: 0.45em;
}

.upcoming .up-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  display: block;
}

.upcoming .up-kind {
  display: block;
  margin-top: 0.4em;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g-label);
}

/* --- Staff -------------------------------------------------------------- */

.director {
  display: grid;
  grid-template-columns: minmax(0, 19rem) 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  background: linear-gradient(to bottom, var(--g-surface), var(--g-wash));
  border: 1px solid var(--g-line);
  border-radius: 12px;
  box-shadow: var(--g-shadow-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  max-width: 58rem;
  margin-inline: auto;
}

.director-photo { margin: 0; }

.director-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: var(--g-shadow-sm);
}

.director-role {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g-mark);
  margin-bottom: 0.7em;
}

.director h3 {
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem);
  margin-bottom: 0.35em;
}

.director p { color: var(--g-soft); }

@media (max-width: 760px) {
  .director { grid-template-columns: 1fr; text-align: center; }
  .director-photo { max-width: 15rem; margin-inline: auto; }
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
  max-width: 44rem;
  margin-inline: auto;
}

.teacher-card { text-align: center; }

.teacher-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: var(--g-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.teacher-card img:hover { transform: scale(1.02); box-shadow: var(--g-shadow-lg); }

.teacher-card h3 { font-size: 1.4rem; margin: 0.85em 0 0.1em; }

.teacher-card .teacher-role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g-label);
}

.teacher-card .teacher-bio {
  color: var(--g-soft);
  font-size: 0.95rem;
  margin-top: 0.75em;
}

/* --- Details / FAQ ------------------------------------------------------ */

.faq {
  max-width: 44rem;
  margin-inline: auto;
  border-top: 1px solid var(--g-line);
}

.faq details { border-bottom: 1px solid var(--g-line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--g-ink);
  transition: color 0.18s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--g-mark); }

.faq summary::after {
  content: "";
  position: absolute;
  right: 0.55rem;
  top: 1.65rem;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 1.5px solid var(--g-rule);
  border-bottom: 1.5px solid var(--g-rule);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.9rem; }

.faq .answer { padding: 0 0 1.4rem; color: var(--g-soft); }

/* --- Forms -------------------------------------------------------------- */

/* --- The parent portal form ----------------------------------------------
   These classes were written with the form and never styled, so the page 29
   families are about to be sent had no layout at all: rows did not become
   rows, cards did not become cards. Kept in the public palette, since this
   sits inside the ordinary site chrome rather than the admin. */

.family-form { max-width: 46rem; }

.subhead {
  margin: 2.2rem 0 0.8rem;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--g-ink);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0 1.2rem;
}

.release-card { background: var(--g-wash); }

.release-label,
.inline-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 0.6rem;
  cursor: pointer;
}
.release-label input,
.inline-check input { width: auto; margin-top: 0.28em; flex: none; }
.inline-check span,
.release-label span { color: var(--g-soft); }

.dancer-card { margin-top: 1rem; }

.dancer-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
}

.flag {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--g-accent-deep);
  border: 1px solid var(--g-rule);
  padding: 0.05rem 0.45rem;
  margin-left: 0.4rem;
}

.narrow { max-width: 46rem; }

.form-card {
  background: var(--g-surface);
  border: 1px solid var(--g-line);
  border-radius: 10px;
  box-shadow: var(--g-shadow-sm);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.form-group { margin-bottom: 1.15rem; }

.form-group label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g-label);
  margin-bottom: 0.45em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--g-ink);
  background: var(--g-bg);
  border: 1px solid var(--g-line);
  border-radius: 6px;
  padding: 0.7em 0.85em;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--g-rule);
  box-shadow: 0 0 0 3px var(--g-tint);
}

.form-group textarea { min-height: 9rem; resize: vertical; }

/* Honeypot — off-screen, never shown to a person. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile { margin-bottom: 1.15rem; }

.form-note {
  font-size: 0.88rem;
  color: var(--g-soft);
  margin-top: 1rem;
  margin-bottom: 0;
}

.form-success,
.form-error {
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

.form-success { background: #E3F2E1; color: #3F6B44; }
.form-error { background: #FBE9D8; color: #8A5A21; }

/* --- CTA ---------------------------------------------------------------- */

.cta {
  background: linear-gradient(to bottom, var(--g-surface), var(--g-wash));
  border: 1px solid var(--g-line);
  border-radius: 12px;
  box-shadow: var(--g-shadow-lg);
  text-align: center;
  padding: clamp(2rem, 5vw, 3.25rem) 1.5rem;
  max-width: 48rem;
  margin-inline: auto;
}

.cta h2 { margin-bottom: 0.3em; }
.cta p { color: var(--g-soft); max-width: 30rem; margin-inline: auto; }
.cta .btn { margin-top: 1.5rem; }

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--g-line);
  background: var(--g-surface);
  padding-block: 2.5rem 2rem;
  color: var(--g-soft);
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  font-family: system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--g-label);
  margin-bottom: 0.9em;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.4em; }
.footer-links a { color: var(--g-soft); text-decoration: none; }
.footer-links a:hover { color: var(--g-mark); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid var(--g-line);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.87rem;
  color: var(--g-label);
}

/* --- Utilities ---------------------------------------------------------- */

.center { text-align: center; }
.muted { color: var(--g-soft); }
.stack-lg > * + * { margin-top: 1.5rem; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* The masthead still condenses — it just snaps rather than easing, which is
     the point of the setting. Nothing above needs undoing beyond the blanket
     transition-duration, but say so explicitly so a later edit does not
     reintroduce an animation here by accident. */
  .site-header, .site-header .inner, .school-name,
  .site-nav, .site-nav::before { transition: none !important; }
}

/* --- /register ---------------------------------------------------------- */
.form-block { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
.form-block legend {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  color: var(--g-ink);
  margin-bottom: 0.75rem;
  padding: 0;
}
.form-block.deposit { border-top: 1px solid var(--g-line); padding-top: 1.5rem; margin-bottom: 0; }
.form-group select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--g-ink);
  background: var(--g-bg);
  border: 1px solid var(--g-line);
  border-radius: 6px;
  padding: 0.7em 0.85em;
}
.form-group select:focus { outline: none; border-color: var(--g-rule); box-shadow: 0 0 0 3px var(--g-tint); }
.deposit-total { font-size: 1.15rem; margin: 0.5rem 0 0.25rem; }
.add-dancer-row { margin: -0.5rem 0 1.75rem; }
.remove-dancer { margin-top: 0.25rem; }
.outcomes { padding-left: 1.2rem; }
.outcomes li { margin: 0.4rem 0; }
