:root { --dock-height: 0px; }
html { scroll-padding-block: calc(var(--bar-height) + 16px) 16px; }
:is(section, article, nav, header, details)[id] { scroll-margin-block: 0; }
:is(a, button, summary) { scroll-margin-block: 12px; }
.bar { position: sticky; top: 0; z-index: 50; }
.bar nav { gap: clamp(22px, 2.5vw, 44px); }
.nav-book { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 12px 18px; min-height: 48px; background: var(--ink); color: var(--paper); font-size: 17px; line-height: 1.3; }
.bar .nav-book:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.bar-mobile-contact, .mobile-dock { display: none; }
.skip-link { z-index: 100; }
.site-menu:not([open]) { display: none; }
.site-menu { width: min(480px, calc(100% - 24px)); max-height: calc(100svh - 32px); margin: auto; padding: 24px; border: 0; background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.site-menu::backdrop { background: rgba(var(--ink-rgb), .64); }
.menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid rgba(var(--ink-rgb), .25); }
.menu-close { display: flex; align-items: center; justify-content: end; gap: 10px; min-width: 90px; min-height: 44px; border: 0; background: none; font-size: 16px; cursor: pointer; }
.menu-close > span { font-size: 28px; line-height: 1; }
.site-menu nav { display: grid; gap: 8px; padding-block: 20px; }
.site-menu nav > a { display: block; padding-block: 8px; font: 400 clamp(30px, 8vw, 42px)/1.1 var(--font-display, Gambarino), Georgia, serif; }
.site-menu nav > a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.menu-contact { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 14px 12px; padding-top: 16px; border-top: 1px solid rgba(var(--ink-rgb), .25); }
.menu-contact > a { display: flex; align-items: center; min-height: 44px; font-size: 15px; }
.menu-contact > a:last-child { justify-content: end; }
.menu-contact .menu-book { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; background: var(--ink); color: var(--paper); font-size: 17px; }
html.menu-open { overflow: hidden; }

.action-icon { display: block; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.action-arrow svg.action-icon { width: 24px; height: 24px; }
.hero-cta-arrow svg.action-icon { width: 26px; height: 26px; }
.hero-cta-arrow { border-left: 0; }
.hero-link:hover .hero-cta-arrow svg, .retreat-cta:hover > .action-arrow, .yoga-book:hover .action-arrow { transform: none; }
.presence .line-link .action-arrow { width: 24px; height: 24px; }
.finale-arrow svg.action-icon { width: 30px; height: 30px; }
.offering > a { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.documents > a { grid-template-columns: 55px 1fr 24px; }
.hero-host-portrait, .top-menu-toggle, .top-menu-fallback { display: none; }
.bar { background: var(--paper); border-bottom: 0; }

@media (max-width: 1100px) and (min-width: 901px) {
  .bar { gap: 20px; padding-inline: 4vw; }
  .bar nav { gap: 20px; font-size: 17px; }
  .brand { font-size: 36px; }
  .brand span { display: none; }
  .nav-book { padding-inline: 14px; gap: 10px; font-size: 16px; }
}

@media (max-width: 900px) {
  :root { --dock-height: calc(68px + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-block: 16px calc(var(--dock-height) + 16px); }
  body { padding-bottom: 0; }
  .bar { position: relative; }
  .bar nav, .nav-book { display: none; }
  .top-menu-toggle, .top-menu-fallback { align-items: center; justify-content: end; gap: 12px; padding: 0; min-width: 80px; min-height: 44px; font: inherit; font-size: 16px; border: 0; background: none; color: var(--ink); cursor: pointer; }
  .top-menu-fallback, .navigation-ready .top-menu-toggle { display: flex; }
  .navigation-ready .top-menu-fallback { display: none; }
  .mobile-dock { visibility: hidden; pointer-events: none; display: grid; grid-template-columns: 52px 1fr 1.4fr; align-items: center; gap: 12px; position: fixed; z-index: 60; inset: auto 0 0; min-height: var(--dock-height); padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--paper); color: var(--ink); border-top: 1px solid rgba(var(--ink-rgb), .25); }
  .dock-visible .mobile-dock { visibility: visible; pointer-events: auto; }
  .mobile-dock :is(a, button) { display: flex; align-items: center; justify-content: center; min-height: 50px; font-size: 16px; line-height: 1.25; }
  .mobile-dock .menu-toggle { display: none; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; font-size: 12px; cursor: pointer; }
  .navigation-ready .mobile-dock .menu-toggle { display: flex; }
  .navigation-ready .menu-fallback { display: none; }
  .menu-lines svg { display: block; width: 26px; height: 18px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
  .mobile-dock .dock-call { border-left: 1px solid rgba(var(--ink-rgb), .25); }
  .mobile-dock .dock-book { justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--ink); color: var(--paper); }
  .mobile-dock .dock-book .action-icon { width: 22px; height: 22px; }
  .opening-circle { height: calc(100svh - var(--bar-height)); }
  .finale-arrow svg.action-icon { width: 24px; height: 24px; }
}

@media (max-width: 640px) {
  :root { --bar-height: 64px; }
  .brand { flex-direction: row; align-items: baseline; gap: 8px; font-size: 32px; }
  .brand span { font-size: 11px; }
  .opening-bottom .hero-phone { display: none; }
  .opening-bottom { display: flex; justify-content: start; gap: 12px; margin-bottom: 14px; padding: 12px; border: 0; background: var(--paper); color: var(--ink); }
  .hero-host-portrait { display: block; flex: 0 0 44px; width: 44px; height: 48px; object-fit: cover; object-position: 50% 32%; border-radius: 50% 50% 0 0; }
  .hero-reassurance { text-align: left; font-size: 15px; line-height: 1.3; }
  .hero-reassurance > span { font-size: 12px; line-height: 1.4; margin-top: 4px; }
  .hero-reassurance { max-width: none; }
  .documents > a { grid-template-columns: 32px 1fr 24px; }
}

@media (max-width: 360px) {
  .mobile-dock { padding-inline: 12px; grid-template-columns: 44px 1fr 1.45fr; gap: 8px; }
  .mobile-dock .dock-book { padding-inline: 12px; }
  .bar .brand span { display: none; }
  .site-menu { padding: 18px; }
  .menu-heading { padding-bottom: 10px; }
  .site-menu nav { padding-block: 14px; gap: 4px; }
  .menu-contact { gap: 8px; padding-top: 12px; }
  .menu-contact > a { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-link:hover .hero-cta-arrow svg, .retreat-cta:hover > .action-arrow, .yoga-book:hover .action-arrow { transform: none; }
}

@media print {
  .mobile-dock, .site-menu, .bar { display: none; }
  body { padding-bottom: 0; }
}
