:root {
  --ink: #10255E;
  --cream: #F4EDDF;
  --muted: #5F6784;
  --hair: #D6CDBA;
  --radius: 16px;
  --nav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Archivo, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.35;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2 { margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 10px; }

svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
}
.view { padding: 0 20px calc(var(--nav-h) + var(--safe-b) + 24px); }
#view-home { padding-bottom: calc(24px + var(--safe-b)); }

/* ---------- shared bits ---------- */
.rule { flex: 1; height: 1px; background: var(--ink); }
.eyebrow {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
}
.card { border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 14px 16px; }
.fine { font-size: 13px; }

.page-head { padding: 24px 0 12px; }
.page-head h1 { font-family: Chango, Archivo, sans-serif; font-weight: 400; font-size: 32px; line-height: 1.1; }
.page-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.page-head.sticky {
  position: sticky; top: 0; z-index: 5;
  margin: 0 -20px; padding: 20px 20px 12px;
  background: var(--cream);
  border-bottom: 1px solid transparent;
}
.page-head.sticky.stuck { border-bottom-color: var(--hair); }
.count { font-weight: 700; font-size: 14px; padding-bottom: 4px; }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* ---------- home ---------- */
.home { display: flex; flex-direction: column; gap: 14px; padding-top: max(22px, env(safe-area-inset-top)); min-height: 100dvh; }
.label-rule { display: flex; align-items: center; gap: 10px; }
.pill-label {
  border: 1px solid var(--ink); border-radius: 999px; padding: 4px 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; white-space: nowrap;
}
.brand { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.wordmark { width: min(330px, 86vw); height: auto; display: block; }
.sub { font-size: 14px; font-weight: 600; }
.pre { display: flex; flex-direction: column; gap: 14px; }
.pre-title { font-weight: 800; font-size: clamp(30px, 9.4vw, 40px); line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; padding-top: 6px; }
.countdown {
  background: var(--ink); color: var(--cream); border-radius: 20px; padding: 18px 12px 14px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; text-align: center;
}
.countdown > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.countdown .num { font-size: clamp(36px, 12vw, 52px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown .unit { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.cd-caption { grid-column: 1 / -1; font-size: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(244, 237, 223, .3); }
.pre .weather { margin-bottom: 0; }

.status {
  background: var(--ink); color: var(--cream); border-radius: var(--radius);
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.status .big { font-size: 23px; font-weight: 800; line-height: 1.15; }
.status .small { font-size: 14px; }
.status .stack-tight { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.status svg { width: 24px; height: 24px; flex: none; stroke-width: 2; }

.pin p { font-size: 19px; line-height: 1.3; font-weight: 600; margin-top: 6px; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; flex: 1; grid-auto-rows: minmax(108px, 1fr); }
.tile {
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-size: 17px; font-weight: 700; text-align: center; padding: 10px;
  transition: background .15s, color .15s;
}
.tile svg { width: 34px; height: 34px; stroke-width: 1.8; color: var(--accent, var(--ink)); }
.tile:active { background: var(--ink); color: var(--cream); }
.tile:active svg { color: var(--cream); }
/* Each button gets its own soft color; text stays navy for contrast. */
.tile[class*="c-"] { border-color: transparent; background: var(--tint); }
.c-sky  { --tint: #D9E5F3; --accent: #2D68B0; }
.c-sun  { --tint: #F7E3AE; --accent: #A86A12; }
.c-sage { --tint: #D7E7D2; --accent: #3A7A4B; }
.c-clay { --tint: #F5D3C4; --accent: #B8482A; }
.c-plum { --tint: #E3DBF0; --accent: #6649A0; }

.verse { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; padding-top: 4px; }

/* ---------- schedule ---------- */
.day-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.day-tab {
  min-height: 58px; border: 1.5px solid var(--ink); border-radius: 14px; background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 6px; cursor: pointer;
}
.day-tab .d { font-size: 16px; font-weight: 800; }
.day-tab .n { font-size: 13px; display: flex; align-items: center; gap: 4px; }
.day-tab[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.today-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.events { list-style: none; margin: 4px -8px 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.event {
  display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 8px; align-items: start;
  padding: 11px 10px; border-bottom: 1px solid var(--ink); scroll-margin-top: 150px; scroll-margin-bottom: 120px;
}
.event .t { font-size: 13px; line-height: 1.3; font-weight: 600; }
.event .title { font-size: 16px; font-weight: 500; line-height: 1.25; }
.event.key .title { font-weight: 800; }
.event .note { font-size: 13px; margin-top: 2px; }
.event.past { color: var(--muted); border-bottom-color: var(--hair); padding: 9px 10px; }
.event.past .title { font-size: 15px; font-weight: 500; }
.event.past .t { font-weight: 400; }
.event.now {
  background: var(--ink); color: var(--cream); border-radius: 14px; border-bottom-color: transparent; padding: 14px 10px;
}
.event.now .title { font-size: 20px; font-weight: 800; }
.badge {
  display: inline-block; background: var(--cream); color: var(--ink); border-radius: 999px;
  padding: 2px 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; margin-bottom: 4px;
}
.badge.outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); padding: 1px 7px; }
.progress { height: 4px; border-radius: 2px; background: rgba(244, 237, 223, .3); margin-top: 8px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--cream); }

/* ---------- bring ---------- */
.checklist { list-style: none; margin: 0; padding: 0; }
.check {
  width: 100%; min-height: 58px; background: transparent; border: 0; border-bottom: 1px solid var(--ink);
  padding: 8px 0; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
}
.box {
  width: 28px; height: 28px; flex: none; border-radius: 9px; border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.box svg { width: 18px; height: 18px; stroke-width: 3; opacity: 0; }
.check[aria-pressed="true"] .box { background: var(--ink); color: var(--cream); }
.check[aria-pressed="true"] .box svg { opacity: 1; }
.check .lbl { font-size: 17px; font-weight: 600; display: block; }
.check .hint { font-size: 13px; display: block; }
.check[aria-pressed="true"] .lbl { text-decoration: line-through; text-decoration-thickness: 1.5px; }

/* ---------- details ---------- */
.venue { font-size: 21px; font-weight: 800; line-height: 1.2; }
.address { font-size: 16px; margin: 4px 0 12px; }
.btn-solid {
  min-height: 56px; border-radius: 14px; background: var(--ink); color: var(--cream);
  display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 17px; font-weight: 700;
}
.btn-solid svg { width: 22px; height: 22px; stroke-width: 2; }
.three-up { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mini { padding: 12px 10px; }
.mini .eyebrow { font-size: 11px; line-height: 1.2; min-height: 2.4em; align-items: flex-start; }
.mini-val { font-size: 16px; font-weight: 700; margin-top: 2px; }
h2 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }

.weather { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.wx {
  border: 1.5px solid var(--ink); border-radius: 14px; padding: 12px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
}
.wx .day { font-size: 14px; font-weight: 700; }
.wx .cond { font-size: 13px; line-height: 1.2; min-height: 2.4em; display: flex; align-items: center; }
.wx .temp { font-size: 17px; font-weight: 800; }
.wx .temp span { font-weight: 500; }
.wx .rain { font-size: 12px; }
.wx svg { width: 62px; height: 62px; stroke-width: 2.4; }
.wx { background: #FBF7EE; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translateX(-3px); } to { transform: translateX(4px); } }
@keyframes fall { 0% { transform: translateY(-4px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }
@keyframes flash { 0%, 70%, 100% { opacity: 1; } 80%, 90% { opacity: .2; } }
.rays { transform-box: fill-box; transform-origin: center; animation: spin 16s linear infinite; }
.cloud { animation: drift 3.6s ease-in-out infinite alternate; }
.drop { animation: fall 1.2s linear infinite; }
.drop:nth-child(2) { animation-delay: .4s; }
.drop:nth-child(3) { animation-delay: .8s; }
.bolt { animation: flash 2.4s infinite; }
@media (prefers-reduced-motion: reduce) {
  .rays, .cloud, .drop, .bolt { animation: none; }
}

/* ---------- discussion ---------- */
.session { border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.session-btn {
  width: 100%; min-height: 68px; background: transparent; border: 0; padding: 12px 16px; text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.session-btn .when { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; display: block; }
.session-btn .stitle { font-size: 18px; font-weight: 800; display: block; }
.session-btn svg { width: 22px; height: 22px; stroke-width: 2; flex: none; transition: transform .2s; }
.session-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.session-btn .passage { font-size: 14px; display: block; margin-top: 2px; }
.qwrap { border-top: 1px solid var(--ink); padding: 12px 16px 16px; }
.qhead { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.qwrap ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 17px; line-height: 1.4; }
.qwrap li::marker { font-weight: 800; }
.subq { margin: 6px 0 0; padding-left: 18px; list-style: circle; font-size: 16px; }
.qnote { display: block; margin-top: 6px; font-size: 14px; font-style: italic; }
.empty { text-align: center; padding: 24px 8px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty img { width: 160px; height: auto; }

/* ---------- bottom nav ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: var(--cream); border-top: 1px solid var(--ink);
  padding: 8px max(8px, calc((100vw - 480px) / 2 + 8px)) calc(10px + var(--safe-b));
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px;
}
.bottom-nav a {
  min-height: 50px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 11px; font-weight: 500;
}
.bottom-nav svg { width: 24px; height: 24px; }
.bottom-nav a[aria-current="page"] { background: var(--ink); color: var(--cream); font-weight: 700; }
