:root {
  --site-width: 430px;
  --page: #ffffff;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: rgba(255, 255, 255, 0.90);
  --ink: #444441;
  --ink-soft: #62615d;
  --line: rgba(68, 68, 65, 0.22);
  --field-line: rgba(68, 68, 65, 0.28);
  --placeholder: rgba(68, 68, 65, 0.45);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--page);
}
body {
  margin: 0;
  min-height: 100%;
  background: var(--page);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }

/* Keep the whole experience at a phone-like maximum width on larger screens.
   On smaller screens it simply shrinks to the viewport. White remains in the
   browser gutters when the viewport is wider than the site column. */
main,
.site-footer {
  width: min(100%, var(--site-width));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* The opening photograph fades back in as a washed-out fixed background only
   after the hero starts scrolling away. It stays the same width as the site. */
.site-background {
  position: fixed;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100vw, var(--site-width));
  transform: translateX(-50%) scale(1.015);
  pointer-events: none;
  opacity: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)),
    url("assets/yoga-photo.jpeg");
  background-size: cover;
  background-position: 50% center;
  background-repeat: no-repeat;
  filter: saturate(0.88) contrast(0.94);
  will-change: opacity;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 50%;
  width: min(100%, var(--site-width));
  height: 64px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(68, 68, 65, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-mark,
.site-menu a,
.section-signature,
.site-footer a {
  font-family: var(--sans);
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-mark { font-size: 13px; white-space: nowrap; }

.menu-toggle {
  position: relative;
  z-index: 102;
  width: 38px;
  height: 38px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 27px;
  height: 1px;
  margin: 6px auto;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-menu {
  position: fixed;
  z-index: 101;
  top: 58px;
  right: max(12px, calc((100vw - var(--site-width)) / 2 + 12px));
  width: 172px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 15px;
  padding: 17px 18px 18px;
  background: rgba(214, 214, 210, 0.46);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 22px rgba(55, 55, 52, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}
.site-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.site-menu a {
  width: 100%;
  font-size: 14px;
  text-align: right;
}
.site-menu a:hover,
.site-menu a:focus-visible,
.site-footer a:hover { opacity: 0.60; }

.page-section { scroll-margin-top: 64px; }

/* Opening screen: photo-first, at the same width as the menu/header. */
.hero-section {
  height: 100svh;
  min-height: 560px;
  padding: 64px 0 0;
  background: #fff;
}
.hero-inner {
  width: 100%;
  height: calc(100svh - 64px);
  min-height: 496px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
}
.photo-frame {
  position: relative;
  width: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #efefed;
}
.photo-mat {
  width: 100%;
  height: 100%;
}
.photo-mat img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.section-signature {
  margin: 0;
  font-size: 13px;
  text-align: center;
  line-height: 1.4;
}
.section-signature span { padding: 0 8px; }
.hero-signature {
  padding: 18px 12px 20px;
  background: #fff;
}

/* Remaining sections scroll over the faded photograph. */
.content-section {
  min-height: 100svh;
  padding: 86px 16px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
}
.panel {
  width: 100%;
  padding: 36px 26px 40px;
  background: var(--panel);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 10px 26px rgba(45, 45, 43, 0.07);
}
.panel h1,
.panel h2 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
}
.panel h1 { font-size: 31px; }
.panel h2 { font-size: 30px; }
.body-copy,
.retreat-copy,
.contact-intro {
  font-size: 16px;
  line-height: 1.72;
}
.body-copy p { margin: 0 0 20px; }
.body-copy p:last-child { margin-bottom: 0; }
.signoff {
  width: 64%;
  margin-left: auto !important;
  padding-top: 8px;
  text-align: left;
}
.signoff img {
  display: block;
  width: min(100%, 195px);
  height: auto;
}
.section-rule {
  height: 1px;
  margin: 46px 0;
  background: var(--line);
}
.newsletter-block h2 { margin-bottom: 22px; }
.content-section > .section-signature {
  margin-top: 24px;
  font-size: 13px;
}

.minimal-form { margin-top: 32px; }
.form-grid {
  display: grid;
  gap: 0;
}
.two-column { grid-template-columns: 1fr; }
.field { margin-bottom: 13px; }
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--field-line);
  border-radius: 0;
  outline: none;
  background: rgba(255, 255, 255, 0.24);
  color: var(--ink);
  font: 14px/1.4 var(--sans);
  letter-spacing: 0.01em;
  transition: border-color 150ms ease, background 150ms ease;
}
.field input { height: 50px; padding: 0 15px; }
.field textarea { min-height: 145px; padding: 15px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder {
  color: var(--placeholder);
  opacity: 1;
}
.field input:focus,
.field textarea:focus {
  border-color: rgba(68, 68, 65, 0.68);
  background: rgba(255, 255, 255, 0.56);
}
.minimal-form button {
  width: 100%;
  height: 48px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.24);
  color: var(--ink);
  font: 12px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.minimal-form button:hover,
.minimal-form button:focus-visible {
  background: var(--ink);
  color: #fff;
}
.minimal-form button:disabled { cursor: wait; opacity: 0.55; }
.form-status {
  min-height: 1.6em;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}
.form-status.success {
  padding: 15px 0 0;
  border-top: 1px solid var(--line);
}
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.site-footer {
  padding: 25px 24px 36px;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
}
.site-footer .footer-home {
  display: inline-block;
  margin-bottom: 13px;
}
.site-footer .photo-credit,
.site-footer .copyright {
  margin: 5px 0 0;
  font-family: var(--sans);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.06em;
}
.site-footer .photo-credit { margin-top: 2px; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-height: 620px) {
  .hero-signature { padding-block: 13px 15px; }
}

@media (max-width: 360px) {
  .site-header { padding-inline: 16px; }
  .content-section { padding-inline: 12px; }
  .panel { padding-inline: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


/* Dedicated menu-entry views. These pages open on a clear full-screen photo,
   then transition into the same image as a softly blurred background while
   the selected section scrolls over it. */
.dedicated-page {
  --dedicated-photo: url("assets/yoga-photo.jpeg");
  --dedicated-position: 50% 50%;
}
.about-page {
  --dedicated-photo: url("assets/anna-do-more-yoga-smile.jpeg");
  --dedicated-position: 50% 36%;
}
.retreats-page {
  --dedicated-photo: url("assets/anna-retreats.jpg");
  --dedicated-position: 50% 50%;
}
.contact-page {
  --dedicated-photo: url("assets/img_5501.jpg");
  /* Keep Anna's face centered in the narrow dedicated-page crop. */
  --dedicated-position: 55% 50%;
}

.dedicated-page .site-background {
  opacity: 0;
  transform: translateX(-50%) scale(1.08);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.50), rgba(255, 255, 255, 0.50)),
    var(--dedicated-photo);
  background-position: var(--dedicated-position);
  filter: blur(11px) saturate(0.88) contrast(0.94);
  transition: opacity 60ms linear;
}

.dedicated-page main { min-height: 200svh; }

.dedicated-hero {
  height: 100svh;
  min-height: 560px;
  padding-top: 64px;
  background: #fff;
  overflow: hidden;
}
.dedicated-photo-frame {
  width: 100%;
  height: calc(100svh - 64px);
  min-height: 496px;
  margin: 0;
  overflow: hidden;
  background: #efefed;
}
.dedicated-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--dedicated-position);
}

.dedicated-section {
  min-height: 100svh;
  padding-top: 92px;
  padding-bottom: 44px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}
.dedicated-page .panel {
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(45, 45, 43, 0.08);
}
.site-menu a[aria-current="page"] { opacity: 0.58; }

@media (max-height: 620px) {
  .dedicated-hero { min-height: 520px; }
  .dedicated-photo-frame { min-height: 456px; }
}


/* Confirmation pages */
.confirmation-section {
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
}
.confirmation-panel {
  width: 100%;
}
.confirmation-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
