/* Boundlessness — plain CSS rebuild of the Squarespace theme */

:root {
  --cream: hsl(41.8 89.2% 92.7%);
  --ink: #000;
  --serif: 'Bodoni Moda', 'Bodoni 72', Didot, 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --max: 1243px;
  --gap: 11px;
  --container: min(var(--max), 100vw);
  /* Bodoni Moda sets ~7% wider than the original LTC Bodoni 175 (Adobe Fonts), so scale text down to keep the same line breaks */
  --k: .93;
  /* fluid type, same formula Squarespace uses: (size - 1) * 1.2vw + 1rem, capped at the max page width */
  --fs-body: calc(var(--k) * min(calc(0.3 * 1.2vw + 1rem), 1.3rem));
  --fs-lg: calc(var(--k) * min(calc(0.5 * 1.2vw + 1rem), 1.5rem));
  --fs-sm: calc(var(--k) * 1rem);
  --fs-h1: calc(var(--k) * min(calc(4.5 * 1.2vw + 1rem), max(calc(4.5 * 0.012 * 1243px + 1rem), 5.5rem)));
  --fs-h2: calc(var(--k) * min(calc(3.2 * 1.2vw + 1rem), max(calc(3.2 * 0.012 * 1243px + 1rem), 4.2rem)));
  --fs-h3: calc(var(--k) * min(calc(1.8 * 1.2vw + 1rem), max(calc(1.8 * 0.012 * 1243px + 1rem), 2.8rem)));
  --fs-h4: calc(var(--k) * min(calc(0.6 * 1.2vw + 1rem), max(calc(0.6 * 0.012 * 1243px + 1rem), 1.6rem)));
}

@media (max-width: 767px) and (orientation: portrait) {
  :root {
    --fs-body: calc(var(--k) * calc(0.3 * 0.012 * min(100vh, 900px) + 1rem));
    --fs-lg: calc(var(--k) * calc(0.5 * 0.012 * min(100vh, 900px) + 1rem));
    --fs-h1: calc(var(--k) * calc(4.5 * 0.012 * min(100vh, 900px) + 1rem));
    --fs-h2: calc(var(--k) * calc(3.2 * 0.012 * min(100vh, 900px) + 1rem));
    --fs-h3: calc(var(--k) * calc(1.8 * 0.012 * min(100vh, 900px) + 1rem));
    --fs-h4: calc(var(--k) * calc(0.6 * 0.012 * min(100vh, 900px) + 1rem));
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Squarespace's base size: 21px on desktop, 16px below 992px */
html { -webkit-text-size-adjust: 100%; font-size: 21px; }
@media (max-width: 991px) { html { font-size: 16px; } }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--serif);
  font-variation-settings: 'opsz' 9;
  font-size: var(--fs-body);
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 { font-weight: 400; letter-spacing: .01em; margin: 2rem 0; }
h1 { font-size: var(--fs-h1); line-height: 1.1; }
h2 { font-size: var(--fs-h2); line-height: 1.15; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-size: var(--fs-h4); line-height: 1.3; }
p { margin: 1rem 0; }
p.lg { font-size: var(--fs-lg); }
p.sm { font-size: var(--fs-sm); }
.text > :first-child { margin-top: 0; }
.text > :last-child { margin-bottom: 0; }

/* ---------- header ---------- */
.site-header {
  position: relative;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding: 10vw 4vw;
}
.site-header.over { position: absolute; top: 0; left: 0; right: 0; }
.logo img { max-height: 240px; width: auto; }

.nav { list-style: none; display: flex; gap: 2.2em; margin: 0; padding: 0; font-size: 1.4rem; letter-spacing: -.01em; }
.nav a, .nav button { font: inherit; color: inherit; text-decoration: none; background: none; border: 0; padding: .1em 0; cursor: pointer; }
.nav .plus { margin-left: .08em; font-family: var(--sans); font-weight: 300; font-size: 1.25em; line-height: 0; position: relative; top: .08em; }
.nav .folder { position: relative; }
.nav .folder ul {
  display: none;
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  min-width: 15em;
  list-style: none;
  margin: 0;
  padding: .8em 1.2em;
  background: #fff;
  font-size: 1.1rem;
  text-align: center;
  box-shadow: 0 6px 24px rgb(0 0 0 / .08);
}
.nav .folder ul li { padding: .35em 0; }
.nav .folder:hover ul, .nav .folder:focus-within ul, .nav .folder.open ul { display: block; }
.nav .folder ul a:hover { text-decoration: underline; }

.menu-toggle { display: none; }

@media (max-width: 799px) {
  .site-header { padding: 6vw; flex-direction: row; justify-content: center; }
  .logo img { max-height: 100px; }
  .menu-toggle {
    position: absolute; left: 6vw; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 6px;
  }
  .menu-toggle span { display: block; height: 2px; background: currentColor; }
  .site-header nav {
    display: none;
    position: fixed; inset: 0;
    background: var(--cream);
    padding: 28vw 8vw 8vw;
    overflow-y: auto;
  }
  body.menu-open .site-header nav { display: block; }
  body.menu-open .menu-toggle { position: fixed; top: calc(6vw + 30px); z-index: 2; }
  .nav { flex-direction: column; gap: 1.2em; font-size: 2rem; text-align: center; }
  .nav .folder ul { position: static; transform: none; box-shadow: none; background: none; padding: .4em 0 0; font-size: 1.3rem; }
  .nav .folder:hover ul, .nav .folder:focus-within ul { display: none; }
  .nav .folder.open ul { display: block; }
}

/* ---------- sections ---------- */
.section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.h-small { min-height: 33vh; padding: 3.3vmax 0; }
.h-medium { min-height: 66vh; padding: 6.6vmax 0; }
.h-large { min-height: 100vh; padding: 10vmax 0; }
.h-custom { min-height: var(--min-h); padding: 1vmax 0; }

.theme-white { background: #fff; }
.theme-light { background: #f5f5f5; }
.theme-bright { background: var(--cream); }
.theme-dark { background: #797979; color: #fff; }
.theme-black { background: #000; color: #fff; }

.site-header.over + main > .section:first-child { padding-top: calc(var(--header-h, 0px) + 6.6vmax); }

.section-bg { position: absolute; inset: 0; z-index: 0; }
.section-bg img { width: 100%; height: 100%; object-fit: cover; }
.section-bg .overlay { position: absolute; inset: 0; background: #000; }

/* Grid placement copied from the Squarespace editor: 8 columns on phones, 24 on desktop.
   Each block carries its own --m / --d grid-area. */
.grid {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  gap: var(--gap);
  grid-template-columns: minmax(calc(6vw - var(--gap)), 1fr) repeat(8, minmax(0, calc((var(--max) - 7 * var(--gap)) / 8))) minmax(calc(6vw - var(--gap)), 1fr);
  grid-template-rows: repeat(var(--rows-m), minmax(24px, auto));
}
.b {
  grid-area: var(--m);
  z-index: var(--zm);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: var(--vm);
  min-width: 0;
}
@media (min-width: 768px) {
  .grid {
    grid-template-columns: minmax(0, 1fr) repeat(24, minmax(0, calc((var(--max) - 23 * var(--gap)) / 24))) minmax(0, 1fr);
    grid-template-rows: repeat(var(--rows-d), minmax(calc(var(--container) * 0.0215), auto));
  }
  .b { grid-area: var(--d); z-index: var(--zd); justify-content: var(--vd); }
}

/* images fill their grid cell, like Squarespace's fluid image blocks */
.b.img { overflow: hidden; }
.b.img img, .b.img a { position: absolute; inset: 0; width: 100%; height: 100%; }
.b.img img { object-fit: cover; }
.b.img.fit img { object-fit: contain; }
.b.img.circle { container-type: size; }
.b.img.circle img { inset: 0; margin: auto; width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); border-radius: 50%; }

.b.button { align-items: center; }
.btn {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: .2em;
  text-transform: capitalize;
  text-decoration: none;
  line-height: 1.2;
  padding: 1.1em 1.6em;
  background: #000;
  color: #fff;
  border: 0;
  border-radius: 6.4px 6.4px 15px 6.4px;
  cursor: pointer;
  text-align: center;
}
.btn:hover { opacity: .8; }
.btn-small { font-size: 1rem; padding: .9em 1.3em; }
.btn-large { font-size: 1.5rem; padding: 1.3em 2em; }
.b.button .btn { width: 100%; }

.audio { font-family: var(--sans); font-size: .95rem; }
.audio-title { margin-bottom: .4em; font-weight: 500; }
.audio audio { width: 100%; }

.video { position: relative; aspect-ratio: 16 / 9; width: 100%; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.contact-form { display: grid; gap: 1rem; font-size: 1rem; }
.contact-form label { display: grid; gap: .35rem; }
.contact-form input, .contact-form textarea {
  font: inherit; font-family: var(--sans); padding: .8em; border: 1px solid #a9a9a9; background: #fafafa; border-radius: 0;
}
.contact-form .btn { justify-self: start; }

.social { display: flex; gap: 16px; justify-content: center; font-family: var(--sans); font-size: 1rem; }

/* testimonials carousel */
.list-section { position: relative; z-index: 1; width: 100%; }
.list-title { font-size: var(--fs-h2); text-align: center; margin: 0 0 80px; }
.carousel { position: relative; }
.track {
  display: flex;
  gap: 11.5vw;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 12vw;
  padding: 0 12vw;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 31vw; scroll-snap-align: start; padding: 0 1.5rem; }
.slide img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 1.2rem; }
.slide .desc { font-size: 0.9rem; }
.slide .desc p { margin: 0 0 .8em; }
.arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: hsl(30 6% 28%); color: #fff; font-size: 1.4rem; cursor: pointer;
}
.arrow.prev { left: 4vw; }
.arrow.next { right: 4vw; }
@media (max-width: 767px) {
  .slide { flex-basis: 76vw; }
  .track { gap: 20px; }
  .track { padding: 0 6vw; scroll-padding: 0 6vw; }
  .carousel { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .track { flex-basis: 100%; }
  .arrow { position: static; transform: none; order: 1; margin-top: 24px; }
}

.flow { position: relative; z-index: 1; width: min(var(--max), 100% - 12vw); margin: 0 auto; }



/* ---------- added after the Squarespace move: offerings, calendar, simple pages ---------- */
.pad { padding: 7vmax 0; }
.sec-title { font-size: var(--fs-h2); text-align: center; margin: 0 0 .4em; }
.sec-lede { text-align: center; font-style: italic; font-size: var(--fs-lg); margin: 0 auto 3.2rem; max-width: 34em; }
.more { text-align: center; margin-top: 2.8rem; }

/* the path of practice: free sitting first, three months of silence last */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.2rem 2.4rem; }
.path { text-decoration: none; display: block; }
.path img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 1rem; }
.path h3 { font-size: var(--fs-h4); margin: 0 0 .3em; }
.path p { margin: 0 0 .5em; font-size: .95em; }
.path .cost { font-style: italic; }
.path:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
@media (max-width: 900px) { .paths { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .paths { grid-template-columns: 1fr; gap: 2.6rem; } }

/* calendar lists (filled by events.js) */
.cal { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; }
.cal h3 { font-size: var(--fs-h4); margin: 0 0 .6em; font-style: italic; }
.events { list-style: none; margin: 0; padding: 0; }
.ev { display: grid; grid-template-columns: 7.5em 1fr auto; gap: .2rem 1.2rem; align-items: baseline; padding: 1rem 0; border-top: 1px solid rgb(0 0 0 / .18); }
.events--regular .ev { grid-template-columns: 1fr; }
.events--regular .ev-when { order: 2; font-size: .9em; }
.ev-when { font-style: italic; }
.ev-when span { display: block; font-size: .8em; opacity: .7; }
.ev-title { text-decoration: none; font-size: 1.05em; }
.ev-title:hover { text-decoration: underline; }
.ev-meta { font-size: .85em; opacity: .75; margin-top: .15em; }
.ev-link { font-size: .9em; white-space: nowrap; }
@media (max-width: 767px) {
  .cal { grid-template-columns: 1fr; }
  .ev { grid-template-columns: 6em 1fr; }
  .ev-link { grid-column: 2; }
}

/* photo band with text */
.band { color: #fff; text-align: center; }
.band .section-bg::after { content: ''; position: absolute; inset: 0; background: rgb(0 0 0 / .38); }
.band .flow { max-width: 36em; }
.band h2 { font-size: var(--fs-h2); margin: 0 0 .4em; }
.btn-light { background: var(--cream); color: #000; }

/* simple text pages */
.page { padding: 2vmax 0 7vmax; }
.prose { width: min(36em, 100% - 12vw); margin: 0 auto; }
.prose h1 { font-size: var(--fs-h2); text-align: center; margin: 0 0 .5em; }
.prose h2 { font-size: var(--fs-h3); margin: 2.4em 0 .5em; }
.prose .lede { font-size: var(--fs-lg); font-style: italic; text-align: center; }
.prose .facts { list-style: none; padding: 0; margin: 1.6rem 0; border-top: 1px solid rgb(0 0 0 / .18); }
.prose .facts li { padding: .7rem 0; border-bottom: 1px solid rgb(0 0 0 / .18); display: grid; grid-template-columns: 7em 1fr; gap: 1rem; }
.prose .facts b { font-weight: 400; font-style: italic; }
.prose .center { text-align: center; }
.wide { width: min(var(--max), 100% - 12vw); margin: 3rem auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.wide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* things Milo still has to fill in; visible on the preview on purpose */
.todo { background: #fbe7a6; padding: 0 .25em; border-bottom: 1px dashed #b8860b; }

/* email signup */
.signup { display: grid; gap: .8rem; max-width: 26em; margin: 1.8rem auto; }
.signup input {
  font: inherit; font-size: 1rem; padding: .9em 1em; border: 1px solid rgb(0 0 0 / .35); background: #fffdf7; border-radius: 6px;
}
.signup .btn { width: 100%; }
.signup-note { font-size: .85em; text-align: center; opacity: .8; }

/* link-in-bio page */
.start { min-height: 100vh; padding: 8vw 6vw 10vw; display: flex; flex-direction: column; align-items: center; text-align: center; }
.start .me { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; margin: 1.4rem auto 1rem; }
.start h1 { font-size: var(--fs-h3); margin: 0; }
.start .lede { font-style: italic; max-width: 22em; margin: .6rem auto 0; }
.start .box { width: min(28em, 100%); margin-top: 2.2rem; text-align: left; }
.start .box h2 { font-size: var(--fs-h4); text-align: center; margin: 0 0 .2em; }
.links { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: .7rem; width: min(28em, 100%); }
.links a { display: block; padding: 1em; border: 1px solid #000; border-radius: 6.4px 6.4px 15px 6.4px; text-decoration: none; }
.links a:hover { background: #000; color: #fff; }

/* home welcome: Milo on the left, words on the right */
.welcome .flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 5vw; align-items: center; max-width: 1100px; }
.welcome-photo { width: 100%; max-width: 440px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; justify-self: end; }
.welcome-text p { margin: 0 0 1em; }
.welcome-flower { display: block; width: 150px; margin: 1.4rem auto 0; }
@media (max-width: 767px) {
  .welcome .flow { grid-template-columns: 1fr; text-align: center; }
  .welcome-photo { justify-self: center; max-width: 280px; }
  .welcome-flower { margin: 1.4rem auto 0; width: 110px; }
}

/* retreats on the retreat-center photo */
.band-retreats .section-bg::after { background: rgb(20 16 10 / .58); }
.band-retreats .sec-lede { max-width: 30em; }
.band-retreats .flow { max-width: none; }
.btn-ghost { background: none; color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.more .btn + .btn { margin-left: .8rem; }
@media (max-width: 560px) { .more .btn { display: block; } .more .btn + .btn { margin: .8rem 0 0; } }

.quote-section { padding: 1vmax 0 5vmax; }
.quote { font-style: italic; font-size: var(--fs-lg); text-align: center; max-width: 34em; margin: 0 auto; }

.path .when { font-style: italic; margin-bottom: .35em; }
.paths.two { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }
@media (max-width: 560px) { .paths.two { grid-template-columns: 1fr; } }
.retreat-cards { margin: 1rem auto 3rem; }
.band-retreats .section-bg::after { background: rgb(20 16 10 / .7); }
.band-retreats .path { text-align: left; }

/* student reflections: framed photos, bigger text, three in view */
.track { gap: 3.5vw; }
.slide { flex: 0 0 min(28vw, 440px); padding: 0; text-align: center; }
.slide img {
  width: 58%; margin: 0 auto 1.6rem; aspect-ratio: 1;
  border: 9px solid #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 8px 22px rgb(60 40 10 / .13);
}
.slide .desc { font-size: var(--fs-body); line-height: 1.45; }
.slide .desc::before { content: '\201C'; display: block; font-size: 2.6em; line-height: .5; margin-bottom: .15em; color: #b8862b; }
@media (max-width: 767px) {
  .slide { flex-basis: 80vw; }
  .slide img { width: 62%; }
}
.slide .desc { text-align: left; text-wrap: pretty; }
.slide .desc::before { text-align: center; }

/* less space between the menu and the first image on Organization and Mentorship (desktop) */
@media (min-width: 768px) { .section.tight-top { padding-top: 1.5vmax; } }
@media (max-width: 767px) { .site-footer h3 { font-size: 1.15rem; } }
.prose .facts.dates li { grid-template-columns: 9.5em 1fr; }
@media (max-width: 560px) { .prose .facts.dates li { grid-template-columns: 1fr; gap: .2rem; } }

/* pink brush line under "A warm bow of welcome to you." */
.welcome-line { display: block; width: 360px; max-width: 90%; height: auto; margin: -.2em auto 1.2em; }
@media (max-width: 767px) { .welcome-line { margin: -.2em auto 1.2em; width: 260px; } }

/* student reflections: same height; long ones get "See more" (button added by site.js) */
.slide .desc .txt { max-height: calc(1.45em * 8); overflow: hidden; position: relative; }
.slide .desc .txt.cut::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2.9em; background: linear-gradient(transparent, var(--cream)); }
.slide .desc.open .txt { max-height: none; }
.slide .desc.open .txt::after { display: none; }
.slide .more-btn { background: none; border: 0; padding: 0; font: inherit; font-style: italic; text-decoration: underline; cursor: pointer; color: inherit; }
.section.reflections { min-height: 0; }

/* self-hosted video filling a grid block (three-month retreat page) */
.b video.fill-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* footer: mailing list + contact above the lotus painting, which stays uncovered */
.footer-top { padding: 3.5rem 0 3rem; }
.footer-top h3 { margin: 0 0 1rem; }
.footer-contact { margin-top: 1.6rem; font-size: 1.05rem; }
.footer-lotus .section-bg img { object-fit: cover; }

/* overnight page: one block per retreat */
.retreat { margin: 3rem 0; }
.retreat h2 { margin-top: 0; }
.retreat-when { font-style: italic; margin-top: -.2em; }

/* home: less gap between Student Reflections and the Calendar */
.section.reflections { padding-bottom: 2.5vmax; }
.cal-section { padding-top: 2.5vmax; }

/* dharma talks: one talk per block, room to breathe */
.talks .talk { margin: 0 0 3.2rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgb(0 0 0 / .12); }
.talks .talk:last-child { border-bottom: 0; }
.talks .talk h3 { margin: 0 0 .7rem; }
.talks audio { width: 100%; margin: 0 0 1rem; }
.talks .talk-date { font-style: italic; opacity: .75; }
.talks .talk-dl { font-size: .9em; }
.wide.photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
