:root {
  --ground: #F6EFE4;
  --sand: #EFE5D4;
  --clay: #D9CDB5;
  --line: #C9BBA0;
  --ink: #2E2A23;
  --ink-soft: #4F483C;
  --ink-mute: #5E574B;
  --eyebrow: #6B5B3E;
  --sage: #4A583B;
  --sun: #D9A23A;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: #6B4A12; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow); }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -.01em; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; }
.muted { color: var(--ink-soft); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font: inherit; font-weight: 600; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #E3B356; color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--ground); }
.btn-light { background: var(--ground); color: var(--ink); }

/* header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand span { font-family: var(--serif); font-size: 34px; line-height: 1; letter-spacing: -0.015em; padding-top: 6px; }
@media (max-width: 480px) { .brand span { font-size: 28px; } .brand .logo { width: 63px; height: 40px; } }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 12px 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { min-height: 44px; padding: 0 20px; background: var(--ink); color: var(--ground); margin-left: 4px; }
.nav .btn:hover { background: #4A4337; color: var(--ground); }

/* hero */
.hero { padding: 40px 0 96px; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 440px; min-width: 0; max-width: 820px; padding: 40px 0; }
.hero .hero-title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -.02em; }
.hero .hero-title em { font-style: italic; }
.hero .hero-kicker { margin: 0 0 20px; font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; color: var(--eyebrow); }
.hero-lead { margin: 28px 0 0; max-width: 34rem; font-size: 19px; color: var(--ink-soft); }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.cred { margin: 32px 0 0; font-size: 14px; color: var(--ink-mute); display: flex; align-items: center; gap: 12px; }
.hero-photo { flex: 1 1 380px; min-width: 0; max-width: 520px; margin-inline: auto; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 240px 240px 24px 24px; background: var(--clay); }

/* sections */
.band { background: var(--sand); padding: 96px 0; }
.section { padding: 96px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.section-head > div { flex: 1 1 420px; min-width: 0; }
.section-head > p { flex: 1 1 320px; min-width: 0; margin: 0; color: var(--ink-soft); }

.class-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.class-card { background: var(--ground); border-radius: 20px; padding: 32px 28px; }
.class-card h3 { font-weight: 400; font-size: 1.6rem; margin-bottom: 12px; }
.class-card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.facts { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.facts > div { flex: 1 1 260px; min-width: 0; border-top: 1.5px solid var(--ink); padding-top: 16px; }
.facts p { margin: 0; }
.facts p + p { margin-top: 4px; color: var(--ink-soft); }

.corp { background: var(--sage); color: var(--ground); border-radius: 28px; padding: 56px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.corp > div { flex: 1 1 480px; min-width: 0; }
.corp .eyebrow { color: #F2E9D6; }
.corp h2 { margin-bottom: 16px; font-size: clamp(2rem, 4vw, 2.5rem); }
.corp p { margin: 0; max-width: 36rem; color: #F6EFE4; }

.about { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.about-photo { flex: 1 1 340px; min-width: 0; max-width: 460px; }
.about-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; background: var(--clay); }
.about-text { flex: 1 1 480px; min-width: 0; max-width: 820px; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin: 0 0 16px; color: var(--ink-soft); }
.trainings { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; font-size: 15px; }
.trainings li { padding-top: 12px; border-top: 1px solid var(--line); }

.quote { max-width: 820px; margin: 0 auto; text-align: center; padding: 0 24px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.35; }
.quote figcaption { margin-top: 20px; color: var(--ink-mute); font-size: 15px; }

.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > .main { flex: 999 1 560px; min-width: 0; }
.split > .side { flex: 1 1 340px; min-width: 0; }

.post-list { display: flex; flex-direction: column; margin: 32px 0 0; padding: 0; list-style: none; }
.post-list a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 20px 0; border-top: 1px solid var(--line); text-decoration: none; }
.post-list li:last-child a { border-bottom: 1px solid var(--line); }
.post-list .t { font-family: var(--serif); font-size: 1.35rem; }
.post-list time { font-size: 14px; color: var(--ink-mute); white-space: nowrap; }

.pod { background: var(--ink); color: var(--ground); border-radius: 28px; padding: 40px 36px; }
.pod .eyebrow { color: #E2C98F; }
.pod h2 { font-size: 2.25rem; margin-bottom: 12px; }
.pod p { margin: 0 0 28px; color: #E3DCCD; font-size: 16px; }
.pod ul { margin: 0 0 32px; padding: 0; list-style: none; font-size: 16px; }
.pod li { padding: 12px 0; border-top: 1px solid #5A5244; }
.pod li:last-child { border-bottom: 1px solid #5A5244; }
.pod-links { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost-light { border-color: #F6EFE4; color: #F6EFE4; background: transparent; }
.btn-ghost-light:hover { background: #F6EFE4; color: var(--ink); }

/* skeleton / states */
.skel { display: block; background: #E6DAC4; animation: sh 1.4s ease-in-out infinite alternate; border-radius: 8px; }
@keyframes sh { from { opacity: 1; } to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } html { scroll-behavior: auto; } }
.state { padding: 32px 0; color: var(--ink-soft); }
.state.error { color: #8A3B1E; }

/* blog index */
.blog-hero { padding: 40px 0 56px; }
.blog-hero h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); line-height: 1.1; }
.blog-hero p { max-width: 36rem; margin: 16px 0 0; color: var(--ink-soft); font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px 28px; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.card:hover .card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.card .card-title { font-weight: 400; font-size: 1.5rem; line-height: 1.25; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card time { font-size: 14px; color: var(--ink-mute); }
.more { display: flex; justify-content: center; margin-top: 56px; }
/* reserve room for content that loads after the first paint (no layout shift) */
#grid { min-height: 100vh; }
#grid:has(> .state) { min-height: 0; }
#post { min-height: 100vh; }
#latest { min-height: 320px; }

/* post */
.post-head { max-width: 760px; margin: 0 auto; padding: 32px 24px 40px; }
.post-head h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); line-height: 1.12; letter-spacing: -.02em; }
.post-meta { margin-top: 20px; color: var(--ink-mute); font-size: 15px; }
.post-cover { max-width: 1000px; margin: 0 auto 48px; padding: 0 24px; }
.post-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 560px; object-fit: cover; border-radius: 24px; background: var(--clay); }
@media (max-width: 640px) { .post-cover img { max-height: 45vh; } }
.post-body { max-width: 700px; margin: 0 auto; padding: 0 24px 64px; font-size: 18px; line-height: 1.75; }
.post-body h2, .post-body h3, .post-body h4 { font-family: var(--serif); font-weight: 400; margin: 1.8em 0 .5em; line-height: 1.25; }
.post-body h2 { font-size: 1.9rem; } .post-body h3 { font-size: 1.5rem; } .post-body h4 { font-size: 1.25rem; }
.post-body p { margin: 0 0 1.1em; }
.post-body ul, .post-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.post-body li { margin-bottom: .4em; }
.post-body li p { margin: 0; }
.post-body blockquote { margin: 1.5em 0; padding-left: 24px; border-left: 2px solid var(--sun); font-family: var(--serif); font-style: italic; font-size: 1.2em; }
.post-body img { border-radius: 16px; margin: 1.5em auto; height: auto; }
.post-body iframe { max-width: 100%; border: 0; border-radius: 16px; }
.post-body a { color: #6B4A12; }
.back { display: inline-block; margin-bottom: 24px; font-size: 15px; font-weight: 600; text-decoration: none; padding: 10px 0; }
.related { border-top: 1px solid var(--line); }

/* footer */
.site-footer { background: var(--sand); padding: 96px 0 40px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
.foot-top > div:first-child { flex: 1 1 480px; min-width: 0; }
.foot-top h2 { font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.1; margin-bottom: 16px; }
.foot-links { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.foot-links a { padding: 10px 0; overflow-wrap: anywhere; }
.foot-bottom { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink-mute); }

@media (max-width: 640px) {
  .corp { padding: 40px 28px; }
  .hero { padding-bottom: 64px; }
  .section, .band { padding: 72px 0; }
  .nav { gap: 0 18px; }
}
/* student reviews: auto-scrolling strip */
.testimonials { overflow: hidden; margin-top: 24px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.t-track { display: flex; width: max-content; animation: t-scroll 60s linear infinite; }
.testimonials:hover .t-track, .testimonials:focus-within .t-track, .testimonials:active .t-track { animation-play-state: paused; }
.t-card { flex: 0 0 340px; margin: 0 20px 0 0; background: var(--ground); border-radius: 20px; padding: 28px 28px 24px; display: flex; flex-direction: column; justify-content: space-between; }
.t-card blockquote { margin: 0; font-family: var(--serif); font-weight: 300; font-style: italic; font-size: 1.2rem; line-height: 1.45; }
.t-card figcaption { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--ink-mute); }
@keyframes t-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .t-track { animation: none; }
  .testimonials { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding: 0 24px; }
  .t-card[aria-hidden="true"] { display: none; }
}
@media (max-width: 640px) { .t-card { flex-basis: 280px; } }

/* mobile: sticky join button instead of the wrapped header button */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .nav .btn { display: none; }
  .nav { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 0 12px; font-size: 14.5px; }
  .mobile-cta { display: flex; align-items: center; justify-content: center; position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; min-height: 52px; border-radius: 999px; background: var(--ink); color: var(--ground); font-weight: 600; font-size: 16px; text-decoration: none; box-shadow: 0 8px 24px rgba(46, 42, 35, .22); transition: opacity .2s ease, transform .2s ease; }
  .mobile-cta:hover { color: var(--ground); }
  .mobile-cta.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
  body { padding-bottom: 84px; }
}

.post-video { margin: 0 0 1.5em; }
.post-video video { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 16px; background: var(--clay); }
.post-video figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-mute); }

/* service pages + FAQ */
.svc-hero { padding: 24px 0 80px; }
.svc-narrow { max-width: 880px; }
.svc-hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; }
.svc-hero .facts { margin-top: 48px; }
.crumbs { margin-bottom: 24px; font-size: 14px; color: var(--ink-mute); }
.crumbs a { color: var(--ink-mute); display: inline-block; padding: 10px 0; }
.svc-body { padding-bottom: 0; }
.svc-body h2:first-child { margin-top: 0; }
.post-body .note { background: var(--ground); border-left: 3px solid var(--sun); padding: 18px 22px; border-radius: 12px; margin: 1.5em 0 0; font-size: 16px; line-height: 1.6; }
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--sans); font-size: 24px; line-height: 1; color: var(--eyebrow); }
.faq details[open] summary::after { content: "−"; }
.faq-a { padding: 0 0 22px; max-width: 46rem; color: var(--ink-soft); }
.faq-a p { margin: 0; }
.faq-a a { color: #6B4A12; }
.faq-section { border-top: 1px solid var(--line); }
.class-card { display: flex; flex-direction: column; }
.class-more { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 15px; color: var(--ink); text-underline-offset: 4px; }
.corp-link { display: inline-block; margin-top: 16px; padding: 8px 0; font-weight: 600; color: #F6EFE4; text-underline-offset: 4px; }
.corp-link:hover { color: #FFFFFF; }
.svc-other { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.svc-other a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; }
.svc-other a:hover { border-color: var(--ink); color: var(--ink); }

/* legal pages, footer links, cookie banner */
.legal-hero { padding-bottom: 48px; }
.legal-body { padding-bottom: 0; }
.legal-body h2:first-child { margin-top: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { font-weight: 600; background: var(--ground); }
.legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.legal-links a { color: var(--ink-mute); padding: 6px 0; }
.cookie-link { background: none; border: 0; padding: 6px 0; font: inherit; color: var(--ink-mute); text-decoration: underline; cursor: pointer; }
.post-body .cookie-link { padding: 0; color: #6B4A12; }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; max-width: 560px; margin-left: auto; background: var(--ink); color: var(--ground); border-radius: 20px; padding: 20px 22px; box-shadow: 0 12px 32px rgba(46, 42, 35, .25); font-size: 15px; line-height: 1.5; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 14px; }
.cookie-banner a { color: #F2D58E; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { flex: 1 1 120px; min-height: 44px; border-color: var(--ground); color: var(--ground); }
.cookie-actions .btn:hover { background: var(--ground); color: var(--ink); }
@media (max-width: 760px) {
  .cookie-banner { left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); padding: 14px 16px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
  .cookie-banner p { margin-bottom: 10px; }
  .cookie-actions { flex-wrap: nowrap; gap: 8px; }
  .cookie-actions .btn { flex: 1 1 0; min-height: 40px; padding: 0 12px; font-size: 14px; }
}
