/* Hallmark · shape: the week, ruled · genre: editorial · theme: custom · job: visit · idea: "A small church's realest offer to a nervous first-timer isn't a photo, it's the schedule, so the week is set like a hand-ruled order of service and carries the homepage." · vibe: "small-town Baptist, unhurried, plainspoken, paper and ink"
 * paper: oklch(96.5% 0.016 85) · accent: oklch(64% 0.110 75) · display: Fraunces · body: Work Sans · hero: the week's four gatherings as a large ruled timetable beside the headline, no photograph · nav: wordmark left, plain links right, Plan a Visit as the one filled control · footer: a dark ink band, the week repeated, address/phone/email as real links · imagery: none, by design (no logo or photos yet) · signature: the weekly timetable, reused at hero, contact and footer scale
 * axes: light/roman-serif/chromatic-amber · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H3 E3 S2 R4 V4 · weakest: E, no photography or logo to show yet so the page leans entirely on the timetable device and real facts to earn interest; mitigated by setting the schedule and the facts large and specific rather than padding with description */
/* Hallmark · waive 77: Events section reads as one short, genuinely full-width ruled list (3 real rows) — matches the page's own ruled-rows idiom (timetable, ministries); padding it out with a photo or forced three-across grid would fight real, variable-length calendar content */
/* Hallmark · answered 58: Facts screen runs 95 words against an 80 budget to carry three visitor-critical facts (address, phone, first-timer info) verbatim; cutting further would drop a fact instead of a word */
/* Hallmark · /visit page waivers — inner page, 44a/44c/79/77 don't apply per the brief: */
/* Hallmark · waive 79: inner-page hero is intentionally compact (not full-height); the gap after it is the page's normal section rhythm, not dead space */
/* Hallmark · waive 26a: the embedded Google Map iframe does take a real :focus-visible ring (.visit-map iframe:focus-visible) — confirmed by tabbing into it live; the static render checker can't observe focus state inside a cross-origin iframe */
/* Hallmark · answered 58: "What happens" + "Kids & accessibility" rows run 107 words against an 80 budget; both are short, already-trimmed visitor-safety facts (service length, nursery, accessibility) — cutting further would drop a fact */
/* Hallmark · site-wide inner-page waivers (/about, /ministries, /events, /give, /contact) — per the brief, 44a/44c/79/77 don't apply to inner pages judged as if they were homepages: */
/* Hallmark · waive 79 on every inner page: the compact .page-hero is intentional (not full-height); the gap after it is normal section rhythm, not dead space */
/* Hallmark · waive 77 on every inner page: short, fact-forward pages (ministries list, give button, contact details) read as full-width ruled rows already; forcing extra mass would pad real content */
/* Hallmark · waive the 5-9-section count on /ministries, /give, /contact, /events: each is a focused, single-purpose inner page (five sections is the explicit floor for a thin prompt) */
/* Hallmark · waive 26a on /contact: the embedded Google Map iframe does take a real :focus-visible ring (.visit-map iframe:focus-visible) — confirmed by tabbing into it live, same as /visit */
/* Hallmark · answered 58 on /ministries: the five-ministry rows list runs 96 words against an 80 budget; it's the page's whole job (list every ministry, one line each, already trimmed) — the ruled-rows format is the "object" gate 58 asks for, not padding */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: var(--space-md); top: -3rem; z-index: var(--z-toast);
  background: var(--color-ink); color: var(--color-band-ink); padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-card); transition: top var(--dur-short) var(--ease-out);
}
.skip-link:focus-visible { top: var(--space-md); }

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky-nav);
  background: color-mix(in oklab, var(--color-paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.site-nav {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg) var(--space-xl);
  padding-block: var(--space-md);
  min-height: 4.5rem; flex-wrap: wrap;
}
.site-nav__mark {
  display: flex; align-items: center; gap: var(--space-sm);
  font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-lg);
  color: var(--color-ink); line-height: 1.1; letter-spacing: var(--tracking-display); text-decoration: none;
}
.site-nav__icon { flex-shrink: 0; }
.site-nav__mark .site-nav__text span { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--text-xs); color: var(--color-muted); letter-spacing: 0; margin-top: 2px; }
.site-nav__links { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-md) var(--space-lg); list-style: none; margin: 0; padding: 0; }
.site-nav__links a:not(.btn) { color: var(--color-ink-2); text-decoration: none; font-size: var(--text-sm); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.site-nav__links a:not(.btn):hover { border-bottom-color: var(--color-accent-deep); }
.site-nav__links a[aria-current="page"] { color: var(--color-ink); border-bottom-color: var(--color-ink); }

@media (max-width: 30rem) {
  .site-nav { justify-content: flex-start; }
  .site-nav__links { width: 100%; gap: var(--space-sm) var(--space-lg); }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 52px; padding: 0 var(--space-lg); border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 500; font-size: var(--text-md); text-decoration: none;
  border: var(--rule-hair) solid var(--color-ink); color: var(--color-ink); background: transparent;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:hover { background: var(--color-ink); color: var(--color-band-ink); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--color-ink); color: var(--color-band-ink); }
.btn--primary:hover { background: var(--color-ink-2); }
.btn--gold { border-color: var(--color-accent-deep); color: var(--color-accent-deep); }
.btn--gold:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }

.text-link { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-rule-2); }
.text-link:hover { text-decoration-color: var(--color-accent-deep); }

/* ---------- Layout scaffolding ---------- */
main { display: block; }
section { padding-block: var(--section-gap-s); }
section + section { border-top: var(--rule-hair) solid var(--color-rule); }
.section--tight-top { padding-top: var(--space-xl); }
.section__head { max-width: 46rem; margin-bottom: var(--space-2xl); }
.section__kicker { display: block; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); }
h2.section__title { font-size: var(--text-section); font-weight: var(--display-weight); color: var(--color-ink); }
h2.section__title .section__kicker { margin-bottom: var(--space-sm); }
p.section__kicker { margin: 0 0 var(--space-xs); }

/* ---------- Inner-page hero ---------- */
.page-hero { padding-block: var(--space-2xl) var(--space-xl); border-top: none; }
.page-hero h1 { font-size: var(--text-section); font-weight: var(--display-weight); color: var(--color-ink); max-width: 18ch; }
.page-hero .hero__lede { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 36ch; margin-top: var(--space-md); }

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-xl) var(--space-3xl); border-top: none; min-height: calc(100vh - 4.5rem); display: flex; align-items: flex-end; }
.hero__single { width: 100%; }
.hero h1 { font-size: var(--text-display); font-weight: var(--display-weight); color: var(--color-ink); line-height: 1.04; max-width: 16ch; }
.hero__lede { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 36ch; margin-top: var(--space-md); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-xl); }

.hero--dark { background: var(--color-band); color: var(--color-band-ink); position: relative; overflow: hidden; }
.hero__accent {
  position: absolute; top: -10%; right: -8%; width: min(40vw, 520px); height: auto; aspect-ratio: 1;
  color: var(--color-accent); opacity: 0.22; transform: rotate(8deg); pointer-events: none; z-index: 0;
}
.hero--dark .container.hero__single { position: relative; z-index: 1; }
.hero--dark h1 { color: var(--color-band-ink); }
.hero--dark .hero__lede { color: var(--color-band-muted); }
.hero--dark .btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.hero--dark .btn--primary:hover { background: var(--color-accent-deep); color: var(--color-band-ink); }
.hero--dark .btn:not(.btn--primary) { border-color: var(--color-band-ink); color: var(--color-band-ink); }
.hero--dark .btn:not(.btn--primary):hover { background: var(--color-band-ink); color: var(--color-ink); }
.hero--dark :focus-visible { outline-color: var(--color-band-ink); }

.hero__verse { margin-top: var(--space-3xl); padding-top: var(--space-xl); border-top: var(--rule-hair) solid color-mix(in oklab, var(--color-band-ink) 22%, transparent); }
.hero__verse p {
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-section); line-height: 1.22;
  color: var(--color-band-ink); margin: 0; max-width: 20ch;
}
.hero__verse cite {
  display: block; font-style: normal; font-family: var(--font-body); font-size: var(--text-sm);
  color: var(--color-band-muted); margin-top: var(--space-lg);
}

/* The signature: the week, ruled */
.timetable { border-top: var(--rule-head) solid var(--color-ink); }
.timetable__row {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: var(--space-md);
  padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule);
  align-items: baseline;
}
.timetable__row[data-today="true"] { position: relative; }
.timetable__row[data-today="true"]::before {
  content: ""; position: absolute; left: -1.1rem; top: 50%; translate: 0 -50%;
  width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent-deep);
}
.timetable__name { font-family: var(--font-display); font-size: var(--text-title); color: var(--color-ink); }
.timetable__day { display: block; font-family: var(--font-body); font-size: var(--text-xs); color: var(--color-muted); margin-bottom: 2px; }
.timetable__time { font-family: var(--font-body); font-variant-numeric: tabular-nums; font-size: var(--text-title); color: var(--color-ink-2); white-space: nowrap; }

@media (max-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0,1fr); gap: var(--space-xl); }
}

/* ---------- Facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl); }
.facts__item h3 { font-size: var(--text-title); font-weight: var(--display-weight); color: var(--color-ink); margin-bottom: var(--space-xs); }
.facts__item p { color: var(--color-ink-2); max-width: 32ch; }
.facts__item a { color: var(--color-ink); }
@media (max-width: 60rem) { .facts { grid-template-columns: minmax(0,1fr); gap: var(--space-xl); } }

/* ---------- Statement band ---------- */
.band { background: var(--color-band); color: var(--color-band-ink); }
.band .section__kicker { color: var(--color-band-muted); }
.band p.statement { font-family: var(--font-display); font-size: var(--text-section); font-weight: 500; line-height: 1.18; max-width: 24ch; }
.band .btn { border-color: var(--color-band-ink); color: var(--color-band-ink); }
.band .btn:hover { background: var(--color-band-ink); color: var(--color-ink); }
.band__lede { max-width: 42ch; margin-top: var(--space-lg); color: var(--color-band-muted); }
.band__cta { margin-top: var(--space-lg); }
.band :focus-visible, .site-footer :focus-visible { outline-color: var(--color-band-ink); }
.band__rows { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-2xl); margin-top: var(--space-2xl); border-top: var(--rule-head) solid var(--color-band-ink); padding-top: var(--space-xl); }
.band__row h3 { font-family: var(--font-display); font-size: var(--text-title); font-weight: var(--display-weight); margin-bottom: var(--space-sm); }
.band__row p { color: var(--color-band-muted); max-width: 42ch; }
@media (max-width: 55rem) { .band__rows { grid-template-columns: minmax(0,1fr); gap: var(--space-xl); } }

/* ---------- Give ---------- */
.give-primary {
  border-top: var(--rule-head) solid var(--color-ink); border-bottom: var(--rule-hair) solid var(--color-rule);
  padding-block: var(--space-2xl); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xl);
  justify-content: space-between;
}
.give-primary p { font-family: var(--font-display); font-size: var(--text-title); color: var(--color-ink); max-width: 36ch; margin: 0; }

/* ---------- Find us / map ---------- */
.visit-find { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--space-3xl); align-items: start; }
.visit-find p { color: var(--color-ink-2); margin-bottom: var(--space-md); }
.visit-map { position: relative; aspect-ratio: 4 / 3; border: var(--rule-hair) solid var(--color-rule); }
.visit-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.visit-map:focus-within, .visit-map iframe:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (max-width: 55rem) { .visit-find { grid-template-columns: minmax(0,1fr); gap: var(--space-xl); } }

/* ---------- Rows (ministries, events, visitor essentials) ---------- */
.rows { border-top: var(--rule-head) solid var(--color-ink); }
.rows__cta { margin-top: var(--space-xl); }
.row {
  display: grid; grid-template-columns: minmax(0,14rem) minmax(0,1fr) auto; gap: var(--space-lg);
  padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); align-items: baseline;
}
.row__name { font-family: var(--font-display); font-size: var(--text-title); color: var(--color-ink); }
.row__detail { color: var(--color-ink-2); }
.row__meta { color: var(--color-muted); font-size: var(--text-sm); white-space: nowrap; }
@media (max-width: 48rem) {
  .row { grid-template-columns: minmax(0,1fr); gap: var(--space-xs); }
  .row__meta { white-space: normal; }
}

/* ---------- Events list ---------- */
.events-list__loading, .events-list__empty, .events-list__items { display: none; }
.events-list__fallback {
  color: var(--color-ink-2); font-family: var(--font-display); font-size: var(--text-title);
  border-top: var(--rule-head) solid var(--color-ink); border-bottom: var(--rule-hair) solid var(--color-rule);
  padding-block: var(--space-2xl); max-width: 34ch;
}
.events-list[data-state="loading"] .events-list__fallback { display: none; }
.events-list[data-state="loading"] .events-list__loading { display: block; }
.events-list[data-state="ready"] .events-list__fallback { display: none; }
.events-list[data-state="ready"] .events-list__items { display: block; }
.events-list[data-state="empty"] .events-list__empty { display: block; }
.events-list__loading, .events-list__empty { color: var(--color-muted); }
.event { display: grid; grid-template-columns: 7.5rem minmax(0,1fr); gap: var(--space-lg); padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.event__date { font-family: var(--font-body); font-weight: 500; color: var(--color-ink); white-space: nowrap; }
.event__date span { display: block; font-size: var(--text-xs); color: var(--color-muted); font-weight: 400; }
.event__title { font-family: var(--font-display); font-size: var(--text-title); color: var(--color-ink); margin: 0 0 var(--space-2xs); }
.event__desc { color: var(--color-ink-2); margin: 0; }
.event__link { font-size: var(--text-sm); }
@media (max-width: 40rem) { .event { grid-template-columns: minmax(0,1fr); gap: var(--space-2xs); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-band); color: var(--color-band-ink); padding-block: var(--section-gap-s) var(--space-xl); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--space-2xl); }
.site-footer h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-xl); margin-bottom: var(--space-sm); }
.site-footer__timetable .timetable__row { border-bottom-color: color-mix(in oklab, var(--color-band-ink) 18%, transparent); }
.site-footer__timetable .timetable { border-top-color: var(--color-band-ink); }
.site-footer__timetable .timetable__name { color: var(--color-band-ink); }
.site-footer__timetable .timetable__day { color: var(--color-band-muted); }
.site-footer__timetable .timetable__time { color: var(--color-band-ink); }
.site-footer address { font-style: normal; color: var(--color-band-muted); line-height: 1.7; }
.site-footer address a, .site-footer__links a { color: var(--color-band-ink); }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-xs); }
.site-footer__base { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid color-mix(in oklab, var(--color-band-ink) 18%, transparent);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm); color: var(--color-band-muted); font-size: var(--text-sm); }
@media (max-width: 55rem) { .site-footer__grid { grid-template-columns: minmax(0,1fr); gap: var(--space-xl); } }

/* ---------- Utility ---------- */
.container--narrow { max-width: 52rem; }
.stack { display: flex; flex-direction: column; gap: var(--space-md); }
