:root {
  --ink: #0e0e0e;
  --ink-2: #171717;
  --paper: #f3efe8;
  --paper-2: #e9e3d9;
  --text: #141414;
  --muted: #5d5851;
  --white: #fff;
  --line: rgba(20,20,20,.08);
  --f-display: 'Archivo', system-ui, sans-serif;
  --f-body: 'Figtree', system-ui, sans-serif;
  --f-script: 'Mrs Saint Delafield', cursive;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 16px/1.5 var(--f-body); -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Hero */
.hero { position: relative; min-height: 340px; color: var(--white); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.78)); }
.hero-inner { position: relative; z-index: 1; padding: 0 20px 22px; width: 100%; }
.script { font-family: var(--f-script); font-size: 34px; line-height: 1; margin: 0 0 2px; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 6px; opacity: .85; }
h1 {
  font-family: var(--f-display); font-weight: 900; font-stretch: 118%;
  font-size: 34px; line-height: .95; text-transform: uppercase; margin: 0; letter-spacing: -.01em;
}

/* Service-times bar */
.times { background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; }
.times small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.times strong { font-size: 16px; font-weight: 700; }
.pill { flex: none; background: var(--white); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 13px; padding: 9px 16px; border-radius: 999px; }

/* Sections */
section { padding: 22px 16px 4px; }
h2 {
  font-family: var(--f-display); font-weight: 900; font-stretch: 118%;
  font-size: 17px; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 12px 4px;
}
.intro { color: var(--muted); margin: -4px 4px 14px; font-size: 15px; }

/* Steps carousel */
.steps { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 0 -16px; padding: 0 0 6px; scrollbar-width: none; }
.steps::before, .steps::after { content: ""; flex: 0 0 4px; }
.steps::-webkit-scrollbar { display: none; }
.step { flex: 0 0 78%; scroll-snap-align: start; background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px var(--line); }
.step img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.step div { padding: 12px 14px 16px; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 3px; }
.step h3 { font-size: 16px; margin: 0 0 4px; }
.step p:last-child { margin: 0; color: var(--muted); font-size: 14px; }

/* Grouped list rows */
.list { background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px var(--line); }
.row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row b { display: block; font-size: 15.5px; font-weight: 700; }
.row span { display: block; color: var(--muted); font-size: 13.5px; }
.row .grow { flex: 1; min-width: 0; }
.chev { flex: none; width: 8px; height: 8px; border-right: 2px solid #b5aea4; border-bottom: 2px solid #b5aea4; transform: rotate(-45deg); }

/* Kids card */
.kids { background: var(--ink); color: var(--white); border-radius: 14px; overflow: hidden; }
.kids img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.kids .pad { padding: 16px; }
.kids h3 { font-family: var(--f-display); font-weight: 900; font-stretch: 118%; text-transform: uppercase; font-size: 20px; line-height: 1; margin: 0 0 8px; }
.kids p { margin: 0 0 12px; color: rgba(255,255,255,.75); font-size: 14.5px; }
.rooms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rooms li { background: var(--ink-2); border-radius: 10px; padding: 10px 12px; }
.rooms b { display: block; font-size: 14px; }
.rooms span { font-size: 12.5px; color: rgba(255,255,255,.65); }

.cta { display: block; text-align: center; background: var(--ink); color: var(--white); text-decoration: none; font-weight: 700; font-size: 15px; padding: 15px; border-radius: 999px; margin: 6px 0 0; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 22px 16px 30px; }

/* Shared additions for the other in-app pages */
.lede { margin: 8px 0 0; font-size: 15px; color: rgba(255,255,255,.85); max-width: 32ch; }
.panel { background: var(--white); border-radius: 14px; padding: 18px 16px; box-shadow: 0 1px 2px var(--line); }
.panel.dark { background: var(--ink); color: var(--white); }
.panel.dark .muted, .panel.dark p { color: rgba(255,255,255,.75); }
.panel h3 { font-family: var(--f-display); font-weight: 900; font-stretch: 118%; text-transform: uppercase; font-size: 20px; line-height: 1; margin: 0 0 8px; }
.panel p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.date { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; background: var(--paper-2); color: var(--text); border-radius: 999px; padding: 6px 12px; margin: 0 0 12px; }
.panel.dark .date { background: var(--ink-2); color: var(--white); }
.checks { list-style: none; margin: 0 0 14px; padding: 0; }
.checks li { position: relative; padding: 7px 0 7px 26px; font-size: 15px; font-weight: 600; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 10px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.panel.dark .checks li { border-color: rgba(255,255,255,.1); }
.note { font-size: 13px; color: var(--muted); margin: 0; }
.cta.light { background: var(--white); color: var(--ink); }
.cta.outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.media { border-radius: 14px; overflow: hidden; background: var(--ink); }
.media video, .media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.media.tall video, .media.tall img { aspect-ratio: 4 / 5; }
.numbered { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.numbered li { background: var(--white); border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 2px var(--line); }
.numbered small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.numbered b { display: block; font-size: 16px; margin: 2px 0 2px; }
.numbered span { color: var(--muted); font-size: 14px; }
.thumb { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pillars div { background: var(--ink); color: var(--white); border-radius: 14px; padding: 14px; }
.pillars small { font-size: 11px; font-weight: 700; opacity: .6; }
.pillars strong { display: block; font-family: var(--f-display); font-weight: 900; font-stretch: 118%; text-transform: uppercase; font-size: 17px; line-height: 1; margin-top: 6px; }

/* This Week (pinned home card) */
.top { background: var(--ink); color: var(--white); padding: 26px 20px 18px; }
.top .eyebrow { margin: 0; }
section.flush { padding-top: 0; }
.player { margin: 0 -16px; border-radius: 0; }
.player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.flush .panel { margin-top: 14px; }
.panel .part { color: var(--text); font-weight: 600; margin: 0 0 2px; }
.panel .meta { font-size: 13px; margin: 0 0 14px; }
.verse { margin: 12px 4px 0; font-style: italic; }

/* Prayer & Praise forms */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--paper-2); border-radius: 999px; padding: 4px; margin: 0 0 14px; }
.tabs button { font: inherit; font-weight: 700; font-size: 14px; border: 0; border-radius: 999px; padding: 10px; background: transparent; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.form { display: grid; gap: 12px; }
.form[hidden] { display: none; }
.form label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; }
.form input, .form textarea { font: inherit; font-size: 16px; font-weight: 400; width: 100%; border: 1px solid rgba(20,20,20,.16); border-radius: 10px; padding: 12px; background: var(--white); color: var(--text); }
.form textarea { min-height: 130px; resize: vertical; }
.form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 14px; color: var(--muted); }
.form .check input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; }
.form .hp { position: absolute; left: -9999px; }
.form button[type="submit"] { border: 0; cursor: pointer; width: 100%; font-family: inherit; }
.status { margin: 0; font-size: 14px; text-align: center; min-height: 1.4em; }
.status.ok { color: #1d6b3a; font-weight: 600; }
.status.err { color: #a12a1f; }

/* Watch Live (Resi) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.player.resi { margin-bottom: 12px; }
