/* ==========================================================================
   Mini bliss — styles
   One stylesheet for every page. Colours and fonts live in :root below,
   so a change there flows through the whole site.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-full-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette — dusk sky, lilac mist, sound-bowl brass, temple-garden sage */
  --night: #241d37;      /* deep dusk violet: hero, footer, headings */
  --night-soft: #3a3052;
  --mist: #f2eff5;       /* page background */
  --lilac: #ddd3e9;      /* soft fills, rules */
  --lilac-deep: #b9a9cf;
  --brass: #c09550;      /* sparkle and accents */
  --brass-deep: #8a6524; /* brass that passes contrast on mist */
  --sage: #56695b;       /* detail labels */
  --ink: #2f2942;        /* body text */
  --ink-soft: #5c5470;
  --on-night: #efe9f6;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --measure: 36rem;
  --wide: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --arch: 999px 999px 0.75rem 0.75rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration-color: var(--brass); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 380;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--night);
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(3rem, 9vw, 6.5rem); font-weight: 340; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1em; max-width: var(--measure); }

.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--mist); padding: 0.5rem 1rem; }

.wrap { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Sparkle: the four-point star used across the site ---------- */
.spark { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: middle; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  color: var(--on-night);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 2rem; padding-block: 1.25rem;
}
.wordmark {
  font-family: var(--serif); font-style: italic; font-size: 1.6rem;
  font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 400;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem;
}
.wordmark .spark { color: var(--brass); width: 0.6em; height: 0.6em; margin-top: -0.6em; }
.nav { display: flex; align-items: center; gap: 0.25rem 1.5rem; flex-wrap: wrap; }
.nav a { text-decoration: none; font-size: 1rem; padding-block: 0.25rem; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--brass); }
.nav a[aria-current="page"] { border-bottom-color: var(--brass); }
.nav .nav-book {
  border: 1px solid rgba(239, 233, 246, 0.5); border-radius: 999px; padding: 0.35rem 1.1rem;
}
.nav .nav-book:hover { border-color: var(--brass); background: rgba(192, 149, 80, 0.15); }

/* ---------- Night sky (hero and page headers) ---------- */
.sky {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--on-night);
  background:
    radial-gradient(120% 60% at 70% 100%, rgba(192, 149, 80, 0.35), transparent 60%),
    radial-gradient(80% 60% at 10% 0%, rgba(118, 92, 160, 0.45), transparent 70%),
    linear-gradient(180deg, #1b1530 0%, var(--night) 55%, #3b2d4c 100%);
}
.sky h1, .sky h2 { color: #fbf8ff; }

.stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stars .spark { position: absolute; color: #fff4dc; opacity: 0.3; filter: drop-shadow(0 0 4px rgba(255, 236, 200, 0.7)); animation: twinkle 5s ease-in-out infinite; }
.stars .spark.b { color: var(--brass); }
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.75); }
  50% { opacity: 1; transform: scale(1); }
}

.hero .wrap {
  min-height: min(92vh, 52rem);
  display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 3rem;
  padding-top: 7rem; padding-bottom: 4rem;
}
.hero h1 { margin-bottom: 0.15em; }
.hero .lede { font-size: 1.2rem; max-width: 30rem; color: #dcd3ea; }
.hero .motto {
  font-family: var(--serif); font-style: italic; font-size: 1.35rem;
  font-variation-settings: "SOFT" 100, "WONK" 1; color: #f3e3c3; margin: 1.5rem 0 2rem;
}
.hero .motto::before { content: "“"; }
.hero .motto::after { content: "”"; }

.arch { border-radius: var(--arch); overflow: hidden; background: var(--lilac); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-arch {
  aspect-ratio: 3 / 4; max-width: 24rem; justify-self: end; width: 100%;
  box-shadow: 0 0 0 1px rgba(243, 227, 195, 0.35), 0 0 80px rgba(192, 149, 80, 0.25);
}
.hero-arch img { object-position: 46% 50%; }

.page-head .wrap { padding-top: 8rem; padding-bottom: 4rem; }
.page-head p { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: #f3e3c3; margin: 0; font-variation-settings: "SOFT" 100, "WONK" 1; }
.page-head .photo { position: absolute; inset: 0; z-index: -2; }
.page-head .photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; mix-blend-mode: luminosity; }

/* ---------- Buttons ---------- */
.buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 500; font-size: 1rem;
  padding: 0.75rem 1.5rem; border-radius: 999px; border: 1px solid currentColor;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-solid { background: #f3e3c3; color: var(--night); border-color: #f3e3c3; }
.btn-solid:hover { background: var(--brass); border-color: var(--brass); }
.btn-ghost:hover { border-color: var(--brass); color: #f3e3c3; }
.btn-dark { background: var(--night); color: var(--on-night); border-color: var(--night); }
.btn-dark:hover { background: var(--night-soft); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-intro { margin-bottom: 3rem; }
.section-intro p { color: var(--ink-soft); font-size: 1.15rem; }

/* Home: the four practices */
.practices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem 2rem; }
.practice .arch { aspect-ratio: 4 / 5; margin-bottom: 1.25rem; }
.practice h3 { margin-bottom: 0.35em; }
.practice p { font-size: 1rem; color: var(--ink-soft); }

/* Home: Cass's story */
.story { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.story-photo { position: sticky; top: 2rem; }
.story-photo .arch { aspect-ratio: 3 / 4; }
.story-photo img { object-position: 40% 50%; }
.story-body p:first-of-type { font-size: 1.2rem; color: var(--night); }
.signoff {
  font-family: var(--serif); font-style: italic; font-size: 1.8rem; color: var(--night);
  font-variation-settings: "SOFT" 100, "WONK" 1; margin: 1.5rem 0 0.5rem;
}
.ps { font-size: 0.95rem; color: var(--ink-soft); }

/* Home: retreat band */
.retreat-band { position: relative; isolation: isolate; color: var(--on-night); overflow: hidden; }
.retreat-band .photo { position: absolute; inset: 0; z-index: -2; }
.retreat-band .photo img { width: 100%; height: 100%; object-fit: cover; }
.retreat-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(27, 21, 48, 0.92) 0%, rgba(27, 21, 48, 0.7) 50%, rgba(27, 21, 48, 0.25) 100%);
}
.retreat-band h2 { color: #fbf8ff; }
.retreat-band p { color: #e3dbef; font-size: 1.15rem; max-width: 28rem; }

/* Services: alternating rows */
.service {
  display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.service + .service { border-top: 1px solid var(--lilac); }
.service:nth-of-type(even) { grid-template-columns: 1.25fr 0.75fr; }
.service:nth-of-type(even) .service-photo { order: 2; }
.service:first-of-type { padding-top: 0; }
.service-photo { aspect-ratio: 4 / 5; max-width: 22rem; width: 100%; }
.service:nth-of-type(even) .service-photo { justify-self: end; }

.details { margin: 1.5rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.25rem; max-width: var(--measure); }
.details dt { color: var(--sage); font-weight: 500; }
.details dd { margin: 0; }
.details ul { margin: 0; padding-left: 1.1rem; }

.aside-note {
  background: var(--lilac); border-radius: 1.25rem; padding: clamp(1.75rem, 4vw, 3rem);
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 1rem 3rem; margin-top: 2rem;
}
.aside-note h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* Schedule */
.retreat-feature { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.retreat-feature .arch { aspect-ratio: 3 / 4; }
.next-dates {
  margin-top: 2rem; padding: 1.25rem 1.5rem; border-left: 2px solid var(--brass);
  background: rgba(221, 211, 233, 0.5); max-width: var(--measure);
}
.next-dates p { margin: 0; }
.next-dates strong { font-family: var(--serif); font-weight: 450; font-size: 1.25rem; color: var(--night); display: block; margin-bottom: 0.15rem; font-variation-settings: "SOFT" 100; }

.more-bookings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--lilac); }
.more-bookings h3 { font-size: 1.4rem; }
.more-bookings p { color: var(--ink-soft); }

.kind-words { background: var(--night); color: var(--on-night); }
.kind-words h2 { color: #fbf8ff; }
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 4rem; margin: 0; padding: 0; list-style: none; }
.quotes blockquote { margin: 0; }
.quotes p {
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: #f6f1fb;
  font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 340;
}
.quotes .spark { color: var(--brass); margin-bottom: 0.75rem; display: block; }
.quotes footer { color: #b8aecb; font-size: 0.95rem; }

.gallery { columns: 3 16rem; column-gap: 1rem; }
.gallery button {
  all: unset; display: block; cursor: zoom-in; margin-bottom: 1rem; break-inside: avoid;
  border-radius: 0.75rem; overflow: hidden;
}
.gallery button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.gallery img { width: 100%; transition: transform 0.4s ease; }
.gallery button:hover img { transform: scale(1.03); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 60rem); max-height: 92vh; }
.lightbox::backdrop { background: rgba(27, 21, 48, 0.88); }
.lightbox img { max-height: 86vh; width: auto; margin-inline: auto; border-radius: 0.75rem; }
.lightbox form { text-align: center; margin-top: 0.75rem; }
.lightbox button { font: inherit; color: var(--on-night); background: none; border: 1px solid rgba(239, 233, 246, 0.5); border-radius: 999px; padding: 0.4rem 1.2rem; cursor: pointer; }

/* ---------- Contact footer (every page) ---------- */
.site-footer { background: var(--night); color: var(--on-night); padding-block: clamp(4rem, 8vw, 6rem) 2rem; }
.site-footer h2 { color: #fbf8ff; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: start; }
.footer-grid > div > p { color: #cfc5df; font-size: 1.1rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.contact-list a {
  display: flex; justify-content: space-between; gap: 1rem; text-decoration: none;
  padding: 0.9rem 0; border-bottom: 1px solid rgba(239, 233, 246, 0.16);
}
.contact-list a:hover { border-bottom-color: var(--brass); }
.contact-list .how { color: #b8aecb; }
.contact-list .what { font-family: var(--serif); font-size: 1.2rem; font-variation-settings: "SOFT" 100; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid rgba(239, 233, 246, 0.16);
  font-size: 0.9rem; color: #a99fbd;
}
.footer-base nav { display: flex; gap: 1.25rem; }
.footer-base a { text-decoration: none; }
.footer-base a:hover { color: var(--on-night); }

/* ---------- 404 ---------- */
.lost .wrap { min-height: 100vh; display: grid; place-content: center; text-align: center; }
.lost p { margin-inline: auto; }
.lost .buttons { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .practices { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 760px) {
  .site-header .wrap { padding-block: 1rem; }
  .nav { gap: 0.25rem 1.1rem; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 8.5rem; min-height: 0; gap: 2.5rem; }
  .hero-arch { justify-self: start; max-width: 17rem; }
  .story, .retreat-feature, .footer-grid, .aside-note, .more-bookings { grid-template-columns: 1fr; }
  .story-photo { position: static; max-width: 20rem; }
  .retreat-feature .arch { max-width: 20rem; }
  .service, .service:nth-of-type(even) { grid-template-columns: 1fr; gap: 1.5rem; }
  .service:nth-of-type(even) .service-photo { order: 0; justify-self: start; }
  .service-photo { max-width: 16rem; }
  .retreat-band::before { background: rgba(27, 21, 48, 0.8); }
  .page-head .wrap { padding-top: 8.5rem; padding-bottom: 3rem; }
}

@media (max-width: 420px) {
  .practices { grid-template-columns: 1fr; }
  .practice .arch { max-width: 18rem; }
  .details { grid-template-columns: 1fr; gap: 0.1rem; }
  .details dd { margin-bottom: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stars .spark { animation: none; opacity: 0.5; }
  .gallery img, .btn { transition: none; }
}

.section.flush-top { padding-top: 0; }

@media (max-width: 560px) {
  .gallery { columns: 2; column-gap: 0.6rem; }
  .gallery button { margin-bottom: 0.6rem; }
}
