/* ============================================================
   Still Water — yoga studio
   Palette: all-navy dusk + acid lime accent
   ============================================================ */

:root {
  --bg: #0e1a2b;
  --bg-2: #122238;
  --surface: #16273f;
  --ink: #eaeef7;
  --ink-soft: #a9b6cc;
  --ink-faint: #7d8ca6;
  --accent: #ccff33;
  --accent-ink: #0e1a2b;
  --line: rgba(234, 238, 247, 0.14);
  --line-strong: rgba(234, 238, 247, 0.28);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);

  --step--1: clamp(0.8rem, 0.76rem + 0.2vw, 0.9rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.4rem);
  --step-3: clamp(2.2rem, 1.6rem + 3vw, 4rem);
  --step-4: clamp(3rem, 1.6rem + 7vw, 8rem);

  --pad: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1180px;
  --radius: 14px;
}

/* Light mode — same composition, daylight temperature. */
html[data-theme="light"] {
  --bg: #f4f1ea;
  --bg-2: #ece7dc;
  --surface: #ffffff;
  --ink: #16233a;
  --ink-soft: #4a5872;
  --ink-faint: #6b7891;
  --accent: #4f7a00;
  --accent-ink: #f7fbf0;
  --line: rgba(22, 35, 58, 0.14);
  --line-strong: rgba(22, 35, 58, 0.3);
  --shadow: 0 24px 60px -34px rgba(22, 35, 58, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Diagonal stripe band running under the whole page. */
body::before {
  content: "";
  position: fixed;
  inset: -20% -20%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    15deg,
    transparent 42%,
    color-mix(in srgb, var(--accent) 9%, transparent) 42%,
    color-mix(in srgb, var(--accent) 9%, transparent) 58%,
    transparent 58%
  );
}

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

h1, h2, h3, .wordmark, .eyebrow, .btn, .t, .site-foot__name {
  font-family: "Instrument Sans", "Helvetica Neue", sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}

a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 1;
}

/* Placeholder text the owner replaces — obviously a fill-in. */
.ph {
  color: var(--ink-faint);
  border-bottom: 1px dashed var(--line-strong);
  font-style: italic;
}
a.ph { text-decoration: none; }

.eyebrow {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: var(--step-3);
  font-weight: 500;
  max-width: 22ch;
  margin-bottom: 1.25rem;
}

.section-lede {
  max-width: 58ch;
  color: var(--ink-soft);
  margin: 0 0 3rem;
}

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: var(--step-1);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.wordmark:hover { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 1.4rem;
  font-family: "Instrument Sans", sans-serif;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
}
.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--accent); }

.theme-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: "Instrument Sans", sans-serif;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 720px) {
  .site-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(4rem, 14vh, 9rem) var(--pad) 0;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: -8% 0 -8%;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(0.7) contrast(1.05);
  will-change: transform;
}
html[data-theme="light"] .hero__media img { opacity: 0.22; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--bg) 55%, transparent) 0%,
    color-mix(in srgb, var(--bg) 78%, transparent) 55%,
    var(--bg) 100%
  );
}

.hero__inner {
  max-width: var(--maxw);
  width: 100%;
  margin-inline: auto;
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 400;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

/* Breathing width axis on the headline. */
@keyframes breathe {
  0%, 100% { font-variation-settings: 'wdth' 78; }
  50%      { font-variation-settings: 'wdth' 112; }
}
.breathe {
  font-variation-settings: 'wdth' 88;
  animation: breathe 9s ease-in-out infinite;
}

.hero__lede {
  max-width: 46ch;
  font-size: var(--step-1);
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); color: var(--accent-ink); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Signature: frequency bars ---------- */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 64px;
  max-width: var(--maxw);
  width: 100%;
  margin: 3rem auto 0;
  padding-bottom: 1.5rem;
}
.bars span {
  flex: 1 1 0;
  min-width: 2px;
  background: var(--accent);
  opacity: 0.75;
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scaleY(0.18); }
  50%      { transform: scaleY(1); }
}

/* ---------- Intro ---------- */
.intro { padding: clamp(4rem, 10vw, 8rem) 0; position: relative; z-index: 1; }

.intro__cols {
  display: grid;
  gap: 1.5rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 900px;
}
.intro__cols p { margin: 0; color: var(--ink-soft); }
.intro__cols p:first-child { color: var(--ink); font-size: var(--step-1); }

/* ---------- Full-bleed gallery ---------- */
.gallery { position: relative; z-index: 1; }

.gallery__item { margin: 0; position: relative; overflow: hidden; }
.gallery__item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery__item--full img { aspect-ratio: 16 / 9; }
.gallery__item:hover img { transform: scale(1.03); }

.gallery__item figcaption {
  font-family: "Instrument Sans", sans-serif;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  padding: 0.9rem var(--pad) 0;
}

.gallery__pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.gallery__pair .gallery__item img { aspect-ratio: 4 / 3; }
.gallery__pair .gallery__item figcaption { padding-bottom: 2.5rem; }

@media (min-width: 800px) {
  .gallery__pair { grid-template-columns: 1fr 1fr; }
  .gallery__pair .gallery__item img { aspect-ratio: 3 / 4; }
}

/* ---------- Schedule ---------- */
.schedule {
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative;
  z-index: 1;
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  border-block: 1px solid var(--line);
}

.sched-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.sched-day {
  background: var(--bg);
  padding: 1.5rem 1.4rem;
}
.sched-day h3 {
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
}
.sched-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.sched-day li {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.1rem 0.6rem;
  align-items: baseline;
}
.sched-day .t {
  font-family: "Instrument Sans", sans-serif;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}
.sched-day .n { font-size: var(--step-0); }
.sched-day .l {
  grid-column: 2;
  font-size: var(--step--1);
  color: var(--ink-faint);
  font-family: "Instrument Sans", sans-serif;
}
.sched-day--rest .n { color: var(--ink-faint); }

.sched-note {
  margin: 2.5rem 0 0;
  max-width: 62ch;
  color: var(--ink-soft);
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent);
}
.sched-note strong { color: var(--ink); }

/* ---------- Prices ---------- */
.prices { padding: clamp(4rem, 10vw, 8rem) 0; position: relative; z-index: 1; }

.price-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.price-card h3 {
  font-size: var(--step-1);
  font-weight: 500;
}
.price-card--feature { border-color: var(--accent); }
.price-card--feature h3 { color: var(--accent); }

.price {
  font-family: "Instrument Sans", sans-serif;
  font-size: var(--step-2);
  font-weight: 500;
  margin: 0;
}
.price-note { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }

.price-notes {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.9rem;
  max-width: 70ch;
  color: var(--ink-soft);
}
.price-notes p { margin: 0; }
.price-notes strong { color: var(--ink); }

/* ---------- Practice ---------- */
.practice {
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative;
  z-index: 1;
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  border-block: 1px solid var(--line);
}

.practice-grid {
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.practice-item h3 {
  font-size: var(--step-1);
  font-weight: 500;
  margin-bottom: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.practice-item p { margin: 0; color: var(--ink-soft); }

/* ---------- Visit ---------- */
.visit { padding: clamp(4rem, 10vw, 8rem) 0; position: relative; z-index: 1; }

.visit__cols {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 3.5rem;
}
.visit__block h3 {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.visit__block p { margin: 0 0 0.4rem; color: var(--ink-soft); }

/* ---------- Contact form ---------- */
.contact {
  max-width: 620px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}
.contact h3 { font-size: var(--step-2); font-weight: 500; margin-bottom: 0.6rem; }
.contact__lede { margin: 0 0 1.75rem; color: var(--ink-soft); }

.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label {
  font-family: "Instrument Sans", sans-serif;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: inherit;
  font-size: var(--step-0);
  resize: vertical;
}
.field input:focus,
.field textarea:focus { border-color: var(--accent); }

.form-status {
  margin: 1rem 0 0;
  font-family: "Instrument Sans", sans-serif;
  font-size: var(--step--1);
  color: var(--accent);
}

/* ---------- Footer ---------- */
.site-foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 3rem 0 4.5rem;
  background: color-mix(in srgb, var(--bg-2) 80%, transparent);
}
.site-foot__inner { display: grid; gap: 0.3rem; }
.site-foot__name { font-size: var(--step-1); font-weight: 600; }
.site-foot__line { margin: 0; color: var(--ink-faint); font-size: var(--step--1); }
.site-foot .attribution {
  position: static;
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  opacity: 1;
  color: var(--ink-faint);
}
.site-foot .attribution a { color: var(--ink-faint); text-decoration: underline; }
.site-foot .attribution a:hover { color: var(--accent); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .breathe { animation: none; font-variation-settings: 'wdth' 88; }
  .bars span { animation: none; transform: scaleY(0.35); }
  .gallery__item img,
  .price-card,
  .btn { transition: none; }
  .gallery__item:hover img { transform: none; }
  .price-card:hover { transform: none; }
  .btn:hover { transform: none; }
}
