/* ============================================================
   Liberation Yoga — styles
   Palette lives in the :root tokens below. To warm/cool the
   whole site, change the tokens; nothing else references hex.
   ============================================================ */

:root {
  /* light (default) */
  --sand:        #F7EFE3;   /* page ground — golden-hour cream */
  --sand-2:      #EFE3D0;   /* panels, table stripes */
  --sand-3:      #E3D3BA;   /* rules, borders */
  --ink:         #3E332C;   /* warm umber text */
  --ink-soft:    #6F615A;   /* secondary text */
  --terracotta:  #C1705B;   /* primary accent */
  --terracotta-2:#A85A47;   /* hover / pressed */
  --amber:       #D4742E;   /* eyebrow, small highlights */
  --teal:        #137A6E;   /* secondary accent — links, Zoom tags */
  --teal-soft:   #D7E9E4;   /* teal tint fill */
  --plum:        #914F72;   /* rare: the book */
  --on-accent:   #FFF8EE;

  --shadow: 0 18px 40px -22px rgba(62, 51, 44, .35);
  --radius: 6px;
  --gutter: clamp(16px, 5vw, 48px);
  --measure: 62ch;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Karla", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sand:        #2A221E;
    --sand-2:      #342A25;
    --sand-3:      #4A3D36;
    --ink:         #F1E7D8;
    --ink-soft:    #BBA99A;
    --terracotta:  #D98A73;
    --terracotta-2:#E9A08A;
    --amber:       #E39A5E;
    --teal:        #4FB3A2;
    --teal-soft:   #1F3D38;
    --plum:        #B8789A;
    --on-accent:   #2A1E19;
    --shadow: 0 18px 40px -22px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --sand:        #2A221E;
  --sand-2:      #342A25;
  --sand-3:      #4A3D36;
  --ink:         #F1E7D8;
  --ink-soft:    #BBA99A;
  --terracotta:  #D98A73;
  --terracotta-2:#E9A08A;
  --amber:       #E39A5E;
  --teal:        #4FB3A2;
  --teal-soft:   #1F3D38;
  --plum:        #B8789A;
  --on-accent:   #2A1E19;
  --shadow: 0 18px 40px -22px rgba(0,0,0,.6);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 6.5vw, 4.6rem); font-variation-settings: "opsz" 144, "SOFT" 60; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-variation-settings: "opsz" 96, "SOFT" 50; }
h3 { font-size: 1.45rem; font-variation-settings: "opsz" 48; }
p { margin: 0; max-width: var(--measure); }
p + p { margin-top: 1em; }
em { font-family: var(--display); font-style: italic; font-size: 1.04em; }

.eyebrow {
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .9rem;
}
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.muted { color: var(--ink-soft); }

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
section + section { border-top: 1px solid var(--sand-3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body); font-weight: 700; font-size: .95rem;
  padding: .8rem 1.35rem; border-radius: 999px;
  background: var(--terracotta); color: var(--on-accent);
  text-decoration: none; border: 1px solid transparent; white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--terracotta-2); color: var(--on-accent); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--sand-3); }
.btn.ghost:hover { border-color: var(--terracotta); color: var(--terracotta); background: transparent; }
.btn.small { padding: .55rem 1rem; font-size: .85rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-3);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand { display: flex; align-items: baseline; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand strong { font-family: var(--display); font-weight: 500; font-size: 1.35rem; letter-spacing: -.01em; }
.brand span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--terracotta); }
.nav-toggle { display: none; background: none; border: 1px solid var(--sand-3); color: var(--ink); border-radius: 999px; padding: .5rem .9rem; font: inherit; font-size: .9rem; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0;
         background: var(--sand); border-bottom: 1px solid var(--sand-3); padding: .5rem var(--gutter) 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--sand-3); }
  .nav .btn { margin-top: .8rem; justify-content: center; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 1.4rem; }
.hero-copy h1 em { color: var(--terracotta); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.hero-note { font-size: .9rem; color: var(--ink-soft); }
.arch {
  position: relative;
  aspect-ratio: 4 / 5; max-width: 100%;
  border-radius: 999px 999px 18px 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--sand-2);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.arch::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(212,116,46,0) 60%, rgba(193,112,91,.28) 100%);
  pointer-events: none;
}
.arch-caption { margin-top: .9rem; font-size: .85rem; color: var(--ink-soft); text-align: center; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 340px; margin-inline: auto; }
}

/* ---------- press strip ---------- */
.press { padding-block: 1.6rem; border-top: 1px solid var(--sand-3); border-bottom: 1px solid var(--sand-3); background: var(--sand-2); }
.press .wrap { display: flex; flex-wrap: wrap; gap: .6rem 2.4rem; align-items: center; justify-content: center; }
.press span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.press b { font-family: var(--display); font-weight: 500; font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--ink); }

/* ---------- about ---------- */
.about .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about-photo { margin: 0; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-photo figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .7rem; }
.about-copy { display: flex; flex-direction: column; gap: 1.2rem; }
.about-copy h2 { margin-bottom: .2rem; }
details.story { margin-top: .4rem; border-top: 1px solid var(--sand-3); padding-top: 1rem; }
details.story summary { cursor: pointer; font-weight: 700; color: var(--teal); list-style: none; }
details.story summary::-webkit-details-marker { display: none; }
details.story summary::after { content: " ↓"; }
details.story[open] summary::after { content: " ↑"; }
details.story .story-body { display: flex; flex-direction: column; gap: 1em; margin-top: 1rem; color: var(--ink); }
.creds { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.creds li { list-style: none; font-size: .82rem; font-weight: 700; padding: .35rem .75rem; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }
.creds { padding: 0; margin: 0; }
@media (max-width: 820px) { .about .wrap { grid-template-columns: 1fr; } .about-photo { max-width: 420px; } }

/* ---------- schedule ---------- */
.schedule-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.schedule-head p { max-width: 48ch; }
.sched { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sand-3); }
.sched li {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 1rem 2rem; align-items: center;
  padding: 1.25rem 0; border-bottom: 1px solid var(--sand-3);
}
.sched .when { font-family: var(--display); font-size: 1.15rem; line-height: 1.25; }
.sched .when small { display: block; font-family: var(--body); font-size: .85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.sched .what h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.sched .what .blurb { font-size: .92rem; color: var(--ink-soft); margin: .2rem 0 .45rem; max-width: 52ch; }
.sched .what .blurb.note { color: var(--terracotta-2); font-weight: 500; }
.sched .meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .9rem; color: var(--ink-soft); align-items: center; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 4px; }
.tag.zoom { background: var(--teal-soft); color: var(--teal); }
.tag.person { background: color-mix(in srgb, var(--terracotta) 16%, transparent); color: var(--terracotta-2); }
.tag.hybrid { background: color-mix(in srgb, var(--plum) 16%, transparent); color: var(--plum); }
.sched .act { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.sched .price { font-size: .85rem; color: var(--ink-soft); text-align: right; }
@media (max-width: 720px) {
  .sched li { grid-template-columns: 1fr; gap: .6rem; }
  .sched .act { flex-direction: row; align-items: center; justify-content: space-between; }
  .sched .price { text-align: left; }
}

/* ---------- events ---------- */
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.event {
  display: flex; flex-direction: column; gap: .7rem;
  padding: 1.5rem; border-radius: var(--radius);
  background: var(--sand-2); border: 1px solid var(--sand-3);
}
.event .date { font-family: var(--display); font-size: 1.6rem; line-height: 1; color: var(--terracotta); }
.event .date small { display: block; font-family: var(--body); font-size: .85rem; color: var(--ink-soft); margin-top: .35rem; }
.event h3 { font-size: 1.3rem; }
.event p { font-size: .95rem; color: var(--ink); }
.event .meta { font-size: .88rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; }
.event .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .6rem; }
.event .price { font-weight: 700; }

/* ---------- offerings ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; margin-top: 2.5rem; }
.offer { display: flex; flex-direction: column; gap: .6rem; padding-top: 1.2rem; border-top: 2px solid var(--terracotta); }
.offer h3 { font-size: 1.35rem; }
.offer p { font-size: .98rem; }
.offer a { font-weight: 700; text-decoration: none; margin-top: .2rem; }
@media (max-width: 900px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .offer-grid { grid-template-columns: 1fr; } }

/* ---------- retreat band (full-bleed photo) ---------- */
.band {
  position: relative; background-size: cover; background-position: 50% 45%;
  padding-block: clamp(5rem, 14vw, 11rem); border-top: 0; color: var(--band-ink, #FFF8EE);
}
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40,28,22,.72) 0%, rgba(40,28,22,.45) 45%, rgba(40,28,22,.05) 100%); }
.band .wrap { position: relative; }
.band-copy { max-width: 34rem; display: flex; flex-direction: column; gap: 1rem; }
.band-copy .eyebrow { color: #F3C38F; }
.band-copy h2, .band-copy p { color: #FFF8EE; }
.band-copy .btn { align-self: flex-start; margin-top: .4rem; background: #FFF8EE; color: #3E332C; }
.band-copy .btn:hover { background: #fff; color: #3E332C; }
@media (max-width: 640px) { .band::before { background: rgba(40,28,22,.6); } }

/* ---------- SMHD feature ---------- */
.feature { background: var(--teal); color: var(--on-accent); }
:root[data-theme="dark"] .feature, .feature { --link: var(--on-accent); }
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature .eyebrow { color: color-mix(in srgb, var(--on-accent) 75%, transparent); }
.feature h2, .feature p { color: var(--on-accent); }
.feature ul { margin: 1rem 0 0; padding-left: 1.2rem; display: grid; gap: .45rem; font-size: .98rem; }
.feature .btn { background: var(--sand); color: var(--ink); margin-top: 1.4rem; }
.feature .btn:hover { background: var(--on-accent); color: var(--ink); }
.feature .quote { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; font-style: italic; border-left: 3px solid color-mix(in srgb, var(--on-accent) 45%, transparent); padding-left: 1.4rem; }
@media (max-width: 820px) { .feature .wrap { grid-template-columns: 1fr; } }

/* ---------- books ---------- */
.books-head { text-align: center; max-width: 48rem; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.books-head .eyebrow { margin-bottom: .3rem; }
.book-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  max-width: 820px; margin: 3rem auto 0;
}
.book { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.book .cover {
  height: 250px; display: block; border-radius: 2px 6px 6px 2px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s ease;
}
.book .cover img { height: 100%; width: auto; display: block; }
.book:hover .cover { transform: translateY(-4px); }
.book-title { font-family: var(--display); font-size: 1.15rem; line-height: 1.2; margin-top: .4rem; text-wrap: balance; min-height: 2.4em; }
.book-note { font-size: .82rem; color: var(--ink-soft); line-height: 1.4; max-width: 22ch; }
.book:hover .book-title { color: var(--terracotta); }
@media (max-width: 640px) {
  .book-grid { gap: 1rem; }
  .book .cover { height: 150px; }
  .book-title { font-size: .95rem; }
  .book-note { font-size: .75rem; }
}

/* ---------- podcast ---------- */
.podcast .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.podcast-art { display: block; width: 220px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease; }
.podcast-art img { width: 100%; height: auto; }
.podcast-art:hover { transform: translateY(-4px); }
.podcast-copy { display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 640px) { .podcast .wrap { grid-template-columns: 1fr; } .podcast-art { width: 180px; } }

/* ---------- rates ---------- */
.rates-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.rates { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid var(--sand-3); }
.rates li { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1.5rem; padding: .85rem 0; border-bottom: 1px solid var(--sand-3); align-items: baseline; }
.rates .label { font-weight: 700; }
.rates .note { grid-column: 1; font-size: .88rem; color: var(--ink-soft); }
.rates .price { font-family: var(--display); font-size: 1.35rem; grid-row: 1 / span 2; align-self: center; font-variant-numeric: tabular-nums; }
.rates li:first-child .price { color: var(--terracotta); }
.fine { font-size: .88rem; color: var(--ink-soft); margin-top: 1rem; }
.bring { padding: 1.5rem; border-radius: var(--radius); background: var(--sand-2); border: 1px solid var(--sand-3); }
.bring h3 { margin-bottom: .6rem; }
.bring ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; font-size: .95rem; }
@media (max-width: 820px) { .rates-grid { grid-template-columns: 1fr; } }

/* ---------- kind words ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.quotes blockquote { margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.quotes blockquote p { font-family: var(--display); font-size: 1.3rem; line-height: 1.35; font-variation-settings: "opsz" 24; }
.quotes blockquote p::before { content: "“"; color: var(--terracotta); }
.quotes blockquote p::after { content: "”"; color: var(--terracotta); }
.quotes cite { font-style: normal; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 820px) { .quotes { grid-template-columns: 1fr; } }
/* a single quote pulled beside a section */
.quotes.one { grid-template-columns: minmax(0, 46rem); justify-content: center; margin-top: 2.5rem; text-align: center; }
.quotes.one blockquote { align-items: center; }

/* ---------- contact / newsletter ---------- */
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; object-position: 50% 35%; box-shadow: var(--shadow); margin-bottom: 1.4rem; }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .8rem; font-size: 1.05rem; }
.contact-list span { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.newsletter { padding: 1.75rem; border-radius: var(--radius); background: var(--sand-2); border: 1px solid var(--sand-3); }
.newsletter form { display: flex; gap: .6rem; margin-top: 1.2rem; flex-wrap: wrap; }
.newsletter input {
  flex: 1 1 200px; padding: .8rem 1rem; border-radius: 999px; border: 1px solid var(--sand-3);
  background: var(--sand); color: var(--ink); font: inherit; font-size: .95rem;
}
.newsletter label { font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 820px) { .contact .wrap { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--sand-3); padding-block: 2rem; font-size: .88rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer a { color: inherit; }

/* ---------- past retreat photos ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery figcaption { margin-top: .6rem; font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- demo banner (remove before launch) ---------- */
.demo-banner { background: var(--ink); color: var(--sand); font-size: .82rem; text-align: center; padding: .5rem var(--gutter); }
.demo-banner b { color: var(--amber); }
