/* The Wellness Society website, in the style of the member app: the app's colors, type scale
   (Instrument Serif headings with italic accents, DM Sans for everything else), rounded photos,
   pill buttons and soft shadows (constants/theme.ts in the app repo). */

@font-face { font-family: 'Instrument Serif'; src: url('/fonts/instrument-serif-regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/instrument-serif-italic.woff2') format('woff2'); font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/dm-sans-variable.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  /* The app's color tokens */
  --cream: #fffdf7;
  --cream-deep: #f6f1e6;
  --ink: #1c1c1c;
  --ink-soft: #3a3a37;
  --muted: #77736b;
  --line: #e7e1d4;
  --sand: #e9dfcc;
  --taupe: #a39382;
  --blush-soft: #f5e6e0;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  /* The app's radii and shadows */
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-1: 0 2px 8px rgba(28, 28, 28, 0.08);
  --shadow-2: 0 4px 16px rgba(28, 28, 28, 0.11);
  --shadow-3: 0 6px 24px rgba(28, 28, 28, 0.14);

  /* Most of the browser's width, up to 1760px on very large screens; long text keeps its own
     narrower measure (the paragraph and intro rules below). */
  --content: min(1760px, 92vw);
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(56px, 7vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p, blockquote, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type: the app's scale, larger on wide screens */
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.02em; }
.display-xl { font-size: clamp(44px, 6.4vw, 88px); }
.display em, .hero-title em, .footer-display em { font-style: italic; }
.label { font-family: var(--sans); font-weight: 600; font-size: 11px; line-height: 14px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.label-light { color: rgba(255, 253, 247, 0.75); }
.body { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 3vw, 40px); }

/* Pill buttons, as in the app (solid, outline, light) */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent; font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: 0.2px; white-space: nowrap; transition: transform 0.2s, opacity 0.2s, background 0.2s, color 0.2s; }
.pill:hover { transform: translateY(-1px); }
.pill:active { opacity: 0.7; transform: none; }
.pill-solid { background: var(--ink); color: var(--cream); }
.pill-outline { border-color: var(--ink); color: var(--ink); }
.pill-outline:hover { background: var(--ink); color: var(--cream); }
.pill-light { background: var(--cream); color: var(--ink); }
.pill-sm { height: 38px; padding: 0 18px; font-size: 13px; }
.pill:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.pill-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Header: a translucent cream bar that stays at the top */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 253, 247, 0.82); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(231, 225, 212, 0.7); }
.header-inner { max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; height: 72px; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.header-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); margin-right: auto; }
.header-logo svg { width: 30px; height: 23px; }
.header-logo span { font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; white-space: nowrap; }
.site-nav > ul { display: flex; gap: clamp(14px, 2.2vw, 30px); align-items: center; }
.nav-link { display: inline-flex; align-items: center; gap: 3px; font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.nav-link:hover, .nav-menu.open .nav-link { color: var(--ink); }
.chevron svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-menu.open .chevron svg { transform: rotate(180deg); }
.nav-menu { position: relative; }
.nav-dropdown { position: absolute; top: calc(100% + 18px); left: 50%; min-width: 210px; padding: 8px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-3); opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity 0.18s, transform 0.18s, visibility 0.18s; }
.nav-dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.nav-menu:hover .nav-dropdown, .nav-menu.open .nav-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dropdown a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.nav-dropdown a:hover { background: var(--cream-deep); color: var(--ink); }
.menu-toggle, .menu-close { display: none; }
.site-nav .country-picker { display: none; }

/* Hero: the video in a rounded frame, words over a soft shade. The frame keeps the clip's own
   16:9 shape (up to the screen height), so the whole shot shows instead of a crop of one model. */
.hero { padding: 12px 12px 0; }
.hero-frame { position: relative; height: min(calc((100vw - 24px) * 9 / 16), calc(100vh - 96px)); min-height: 520px; border-radius: var(--r-xl); overflow: hidden; display: flex; align-items: flex-end; color: var(--cream); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
/* Phones show three photos instead of the video (its <source> only loads from 810px up). */
.hero-photos { display: none; }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(90% 85% at 0% 100%, rgba(28, 28, 28, 0.72) 0%, rgba(28, 28, 28, 0.35) 45%, rgba(28, 28, 28, 0) 75%), linear-gradient(180deg, rgba(28, 28, 28, 0) 55%, rgba(28, 28, 28, 0.25) 100%); }
.hero-content { position: relative; width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) clamp(36px, 6vw, 72px); display: grid; gap: 20px; justify-items: start; }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 8.5vw, 124px); line-height: 0.92; letter-spacing: -0.03em; max-width: 11ch; }
.hero-intro { max-width: 520px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: rgba(255, 253, 247, 0.9); margin-bottom: 8px; }

/* At a glance: one line of serif italics between monograms */
.stats { padding: 28px var(--gutter); border-bottom: 1px solid var(--line); }
.stats ul { max-width: var(--content); margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 48px); flex-wrap: wrap; }
.stats li { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 34px); color: var(--ink); }
.stats-mark svg { width: 18px; height: 14px; color: var(--taupe); }

/* Sections */
.section { padding: var(--section) var(--gutter); }
.section > * { max-width: var(--content); margin-left: auto; margin-right: auto; }

.mission { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; }
.mission > * { max-width: none; margin: 0; }
.mission-image { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
.mission-text .body + .body { margin-top: 16px; }
.mission-text .pill { margin-top: 36px; }

.ways { background: var(--cream-deep); text-align: center; }
.ways .section-head { justify-items: center; }
.way-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.way-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); isolation: isolate; }
.way-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.way-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(28, 28, 28, 0.55)); }
.way-card:hover img { transform: scale(1.05); }
.way-label { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; display: flex; align-items: center; justify-content: space-between; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); color: var(--cream); text-align: left; }
.way-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 253, 247, 0.2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background 0.2s, color 0.2s; }
.way-arrow svg { width: 18px; height: 18px; }
.way-card:hover .way-arrow { background: var(--cream); color: var(--ink); }

.testimonial-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.testimonial { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.testimonial img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; }
.testimonial figcaption { display: grid; gap: 14px; padding: 24px; }
.stars { font-size: 13px; letter-spacing: 3px; color: var(--ink); }
.testimonial blockquote { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.testimonial-name { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.1; }
.carousel-controls { display: none; }

.follow { padding-left: 0; padding-right: 0; text-align: center; }
.follow .section-head { justify-items: center; padding: 0 var(--gutter); }
.follow > .marquee { max-width: none; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee li a { position: relative; display: block; width: clamp(220px, 21vw, 300px); aspect-ratio: 9 / 16; border-radius: var(--r-xl); overflow: hidden; }
.marquee img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.marquee a:hover img { transform: scale(1.04); }
.handle { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 253, 247, 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 12px; font-weight: 500; color: var(--ink); overflow: hidden; white-space: nowrap; }
.handle svg { flex: none; width: 13px; height: 13px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee { overflow-x: auto; } }

.find-people { padding-top: 0; }
.find-panel { display: grid; justify-items: center; gap: 20px; padding: clamp(48px, 6.5vw, 88px) var(--gutter); border-radius: var(--r-xl); text-align: center; background: radial-gradient(120% 90% at 50% 0%, var(--blush-soft) 0%, var(--cream-deep) 55%, var(--sand) 100%); }
.find-panel .display { max-width: 12ch; }
.find-panel .body { max-width: 440px; }
.find-panel .pill-row { margin-top: 10px; }
.find-mark svg { width: 34px; height: 26px; color: var(--ink); }

/* Admin Portal previews (src/admin-pages.js) */
.preview-banner { position: sticky; top: 0; z-index: 100; margin: 0; padding: 10px var(--gutter); background: #8a2a1c; color: #fff; font-size: 14px; font-weight: 600; text-align: center; }
.moved-note { margin: 0; padding: 10px var(--gutter); background: var(--sand); color: var(--ink); font-size: 14px; text-align: center; }

.not-found { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 24px; text-align: center; }

/* Footer: ink, with the email sign-up first */
.site-footer { background: var(--ink); color: var(--cream); padding: clamp(48px, 6vw, 80px) var(--gutter) 28px; }
.footer-inner { max-width: var(--content); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 0.5fr)); gap: 48px; }
.footer-mark svg { width: 34px; height: 26px; }
.footer-display { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1.02; letter-spacing: -0.02em; margin: 22px 0 24px; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 460px; }
.newsletter-form input { flex: 1 1 220px; height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(255, 253, 247, 0.22); background: rgba(255, 253, 247, 0.06); color: var(--cream); font: inherit; font-size: 15px; }
.newsletter-form input::placeholder { color: rgba(255, 253, 247, 0.45); }
.newsletter-form input:focus { outline: none; border-color: var(--cream); }
.newsletter-thanks { margin: 0; font-size: 16px; color: var(--cream); }
.newsletter-form .form-error { flex-basis: 100%; }
.form-note { flex-basis: 100%; font-size: 12px; color: rgba(255, 253, 247, 0.55); }
.footer-social { display: flex; gap: 10px; align-items: center; margin-top: 32px; }
.footer-social a, .footer-social img { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 253, 247, 0.22); transition: background 0.2s, color 0.2s; }
.footer-social a:hover { background: var(--cream); color: var(--ink); }
.footer-social svg { width: 18px; height: 20px; }
.footer-social img { padding: 6px; object-fit: contain; }
.footer-column .label { margin-bottom: 18px; }
.footer-column li { font-size: 15px; line-height: 2.1; }
.footer-column a { color: rgba(255, 253, 247, 0.85); transition: color 0.2s; }
.footer-column a:hover { color: var(--cream); }
.footer-base { max-width: var(--content); margin: 48px auto 0; padding-top: 28px; border-top: 1px solid rgba(255, 253, 247, 0.14); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-badge { width: 64px; height: 64px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 0; font-size: 12px; }
.footer-legal a { color: rgba(255, 253, 247, 0.55); text-decoration: none; }
.footer-legal a:hover, .footer-legal a:focus-visible { color: var(--cream); text-decoration: underline; }
.form-legal { margin: 0; font-size: 12px; color: var(--muted); }
.form-legal a { color: inherit; text-decoration: underline; }
.newsletter-form .form-legal { flex-basis: 100%; color: rgba(255, 253, 247, 0.55); }

/* Content pages: shared pieces */
.section-head-center { justify-items: center; text-align: center; }
.section-head-split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: end; column-gap: 48px; }
.section-head-split .label { grid-column: 1 / -1; }
.section-lead { max-width: 560px; }
.pill-row-start { justify-content: flex-start; }
.pill-arrow svg { width: 16px; height: 16px; }
.text-link { text-decoration: underline; text-underline-offset: 3px; }
.text-contact { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); margin-top: 8px; }
.text-contact a { border-bottom: 1px solid var(--line); transition: border-color 0.2s; }
.text-contact a:hover { border-color: var(--ink); }
.signoff { margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: 24px; }
.label + .display, .section-head .display { margin: 0; }

/* Articles */
.article { max-width: calc(980px + 2 * var(--gutter)); margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--gutter) var(--section); }
.article-head { display: grid; gap: 16px; max-width: 760px; margin: 0 auto clamp(36px, 4vw, 56px); text-align: center; justify-items: center; }
.article-back { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; transition: background 0.2s; }
.article-back:hover { background: var(--cream-deep); }
.article-intro { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-soft); }
.article-section { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.article-section:nth-of-type(even) img { order: 2; }
.article-section img { width: 100%; aspect-ratio: 4 / 4.6; height: auto; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.article-section-plain { grid-template-columns: 1fr; }
.article-heading { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 16px; }
.article-text .body + .body { margin-top: 14px; }
.article-closing { max-width: 720px; margin: clamp(32px, 4vw, 56px) auto 0; padding: 28px 32px; border-radius: var(--r-lg); background: var(--cream-deep); }

/* FAQ */
.faq > .faq-list { max-width: 860px; }
.faq .section-head { justify-items: center; text-align: center; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 4px; cursor: pointer; list-style: none; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); transition: transform 0.25s, background 0.2s; }
.faq-icon svg { width: 16px; height: 16px; }
.faq-item[open] .faq-icon { transform: rotate(180deg); background: var(--ink); color: var(--cream); border-color: var(--ink); }
.faq-item p { padding: 0 4px 26px; max-width: 720px; }

/* Block: intro */
.block-intro { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(32px, 4vw, 48px); }
.block-intro .intro-text { display: grid; gap: 20px; max-width: 820px; justify-items: start; }
.block-intro:not(.block-intro-split) { text-align: center; }
.block-intro:not(.block-intro-split) .intro-text { margin: 0 auto; justify-items: center; }
.block-intro:not(.block-intro-split) .pill-row { justify-content: center; }
.block-intro .body { font-size: clamp(17px, 1.5vw, 19px); max-width: 640px; }
.intro-meta { color: var(--ink); }
.block-intro-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(36px, 6vw, 90px); align-items: center; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; }
.block-intro-split > * { max-width: none; margin: 0; }
.intro-media img { width: 100%; height: auto; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
.intro-media-1 img { aspect-ratio: 4 / 4.4; }
.intro-media-3 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.intro-media-3 img:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.intro-media-3 img:not(:first-child) { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }

/* Block: text */
.block-text { padding-top: 0; }
.block-text .text-body { max-width: 720px; text-align: center; }
.block-text .text-body .body + .body { margin-top: 14px; }
.block-text-document { display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; gap: 12px; padding-top: 0; padding-bottom: 28px; }
.block-text-document .section-head { margin: 0; max-width: none; }
.block-text-document .display { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; }
.block-text-document .text-body { width: 100%; max-width: none; margin: 0; text-align: left; }
.block-text-document .section-head { width: 100%; }
.block-text-document .text-contact { font-family: inherit; font-size: inherit; margin-top: 10px; }

/* Block: people */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 24px; justify-content: center; }
.person { display: grid; gap: 8px; justify-items: center; text-align: center; }
.person img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-1); margin-bottom: 10px; }
.person-name { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.person-role { margin: 0; font-size: 15px; color: var(--muted); }

/* Block: cards */
.cards { display: grid; gap: 16px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin: 0 auto; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); transition: transform 0.25s, box-shadow 0.25s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.cards-3 .card img { aspect-ratio: 1; }
.card-body { display: grid; gap: 8px; padding: 20px 64px 22px 22px; }
.card-title { font-family: var(--serif); font-size: clamp(22px, 2vw, 26px); line-height: 1.15; }
.card-text { font-size: 15px; color: var(--ink-soft); }
.card-arrow { position: absolute; right: 18px; bottom: 20px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); transition: background 0.2s, color 0.2s; }
.card-arrow svg { width: 16px; height: 16px; }
a.card:hover .card-arrow { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Block: paths (two ways in) */
.block-paths { padding-top: 0; }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.path { display: grid; gap: 16px; align-content: start; justify-items: start; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--cream-deep); }
.path .pill { margin-top: auto; }
.path-dark { background: var(--ink); color: var(--cream); }
.path-dark .body { color: rgba(255, 253, 247, 0.8); }
.path-title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 46px); line-height: 1; }
.path-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: 0.4px; }
.path-items { width: 100%; display: grid; }
.path-items li { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid rgba(255, 253, 247, 0.16); }
.path-item-title { font-family: var(--serif); font-size: 24px; }
.path-item-text { font-size: 14px; color: rgba(255, 253, 247, 0.7); }

/* Block: stats */
.block-stats { padding: 0 var(--gutter); }
.block-stats ul { max-width: var(--content); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.block-stats li { display: grid; gap: 4px; padding: 12px 0; text-align: center; }
.stat-label { font-size: 15px; color: var(--muted); }
.stat-value { font-family: var(--serif); font-size: clamp(38px, 4.4vw, 60px); line-height: 1; }

/* Block: logos */
.logos { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); justify-content: center; align-items: center; }
.logos li { display: grid; place-items: center; width: 140px; height: 64px; }
.logos img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: 0.8; transition: filter 0.2s, opacity 0.2s; }
.logos li:hover img { filter: none; opacity: 1; }

/* Block: numbered steps */
.block-steps { background: var(--cream-deep); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin-top: 0; margin-bottom: 0; padding: 0; }
.step { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: var(--r-lg); background: var(--cream); border: 1px solid var(--line); }
.step-title { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; margin: 0; }
.step-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.step-points { display: grid; gap: 6px; margin-top: 4px; font-size: 14px; color: var(--ink-soft); }
.step-points li::before { content: '·'; margin-right: 8px; color: var(--taupe); }

/* Block: gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 1 / 0.92; height: auto; object-fit: cover; border-radius: var(--r-lg); }

/* Block: dark panel */
.block-panel .panel-eyebrow { margin-bottom: 16px; }
.dark-panel { display: grid; gap: 18px; justify-items: start; padding: clamp(28px, 4.5vw, 56px); border-radius: var(--r-xl); background: var(--ink); color: var(--cream); }
.panel-mark svg { width: 34px; height: 26px; }
.panel-heading { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.01em; max-width: 24ch; }
.panel-text { color: rgba(255, 253, 247, 0.78); }
.panel-list { width: 100%; display: grid; }
.panel-list li { padding: 16px 0; border-top: 1px solid rgba(255, 253, 247, 0.16); font-family: var(--serif); font-size: 24px; }
.panel-list li:last-child { border-bottom: 1px solid rgba(255, 253, 247, 0.16); }
.panel-closing { font-size: 18px; }
.panel-sub { margin-top: -12px; font-family: var(--serif); font-style: italic; font-size: 22px; color: rgba(255, 253, 247, 0.7); }

/* Block: form */
.block-form { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: start; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; }
.block-form > * { max-width: none; margin: 0; }
.form-intro { display: grid; gap: 18px; }
.site-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.field { display: grid; gap: 6px; margin: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.6px; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--cream); color: var(--ink); font: inherit; font-size: 15px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field .pill { justify-self: start; }
.form-note-dark { color: var(--muted); }
.form-note:empty { display: none; }
.form-sent { grid-template-columns: 1fr; align-content: center; gap: 8px; min-height: 240px; text-align: center; }
.form-sent-title { margin: 0; font-family: var(--serif); font-size: 36px; line-height: 1.1; color: var(--ink); }

@media (max-width: 1080px) {
  .steps, .cards-3, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .block-stats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 809px) {
  .section-head-split { grid-template-columns: 1fr; }
  .article-section, .article-section-plain { grid-template-columns: 1fr; }
  .article-section:nth-of-type(even) img { order: 0; }
  .block-intro-split, .block-form, .paths, .cards-2, .cards-3, .steps, .people { grid-template-columns: 1fr; }
  .people { max-width: 340px; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .gallery img { border-radius: var(--r-md); }
  .logos li { width: calc(50% - 7px); height: 88px; }
  .site-form { grid-template-columns: 1fr; }
  .faq-item summary { font-size: 22px; padding: 20px 2px; }
}

/* Store: header controls */
.country-picker select { height: 38px; max-width: 210px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1c1c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 12px; font: inherit; font-size: 13px; color: var(--ink); -webkit-appearance: none; appearance: none; cursor: pointer; text-overflow: ellipsis; }
.cart-button { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); transition: background 0.2s; }
.cart-button:hover { background: var(--cream-deep); }
.cart-button svg { width: 18px; height: 18px; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.cart-count[hidden] { display: none; }

/* Store: product page */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; }
.product > * { max-width: none; margin: 0; }
.product-gallery { position: sticky; top: 92px; display: grid; gap: 12px; }
.product-main { overflow: hidden; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); aspect-ratio: 1; display: grid; place-items: center; }
/* A photo keeps its own shape (a square box cropped portrait photos through the middle), up to 80%
   of the screen's height; a taller one is trimmed from the bottom so faces stay in. */
.product-main:has(img) { aspect-ratio: auto; }
.product-main img { width: 100%; height: auto; max-height: 80vh; object-fit: cover; object-position: top; }
.product-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.product-thumbs button { width: 72px; height: 72px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); opacity: 0.6; transition: opacity 0.2s, border-color 0.2s; }
.product-thumbs button[aria-current='true'], .product-thumbs button:hover { opacity: 1; border-color: var(--ink); }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { display: grid; gap: 20px; }
.product-title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -0.02em; }
.product-price { font-size: 22px; font-weight: 600; }
.product-price s { margin-left: 8px; color: var(--muted); font-weight: 400; }
.product-description { font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.product-description p + p { margin-top: 12px; }
.product-description a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.product-form { display: grid; gap: 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.option { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.option-values { display: flex; flex-wrap: wrap; gap: 8px; }
.option-value input, .plan input { position: absolute; opacity: 0; pointer-events: none; }
.option-value span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.option-value input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.option-value input:focus-visible + span, .plan input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.quantity { display: grid; gap: 10px; }
.stepper { display: inline-flex; align-items: center; justify-self: start; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.stepper button { width: 40px; height: 40px; font-size: 18px; }
.stepper input { width: 44px; height: 40px; border: 0; background: none; text-align: center; font: inherit; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; }
.stepper-sm button { width: 30px; height: 30px; font-size: 15px; }
.stepper button:disabled { opacity: 0.3; cursor: not-allowed; }
.stock-note { margin: -2px 0 0; }
.cart-notice { margin: 0 0 12px; }
.stepper-sm span { min-width: 22px; text-align: center; font-size: 14px; }
.subscription-terms { font-size: 12px; line-height: 1.5; color: var(--muted); font-style: italic; }
.selling-plans { display: grid; gap: 10px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.plan span { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.plan span::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--muted); box-sizing: border-box; }
.plan input:checked + span::before { border: 5px solid var(--ink); }
.plan-note { font-size: 12px; color: var(--muted); }
.plan-note a { color: var(--ink); text-decoration: underline; }
.product-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product-buttons .pill svg { width: 17px; height: 17px; }
.market-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--sand); font-size: 14px; }
.form-error { padding: 12px 16px; border-radius: var(--r-md); background: var(--blush-soft); color: #7a2e22; font-size: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card { display: grid; gap: 6px; }
.product-card img, .product-card-blank { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); margin-bottom: 8px; transition: transform 0.4s; }
.product-card-blank { display: grid; place-items: center; }
.product-card-blank svg, .product-main > .product-card-blank svg { width: 60px; height: 46px; color: var(--ink); }
.product-card:hover img { transform: scale(1.02); }
.product-card-title { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.product-card-price { font-size: 14px; color: var(--ink-soft); }

/* Store: cart page and drawer */
.cart-page { max-width: calc(880px + 2 * var(--gutter)); margin: 0 auto; }
.cart-page > * { max-width: none; }
.cart-page h1 { margin-bottom: 32px; }
.cart-empty { text-align: center; display: grid; gap: 20px; justify-items: center; }
.cart-empty h1 { margin-bottom: 0; }
.cart-lines { display: grid; }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.cart-line img, .cart-line-blank { width: 96px; height: 96px; border-radius: var(--r-md); object-fit: cover; background: #fff; border: 1px solid var(--line); }
.cart-line-text { display: grid; gap: 4px; }
.cart-line-title { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.cart-line-meta { font-size: 13px; color: var(--muted); }
.cart-line-qty { display: flex; align-items: center; gap: 8px; }
.cart-line-qty input { width: 56px; height: 38px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; font: inherit; text-align: center; }
.cart-remove { font-size: 13px; color: var(--muted); text-decoration: underline; }
.cart-line-total { font-weight: 600; text-align: right; }
.cart-summary { display: grid; gap: 10px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 18px; font-weight: 600; }
.cart-drawer { position: fixed; inset: 0; z-index: 40; }
.cart-drawer[hidden] { display: none; }
.cart-drawer-backdrop { position: absolute; inset: 0; background: rgba(28, 28, 28, 0.45); animation: fade 0.2s; }
.cart-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--cream); box-shadow: var(--shadow-3); animation: slide-in 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cart-drawer-title { font-family: var(--serif); font-weight: 400; font-size: 30px; }
.cart-drawer-close { display: grid; place-items: center; width: 40px; height: 40px; }
.cart-drawer-close svg { width: 22px; height: 22px; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; display: grid; align-content: start; gap: 16px; }
.cart-lines-compact .cart-line { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; }
.cart-lines-compact .cart-line img, .cart-lines-compact .cart-line-blank { width: 72px; height: 72px; }
.cart-lines-compact .cart-line-title { font-size: 19px; }
.cart-lines-compact .stepper { margin-top: 6px; }
.drawer-open { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .cart-drawer-panel, .cart-drawer-backdrop { animation: none; } }

/* Store: banner intro (merch) */
.block-banner { position: relative; margin: 12px 12px 0; height: clamp(220px, 28vh, 280px); border-radius: var(--r-xl); overflow: hidden; display: flex; align-items: flex-end; color: var(--cream); }
.banner-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.block-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 28, 28, 0) 40%, rgba(28, 28, 28, 0.55) 100%); }
.banner-text { position: relative; z-index: 1; width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) clamp(32px, 5vw, 56px); display: grid; gap: 12px; }
.banner-lead { max-width: 520px; color: rgba(255, 253, 247, 0.9); }
.product-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Store: chapter finder */
.chapter-tools { display: grid; gap: 14px; justify-items: center; margin-bottom: 28px; }
.chapter-tools input { width: min(520px, 100%); height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 16px; }
.chapter-tools input:focus { outline: none; border-color: var(--ink); }
.chapter-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chapter-tabs[hidden] { display: none; }
.chapter-tabs button { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; transition: background 0.2s, color 0.2s; }
.chapter-tabs button[aria-pressed='true'] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chapter-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.chapter-list li[hidden] { display: none; }
.chapter { position: relative; display: grid; gap: 4px; height: 100%; padding: 18px 60px 18px 20px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s; }
.chapter:hover { border-color: var(--ink); transform: translateY(-2px); }
.chapter-name { font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.chapter-meta { font-size: 12px; color: var(--muted); }
.chapter .card-arrow { top: 50%; bottom: auto; transform: translateY(-50%); }
.chapter:hover .card-arrow { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chapter-empty { text-align: center; margin-top: 12px; }

/* Store: experiences */
.experience-tabs { margin-bottom: 28px; }
.experiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.experiences li[hidden] { display: none; }
.experience { display: grid; height: 100%; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-1); transition: transform 0.25s, box-shadow 0.25s; }
.experience:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.experience-media { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; }
.experience-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.experience:hover .experience-media img { transform: scale(1.04); }
.experience-date { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 253, 247, 0.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; }
.experience-body { display: grid; gap: 10px; align-content: start; padding: 22px 24px 24px; }
.experience-title { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 32px); line-height: 1.05; }
.experience-text { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.experience-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.experience-price { font-size: 18px; font-weight: 600; }

/* Retreat pages */
/* Long button labels (email addresses) wrap instead of pushing the page wider. */
.pill { max-width: 100%; }
.dark-panel .pill, .block-details .pill { white-space: normal; height: auto; min-height: 52px; padding-top: 12px; padding-bottom: 12px; text-align: center; overflow-wrap: anywhere; }
.block-banner-tall { height: clamp(440px, 64vh, 660px); }
.gallery-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.block-photo { display: grid; gap: clamp(24px, 3vw, 40px); }
.photo-head { display: grid; gap: 6px; justify-items: center; text-align: center; }
.photo-line { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 26px); color: var(--ink-soft); }
.photo-image { width: 100%; max-height: 640px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
.block-details { background: var(--cream-deep); scroll-margin-top: 80px; }
.details-eyebrow { margin-bottom: 18px; }
.details-columns { display: grid; gap: 16px; }
.details-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.details-column { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--cream); border: 1px solid var(--line); }
.details-heading, .stay-heading { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 42px); line-height: 1.02; letter-spacing: -0.01em; }
.details-list { display: grid; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.details-list li { position: relative; padding-left: 20px; }
.details-list li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--taupe); }
.details-options { display: grid; }
.details-options li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.option-title { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.option-price { font-weight: 600; font-size: 17px; }
.option-text { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.details-note { font-size: 13px; line-height: 1.55; color: var(--muted); }
.block-details .pill-row { margin-top: 28px; }
.block-stay { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; }
.block-stay > * { max-width: none; margin: 0; }
.block-stay + .block-stay { padding-top: 0; }
.stay-text { display: grid; gap: 14px; }
.stay-photos { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.stay-photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.stay-photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.stay-photos-1 img { aspect-ratio: 4 / 3; }

/* Tablets */
@media (max-width: 1080px) {
  .header-cta { display: none; }
  .country-picker select { max-width: 150px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .header-logo span { display: none; }
  .way-cards, .testimonial-track { gap: 12px; }
}

/* Phones */
@media (max-width: 809px) {
  .header-inner { height: 60px; gap: 12px; }
  .header-logo span { display: inline; font-size: 20px; }
  .header-cta { display: inline-flex; height: 34px; padding: 0 14px; font-size: 12px; }
  .menu-toggle { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; }
  .menu-toggle svg { width: 24px; height: 24px; }
  .site-nav { position: fixed; inset: 0; z-index: 30; background: var(--cream); padding: 88px var(--gutter) 40px; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; }
  .site-nav.open { opacity: 1; visibility: visible; }
  /* A blurred header would hold the fixed menu inside its 60px bar, so the blur is off while it is open. */
  .menu-open { overflow: hidden; }
  .menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-close { display: grid; place-items: center; position: absolute; top: 10px; right: calc(var(--gutter) - 8px); width: 40px; height: 40px; }
  .menu-close svg { width: 24px; height: 24px; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 0; font-family: var(--serif); font-size: 30px; font-weight: 400; color: var(--ink); }
  .chevron svg { width: 20px; height: 20px; }
  .nav-dropdown { position: static; display: none; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0 0 12px; border: 0; box-shadow: none; background: none; }
  .nav-menu.open .nav-dropdown, .nav-menu:hover .nav-dropdown { transform: none; }
  .nav-menu.open .nav-dropdown { display: block; }
  .nav-dropdown::before { display: none; }
  .nav-dropdown a { padding: 8px 0; font-size: 16px; }

  /* Phones: three photos in place of the video, with the words below them. */
  .hero { padding: 8px 8px 0; }
  .hero-frame { display: block; height: auto; min-height: 0; overflow: visible; border-radius: 0; color: var(--ink); }
  .hero-video, .hero-shade { display: none; }
  .hero-photos { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 8px; align-items: center; }
  .hero-photos img { width: 100%; height: auto; aspect-ratio: 3 / 4.2; object-fit: cover; border-radius: var(--r-lg); }
  .hero-photos img:nth-child(2) { aspect-ratio: 3 / 4.6; }
  .hero-content { gap: 14px; padding: 28px calc(var(--gutter) - 8px) 8px; }
  .hero .label-light { color: var(--muted); }
  .hero-title { font-size: clamp(52px, 15vw, 72px); }
  .hero-intro { color: var(--ink-soft); }
  .hero .pill-light { background: var(--ink); color: var(--cream); }

  .stats { padding: 20px var(--gutter); }
  .stats ul { flex-direction: column; gap: 2px; }
  .stats li { font-size: 22px; }
  .stats-mark { display: none; }

  .mission { grid-template-columns: 1fr; }
  .mission-image { aspect-ratio: 4 / 4.6; }

  .way-cards { grid-template-columns: 1fr; }
  .way-card { aspect-ratio: 4 / 3; }

  .testimonial-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-padding: 0 var(--gutter); }
  .testimonial-track::-webkit-scrollbar { display: none; }
  .testimonial { flex: 0 0 86%; scroll-snap-align: start; }
  .carousel-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
  .carousel-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-1); }
  .carousel-arrow svg { width: 18px; height: 18px; }
  .carousel-dots { display: flex; gap: 8px; }
  .carousel-dots button { width: 7px; height: 7px; border-radius: 999px; background: var(--line); transition: width 0.25s, background 0.25s; }
  .carousel-dots button[aria-selected='true'] { width: 22px; background: var(--ink); }

  .find-people { padding-left: 8px; padding-right: 8px; }
  .find-panel { border-radius: var(--r-lg); }
  .find-panel .pill-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-newsletter { grid-column: 1 / -1; }
  .newsletter-form .pill { flex: 1 1 100%; }
}

/* Phones: store pages (last, so these win over the store's desktop rules above) */
@media (max-width: 809px) {
  .header-inner > .country-picker { display: none; }
  .site-nav .country-picker { display: block; margin-top: 28px; }
  .site-nav .country-picker select { max-width: none; width: 100%; height: 48px; font-size: 15px; }
  .product { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .product-buttons { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-line img, .cart-line-blank { width: 72px; height: 72px; }
  .cart-line-qty, .cart-line-total { grid-column: 2; }
  .cart-line-total { text-align: left; }
}

/* Narrow phones: the monogram alone, so the join button, cart and menu fit beside it */
@media (max-width: 430px) {
  .header-logo span { display: none; }
}

/* Desktop widths where the menu, country picker, join button and cart are tight */
@media (min-width: 810px) and (max-width: 1280px) {
  .header-logo span { display: none; }
  .country-picker select { max-width: 150px; }
}
@media (min-width: 810px) and (max-width: 900px) {
  .header-inner { gap: 14px; }
  .site-nav > ul { gap: 12px; }
  .nav-link { font-size: 13px; }
  .country-picker select { max-width: 120px; }
}

/* Store part 2 on smaller screens */
@media (max-width: 1080px) {
  .product-grid-4, .chapter-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 809px) {
  .block-banner { margin: 8px 8px 0; height: 240px; border-radius: var(--r-lg); }
  .experiences, .chapter-list { grid-template-columns: 1fr; }
  .product-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* Retreat pages on phones */
@media (max-width: 809px) {
  .details-columns-2, .block-stay { grid-template-columns: 1fr; }
  .photo-image { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
  .block-banner-tall { height: 520px; }
  .gallery-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Shop grids, the featured collection and the events toolbar (src/render/shop.js). Laid out like
   the leading activewear shops: compact header, a thin toolbar, four tall photos per row with
   small gaps and square-ish corners, small sans-serif text, quick add over the photo. */
.block-intro-compact { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(12px, 2vw, 20px); }
.intro-compact { display: grid; gap: 8px; justify-items: center; text-align: center; }
.intro-compact-title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.01em; }
.intro-compact .body { max-width: 560px; font-size: 15px; }

.shop-toolbar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; position: sticky; top: 72px; z-index: 15; margin: 0 auto 16px; padding: 10px 0; background: var(--cream); border-bottom: 1px solid var(--line); font-size: 13px; }
.shop-filter { order: -1; }
.shop-filter > summary { list-style: none; cursor: pointer; }
.shop-filter > summary::-webkit-details-marker { display: none; }
.shop-filter-button { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 999px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; font-size: 12px; }
.shop-filter-icon { width: 14px; height: 10px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; position: relative; }
.shop-filter-icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid currentColor; transform: translateY(-50%); }
.shop-count { margin-left: auto; color: var(--muted); }
.shop-count span:first-child { color: var(--ink); font-weight: 600; }
.shop-sort select { height: 34px; padding: 0 22px 0 4px; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1c1c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center / 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); -webkit-appearance: none; appearance: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.shop-view { display: inline-flex; gap: 2px; }
.shop-view-button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; color: var(--muted); }
.shop-view-button[aria-pressed="true"] { color: var(--ink); background: var(--cream-deep); }
.shop-view-icon { display: block; width: 16px; height: 12px; background: currentColor; }
.shop-view-2 { -webkit-mask: linear-gradient(90deg, #000 45%, transparent 45% 55%, #000 55%); mask: linear-gradient(90deg, #000 45%, transparent 45% 55%, #000 55%); }
.shop-view-3 { -webkit-mask: linear-gradient(90deg, #000 28%, transparent 28% 36%, #000 36% 64%, transparent 64% 72%, #000 72%); mask: linear-gradient(90deg, #000 28%, transparent 28% 36%, #000 36% 64%, transparent 64% 72%, #000 72%); }
.shop-view-4 { -webkit-mask: linear-gradient(90deg, #000 19%, transparent 19% 27%, #000 27% 46%, transparent 46% 54%, #000 54% 73%, transparent 73% 81%, #000 81%); mask: linear-gradient(90deg, #000 19%, transparent 19% 27%, #000 27% 46%, transparent 46% 54%, #000 54% 73%, transparent 73% 81%, #000 81%); }

/* The filter panel: a full-height sheet from the right (from the bottom on phones). */
.shop-filter[open]::before { content: ''; position: fixed; inset: 0; z-index: 40; background: rgba(28, 28, 28, 0.32); }
.shop-filter-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(420px, 100vw); overflow: auto; display: grid; align-content: start; gap: 22px; padding: 24px; background: #fff; box-shadow: var(--shadow-3); }
.shop-filter-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.shop-filter-title { font-size: 13px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.shop-filter-close svg { width: 22px; height: 22px; }
.shop-group { display: grid; gap: 10px; margin: 0; padding: 0 0 18px; border: 0; border-bottom: 1px solid var(--line); }
.shop-options { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-chip input, .shop-check input { position: absolute; opacity: 0; pointer-events: none; }
.shop-check { position: relative; display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.shop-check::before { content: ''; width: 18px; height: 18px; border: 1px solid var(--ink); border-radius: 3px; }
.shop-check:has(input:checked)::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fffdf7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.shop-chip { position: relative; cursor: pointer; }
.shop-chip > span:last-child { display: inline-flex; align-items: center; gap: 8px; min-width: 44px; justify-content: center; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; background: #fff; transition: border-color 0.15s, background 0.15s; }
.shop-chip:hover > span:last-child { border-color: var(--ink); }
.shop-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.shop-chip input:focus-visible + span, .shop-check input:focus-visible ~ * { outline: 2px solid var(--ink); outline-offset: 2px; }
.shop-filter-actions { position: sticky; bottom: -24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -24px -24px; padding: 16px 24px; background: #fff; border-top: 1px solid var(--line); }
.shop-clear { font-size: 13px; text-decoration: underline; cursor: pointer; }
.shop-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 auto 16px; }
.shop-chips[hidden] { display: none; }
.shop-chip-active { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 4px; background: var(--cream-deep); font-size: 12px; }
.shop-chip-active:hover { background: var(--ink); color: var(--cream); }
.shop-empty { display: grid; justify-items: center; gap: 14px; padding: 48px 0; text-align: center; }
.shop-empty[hidden] { display: none; }

/* The grid: four tall photos per row, small gaps. */
.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 8px; }
.shop-grid[data-view="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-grid[data-view="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop-grid > [hidden] { display: none; }
.shop-card { display: grid; align-content: start; gap: 10px; min-width: 0; }
.shop-card-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; background: var(--cream-deep); }
.shop-card-photo { position: absolute; inset: 0; display: block; }
.shop-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; color: transparent; background: var(--cream-deep); transition: opacity 0.45s, transform 0.8s; }
.shop-card-media .product-card-blank { position: absolute; inset: 0; display: grid; place-items: center; }
.shop-card-alt { opacity: 0; }
.shop-card:hover .has-alt .shop-card-alt { opacity: 1; }
.shop-card:hover .shop-card-main { transform: scale(1.02); }
.shop-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; pointer-events: none; }
.shop-badge { padding: 4px 8px; border-radius: 3px; background: #fff; font-size: 10px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; }
.shop-badge-dark { background: var(--ink); color: var(--cream); }
.shop-card-link { display: grid; gap: 4px; padding: 0 2px; }
.shop-card-title { font-family: var(--sans); font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.shop-card-price { font-size: 14px; color: var(--ink-soft); }
.shop-card-price s { margin-left: 6px; color: var(--muted); }
.shop-swatches { display: flex; gap: 5px; margin-bottom: 4px; }
.shop-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--swatch, var(--sand)); box-shadow: inset 0 0 0 1px rgba(28, 28, 28, 0.2); }
.shop-card-link:hover .shop-card-title { text-decoration: underline; text-underline-offset: 3px; }

/* Quick add, over the bottom of the photo: shown on hover (always, as a + on touch screens). */
.quick-add { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; }
.quick-add > summary { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 14px; border-radius: 4px; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 12px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; cursor: pointer; list-style: none; opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s; }
.quick-add > summary::-webkit-details-marker { display: none; }
.quick-add-plus { font-size: 18px; font-weight: 400; }
.shop-card:hover .quick-add > summary, .quick-add > summary:focus-visible, .quick-add[open] > summary { opacity: 1; transform: none; }
.quick-add[open] > summary { border-radius: 4px 4px 0 0; }
.quick-add form { display: grid; gap: 8px; padding: 12px 14px 14px; background: rgba(255, 255, 255, 0.97); border-radius: 0 0 4px 4px; }
.quick-add-label { font-size: 12px; color: var(--muted); }
.quick-add-options { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-add-option { min-width: 42px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 12px; font-weight: 600; }
.quick-add-option:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.quick-add-option:disabled { color: var(--muted); text-decoration: line-through; cursor: not-allowed; background: var(--cream-deep); }
.quick-add form > .pill { width: 100%; border-radius: 4px; }
.quick-add-status { font-size: 12px; color: var(--ink-soft); }
.quick-add-status:empty { display: none; }
.quick-add-link { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 4px; background: rgba(255, 255, 255, 0.94); font-size: 12px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; opacity: 0; transition: opacity 0.2s; }
.shop-card:hover .quick-add-link, .quick-add-link:focus-visible { opacity: 1; }
@media (hover: none) {
  .quick-add { left: auto; }
  .quick-add > summary { opacity: 1; transform: none; width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; margin-left: auto; }
  .quick-add > summary > span:first-child { display: none; }
  .quick-add[open] { left: 8px; }
  .quick-add[open] > summary { width: 100%; border-radius: 4px 4px 0 0; justify-content: space-between; padding: 0 14px; }
  .quick-add[open] > summary > span:first-child { display: inline; }
  .quick-add-link { display: none; }
}

/* A featured collection: small photo and title above its products. */
.collection-feature { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.collection-photo img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.collection-text { display: grid; gap: 2px; justify-items: start; }
.collection-text .label { margin: 0; }
.collection-heading { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2vw, 30px); line-height: 1.1; margin: 0; }
.collection-text .pill-row { margin-top: 6px; }
.shop-grid-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shop-grid-row[data-view="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-grid-row[data-view="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.block-collection { padding-bottom: clamp(24px, 3vw, 40px); }
.block-collection + .block-products, .block-intro-compact + .block-collection { padding-top: 0; }

/* Events keep their own cards, with the same toolbar. */
.shop-grid-experiences[data-view="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.experiences > [hidden] { display: none; }
.experience-badge { position: absolute; top: 14px; right: 14px; }

@media (max-width: 1080px) {
  .shop-grid[data-view="4"], .shop-grid:not([data-view]), .shop-grid-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-grid-experiences[data-view="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 809px) {
  .shop-toolbar { top: 64px; gap: 10px; }
  .shop-filter-panel { top: auto; left: 0; width: auto; max-height: 85vh; border-radius: 12px 12px 0 0; }
  .shop-grid, .shop-grid[data-view="3"], .shop-grid[data-view="4"], .shop-grid-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 6px; }
  .shop-grid[data-view="2"] { grid-template-columns: 1fr; }
  .shop-view-button[data-shop-view="4"] { display: none; }
  .shop-grid-experiences, .shop-grid-experiences[data-view="3"] { grid-template-columns: 1fr; }
  .shop-card-title, .shop-card-price { font-size: 13px; }
}
/* While the filter panel is open its toolbar rises above the site header, so the panel does too. */
.shop-toolbar:has(.shop-filter[open]) { z-index: 50; }
