/* Breathwork Victoria
   Palette: cedar ground, moss and fern greens, lichen paper, bark rules.
   Type: Newsreader for display and reading, Karla for interface. */

:root {
  --cedar: #16231a;
  --cedar-soft: #1f3125;
  --moss: #5a7f52;
  --moss-deep: #46663f;
  --fern: #c9dbb8;
  --lichen: #e4e8dc;
  --lichen-deep: #d5dbca;
  --bark: #5c4a37;
  --ink: #1b2419;
  --ink-soft: #4b5647;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Karla", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --measure: 34rem;
  --focus: 0 0 0 3px var(--lichen), 0 0 0 5px var(--moss);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--lichen);
  background: var(--cedar);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: inherit; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

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

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem clamp(1.25rem, 4vw, 3rem);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.site-header.solid { background: var(--cedar); color: var(--lichen); }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  color: var(--lichen);
  white-space: nowrap;
}

.logo-mark { width: 34px; height: 34px; color: var(--lichen); display: block; flex: none; }

.site-header nav a { text-decoration: none; opacity: 0.85; white-space: nowrap; }
.site-header nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Landing ---------- */

.hero {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(143, 174, 124, 0.3), transparent 60%),
    linear-gradient(180deg, #2c4232 0%, #1f3125 45%, #16231a 100%);
}

.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 35, 26, 0.72) 0%, rgba(22, 35, 26, 0.45) 55%, rgba(22, 35, 26, 0.25) 100%),
    linear-gradient(180deg, rgba(22, 35, 26, 0.35) 0%, transparent 30%, rgba(22, 35, 26, 0.55) 100%);
}

.landing-main {
  min-height: calc(100vh - 170px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
  max-width: 78rem;
  margin: 0 auto;
}

.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
  max-width: 12ch;
  text-wrap: balance;
}

.hero-copy h1 em { font-style: italic; font-weight: 300; }

.hero-copy .lede {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  max-width: var(--measure);
  margin: 0 0 2.25rem;
  color: var(--fern);
}

.cta-row { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

.btn {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.75rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--fern); color: var(--cedar); border-color: var(--fern); }
.btn-primary:hover { background: #dbe8cc; }

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

.link-btn {
  font-family: var(--sans);
  font-size: 1rem;
  background: none;
  border: none;
  padding: 0.25rem 0;
  color: var(--lichen);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-color: rgba(228, 232, 220, 0.5);
}
.link-btn:hover { text-decoration-color: currentColor; }

/* The breathing ring: progress toward 100 signups */

.gauge-wrap { justify-self: center; display: grid; gap: 1.25rem; justify-items: center; }

.gauge {
  width: min(22rem, 70vw);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
}

.gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }

.gauge .track { fill: none; stroke: rgba(201, 219, 184, 0.28); stroke-width: 3; }
.gauge .progress {
  fill: none;
  stroke: var(--fern);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 552.92;
  stroke-dashoffset: 552.92;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-inner { text-align: center; position: relative; z-index: 1; }

.gauge-count {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
}

.gauge-goal {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--fern);
  display: block;
  margin-top: 0.4rem;
}

.gauge-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--fern);
  text-align: center;
  margin: 0;
  max-width: 22rem;
}

@media (prefers-reduced-motion: no-preference) {
  .gauge.breathing { animation: breathe 6s ease-in-out infinite; }
  @keyframes breathe {
    0%, 100% { transform: scale(1); }
    45% { transform: scale(1.035); }
    60% { transform: scale(1.035); }
  }
}

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

.site-footer {
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem) 1.75rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--fern);
}
.site-footer a { text-decoration: none; opacity: 0.85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer.solid { background: var(--cedar); }

/* ---------- Modals ---------- */

.modal-backdrop[hidden] { display: none; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 35, 26, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 10;
}

.modal {
  position: relative;
  background: var(--lichen);
  color: var(--ink);
  border-radius: 4px;
  padding: 2.25rem 2rem 2rem;
  width: min(26rem, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.modal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.modal-sub { margin: 0 0 1.5rem; color: var(--ink-soft); font-size: 1.05rem; }

.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 0.25rem 0.5rem;
}

.modal form { font-family: var(--sans); }

.modal form label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.modal form input[type="text"],
.modal form input[type="email"] {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  border: 1px solid #b9c2ad;
  border-radius: 2px;
  background: #f4f6ef;
  color: var(--ink);
}
.modal form input:focus-visible { border-color: var(--moss); }

.modal fieldset {
  border: none;
  padding: 0.85rem 0 0;
  margin: 0 0 1.1rem;
  border-top: 1px solid rgba(92, 74, 55, 0.25);
}

.check {
  font-weight: 400 !important;
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem !important;
}
.check input { accent-color: var(--moss); width: 1.05rem; height: 1.05rem; }

.optional { font-weight: 400; color: var(--ink-soft); }

.form-error { font-family: var(--sans); color: #8c3a2b; font-size: 0.95rem; margin: 0 0 0.75rem; }

#turnstileWidget { margin-bottom: 1rem; }
#turnstileWidget:empty { margin: 0; }

.modal .btn-primary { background: var(--moss); color: var(--lichen); border-color: var(--moss); }
.modal .btn-primary:hover { background: var(--moss-deep); }

.join-success h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin: 0 0 0.5rem; }
.join-success p { color: var(--ink-soft); margin: 0 0 1.25rem; }
.join-success .link-btn { color: var(--ink); text-decoration-color: rgba(27, 36, 25, 0.4); }

.share-choices { display: flex; gap: 0.75rem; }
.share-choices .btn { flex: 1; text-align: center; }
.modal .btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.modal .btn-secondary:hover { background: rgba(27, 36, 25, 0.06); }

/* ---------- About page ---------- */

.page { background: var(--lichen); color: var(--ink); }

.page-band {
  height: clamp(200px, 34vw, 440px);
  overflow: hidden;
  position: relative;
  background: var(--cedar-soft);
}
.page-band img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; display: block; }
.page-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 35, 26, 0.35), transparent 40%);
}

.article {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem) 5rem;
  display: grid;
  grid-template-columns: 13rem minmax(0, var(--measure));
  gap: clamp(2rem, 6vw, 6rem);
}

.article h1 {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 5.5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  max-width: 20ch;
  text-wrap: balance;
}

.article h1 em { font-style: italic; }

.section-rail {
  font-family: var(--sans);
  font-size: 0.95rem;
  position: sticky;
  top: 2rem;
  align-self: start;
}

.section-rail ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(92, 74, 55, 0.35); }
.section-rail li { border-bottom: 1px solid rgba(92, 74, 55, 0.2); }
.section-rail a {
  display: block;
  padding: 0.7rem 0;
  text-decoration: none;
  color: var(--ink-soft);
}
.section-rail a:hover { color: var(--ink); }

.article-body { font-size: 1.2rem; line-height: 1.6; }

.article-body section { padding: 0 0 2.75rem; }
.article-body section + section { border-top: 1px solid rgba(92, 74, 55, 0.25); padding-top: 2.25rem; }

.article-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.9rem;
}

.article-body p { margin: 0 0 1.1rem; }
.article-body p:last-child { margin-bottom: 0; }

.article-body .intro { font-size: 1.35rem; line-height: 1.5; }

.price-list { list-style: none; margin: 0.25rem 0 1rem; padding: 0; }
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(92, 74, 55, 0.2);
}
.price-list li:first-child { border-top: 1px solid rgba(92, 74, 55, 0.2); }
.price-list .price { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; white-space: nowrap; }
.price-list small { display: block; font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.15rem; }

.bring-list { margin: 0.25rem 0 1rem; padding-left: 1.2rem; }
.bring-list li { margin-bottom: 0.35rem; }
.bring-list li::marker { color: var(--moss); }

.note { font-size: 1rem; color: var(--ink-soft); line-height: 1.55; }

.faq-item { padding: 1.1rem 0; border-top: 1px solid rgba(92, 74, 55, 0.2); }
.faq-item:last-child { padding-bottom: 0; }
.faq-item h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; line-height: 1.3; margin: 0 0 0.4rem; }
.faq-item p { font-size: 1.08rem; margin: 0; }

.article-cta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.page .btn-primary { background: var(--moss); color: var(--lichen); border-color: var(--moss); }
.page .btn-primary:hover { background: var(--moss-deep); }
.page .link-btn { color: var(--ink); text-decoration-color: rgba(27, 36, 25, 0.4); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .landing-main { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 1rem; min-height: auto; }
  .hero-copy { order: 2; }
  .gauge-wrap { order: 1; }
  .gauge { width: min(15rem, 60vw); }
  .hero-copy h1 { max-width: none; }

  .article { grid-template-columns: 1fr; gap: 2rem; }
  .section-rail { position: static; }
  .section-rail ol { display: flex; flex-wrap: wrap; gap: 0 1.5rem; border-top: none; }
  .section-rail li { border-bottom: none; }
}

@media (max-width: 480px) {
  body { font-size: 1.05rem; }
  .site-header nav { font-size: 0.9rem; }
  .wordmark { font-size: 1.1rem; gap: 0.5rem; }
  .logo-mark { width: 28px; height: 28px; }
  .cta-row { gap: 1rem; }
  .modal { padding: 2rem 1.35rem 1.5rem; }
  .price-list .price { font-size: 1.35rem; }
}
