:root {
  color-scheme: light;
  --page: #f8f8f6;
  --paper: #fcfcfb;
  --ink: #404a52;
  --heading: #3f4a52;
  --body: #55616a;
  --muted: #70808a;
  --quiet: #aebdc1;
  --line: #e3e8e6;
  --accent: #6f959d;
  --accent-strong: #4c7480;
  --accent-darker: #3f6671;
  --accent-soft: #dbe8e8;
  --link: #3f7882;
  --event-date: #d4a000;
  --white: #ffffff;
  --header-background: rgba(252, 252, 251, 0.96);
  --header-border: rgba(227, 232, 230, 0.9);
  --header-text: rgba(64, 74, 82, 0.72);
  --page-glow: rgba(255, 255, 255, 0.92);
  --section-background: rgba(255, 255, 255, 0.56);
  --instruction-background: rgba(246, 248, 246, 0.72);
  --portrait-start: rgba(255, 255, 255, 0.74);
  --portrait-end: rgba(237, 242, 240, 0.68);
  --portrait-glow: rgba(111, 149, 157, 0.18);
  --portrait-text: rgba(64, 74, 82, 0.52);
  --button-border: #668891;
  --button-secondary-background: rgba(255, 255, 255, 0.78);
  --modal-backdrop: rgba(35, 43, 46, 0.36);
  --modal-close-border: #9fb2b6;
  --footer-text: #64717a;
  --quote-text: #1f1b16;
  --quote-rule: #d4a000;
  --quote-reference: #8d6f35;
  --dot-core: rgba(86, 121, 129, 0.78);
  --dot-middle: rgba(111, 149, 157, 0.44);
  --dot-outer: rgba(111, 149, 157, 0.12);
  --dot-shadow: rgba(111, 149, 157, 0.16);
  --dot-glow: rgba(111, 149, 157, 0.14);
  --measure: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 18%, var(--page-glow), transparent 34rem),
    linear-gradient(180deg, var(--paper), var(--page));
  color: var(--ink);
  font-family: Avenir, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
iframe {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 4.25rem;
  border-bottom: 1px solid var(--header-border);
  background: var(--header-background);
  color: var(--header-text);
  padding: 0 max(1rem, calc((100% - var(--measure)) / 2));
}

.header-mark {
  display: inline-grid;
  grid-column: 1;
  width: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  justify-self: start;
  opacity: var(--header-dot-progress, 0);
  text-decoration: none;
  transform: scale(calc(0.44 + var(--header-dot-progress, 0) * 0.56));
  transition: opacity 120ms linear, transform 120ms linear;
}

.scroll-dot {
  width: 1.1rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, var(--dot-core) 0 18%, var(--dot-middle) 34%, var(--dot-outer) 62%, transparent 76%);
  box-shadow:
    0 0 0.34rem var(--dot-shadow),
    0 0 1.2rem var(--dot-glow);
  display: block;
  filter: blur(calc((1 - var(--header-dot-progress, 0)) * 1.2px));
}

.menu-toggle {
  display: none;
}

.menu-panel {
  display: contents;
}

.section-nav,
.language-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.section-nav {
  grid-column: 2;
  gap: clamp(0.75rem, 2vw, 1.35rem);
  justify-content: center;
}

.section-nav a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.section-nav a:hover,
.section-nav a:focus-visible,
.language-nav a:hover,
.language-nav a:focus-visible {
  color: var(--ink);
}

.language-nav a,
.language-nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
}

.language-nav a {
  text-decoration: none;
}

.language-nav span {
  color: var(--ink);
}

.language-nav {
  grid-column: 3;
  justify-self: end;
}

.hero {
  display: flex;
  align-items: center;
  min-height: 92svh;
  padding: 6rem 1rem 3rem;
}

.hero-inner {
  width: min(39rem, 100%);
  margin: 0 auto;
  text-align: center;
}

.mark {
  display: grid;
  place-items: center;
  width: min(12rem, 42vw);
  height: 6.125rem;
  margin: 0 auto -0.1rem;
}

.appearing-dot {
  width: 1.75rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, var(--dot-core) 0 18%, var(--dot-middle) 32%, var(--dot-outer) 58%, transparent 72%);
  box-shadow:
    0 0 0.4rem var(--dot-shadow),
    0 0 1.5rem var(--dot-glow);
  opacity: 0;
  filter: blur(0.3px);
  transform-origin: center;
  animation: appear-cessation 8.8s ease-in-out infinite;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.52rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5.15rem);
  font-weight: 400;
  line-height: 1;
}

.tagline {
  margin: 0 auto;
  color: var(--heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 3vw, 1.86rem);
  font-style: italic;
  line-height: 1.25;
}

.rule {
  width: min(30rem, 78vw);
  height: 1px;
  margin: 1.1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.meditation-lines {
  display: grid;
  gap: 1.7rem;
  margin: clamp(4rem, 10vh, 7rem) auto 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  line-height: 1.8;
}

.meditation-lines p {
  margin: 0;
}

.meditation-lines em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.enter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  min-height: 2.75rem;
  margin-top: clamp(3.5rem, 9vh, 6rem);
  color: var(--accent);
  text-decoration: none;
}

.enter-link span {
  font-size: 2.1rem;
  line-height: 1;
  transform: rotate(90deg);
}

.enter-link:hover,
.enter-link:focus-visible {
  color: var(--link);
}

.content-section {
  padding: clamp(4rem, 10vw, 8rem) 1rem;
  border-top: 1px solid var(--line);
  background: var(--section-background);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 7vw, 6rem);
  width: min(var(--measure), 100%);
  margin: 0 auto;
}

.kicker {
  margin-bottom: 1.1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h2 {
  max-width: 11em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 400;
  line-height: 1.08;
}

.prose {
  max-width: 42rem;
  color: var(--body);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}

.prose p {
  margin-bottom: 1.35rem;
}

.text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--link);
  text-underline-offset: 0.24em;
}

.teacher-section {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.teacher-grid {
  display: grid;
  grid-template-columns: minmax(20rem, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  width: min(var(--measure), 100%);
  margin: 0 auto;
}

.teacher-copy {
  max-width: 42rem;
  color: var(--body);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}

.teacher-copy p {
  margin-bottom: 1.35rem;
}

.teacher-name {
  max-width: 11em;
}

.teacher-name span {
  display: inline-block;
  margin: 0 0.08em;
  color: var(--link);
  font-family: Avenir, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.portrait-frame,
.portrait-placeholder {
  aspect-ratio: 1.05 / 1;
  min-height: 0;
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 39% 50%;
}

.portrait-placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, var(--portrait-start), var(--portrait-end)),
    radial-gradient(circle at 50% 42%, var(--portrait-glow), transparent 15rem);
  color: var(--portrait-text);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.instruction-section {
  background: var(--instruction-background);
  text-align: center;
}

.instruction-inner {
  width: min(34rem, 100%);
  margin: 0 auto;
}

.instruction-inner h2,
.events-inner h2 {
  max-width: none;
  margin-bottom: 1.45rem;
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
}

.instruction-inner p {
  margin-bottom: 2.3rem;
  color: var(--body);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.instruction-inner .button-row {
  justify-content: center;
  margin-top: 0;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 13.5rem;
  min-height: 2.8rem;
  border: 1px solid var(--button-border);
  background: transparent;
  color: var(--link);
  padding: 0.65rem 1.3rem;
  text-align: center;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button-link:hover,
.button-link:focus-visible {
  background: var(--accent-soft);
}

.button-link-secondary {
  border-color: var(--line);
  background: var(--button-secondary-background);
  color: var(--ink);
}

.button-link-secondary:hover,
.button-link-secondary:focus-visible {
  background: var(--white);
}

.events-section {
  background: var(--section-background);
}

.events-inner {
  width: min(64rem, 100%);
  margin: 0 auto;
}

.events-inner h2 {
  margin-bottom: clamp(3.2rem, 7vw, 5.2rem);
  text-align: center;
}

.event-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.8rem, 6vw, 4.8rem) clamp(3rem, 8vw, 6rem);
}

.event-item {
  border-top: 1px solid var(--line);
  padding-top: 0;
  padding-top: 1.25rem;
}

.event-item h3 {
  margin-bottom: 0.85rem;
  color: var(--heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 400;
  line-height: 1.25;
}

.event-item p,
.event-details p {
  margin-bottom: 0;
  color: var(--body);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 1.25vw, 1.12rem);
  line-height: 1.75;
}

.event-extract {
  margin-bottom: 1rem !important;
}

.event-item .event-date {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  margin-bottom: 0.85rem;
  color: var(--event-date);
  font-family: Avenir, "Avenir Next", "Segoe UI", system-ui, sans-serif !important;
  font-size: clamp(0.92rem, 1.35vw, 1.05rem) !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4 !important;
  padding-bottom: 0.18rem;
  text-transform: uppercase;
}

.event-details {
  margin-top: 1rem;
}

.event-details summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  color: var(--link);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  list-style: none;
  text-transform: uppercase;
}

.event-details summary::-webkit-details-marker {
  display: none;
}

.event-details summary::after {
  content: "›";
  display: inline-block;
  margin-left: 0.6rem;
  font-size: 1.15rem;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform 160ms ease;
}

.event-details[open] summary {
  margin-bottom: 0.75rem;
}

.event-details[open] summary::after {
  transform: rotate(-90deg);
}

.quote-section {
  width: min(52rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) 0;
  text-align: center;
}

.quote-section blockquote {
  margin: 0;
}

.quote-section blockquote::before {
  content: "";
  display: block;
  width: 1px;
  height: 2.8rem;
  margin: 0 auto clamp(2.3rem, 5vw, 3.4rem);
  background: var(--quote-rule);
  opacity: 0.55;
}

.quote-section blockquote p {
  color: var(--quote-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 3.15rem);
  font-style: italic;
  line-height: 1.35;
  white-space: pre-line;
}

.quote-section cite {
  display: block;
  margin-top: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--quote-reference);
  font-size: 0.72rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.booking-modal {
  width: min(62rem, calc(100% - 2rem));
  height: min(46rem, calc(100dvh - 2rem));
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 0;
}

.booking-modal::backdrop {
  background: var(--modal-backdrop);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 1rem 0.85rem 1.25rem;
}

.modal-header h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
}

.modal-close {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--modal-close-border);
}

.booking-modal iframe {
  display: block;
  width: 100%;
  height: calc(100% - 6.9rem);
  border: 0;
  background: var(--white);
}

.modal-note {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 0.65rem 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer {
  width: min(var(--measure), calc(100% - 2rem));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--footer-text);
  font-size: 0.95rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@keyframes appear-cessation {
  0% {
    opacity: 0.7;
    filter: blur(0.12px);
    transform: scale(1.12);
  }

  20% {
    opacity: 0.78;
    filter: blur(0.06px);
    transform: scale(1.28);
  }

  38% {
    opacity: 0.66;
    filter: blur(0.28px);
    transform: scale(1.02);
  }

  56% {
    opacity: 0.64;
    filter: blur(0.2px);
    transform: scale(0.96);
  }

  68% {
    opacity: 0.58;
    filter: blur(0.38px);
    transform: scale(0.82);
  }

  70% {
    opacity: 0.52;
    filter: blur(0.7px);
    transform: scale(0.62);
  }

  71% {
    opacity: 0.34;
    filter: blur(1.6px);
    transform: scale(0.26);
  }

  71.55% {
    opacity: 0.12;
    filter: blur(3.2px);
    transform: scale(0.055);
  }

  71.85%,
  100% {
    opacity: 0;
    filter: blur(5px);
    transform: scale(0);
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    min-height: 3.75rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .header-mark {
    grid-column: 1;
    grid-row: 1;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    align-items: center;
    justify-self: end;
    justify-content: center;
    gap: 0;
    width: 2.75rem;
    min-height: 2.75rem;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    padding: 0;
    cursor: pointer;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
  }

  .menu-toggle-line {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    width: 1rem;
    height: 1px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .menu-toggle-line:first-child {
    transform: translate(-50%, calc(-50% - 0.22rem));
  }

  .menu-toggle-line:nth-child(2) {
    transform: translate(-50%, calc(-50% + 0.22rem));
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-line:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .menu-panel {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 0.75rem;
  }

  .menu-toggle[aria-expanded="true"] + .menu-panel {
    display: grid;
    gap: 0.4rem;
  }

  .section-nav,
  .language-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    font-size: 0.86rem;
  }

  .section-nav {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .language-nav {
    justify-content: flex-start;
    padding-top: 0.35rem;
  }

  .section-nav a,
  .language-nav a {
    min-height: 2.5rem;
    width: 100%;
    border-top: 1px solid var(--line);
  }

  .language-nav a {
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 94svh;
    padding-top: 6rem;
  }

  .mark {
    margin-bottom: 0.2rem;
  }

  .meditation-lines {
    gap: 1.4rem;
    margin-top: clamp(3rem, 8vh, 5rem);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .teacher-grid {
    grid-template-columns: 1fr;
  }

  h2 {
    max-width: 13em;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-link {
    width: 100%;
  }

  .event-list {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .appearing-dot {
    opacity: 0.38;
    filter: blur(0.5px);
    transform: scale(0.7);
  }
}
