/* Envision Yoga - site stylesheet
   Design tokens sampled from the live Squarespace site 2026-07-03:
   PT Serif everywhere, periwinkle base, navy text, teal accents, pill buttons,
   arch-cropped photos, circular testimonial portraits.
   2026-07-04 rhythm pass: consistent fluid spacing scale, compact interior-page
   heroes (.hero--page), tightened section padding and gaps. */

:root {
  --periwinkle: #b8bbff;
  --navy: #24334c;
  --teal: #43d1d6;
  --teal-soft: #6dcfd4;
  --cream: #fdf4e7;
  --cream-card: #fbf3e6;
  --orange: #ebaa6e;
  --white: #ffffff;
  --max: 1360px;
  /* vertical rhythm */
  --space-section: clamp(52px, 7vw, 80px);
  --space-block: clamp(28px, 4vw, 44px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PT Serif", Georgia, serif;
  color: var(--navy);
  background: var(--periwinkle);
  font-size: 18px;
  line-height: 1.6;
}

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

a { color: var(--navy); }

h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0.04em;
  margin: 0 0 0.45em;
  text-wrap: balance;   /* no single-word orphan lines in headings */
}

h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.45rem, 2.8vw, 1.9rem); }
h4 { font-size: 1.3rem; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

/* ---------- header ---------- */
.site-header { background: var(--periwinkle); padding: 18px 0; }
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; margin-left: auto; }
.nav a { text-decoration: none; font-size: 1.04rem; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.btn {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--navy);
  border: 0;
  border-radius: 300px;
  padding: 24px 68px;   /* long pill buttons, like the live Squarespace design */
  font-family: inherit;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--small { padding: 13px 28px; font-size: 0.98rem; }

/* ---------- sections ---------- */
.section { padding: var(--space-section) 0; }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2 { color: var(--teal); }
.section--teal { background: var(--teal-soft); }
.section--cream { background: var(--cream); }
.section--orange { background: var(--orange); }
.section--periwinkle { background: var(--periwinkle); }
.center { text-align: center; }

/* homepage hero keeps the drama; interior pages get a compact title band */
.hero { padding: clamp(64px, 9vh, 104px) 0 clamp(64px, 9vh, 104px); text-align: center; }
.hero--page { padding: clamp(36px, 5vh, 56px) 0 clamp(32px, 5vh, 52px); }
.hero h1 { max-width: 1000px; margin-left: auto; margin-right: auto; }
.hero p.sub {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  max-width: 760px;
  margin: 0 auto 34px;
}
.hero--page p.sub { margin-bottom: 24px; }
.hero--page p.sub:last-child { margin-bottom: 0; }
.hero .cta-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ---------- images ----------
   Feature images are height-capped and cropped (object-fit) so no photo can
   dominate a screen, whatever its source aspect ratio. */
.arch {
  border-radius: 400px 400px 0 0;                  /* Squarespace-style arch crop */
  width: 100%;
  max-height: clamp(360px, 46vw, 540px);
  object-fit: cover;
  object-position: center 30%;                      /* keep faces, crop floors */
}
.rounded {
  border-radius: 24px;
  width: 100%;
  max-height: clamp(280px, 36vw, 440px);
  object-fit: cover;
}
.grid-2 img:not(.arch):not(.rounded) {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  border-radius: 24px;
}

/* ---------- cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.t-card {
  background: var(--teal-soft);
  color: var(--navy);
  padding: 36px 30px 30px;
  text-align: center;
  font-size: 1.06rem;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.t-card .avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  background: rgba(36,51,76,0.08);
}
.t-card p { margin: 0; }
.t-card .who { margin-top: 18px; font-size: 0.96rem; }

.class-card {
  background: var(--cream-card);
  padding: clamp(28px, 4vw, 42px) clamp(24px, 3.5vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 24px;
}
.class-card h3 { margin-bottom: 0; }
.class-card .when { font-size: 1.3rem; margin: 0; }
.class-card p { margin: 0; }
.class-card h4 { margin: 10px 0 2px; }
.class-card ul { margin: 0; padding-left: 20px; }

.date-links { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.date-links a {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  border-radius: 300px;
  padding: 11px 22px;
  font-size: 0.98rem;
}
.date-links a:hover { background: var(--teal); color: var(--navy); }

/* ---------- forms ---------- */
.form-card {
  background: var(--cream);
  padding: clamp(32px, 5vw, 46px) clamp(26px, 4vw, 44px);
  max-width: 660px;
  margin: 0 auto;
  border-radius: 24px;
}
.form-card label { display: block; margin: 18px 0 2px; font-size: 1rem; }
.form-card input, .form-card textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--navy);
  background: transparent;
  padding: 9px 2px;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--navy);
}
.form-card input:focus, .form-card textarea:focus { outline: none; border-bottom-width: 2px; }
.form-card .btn { width: 100%; margin-top: 28px; }

.mail-form { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.mail-form input[type="email"] {
  background: var(--white);
  border: 0;
  padding: 17px 22px;
  font-family: inherit;
  font-size: 1.02rem;
  min-width: 300px;
}

/* ---------- FAQ ---------- */
details {
  border-bottom: 1px solid rgba(36, 51, 76, 0.25);
  padding: 17px 0;
}
details summary {
  cursor: pointer;
  font-size: 1.22rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
details[open] summary { margin-bottom: 10px; }
details p { margin-bottom: 0.8em; }
details summary::marker { color: var(--teal-soft); }
details summary:hover { opacity: 0.8; }

/* ---------- blog ---------- */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-bottom: 1px solid rgba(36, 51, 76, 0.25); padding: 22px 0; }
.post-list a { text-decoration: none; font-size: 1.35rem; letter-spacing: 0.02em; line-height: 1.3; }
.post-list a:hover { text-decoration: underline; text-underline-offset: 5px; }
.post-list .date { font-size: 0.9rem; opacity: 0.75; margin-top: 5px; }

.post-body { max-width: 780px; margin: 0 auto; }
.post-body h2, .post-body h3 { margin-top: 1.5em; }
.post-body > :first-child, .post-body > p:first-child + h2 { margin-top: 0; }
.post-body img { margin: 26px 0; border-radius: 16px; }
.post-body ul li, .post-body ol li { margin-bottom: 0.45em; }
.post-body blockquote {
  border-left: 4px solid var(--teal-soft);
  margin: 26px 0;
  padding: 4px 0 4px 22px;
  font-style: italic;
}
.post-body hr { border: 0; border-top: 1px solid rgba(36,51,76,0.25); margin: 36px 0; }
.post-body a { text-underline-offset: 3px; }

.post-cta {
  margin-top: 52px;
  background: var(--cream-card);
  padding: 36px 30px;
  text-align: center;
  border-radius: 24px;
}
.post-cta .btn { margin: 6px; padding: 20px 44px; }

/* ---------- embeds ---------- */
.embed-frame { width: 100%; border: 0; }
.quiz-frame { height: 760px; max-width: 900px; margin: 0 auto; display: block; background: transparent; }

/* ---------- footer ---------- */
.site-footer { background: var(--periwinkle); padding: 52px 0 36px; }
.site-footer .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
.site-footer .brand { font-size: 2rem; text-decoration: underline; text-underline-offset: 7px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 16px; }
.site-footer nav a { font-size: 0.98rem; }
.site-footer .meta { font-size: 0.96rem; text-align: right; }
.site-footer .meta p { margin-bottom: 0.5em; }
@media (max-width: 700px) { .site-footer .meta { text-align: left; } }

.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }
.photo-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }

.notice { font-size: 0.92rem; opacity: 0.8; }

/* ---------- small touches ---------- */
::selection { background: var(--teal); color: var(--navy); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 0 0 12px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--navy a:focus-visible { outline-color: var(--teal); }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero p.sub, .hero .cta-row {
    animation: rise 0.7s ease both;
  }
  .hero p.sub { animation-delay: 0.12s; }
  .hero .cta-row { animation-delay: 0.24s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .wrap { padding: 0 22px; }
  .site-header .wrap { justify-content: center; }
  .nav { margin-left: 0; justify-content: center; gap: 18px; }
  .btn { padding: 20px 44px; }
  .mail-form input[type="email"] { min-width: 0; width: 100%; }
  .mail-form { flex-direction: column; align-items: stretch; }
  .quiz-frame { height: 720px; }
  .site-footer .brand { font-size: 1.7rem; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .hero .cta-row .btn { width: 100%; }
  .date-links a { padding: 10px 18px; }
}
