/* Sundayward website. Direction C "Season": the accent follows the church year (assets/season.js). */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/bricolage-latin.woff2) format('woff2');
}

:root {
  /* Season colours from apps/mobile/src/lib/season-core.ts. Ordinary Time is the default. */
  --season: #2E7A4C;
  --season-ink: #2E7A4C;
  --on-season: #FFFFFF;
  --season-tint: #E6F1EA;
  --bg: #FFFFFF;
  --mist: #F5F4F2;
  --ink: #17141F;
  --ink2: #5E5970;
  --rule: #E4E1EA;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131117;
    --mist: #1D1A23;
    --ink: #F3F1F7;
    --ink2: #B3ADC2;
    --rule: #2E2A36;
    --season-tint: #22202A;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
a { color: var(--season-ink); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: var(--ink); } }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* Season band: the same element as the app's Today screen. */
.band { background: var(--season); color: var(--on-season); }
.band .wrap { padding-block: 20px 36px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 750; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.top nav { display: flex; gap: 18px; font-size: 15px; font-weight: 600; }
.top nav a { color: inherit; text-decoration: none; opacity: .88; }
.top nav a:hover, .top nav a[aria-current] { opacity: 1; text-decoration: underline; }

.count { display: flex; align-items: flex-end; gap: 14px; margin-top: 44px; }
.count b { font-size: clamp(84px, 22vw, 132px); font-weight: 800; line-height: .86; letter-spacing: -0.045em; }
.count span { font-size: 22px; font-weight: 700; line-height: 1.12; padding-bottom: 8px; }
.season-name { margin-top: 18px; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.weeks { display: flex; gap: 6px; margin-top: 10px; max-width: 340px; }
.weeks i { flex: 1; height: 6px; border-radius: 3px; background: currentColor; opacity: .3; }
.weeks i.on { opacity: 1; }

.page-title { font-size: clamp(34px, 8vw, 52px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin: 40px 0 0; text-wrap: balance; }
.page-sub { margin: 12px 0 0; font-size: 16px; opacity: .9; }

main .wrap { padding-block: 40px 56px; }
h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 44px 0 10px; text-wrap: balance; }
h2:first-child { margin-top: 0; }
h3 { font-size: 19px; font-weight: 750; margin: 26px 0 6px; }
p, li { max-width: 64ch; }
ul { padding-left: 1.2em; }
li { margin: 6px 0; }
.lede { font-size: 21px; line-height: 1.4; font-weight: 500; letter-spacing: -0.005em; }
.muted { color: var(--ink2); }

.verse { border-left: 3px solid var(--season); padding: 2px 0 2px 18px; margin: 32px 0; }
.verse p { font-size: 20px; line-height: 1.38; font-weight: 600; margin: 0; }
.verse cite { display: block; font-style: normal; font-size: 15px; font-weight: 700; color: var(--season-ink); margin-top: 8px; }
@media (prefers-color-scheme: dark) { .verse cite { color: var(--ink2); } }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 18px; }
.feature { background: var(--mist); border-radius: 16px; padding: 18px 18px 16px; }
.feature b { display: block; font-size: 17px; font-weight: 750; }
.feature span { display: block; font-size: 15px; color: var(--ink2); margin-top: 4px; line-height: 1.45; }

.promise { background: var(--season-tint); border-radius: 18px; padding: 22px 22px 8px; margin-top: 36px; }
.promise h2 { margin-top: 0; font-size: 22px; }

.facts { width: 100%; border-collapse: collapse; margin: 14px 0 6px; font-size: 15.5px; }
.table-scroll { overflow-x: auto; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.facts th { font-weight: 750; white-space: nowrap; }

.faq details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17.5px; }
.faq details p { margin: 10px 0 2px; }

.contact { background: var(--mist); border-radius: 16px; padding: 18px 20px; margin-top: 18px; }
.contact strong { font-size: 19px; }

footer { border-top: 1px solid var(--rule); }
footer .wrap { padding-block: 22px 34px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ink2); }
footer a { color: var(--ink2); }
