@charset "UTF-8";
/* BEYOND Walls Ministry International — site styles
   Layout concept: "Threshold". Night bands (indigo) and day bands (lavender mist)
   alternate; the arched doorway from the logo frames key imagery; gold appears
   only where light passes through (calls to action, live state, the path rule). */

:root {
  /* Brand colour */
  --indigo: #1E1478;          /* primary: wall */
  --indigo-deep: #110A4A;     /* night bands */
  --violet: #3326B8;          /* interactive hover on light */
  --lilac: #CAB1DB;           /* soft accent */
  --mauve: #94747A;           /* muted warm neutral */
  --gold: #E0A43A;            /* light through the opening */
  --gold-ink: #8A5A06;        /* gold text on light grounds (AA) */

  /* Surfaces (light theme) */
  --bg: #F6F4F9;
  --bg-alt: #ECE7F3;
  --surface: #FFFFFF;
  --fg: #16112B;
  --fg-muted: #574F6B;
  --line: #D9D2E5;
  --night-bg: var(--indigo-deep);
  --night-fg: #F6F4F9;
  --night-muted: #C2B8DA;
  --night-line: rgba(246, 244, 249, .16);
  --focus: #E0A43A;
  --danger: #A3253A;
  --success: #1E6B47;

  /* Type */
  --font-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(.8rem, .78rem + .1vw, .86rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.12rem + .4vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.8rem + 4vw, 5.2rem);
  --step-5: clamp(3.1rem, 1.6rem + 7.4vw, 8.6rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --radius: 4px;
  --arch: 999px 999px 0 0;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0920; --bg-alt: #140F2E; --surface: #1A1438; --fg: #F1EEF8; --fg-muted: #B6ADCF;
    --line: #2E2752; --night-bg: #08051A; --violet: #B9A8FF; --gold-ink: #F0BE62; --focus: #F0BE62;
    --danger: #FF8A9B; --success: #7FD8A8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D0920; --bg-alt: #140F2E; --surface: #1A1438; --fg: #F1EEF8; --fg-muted: #B6ADCF;
  --line: #2E2752; --night-bg: #08051A; --violet: #B9A8FF; --gold-ink: #F0BE62; --focus: #F0BE62;
  --danger: #FF8A9B; --success: #7FD8A8;
  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(--fg);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.62;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; text-wrap: balance; font-weight: 800; }
p { margin: 0; }
p + p { margin-top: 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: #16112B; padding: 10px 16px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 64ch; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Type roles */
.display { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; text-transform: none; letter-spacing: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--fg-muted); }

/* ---------- Bands ---------- */
.band { padding-block: clamp(64px, 9vw, 128px); }
.band--alt { background: var(--bg-alt); }
.band--night { background: var(--night-bg); color: var(--night-fg); --fg-muted: var(--night-muted); --line: var(--night-line); }
.band--night a:hover { color: var(--gold); }
.band--tight { padding-block: clamp(40px, 6vw, 80px); }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { font-size: var(--step-4); }
.section-head--split { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 24px 56px; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--indigo); --b-fg: #fff; --b-line: var(--indigo);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 12px 24px; border: 2px solid var(--b-line); border-radius: var(--radius);
  background: var(--b-bg); color: var(--b-fg); font: 700 .95rem/1 var(--font-body); letter-spacing: .02em;
  text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { color: var(--b-fg); transform: translateY(-1px); background: var(--violet); border-color: var(--violet); }
.btn--light { --b-bg: var(--gold); --b-fg: #1A1206; --b-line: var(--gold); }
.btn--light:hover { background: #F0BE62; border-color: #F0BE62; color: #1A1206; }
.btn--ghost { --b-bg: transparent; --b-fg: currentColor; --b-line: currentColor; }
.btn--ghost:hover { background: transparent; border-color: var(--gold); color: inherit; }
.band--night .btn--ghost:hover, .hero .btn--ghost:hover { color: var(--gold); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-arrow { display: inline-flex; gap: .5em; align-items: center; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 46px; width: auto; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo-light { display: none; } :root:not([data-theme="light"]) .brand .logo-dark { display: block; } }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 12px; font-weight: 600; font-size: .95rem; text-decoration: none; border-radius: var(--radius); }
.nav a[aria-current="page"] { color: var(--indigo); box-shadow: inset 0 -2px 0 var(--gold); }
:root[data-theme="dark"] .nav a[aria-current="page"] { color: var(--fg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav a[aria-current="page"] { color: var(--fg); } }
.nav .btn { margin-left: 10px; min-height: 44px; padding: 10px 18px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); width: 48px; height: 48px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform .25s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav[hidden] { display: none !important; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav .btn { margin: 16px 0 0; }
}
@media (min-width: 1081px) { .nav[hidden] { display: flex !important; } }

.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #FF4D5E; box-shadow: 0 0 0 0 rgba(255, 77, 94, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,77,94,.55); } 70% { box-shadow: 0 0 0 10px rgba(255,77,94,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,94,0); } }

/* ---------- Hero (home) ---------- */
.hero { position: relative; isolation: isolate; color: #F6F4F9; background: var(--indigo-deep); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(17,10,74,.55) 0%, rgba(17,10,74,.25) 40%, rgba(13,9,32,.92) 100%), linear-gradient(90deg, rgba(17,10,74,.75), rgba(17,10,74,0) 70%); }
.hero__inner { padding-block: clamp(96px, 16vw, 200px) clamp(48px, 7vw, 88px); display: grid; gap: 28px; }
.hero h1 { font-size: var(--step-5); line-height: .9; }
.hero h1 .serif { display: block; color: var(--gold); font-size: 1.12em; line-height: .9; margin-top: .04em; }
.hero__sub { max-width: 46ch; font-size: var(--step-1); line-height: 1.5; color: #E6E0F3; }
.hero__foot { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: end; border-top: 1px solid rgba(246,244,249,.22); padding-top: 22px; margin-top: 12px; }
.hero__foot .mono { font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: #CFC5E8; }

/* Page hero (inner pages) */
.page-hero { background: var(--night-bg); color: var(--night-fg); --fg-muted: var(--night-muted); padding-block: clamp(64px, 10vw, 136px) clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: var(--step-5); line-height: .92; }
.page-hero h1 .serif { color: var(--gold); }
.page-hero .lead { color: var(--night-muted); margin-top: 22px; max-width: 54ch; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; }
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: 1fr; } }
.page-hero__arch { justify-self: end; width: min(100%, 340px); }

/* ---------- Arch frame (logo motif) ---------- */
.arch { position: relative; border-radius: var(--arch); overflow: hidden; background: var(--bg-alt); aspect-ratio: 3 / 4; max-width: 100%; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--path::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 2px; height: 0; }
.threshold { position: relative; }
.threshold__path { position: absolute; left: 50%; transform: translateX(-50%); bottom: -34px; width: 70%; height: 30px; background: var(--gold); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); opacity: .95; }

/* ---------- Grids ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--wide-text { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 860px) { .split, .split--wide-text { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 22px; }
.stack-lg { display: grid; gap: 36px; }

/* ---------- Welcome statement ---------- */
.statement { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: var(--step-3); line-height: 1.08; letter-spacing: -.01em; }
.statement .serif { color: var(--gold-ink); font-size: 1.1em; }
.band--night .statement .serif { color: var(--gold); }
.paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 56px; }
.paths a { padding: 22px 20px 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; display: grid; gap: 6px; }
.paths a + a { padding-left: 20px; border-left: 1px solid var(--line); }
.paths .mono { font-size: var(--step--1); color: var(--fg-muted); letter-spacing: .1em; }
.paths strong { font-size: var(--step-1); font-weight: 700; }
.paths a:hover strong { color: var(--violet); }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr 1fr; } .paths a:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 480px) { .paths { grid-template-columns: 1fr; } .paths a + a { padding-left: 0; border-left: 0; } }

/* ---------- Broadcast ---------- */
.broadcast { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .broadcast { grid-template-columns: 1fr; } }
.screen { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.screen__poster { position: absolute; inset: 0; display: grid; place-items: center; text-decoration: none; color: #fff; }
.screen__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.screen__poster .play { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--gold); color: #1A1206; transition: transform .25s var(--ease); }
.screen__poster:hover .play { transform: scale(1.06); }
.screen__poster .play svg { width: 30px; height: 30px; margin-left: 4px; }
.screen__label { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: rgba(13,9,32,.78); color: #fff; font: 600 .74rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; border-radius: 2px; }
.status-card { border-top: 2px solid var(--gold); padding-top: 22px; display: grid; gap: 16px; }
.status-card h3 { font-size: var(--step-2); font-family: var(--font-display); font-stretch: 112%; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font: 600 .74rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.status-pill--live { border-color: #FF4D5E; color: #FF8B97; }
.status-pill--off::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fg-muted); }

/* ---------- Video cards ---------- */
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
@media (max-width: 960px) { .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .videos { grid-template-columns: 1fr; } }
.video { display: grid; gap: 12px; text-decoration: none; align-content: start; }
.video__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--indigo-deep); }
.video__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.video:hover .video__thumb img { transform: scale(1.04); }
/* Branded message card (default thumbnail) */
.vcard { position: absolute; inset: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto auto; gap: 4px 14px; padding: 16px 18px; color: #F6F4F9;
  background: radial-gradient(120% 90% at 82% 110%, rgba(224,164,58,.38), rgba(224,164,58,0) 55%), linear-gradient(160deg, #24198C 0%, #110A4A 70%); }
.vcard svg { grid-row: 1; width: 26px; height: auto; color: #F6F4F9; align-self: start; }
.vcard__kind { grid-row: 1; grid-column: 2; justify-self: end; font: 600 .68rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.vcard strong { grid-column: 1 / -1; font: 800 1.15rem/1.05 var(--font-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance; }
.vcard__date { grid-column: 1 / -1; font: 500 .74rem/1 var(--font-mono); color: #CFC5E8; }
.vcard--big { padding: clamp(18px, 3vw, 36px); gap: 8px 18px; }
.vcard--big svg { width: clamp(30px, 4vw, 48px); }
.vcard--big strong { font-size: clamp(1.4rem, 3.4vw, 2.6rem); max-width: 18ch; }
.vcard--big .vcard__kind { font-size: .78rem; }
.screen__poster .vcard { z-index: 0; padding-top: 58px; }
.screen__poster:has(.vcard) { place-items: end; padding: clamp(16px, 3vw, 32px); }
.screen__poster:has(.vcard) .play { width: clamp(56px, 7vw, 76px); height: clamp(56px, 7vw, 76px); }
.video__meta { font: 500 var(--step--1)/1.3 var(--font-mono); color: var(--fg-muted); letter-spacing: .04em; }
.video h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.25; font-family: var(--font-body); }
.video:hover h3 { color: var(--violet); }
.band--night .video:hover h3 { color: var(--gold); }

/* ---------- Leader ---------- */
.leader { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 7vw, 110px); align-items: center; }
@media (max-width: 860px) { .leader { grid-template-columns: 1fr; } .leader .threshold { max-width: 420px; } }
.leader h2 { font-size: var(--step-4); }
.leader h2 .serif { display: block; color: var(--gold-ink); }
.band--night .leader h2 .serif { color: var(--gold); }
.leader__name { font: 600 var(--step--1)/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); }

/* ---------- Books ---------- */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 40px 28px; }
.book { display: grid; gap: 14px; text-decoration: none; align-content: start; position: relative; }
.book__cover { aspect-ratio: 2 / 3; background: var(--bg-alt); border-radius: 2px 6px 6px 2px; overflow: hidden; box-shadow: inset 6px 0 0 rgba(0,0,0,.08), 0 18px 40px -22px rgba(17,10,74,.55); transition: transform .35s var(--ease); }
.book:hover .book__cover { transform: translateY(-4px) rotate(-.4deg); }
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 700; line-height: 1.25; }
.book__meta { display: flex; justify-content: space-between; gap: 12px; font: 500 var(--step--1)/1.3 var(--font-mono); color: var(--fg-muted); }
.cover-fallback { width: 100%; height: 100%; display: grid; align-content: space-between; padding: 22px 18px; background: var(--indigo); color: #F6F4F9; }
.cover-fallback strong { font: 800 1.35rem/1.05 var(--font-display); font-stretch: 112%; text-transform: uppercase; }
.cover-fallback span { font: italic 1.1rem/1 var(--font-serif); color: var(--gold); }

/* Sample / draft marker: deliberately unmistakable */
.sample-flag { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 5px 9px; background: repeating-linear-gradient(-45deg, #FFE08A 0 8px, #FFD15C 8px 16px); color: #3B2600; font: 700 .68rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; border-radius: 2px; }
.sample-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px dashed var(--gold); border-radius: var(--radius); background: color-mix(in srgb, var(--gold) 9%, transparent); font-size: .92rem; color: var(--fg); }
.sample-note strong { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; padding-top: 2px; color: var(--gold-ink); }
.band--night .sample-note { color: var(--night-fg); }
.band--night .sample-note strong { color: var(--gold); }
.pending { padding: 20px 22px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--fg-muted); font-size: .95rem; }
.pending b { display: block; font: 600 .72rem/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 6px; }
.band--night .pending b { color: var(--gold); }

/* ---------- Events ---------- */
.events { display: grid; border-top: 1px solid var(--line); }
.event { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px 36px; align-items: center; padding-block: 28px; border-bottom: 1px solid var(--line); text-decoration: none; position: relative; }
.event:hover h3 { color: var(--violet); }
.band--night .event:hover h3 { color: var(--gold); }
.event__date { display: grid; line-height: 1; }
.event__date .day { font: 800 3.4rem/.9 var(--font-display); font-stretch: 112%; }
.event__date .mon { font: 600 .8rem/1.4 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-muted); margin-top: 6px; }
.event h3 { font-size: var(--step-2); font-family: var(--font-display); font-stretch: 108%; font-weight: 700; line-height: 1.1; text-transform: none; }
.event__info { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font: 500 var(--step--1)/1.4 var(--font-mono); color: var(--fg-muted); }
.event__cta { justify-self: end; }
.event .sample-flag { position: static; display: inline-block; margin-bottom: 10px; }
@media (max-width: 720px) { .event { grid-template-columns: 76px minmax(0, 1fr); } .event__cta { grid-column: 2; justify-self: start; } .event__date .day { font-size: 2.6rem; } }

/* ---------- Gallery ---------- */
.gallery { columns: 3 280px; column-gap: 18px; }
.gallery figure { margin: 0 0 18px; break-inside: avoid; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; transition: transform .5s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { padding-top: 8px; font-size: .88rem; color: var(--fg-muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--fg); font: 600 .88rem/1 var(--font-body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: auto 1fr auto; background: rgba(8,5,26,.94); color: #F6F4F9; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; padding: 12px 0; }
.lightbox__stage img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lightbox__cap { text-align: center; color: #CFC5E8; font-size: .95rem; }
.lightbox button { background: none; border: 1px solid rgba(246,244,249,.3); color: inherit; border-radius: var(--radius); min-width: 44px; min-height: 44px; font-size: 1.1rem; cursor: pointer; }

/* Mosaic (home photo band) */
.mosaic { display: grid; grid-template-columns: 1.1fr .8fr 1fr; grid-template-rows: 240px 240px; gap: 14px; }
.mosaic > * { border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic > :first-child { grid-row: span 2; border-radius: var(--arch); }
.mosaic > :nth-child(4) { grid-column: 2 / span 2; }
@media (max-width: 720px) { .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 180px 180px; } .mosaic > :first-child { grid-row: auto; grid-column: span 2; } .mosaic > :nth-child(4) { grid-column: span 2; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: .92rem; }
.field .hint { font-size: .86rem; color: var(--fg-muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--fg); font: inherit; transition: border-color .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 22%, transparent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: .86rem; font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--indigo); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: var(--radius); font-weight: 600; }
.form-status--ok { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 40%, transparent); }
.form-status--err { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); }
.band--night .field input, .band--night .field textarea { background: rgba(246,244,249,.06); border-color: rgba(246,244,249,.24); color: var(--night-fg); }
.band--night .check input { accent-color: var(--gold); }

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 32px; overflow-x: auto; }
.tabs button { padding: 14px 20px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--fg-muted); font: 700 1rem/1 var(--font-body); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--gold); }

.privacy-box { display: grid; gap: 10px; padding: 20px 22px; background: var(--bg-alt); border-radius: var(--radius); font-size: .92rem; color: var(--fg-muted); }
.privacy-box strong { color: var(--fg); }

/* ---------- Detail pages ---------- */
.detail { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .detail { grid-template-columns: minmax(0, 1fr); } }
.detail-title { font-size: clamp(2rem, 1.1rem + 3.6vw, 4.4rem); overflow-wrap: break-word; hyphens: auto; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 12px 28px; padding: 22px 0; border-block: 1px solid var(--line); font-size: .96rem; }
.facts dt { font: 600 .74rem/1.9 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); }
.facts dd { margin: 0; }
.crumbs { font: 500 var(--step--1)/1 var(--font-mono); letter-spacing: .06em; color: var(--night-muted); margin-bottom: 26px; }
.crumbs a { color: inherit; }

/* ---------- Closing CTA ---------- */
.closing { position: relative; overflow: hidden; }
.closing__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px 72px; align-items: center; }
@media (max-width: 860px) { .closing__grid { grid-template-columns: 1fr; } }
.closing h2 { font-size: var(--step-3); }
.closing h2 .serif { color: var(--gold); display: block; }
.subscribe { display: grid; gap: 14px; }
.subscribe__row { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe__row input { flex: 1 1 220px; min-width: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #08051A; color: #D9D2EE; padding-block: 72px 32px; font-size: .95rem; }
.site-footer a { color: #F6F4F9; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: span 2; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .footer-grid > :first-child { grid-column: auto; } }
.footer-grid h2 { font: 600 .74rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: #9E93C2; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-motto { font: italic 1.5rem/1.2 var(--font-serif); color: var(--gold); margin-top: 22px; max-width: 26ch; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(246,244,249,.12); font-size: .84rem; color: #9E93C2; }
.theme-toggle { background: none; border: 1px solid rgba(246,244,249,.24); color: #D9D2EE; border-radius: 999px; padding: 8px 14px; font: 600 .8rem/1 var(--font-mono); cursor: pointer; }

/* Preview banner */
.preview-bar { background: #FFD15C; color: #2A1B00; font: 600 .82rem/1.4 var(--font-mono); padding: 9px 0; }
.preview-bar .wrap { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; }

/* Reveal motion: content visible at rest; motion only enhances */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .9s var(--ease) both; }
  .reveal-2 { animation-delay: .12s; } .reveal-3 { animation-delay: .24s; } .reveal-4 { animation-delay: .36s; }
  @keyframes rise { from { transform: translateY(18px); opacity: .001; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.empty { padding: 40px 28px; border: 1px dashed var(--line); border-radius: var(--radius); display: grid; gap: 10px; justify-items: start; }
.empty h3 { font-size: var(--step-1); font-family: var(--font-body); }
.skeleton { background: linear-gradient(90deg, var(--bg-alt), var(--line), var(--bg-alt)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
.prose { max-width: 66ch; }
.prose h2 { font-size: var(--step-2); margin: 1.6em 0 .5em; font-family: var(--font-display); font-stretch: 108%; }
.prose p, .prose ul { color: var(--fg-muted); }
.prose ul { padding-left: 1.2em; }
