/* Église du Sauveur Vivant — website mockup
   Palette and type are taken strictly from the brand book (docs/CLSLogo.pdf).
   Gold is only ever a fine rule or a small label on a deep background. */

:root {
  /* Brand palette */
  --vert: #0B4A35;      /* Vert Vivant */
  --sapin: #07291E;     /* Sapin de Genève */
  --sauge: #5E7A6B;     /* Sauge — portrait tiles, footer skyline (never small text: 4.5:1 at best) */
  --or: #A9854F;        /* Or Liturgique */
  --creme: #F4EFE6;     /* Crème de Lin */
  --gres: #DBD2C1;      /* Grès — light hairlines, the welcome band */
  --etain: #8C8678;     /* Étain — field borders only (3.5:1: fine for outlines, too light for text) */
  --encre: #1C1C1A;     /* Encre */
  --blanc: #FBFAF7;     /* Blanc */

  /* Light theme roles */
  --bg: var(--blanc);
  --bg-alt: var(--creme);
  --text: var(--encre);
  --muted: rgb(28 28 26 / .72);
  --heading: var(--sapin);
  --accent: var(--vert);
  --on-accent: var(--blanc);
  --label: var(--vert);
  --line: var(--gres);
  --card: var(--blanc);
  --band: var(--gres);
  --band-label: var(--vert);
  --hero-bg: var(--gres);
  --mark: url("svg/symbol-creme.svg");
  --hero: var(--hero-bg) var(--mark);
  --shadow: 0 1px 0 rgb(7 41 30 / .06), 0 18px 40px -24px rgb(7 41 30 / .35);
  color-scheme: light;

  /* Type */
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --fs-xs: .75rem;
  --fs-sm: .9rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h3: 1.75rem;
  --fs-h2: clamp(2.25rem, 1.55rem + 2.6vw, 3.75rem);
  --fs-h1: clamp(3rem, 1.6rem + 6.2vw, 7.25rem);

  /* Layout */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --section: clamp(3rem, 2rem + 3.5vw, 5.5rem);
  --header: 76px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--sapin);
    --bg-alt: color-mix(in srgb, var(--vert) 32%, var(--sapin));
    --text: var(--creme);
    --muted: rgb(244 239 230 / .74);
    --heading: var(--blanc);
    --accent: var(--creme);
    --on-accent: var(--sapin);
    --label: var(--or);
    --line: rgb(244 239 230 / .14);
    --card: color-mix(in srgb, var(--vert) 45%, var(--sapin));
    --band: var(--vert);
    --band-label: var(--creme);
    --hero-bg: var(--sapin);
    --mark: url("svg/symbol-vert.svg");
    --shadow: 0 18px 40px -24px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--sapin);
  --bg-alt: color-mix(in srgb, var(--vert) 32%, var(--sapin));
  --text: var(--creme);
  --muted: rgb(244 239 230 / .74);
  --heading: var(--blanc);
  --accent: var(--creme);
  --on-accent: var(--sapin);
  --label: var(--or);
  --line: rgb(244 239 230 / .14);
  --card: color-mix(in srgb, var(--vert) 45%, var(--sapin));
  --band: var(--vert);
  --band-label: var(--creme);
  --hero-bg: var(--sapin);
  --mark: url("svg/symbol-vert.svg");
  --shadow: 0 18px 40px -24px rgb(0 0 0 / .6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-base)/1.65 var(--sans);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--heading); margin: 0; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 400; line-height: .98; letter-spacing: -.015em; }
h2 { font-size: var(--fs-h2); line-height: 1.04; font-weight: 400; }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
h4 { font-family: var(--sans); font-size: var(--fs-base); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
em, .it { font-style: italic; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--creme); color: var(--sapin); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 46rem; }

/* Archivo capitals — the brand's sub-title style. Used sparingly. */
.caps {
  font: 600 var(--fs-xs)/1.4 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--label);
}
/* Short gold fine rule, as on the brand slides */
.rule { display: block; width: 4.5rem; height: 1px; background: var(--or); border: 0; margin: 1.6rem 0; }
.lede { font-size: var(--fs-lg); line-height: 1.6; color: var(--muted); max-width: 38rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3rem; padding: .8rem 1.6rem;
  font: 500 var(--fs-sm)/1.2 var(--sans); letter-spacing: .02em;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px;
  background: var(--accent); color: var(--on-accent);
  transition: background-color .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 86%, var(--text)); }
.btn--ghost { background: transparent; color: var(--heading); border-color: color-mix(in srgb, var(--heading) 45%, transparent); }
.btn--ghost:hover { background: color-mix(in srgb, var(--heading) 8%, transparent); border-color: var(--heading); }
/* Buttons on a deep surface (header, hero, footer, deep sections) */
.deep .btn { background: var(--creme); color: var(--sapin); }
.deep .btn:hover { background: var(--blanc); }
.deep .btn--ghost { background: transparent; color: var(--creme); border-color: rgb(244 239 230 / .55); }
.deep .btn--ghost:hover { background: rgb(244 239 230 / .08); border-color: var(--creme); }
.link { font-weight: 500; color: var(--heading); text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: .35em; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Deep surfaces (always Sapin) ---------- */
.deep {
  --heading: var(--blanc);
  --text: var(--creme);
  --muted: rgb(244 239 230 / .74);
  --label: var(--or);
  --line: rgb(244 239 230 / .14);
  background: var(--sapin);
  color: var(--text);
}

/* ---------- Signature (horizontal) ---------- */
.signature { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--creme); min-width: 240px; flex: none; } /* never squeezed: brand minimum */
.signature svg { width: 30px; height: 42px; flex: none; }
.signature .bar { width: 1px; align-self: stretch; background: var(--or); opacity: .8; margin-block: 2px; }
.signature .name { display: grid; gap: 3px; }
.signature .name b { font: 500 1.06rem/1.1 var(--sans); letter-spacing: -.005em; color: var(--blanc); }
.signature .name small { font: 600 .5rem/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--or); }

.mark { display: inline-block; color: currentColor; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgb(244 239 230 / .1); }
/* The header bar is wider than the content column: the full French nav needs ~1280px of it */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: var(--header); max-width: 1440px; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 1.6vw, 1.75rem); }
.nav a { font: 400 var(--fs-sm)/1 var(--sans); color: rgb(244 239 230 / .82); text-decoration: none; padding: .6rem 0; position: relative; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blanc); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 1px; background: var(--or); }
.tools { display: flex; align-items: center; gap: .9rem; }
.lang { display: flex; gap: .15rem; font: 500 var(--fs-xs)/1 var(--sans); letter-spacing: .12em; }
.lang a, .lang span { padding: .5rem .35rem; color: rgb(244 239 230 / .6); text-decoration: none; }
.lang [aria-current] { color: var(--blanc); }
/* Header language menu (native disclosure): same size for 3 languages or 10 */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .9rem; border: 1px solid rgb(244 239 230 / .22); border-radius: 99px; font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .12em; color: var(--creme); cursor: pointer; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: .38rem; height: .38rem; margin: -.2rem 0 0 .15rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); transition: transform .2s; }
.lang-menu[open] summary::after { margin-top: .2rem; transform: rotate(-135deg); }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: rgb(244 239 230 / .6); }
.lang-menu svg.i { width: 18px; height: 18px; vertical-align: 0; }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 60; min-width: 13rem; margin: 0; padding: .35rem; list-style: none; background: var(--sapin); border: 1px solid rgb(244 239 230 / .16); border-radius: 2px; box-shadow: 0 18px 40px -16px rgb(0 0 0 / .6); }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 44px; padding: 0 .8rem; color: rgb(244 239 230 / .82); text-decoration: none; font-size: var(--fs-sm); }
.lang-menu a:hover { background: rgb(244 239 230 / .06); color: var(--blanc); }
.lang-menu a[aria-current] { color: var(--blanc); font-weight: 600; box-shadow: inset 1px 0 var(--or); }
.lang-menu small { font: 600 .68rem/1 var(--sans); letter-spacing: .16em; color: var(--or); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: transparent; border: 1px solid rgb(244 239 230 / .22); border-radius: 50%;
  color: var(--creme); cursor: pointer;
}
.icon-btn:hover { border-color: rgb(244 239 230 / .6); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
.menu-btn { display: none; }
.header-cta { margin-left: .3rem; min-height: 2.6rem; padding: .6rem 1.1rem; }

/* No shrinking the signature on phones: brand minimum for the horizontal signature is 240px on screen. */
@media (max-width: 560px) {
  .lang { display: none; }
  .site-header .wrap { gap: .75rem; }
  .tools .theme-toggle { display: none; }
  .nav .nav-theme { display: inline-grid; margin-top: 1rem; }
}
.nav-theme { display: none; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--alt { background: var(--bg-alt); }
.section-head { display: grid; gap: 1.1rem; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); max-width: 50rem; }
.section-head p { margin: 0; }
/* Wide screens: heading left, lede right, instead of a tall stack beside an empty half */
@media (min-width: 900px) {
  .section-head:has(> .lede) { max-width: none; grid-template-columns: 1.1fr .9fr; column-gap: var(--gutter); align-items: end; }
  .section-head:has(> .lede) > * { grid-column: 1; }
  .section-head > .lede { grid-column: 2; grid-row: 1 / span 2; }
}
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: center; }

/* ---------- Hero ---------- */
/* The home hero fills the first screen (header + hero = viewport). Padding, title and film size follow the
   screen height too, so the buttons stay above the fold on short laptop screens. svh: the height with mobile toolbars shown. */
.hero {
  position: relative; overflow: hidden; background: var(--hero-bg); /* Grès in light, Sapin in dark */
  --pad-t: clamp(2rem, 7svh, 6rem); --pad-b: clamp(2rem, 6svh, 4.5rem);
  --room: calc(100svh - var(--header) - var(--pad-t) - var(--pad-b));
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; align-content: center; min-height: calc(100svh - var(--header)); padding-block: var(--pad-t) var(--pad-b); }
.hero h1 { font-size: clamp(2.5rem, min(1.6rem + 6.2vw, 12.5svh), 7.25rem); }
@media (min-width: 901px) { .hero-figure { width: min(100%, var(--room) * 5 / 7); justify-self: end; } } /* keeps the 5:7 frame whole */
.hero h1 .line { display: block; }
.hero .tongues { margin-top: 1.6rem; font: italic 400 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1.35 var(--serif); color: var(--muted); }
.hero .tongues span { display: block; }
.hero .tongues abbr { font: 600 .62rem/1 var(--sans); font-style: normal; letter-spacing: .22em; color: var(--label); text-decoration: none; margin-right: .9rem; vertical-align: .3em; }
.hero p.intro { max-width: 32rem; margin: 2rem 0 2.2rem; color: var(--text); font-size: var(--fs-lg); }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-figure { position: relative; margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 2px; }
.hero-figure figcaption { margin-top: .9rem; font-size: var(--fs-xs); letter-spacing: .04em; color: var(--muted); }

/* The next-gathering card that sits on the hero photo */
.next {
  position: absolute; left: clamp(-3.5rem, -4vw, -1rem); bottom: 2.2rem;
  background: var(--creme); color: var(--encre);
  padding: 1.3rem 1.5rem 1.2rem; min-width: 15.5rem; border-radius: 2px;
  box-shadow: 0 24px 48px -20px rgb(0 0 0 / .55);
}
.next .caps { color: var(--vert); }
.next strong { display: block; font: 500 2.6rem/1 var(--serif); color: var(--sapin); margin: .5rem 0 .25rem; }
.next span { font-size: var(--fs-sm); color: rgb(28 28 26 / .75); }

/* Today's scripture (filled by scripture.js). Wide screens: it tops the right column and the film gives up
   the height, so the verse is on the first screen however short the window. Phones: between the buttons and the film. */
.today { padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--text) 16%, transparent); }
.today blockquote { margin: .55rem 0 0; }
.today p { font: italic 400 clamp(1.1rem, .95rem + .3vw, 1.25rem)/1.4 var(--serif); color: var(--text); margin: 0 0 .45rem; text-wrap: pretty; }
.today cite { font: 500 var(--fs-xs)/1.4 var(--sans); font-style: normal; letter-spacing: .08em; color: var(--muted); }
@media (min-width: 901px) {
  .hero .wrap { grid-template-rows: auto minmax(18rem, 1fr); row-gap: 0; } /* 18rem: film still shows above the Sunday card */
  .hero .rise { grid-row: 1 / 3; align-self: start; } /* top: the kicker lines up with the verse label, no gap above it on tall screens */
  .hero .today { grid-area: 1 / 2; align-self: start; justify-self: end; width: min(100%, var(--room) * 5 / 7); margin-bottom: clamp(1rem, 3svh, 1.75rem); padding-top: 0; border-top: 0; }
  .hero-figure { grid-area: 2 / 2; align-self: stretch; display: flex; flex-direction: column; }
  .hero .hero-figure video { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; align-items: start; }
  .hero-figure img { aspect-ratio: 7 / 5; }
  .next { left: 1rem; bottom: 1rem; }
}

/* The brand watermark behind the home hero (still, unless parallax runs below) */
.hero::before { content: ""; position: absolute; left: 40%; bottom: 4%; height: 88%; aspect-ratio: 858 / 1200; background: var(--mark) no-repeat center / contain; pointer-events: none; }
.hero .wrap { position: relative; }
@media (max-width: 900px) { .hero::before { left: auto; right: -14%; top: 1.5rem; bottom: auto; height: 46%; } }

/* Gentle parallax on the home page: native scroll-driven animations, no script, off the main thread.
   Small moves only and never on text; off for reduced motion; simply still where animation-timeline is unsupported. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero::before { animation: sink linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero-figure { animation: lift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    /* clip, not hidden: hidden would make the frame its own scroll container and freeze view() */
    main:has(> .hero) :is(.feature-media, .msg-feature .thumb, .space) { overflow: clip; border-radius: 2px; }
    main:has(> .hero) :is(.feature-media img, .msg-feature .thumb img, .space img) { scale: 1.14; animation: drift linear both; animation-timeline: view(); }
  }
}
@keyframes sink { to { translate: 0 18%; } }   /* background: slower than the page */
@keyframes lift { to { translate: 0 -10%; } }  /* foreground: a little faster */
@keyframes drift { from { translate: 0 -6%; } to { translate: 0 6%; } }

/* One orchestrated entrance: the hero lines rise in sequence. */
@media (prefers-reduced-motion: no-preference) {
  .rise > * { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
  .rise > *:nth-child(2) { animation-delay: .12s; }
  .rise > *:nth-child(3) { animation-delay: .3s; }
  .rise > *:nth-child(4) { animation-delay: .45s; }
  .rise > *:nth-child(5) { animation-delay: .6s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- Page hero (inner pages) ---------- */
/* One band height on every inner page, sized for a one-line title and a two-line lede (most pages);
   only a longer title or lede grows it, never an empty band */
.page-hero .wrap { padding-block: clamp(2.25rem, 4.5vw, 3.75rem) clamp(2rem, 3.5vw, 3rem); display: grid; gap: 1.1rem; align-content: center; min-height: clamp(17.75rem, 16.9rem + 2.9vw, 19.5rem); }
/* The brand's website watermark (docs/"Sauf au site comme marque d'eau"): the flame tone-on-tone, upright.
   Title band: Grès with a Crème flame in light, Sapin with the Vert flame in dark. Scripture is always Sapin. */
.page-hero, .scripture { background: var(--hero) no-repeat right max(var(--gutter), calc(50vw - var(--max) / 2 + var(--gutter))) center / auto 82%; }
/* Title band: the flame is taller than the band and runs off its foot, so it stays a watermark rather than a second small logo.
   The line only shows in dark, where band and page are both Sapin and the cut flame needs an edge to end on. */
.page-hero { background-size: auto 28rem; background-position-y: 1.5rem; border-bottom: 1px solid var(--line); } /* fixed: the same flame on every page, whatever the band height */
.scripture { --hero: var(--sapin) url("svg/symbol-vert.svg"); }
@media (max-width: 700px) {
  .page-hero, .scripture { background-size: auto 60%; background-position: right -2rem bottom -1rem; }
  .page-hero { background-size: auto 18rem; background-position: right -1.5rem top 1rem; }
}
.page-hero h1 { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.5rem); max-width: 24ch; }
.page-hero .lede { color: var(--muted); max-width: 44rem; }
.crumbs { font-size: var(--fs-xs); letter-spacing: .06em; color: var(--muted); }
.crumbs a { color: inherit; }

/* ---------- Plan-your-visit strip: tiles, after the brand book's digital mosaic ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.5rem, 1vw, .75rem); margin: 0; }
.facts > div { padding: clamp(1.25rem, 2.2vw, 1.75rem); background: var(--bg-alt); border-radius: 2px; }
.section--alt .facts > div { background: var(--bg); }
.facts > div:nth-child(1) { background: var(--vert); --heading: var(--blanc); --muted: rgb(244 239 230 / .8); --label: var(--creme); }
/* inset line only shows in dark mode, where the page itself is Sapin (in light, Encre melts into Sapin) */
.facts > div:nth-child(3) { background: var(--sapin); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 14%, var(--sapin)); --heading: var(--blanc); --muted: rgb(244 239 230 / .74); --label: var(--or); }
.facts dt { margin-bottom: .6rem; }
.facts dd { margin: 0; font: 500 1.6rem/1.2 var(--serif); color: var(--heading); text-wrap: balance; }
.facts dd small { display: block; margin-top: .4rem; font: 400 var(--fs-sm)/1.5 var(--sans); color: var(--muted); }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .facts dd { font-size: 1.35rem; } }

/* ---------- The symbol: three truths ---------- */
.truths { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.truth { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.truth h3 { margin-bottom: .2rem; }
.truth .alt { font: italic 400 1.1rem/1.4 var(--serif); color: var(--muted); margin-bottom: 1rem; }
.truth .ref { margin-top: 1.2rem; }
@media (max-width: 820px) { .truths { grid-template-columns: 1fr; } }

/* ---------- Media rows (image + text) ---------- */
.feature { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.feature--flip { grid-template-columns: 6fr 5fr; }
.feature--flip .feature-media { order: 2; }
.feature-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.feature-media.wide img { aspect-ratio: 7 / 5; }
.feature-media figcaption { margin-top: .8rem; font-size: var(--fs-xs); color: var(--muted); }
.feature h2 { margin: 1rem 0 1.4rem; }
@media (max-width: 860px) {
  .feature, .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature-media { order: 0; }
  .feature-media img { aspect-ratio: 7 / 5; }
}

/* ---------- Pathways (next steps) ---------- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.path { background: var(--bg); padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: .8rem; text-decoration: none; min-height: 15rem; transition: background-color .25s; }
.section--alt .path { background: var(--bg-alt); }
.path:hover { background: var(--vert); --heading: var(--blanc); --muted: rgb(244 239 230 / .8); }
.path h3 { font-size: 1.9rem; }
.path p { color: var(--muted); margin: 0; }
.path .go { margin-top: auto; font-size: var(--fs-sm); font-weight: 500; color: var(--heading); }
.path .go::after { content: ""; display: inline-block; width: 1.4rem; height: 1px; background: var(--or); vertical-align: middle; margin-left: .6rem; transition: width .25s; }
.path:hover .go::after { width: 2.4rem; }
@media (max-width: 900px) { .paths { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .paths { grid-template-columns: 1fr; } .path { min-height: 0; padding: 1.25rem; gap: .4rem; } .path h3 { font-size: 1.6rem; } }

/* ---------- Scripture ---------- */
.scripture { text-align: left; }
.scripture .wrap { max-width: 64rem; }
.scripture .mark { width: 34px; height: 48px; color: var(--or); margin-bottom: 2.2rem; }
.scripture blockquote { margin: 0; }
.scripture blockquote p:first-child { font: italic 400 clamp(2.1rem, 1.3rem + 3.4vw, 4.4rem)/1.12 var(--serif); color: var(--blanc); margin-bottom: 1.6rem; }
.scripture blockquote p.tr { font: italic 400 clamp(1.15rem, 1rem + .6vw, 1.5rem)/1.45 var(--serif); color: rgb(244 239 230 / .72); margin: 0; }
.scripture cite { display: block; margin-top: .4rem; font-style: normal; }

/* ---------- Message (sermon) cards ---------- */
.messages { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gutter); }
.msg-feature { display: grid; gap: 1.3rem; text-decoration: none; }
.msg-feature .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 2px; background: var(--sapin); }
.msg-feature .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.msg-feature:hover .thumb img { transform: scale(1.025); }
.play { position: absolute; left: 1.4rem; bottom: 1.4rem; width: 64px; height: 64px; border-radius: 50%; background: var(--creme); color: var(--sapin); display: grid; place-items: center; }
.play svg { width: 18px; height: 18px; margin-left: 3px; }
.msg-feature h3 { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem); }
.msg-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.msg-list li { border-bottom: 1px solid var(--line); }
.msg-list a { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: 1.25rem 0; text-decoration: none; }
.msg-list .t { font: 500 1.35rem/1.25 var(--serif); color: var(--heading); }
.msg-list .m { grid-column: 1; font-size: var(--fs-sm); color: var(--muted); }
.msg-list .d { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: var(--fs-xs); letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.msg-list a:hover .t { text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: .2em; }
@media (max-width: 860px) { .messages { grid-template-columns: 1fr; } }

/* ---------- Agenda ---------- */
.agenda { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.agenda li { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: 1.5rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.date { display: grid; justify-items: start; line-height: 1; }
.date b { font: 400 3rem/1 var(--serif); color: var(--heading); }
.date span { font: 600 .68rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--label); margin-top: .35rem; }
.agenda h3 { font-size: 1.55rem; }
.agenda p { margin: .3rem 0 0; color: var(--muted); font-size: var(--fs-sm); }
.tag { display: inline-block; font-size: var(--fs-xs); padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
  .agenda li { grid-template-columns: 4.5rem 1fr; }
  .agenda .tag { grid-column: 2; justify-self: start; }
  .date b { font-size: 2.4rem; }
}

/* ---------- Spaces (the house) ---------- */
.spaces { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.8rem, 1.5vw, 1.25rem); }
.space { position: relative; margin: 0; overflow: hidden; border-radius: 2px; }
.space img { width: 100%; height: 100%; object-fit: cover; min-height: 16rem; }
.space figcaption { position: absolute; left: 0; bottom: 0; background: var(--sapin); color: var(--creme); padding: .9rem 1.1rem; font-size: var(--fs-sm); line-height: 1.35; max-width: 85%; }
.space figcaption .caps { display: block; margin-bottom: .3rem; color: var(--or); font-size: .64rem; }
.space:nth-child(1) { grid-column: span 7; }
.space:nth-child(2) { grid-column: span 5; }
.space:nth-child(3) { grid-column: span 4; }
.space:nth-child(4) { grid-column: span 4; }
.space:nth-child(5) { grid-column: span 4; }
/* Phones: lead photo full width, the rest two-up with the caption under the photo */
@media (max-width: 820px) {
  .space:nth-child(n) { grid-column: span 6; display: flex; flex-direction: column; }
  .space:first-child { grid-column: span 12; }
  .space img { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
  .space figcaption { position: relative; max-width: none; flex: 1; padding: .7rem .8rem; } /* relative: stays above the drifting photo */
}

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { display: grid; gap: .9rem; align-content: start; text-decoration: none; }
.card .img { overflow: hidden; border-radius: 2px; }
.card img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; transition: transform .6s; }
.card.tall img { aspect-ratio: 5 / 7; }
a.card:hover img { transform: scale(1.03); }
.card h3 { font-size: 1.75rem; }
.card p { margin: 0; color: var(--muted); }
.card .meta { font-size: var(--fs-sm); color: var(--muted); }

/* People */
.person { display: grid; gap: .8rem; }
/* Placeholder portrait: the Sauge tile with a Crème flame from the brand book's social grid (p. 23) */
.person .portrait { aspect-ratio: 5 / 7; background: var(--sauge); border-radius: 2px; display: grid; place-items: center; color: var(--creme); overflow: hidden; }
.person h3 { font-size: 1.6rem; }
.person p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Lists / prose ---------- */
.prose { max-width: 42rem; }
.prose h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); margin: 3rem 0 1rem; }
.prose h3 { margin: 2.2rem 0 .6rem; }
.prose .caps + h2 { margin-top: 1rem; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.1rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--or); }
.prose blockquote { margin: 0 0 2.5rem; padding-left: 1.5rem; border-left: 1px solid var(--or); }
.prose blockquote p:first-child { font: italic 400 clamp(1.4rem, 1.15rem + .9vw, 1.9rem)/1.35 var(--serif); color: var(--heading); margin: 0 0 1rem; }
.prose .signature { margin-top: 2rem; font: italic 400 1.35rem/1.3 var(--serif); color: var(--heading); }

.beliefs { list-style: none; padding: 0; margin: 0; counter-reset: b; border-top: 1px solid var(--line); }
.beliefs li { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem var(--gutter); padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.beliefs h3 { font-size: 1.6rem; }
.beliefs p { margin: 0; color: var(--muted); }
.beliefs .ref { display: block; margin-top: .7rem; font-size: var(--fs-xs); letter-spacing: .1em; color: var(--label); }
@media (max-width: 720px) { .beliefs li { grid-template-columns: 1fr; } }

/* FAQ — native disclosure */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; font: 500 1.45rem/1.25 var(--serif); color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background:
  linear-gradient(var(--or), var(--or)) center / 14px 1px no-repeat,
  linear-gradient(var(--or), var(--or)) center / 1px 14px no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.5rem; color: var(--muted); max-width: 42rem; }

/* Steps — a real sequence, so numbers are earned */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.steps li::before { content: counter(s); display: block; font: 400 2.6rem/1 var(--serif); color: var(--label); margin-bottom: 1rem; }
.steps h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.steps p { color: var(--muted); margin: 0; font-size: var(--fs-sm); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .45rem; }
.field label { font-size: var(--fs-sm); font-weight: 500; color: var(--heading); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--text); background: var(--card);
  border: 1px solid var(--etain); border-radius: 2px;
  padding: .85rem 1rem; min-height: 3rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--or); outline-offset: 0; border-color: transparent; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); }
.check input { margin-top: .3rem; accent-color: var(--vert); width: 1.05rem; height: 1.05rem; }
.form-note { font-size: var(--fs-sm); color: var(--muted); }
.form-status { font-size: var(--fs-sm); color: var(--heading); min-height: 1.4em; }

.newsletter { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter input { flex: 1 1 14rem; min-height: 3rem; padding: .8rem 1rem; font: inherit; color: var(--creme); background: transparent; border: 1px solid var(--etain); border-radius: 2px; }
.newsletter input::placeholder { color: rgb(244 239 230 / .55); }
.newsletter input:focus { outline: 2px solid var(--or); outline-offset: 0; }

/* ---------- Map ---------- */
.map { position: relative; aspect-ratio: 4 / 3; border-radius: 2px; overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(.95); }
:root[data-theme="dark"] .map iframe { filter: grayscale(.6) invert(.9) hue-rotate(180deg) contrast(.85); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map iframe { filter: grayscale(.6) invert(.9) hue-rotate(180deg) contrast(.85); } }

/* ---------- Give ---------- */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.way { background: var(--bg); padding: 2rem; display: grid; gap: .7rem; align-content: start; }
.way h3 { font-size: 1.7rem; }
.way p { margin: 0; color: var(--muted); }
.way dl { margin: .4rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: var(--fs-sm); }
.way dt { color: var(--muted); }
.way dd { margin: 0; font-weight: 500; color: var(--heading); overflow-wrap: anywhere; }
@media (max-width: 900px) { .ways { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
/* Grès, as the brand book's "Vous étiez attendu" card (p. 21); Vert in dark mode */
.band { background: var(--band); --label: var(--band-label); }
.band :focus-visible, .page-hero :focus-visible, .hero :focus-visible { outline-color: var(--heading); } /* gold is under 3:1 on Grès and Vert */
.band .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gutter); align-items: end; }
@media (max-width: 820px) { .band .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(3rem, 5vw, 4.5rem) 1.5rem; }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: var(--gutter); padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.footer-brand .vertical { display: inline-grid; justify-items: start; gap: 1.1rem; text-decoration: none; }
.footer-brand .vertical svg { width: 44px; height: 62px; color: var(--creme); }
.footer-brand .vertical b { font: 500 1.5rem/1.15 var(--sans); color: var(--blanc); } /* ≥160px wide: brand minimum for the vertical signature */
.footer-brand p { margin-top: 1.4rem; color: var(--muted); max-width: 22rem; font-size: var(--fs-sm); }
.site-footer h2 { font: 600 var(--fs-xs)/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--or); margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer li, .site-footer address { font-size: var(--fs-sm); font-style: normal; color: var(--muted); line-height: 1.7; }
.site-footer a { color: var(--creme); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--or); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 2rem; font-size: var(--fs-xs); color: rgb(244 239 230 / .58); }
.footer-bottom .motto { font: italic 400 1.35rem/1.2 var(--serif); color: var(--creme); }
.social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgb(244 239 230 / .25); border-radius: 50%; }
.social a:hover { border-color: var(--creme); }
.social svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
/* Phones: Sundays + Explore side by side, the address (long lines) full width */
@media (max-width: 520px) { .footer-top { row-gap: 2rem; column-gap: 1.25rem; grid-auto-flow: dense; } .footer-top > div:nth-child(3) { grid-column: 1 / -1; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.notice { font-size: var(--fs-xs); color: var(--muted); }

/* ---------- Components added for the multilingual build ---------- */
svg.i { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
.btn svg.i { width: 18px; height: 18px; }
.h3 { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem); }
.list-title { font: 600 var(--fs-xs)/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--label); margin-bottom: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Header details */
.menu-btn .close { display: none; }
.menu-btn[aria-expanded="true"] .open { display: none; }
.menu-btn[aria-expanded="true"] .close { display: block; }
.nav-give, .nav-lang { display: none; }
/* Full nav needs ~1400px in French, the longest language; below that, the menu button */
@media (max-width: 1400px) {
  .menu-btn { display: inline-grid; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.5rem var(--gutter) 3rem; background: var(--sapin);
    overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; transition: opacity .25s, transform .25s; }
  .nav a { font: 400 2rem/1.1 var(--serif); padding: .9rem 0; border-bottom: 1px solid rgb(244 239 230 / .1); color: var(--creme); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { font-style: italic; }
  .nav-give { display: block; }
  .nav .nav-lang { display: flex; margin-top: 1.5rem; }
  .nav .nav-lang a { font: 500 var(--fs-sm)/1 var(--sans); border: 0; padding: .6rem .5rem; }
  .tools > .lang, .tools > .lang-menu { display: none; }
  body.menu-open { overflow: hidden; }
}

/* Hero video in the 5:7 frame */
.hero-figure video { display: block; width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 2px; background: var(--vert) url("img/sanctuary-portrait.jpg") center / cover; }
@media (max-width: 900px) { .hero-figure video, .hero-figure img { aspect-ratio: 4 / 5; } }

/* Who we are */
.triad { font: italic 400 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem)/1.2 var(--serif); color: var(--heading); margin: 1.8rem 0; padding-top: 1.4rem; border-top: 1px solid var(--or); display: block; width: fit-content; }

/* Sunday timeline: times instead of numbers */
.steps.timeline li::before { content: attr(data-time); font-variant-numeric: lining-nums; }

/* Kids age bands */
.ages { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ages li { background: var(--bg); padding: 1rem 1.2rem; display: grid; gap: .2rem; }
.ages b { font: 500 1.35rem/1.2 var(--serif); color: var(--heading); }
.ages span { font-size: var(--fs-sm); color: var(--muted); }

/* Side-by-side heading + content */
.split-side { grid-column: span 4; align-self: start; }
.split-side h2 { margin-top: 1rem; }
.split-main { grid-column: span 8; }
@media (max-width: 860px) { .split-side, .split-main { grid-column: 1 / -1; } }

/* Directions / contact list */
.howto { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 1.3rem; }
.howto li { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; align-items: start; }
.howto svg.i { width: 40px; height: 40px; padding: 9px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); }
.howto b { display: block; font-weight: 600; color: var(--heading); margin-bottom: .2rem; }
.howto p { margin: 0; color: var(--muted); }
.howto.big { gap: 2rem; }
.howto.big p { font-size: var(--fs-lg); color: var(--text); }
.howto a { color: var(--heading); }
.feature address { font-style: normal; }

/* Vision: six gifts */
.vision { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); border-top: 1px solid var(--line); }
.vision li { padding: 1.5rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .1rem; }
.vision b { font: 500 clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem)/1.1 var(--serif); color: var(--heading); }
.vision span { font: italic 400 clamp(1.25rem, 1.05rem + .6vw, 1.6rem)/1.3 var(--serif); color: var(--muted); }
@media (max-width: 720px) { .vision { grid-template-columns: 1fr; } }

/* Symbol section */
.symbol-figure { display: grid; place-items: center; }
.symbol-figure svg { width: min(100%, 300px); aspect-ratio: 858 / 1200; color: var(--creme); }

/* Film */
.film { margin: 0; }
.film video { width: 100%; aspect-ratio: 16 / 9; background: var(--sapin); border-radius: 2px; display: block; }
.film figcaption { margin-top: .8rem; font-size: var(--fs-xs); color: var(--muted); }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.person .portrait svg { width: 30%; aspect-ratio: 858 / 1200; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr 1fr; } }

/* Messages page */
.meta-list { margin: 1.5rem 0 2rem; display: grid; gap: .9rem; }
.meta-list div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.meta-list dt { font: 600 var(--fs-xs)/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--label); }
.meta-list dd { margin: 0; }
@media (max-width: 520px) { .meta-list div { grid-template-columns: 1fr; gap: .2rem; } }
.jubilee { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--gutter); }
.jubilee li { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.jubilee h3 { font-size: 1.6rem; }
.jubilee .ref { margin-top: .6rem; }
@media (max-width: 860px) { .jubilee { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .jubilee { grid-template-columns: 1fr; } }

/* Ministries */
.ministries { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem) var(--gutter); }
.ministry { display: grid; gap: 1.3rem; align-content: start; scroll-margin-top: 100px; }
.ministry .img { overflow: hidden; border-radius: 2px; }
.ministry img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; }
.ministry h3 { font-size: clamp(1.9rem, 1.5rem + 1vw, 2.5rem); margin: .4rem 0 .6rem; }
.ministry p { color: var(--muted); }
.ministry .when { display: flex; gap: .6rem; align-items: center; color: var(--heading); font-weight: 500; font-size: var(--fs-sm); }
.ministry .when svg.i { color: var(--accent); vertical-align: 0; }
@media (max-width: 760px) { .ministries { grid-template-columns: 1fr; } }

/* Weekly rhythm */
.rhythm { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.rhythm li { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: 1.2rem; align-items: baseline; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.rhythm .day { font: 600 var(--fs-xs)/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--label); }
.rhythm h3 { font-size: 1.5rem; }
.rhythm p { margin: .2rem 0 0; color: var(--muted); font-size: var(--fs-sm); }
.rhythm .time { font: 500 1.3rem/1 var(--serif); color: var(--heading); white-space: nowrap; }
@media (max-width: 560px) { .rhythm li { grid-template-columns: 1fr auto; } .rhythm .day { grid-column: 1 / -1; } }

/* Give */
.qr { width: 9rem; aspect-ratio: 1; margin-top: .8rem; display: grid; place-items: center; border: 1px dashed var(--etain); border-radius: 2px; color: var(--sauge); }
.qr svg { width: 26%; aspect-ratio: 858 / 1200; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact-grid .form { background: var(--bg-alt); padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 2px; }
.map.wide { aspect-ratio: 21 / 8; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .map.wide { aspect-ratio: 4 / 3; } }

/* Footer skyline (VectorCraft line drawing) */
.skyline { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 360; margin: 0 0 1.5rem; color: var(--sauge); }

/* ---------- Language chooser (site root) ---------- */
body.chooser { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; }
.chooser main { padding-block: 4rem; display: grid; justify-items: center; text-align: center; gap: 1.8rem; }
.chooser-mark { width: 54px; height: 76px; color: var(--creme); }
@media (prefers-reduced-motion: no-preference) {
  .chooser-mark { animation: rise 1.2s cubic-bezier(.2,.7,.2,1) both; }
  .tongue-list li { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .tongue-list li:nth-child(1) { animation-delay: .25s; }
  .tongue-list li:nth-child(2) { animation-delay: .4s; }
  .tongue-list li:nth-child(3) { animation-delay: .55s; }
  .tongue-list li:nth-child(4) { animation-delay: .7s; }
}
.signature-text { display: grid; gap: .5rem; font: 500 clamp(1.3rem, 1rem + 1vw, 1.7rem)/1.1 var(--sans); color: var(--blanc); letter-spacing: -.005em; }
.signature-text small { font: 600 .62rem/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--or); }
.tongue-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; border-top: 1px solid var(--line); width: min(100%, 44rem); }
.tongue-list li { border-bottom: 1px solid var(--line); }
.tongue-list a { display: grid; gap: .45rem; padding: 1.6rem 1rem; text-decoration: none; transition: background-color .25s; }
.tongue-list a:hover, .tongue-list a:focus-visible { background: rgb(244 239 230 / .05); }
.tongue-list .m { font: italic 400 clamp(2rem, 1.3rem + 3vw, 3.4rem)/1.05 var(--serif); color: var(--blanc); }
.tongue-list .e { font: 600 var(--fs-xs)/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--or); }
.chooser-foot { font-size: var(--fs-xs); letter-spacing: .08em; color: var(--muted); }
.chooser-foot a { color: var(--creme); }

/* ---------- Members & events (prototype) ---------- */
[hidden] { display: none !important; }
.account-link.is-member { background: var(--creme); border-color: var(--creme); color: var(--sapin); }
.nav-account { display: none; }
@media (max-width: 1400px) {
  .tools .account-link { display: none; }
  .nav .nav-account { display: flex; align-items: center; gap: .7rem; }
}

.member-hint { margin-bottom: 1.5rem; color: var(--muted); }
.member-hint svg.i { margin-right: .4rem; color: var(--accent); }
.event .tag { margin-left: .3rem; vertical-align: 1px; }
.signup { display: grid; justify-items: end; }
.signup-open, .signup-done, .event[data-signup="none"] [data-signup-btn], .event.is-registered [data-signup-btn] { display: none; }
.event[data-signup="none"] .signup-open { display: inline-block; margin: 0; }
.event.is-registered .signup-done { display: grid; justify-items: inherit; }
.signup-ok { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: var(--fs-sm); color: var(--heading); }
.signup-ok svg.i { color: var(--accent); }
.link-btn { background: none; border: 0; padding: .4rem 0; min-height: 44px; font: 500 var(--fs-sm)/1.2 var(--sans); color: var(--muted); text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: .3em; cursor: pointer; }
.link-btn:hover { color: var(--heading); }
.mine li { grid-template-columns: 4.5rem 1fr; }
.mine .signup { grid-column: 2; justify-items: start; }
@media (max-width: 640px) { .events .signup { grid-column: 2; justify-items: start; } }

.dialog { width: min(100% - 2rem, 36rem); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 2px; background: var(--bg); color: var(--text); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .5); }
.dialog::backdrop { background: rgb(7 41 30 / .72); }
.dialog .form { padding: clamp(1.25rem, 3vw, 2rem); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.dialog-head .h3 { margin-top: .4rem; }
.dialog-head .icon-btn { flex: none; color: var(--text); border-color: var(--line); }

.agenda h3 a { text-decoration-color: var(--or); }
.agenda h3 a:hover { text-decoration-thickness: 2px; }

/* ---------- Event page ---------- */
.event-detail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.event-main { grid-column: 1; grid-row: 1; }
.event-main > p { max-width: 42rem; }
.event-main > h2 { margin-bottom: 1rem; }
.event-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.event-card { grid-column: 2; grid-row: 1; position: sticky; top: 96px; display: grid; gap: 1.25rem; padding: clamp(1.5rem, 3vw, 2rem); background: var(--bg-alt); border-radius: 2px; }
.event-card dl { margin: 0; display: grid; gap: 1.1rem; }
.event-card dt { margin-bottom: .35rem; }
.event-card dd { margin: 0; font: 500 1.3rem/1.3 var(--serif); color: var(--heading); }
.event-card .signup { justify-items: start; }
.signup form { display: contents; } /* live site: the Register and Cancel buttons post a form; the form adds no box */
.event-card .form-status:empty { display: none; }
.event-card .form-note { margin: 0; }
@media (max-width: 860px) {
  .event-detail { grid-template-columns: 1fr; }
  .event-card, .event-main { grid-column: 1; grid-row: auto; }
  .event-card { position: static; }
}

.prices-sec:has(.plans:empty) { display: none; }
.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: clamp(.5rem, 1vw, .75rem); }
.plans li { display: grid; gap: .7rem; align-content: start; padding: clamp(1.5rem, 2.5vw, 2rem); background: var(--bg); border-radius: 2px; }
/* the main option as a Vert tile, like the Sunday-at-a-glance tiles */
.plans li:first-child { background: var(--vert); color: var(--creme); --heading: var(--blanc); --text: var(--creme); --muted: rgb(244 239 230 / .8); --line: rgb(244 239 230 / .2); }
.plans h3 { font-size: 1.6rem; }
.plans p { margin: 0; color: var(--muted); }
.plans .price { font: 400 2.6rem/1 var(--serif); color: var(--heading); }
.plans .price small { font: 400 var(--fs-sm)/1 var(--sans); color: var(--muted); }
.plans .includes { padding-top: .8rem; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text); }
.plan-notes { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; font-size: var(--fs-sm); color: var(--muted); }
.plan-notes li::before { content: ""; display: inline-block; width: 1rem; height: 1px; margin-right: .6rem; vertical-align: middle; background: var(--or); }

/* ---------- Gallery ---------- */
.albums { list-style: none; margin: 0; padding: 0; }
.albums .card .caps { margin: .3rem 0 -.4rem; }
/* Photo grid: the first photo leads at 2x2, the rest fill in */
.photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(7rem, 24vw, 11rem); grid-auto-flow: dense; gap: clamp(.4rem, .8vw, .6rem); }
.photos li { overflow: hidden; border-radius: 2px; background: var(--bg-alt); }
.photos li:first-child { grid-column: span 2; grid-row: span 2; }
.photos a { display: block; height: 100%; }
.photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.photos a:hover img { transform: scale(1.03); }
@media (min-width: 640px) { .photos { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(8rem, 15vw, 13rem); } }
@media (min-width: 1000px) { .photos { grid-template-columns: repeat(4, 1fr); } }
.event-photos .photos { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(5.5rem, 10vw, 9rem); }
.event-photos h2 { margin: .4rem 0 1rem; }
.event-photos:has(.photos:empty), .album-event[data-for=""] { display: none; }

.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(7 41 30 / .97); color: var(--creme); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; justify-items: center; }
.lightbox::backdrop { background: rgb(7 41 30 / .9); }
.lightbox figure { display: grid; align-content: center; justify-items: center; gap: .9rem; min-height: 0; padding: 4.5rem 5rem 0; }
.lightbox img { max-width: min(100%, 1200px); max-height: calc(100dvh - 10rem); object-fit: contain; border-radius: 2px; }
.lightbox figcaption { max-width: 40rem; text-align: center; font-size: var(--fs-sm); color: rgb(244 239 230 / .82); }
.lb-count { margin: 0; padding: .9rem 0 1.5rem; font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .2em; color: var(--or); }
.lightbox .icon-btn { position: absolute; background: rgb(7 41 30 / .6); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev, .lb-next { top: 50%; translate: 0 -50%; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-prev svg { transform: scaleX(-1); }
@media (max-width: 640px) {
  .lightbox figure { padding: 4rem 1rem 0; }
  .lb-prev, .lb-next { top: auto; bottom: .75rem; translate: none; }
}

.planned { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: clamp(.5rem, 1vw, .75rem); }
.planned li { display: grid; gap: .5rem; align-content: start; padding: clamp(1.25rem, 2.2vw, 1.75rem); background: var(--bg); border-radius: 2px; }
.planned .tag { justify-self: start; }
.planned h3 { font-size: 1.5rem; }
.planned p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
