:root {
  --paper: #f4eee2;
  --surface: #fffcf6;
  --surface-2: #fbf5ea;
  --ink: #221d18;
  --ink-2: #6a6157;
  --ink-3: #9c9385;
  --line: #e6ddcd;
  --clay: #bc4b2c;
  --clay-deep: #93351c;
  --clay-tint: #faede5;
  --sage: #5e7a52;
  --sage-soft: #e3ebdb;
  --amber: #bc8417;
  --amber-soft: #f5e7c7;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --ui: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.page { min-height: 100vh; background: var(--paper); }
.loading, .empty {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
}
.brand {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
}
.brand span { color: var(--clay); }
.hero {
  background: linear-gradient(160deg, #221d18, #45342c);
  color: var(--paper);
  padding: 28px 20px 32px;
  text-align: center;
}
.hero-inner, .content {
  width: min(760px, 100%);
  margin: 0 auto;
}
.church {
  opacity: .86;
  font-weight: 800;
}
h1 {
  font-family: var(--display);
  font-size: clamp(34px, 8vw, 58px);
  line-height: .98;
  margin: 18px 0 10px;
}
.meta {
  opacity: .88;
  font-weight: 700;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255,255,255,.14);
  color: inherit;
  font-size: 12px;
  font-weight: 800;
}
.content {
  padding: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin: 12px 0;
}
.section-title {
  margin: 26px 0 12px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.song {
  display: grid;
  grid-template-columns: 28px 48px 1fr;
  gap: 11px;
  align-items: start;
}
.number {
  color: var(--ink-3);
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
}
.key {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-weight: 800;
}
.cover {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--ink);
}
.song-title {
  font-weight: 900;
  font-size: 16px;
}
.muted {
  color: var(--ink-2);
  font-weight: 700;
  font-size: 13px;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.link {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 900;
  font-size: 12px;
}
.liturgy-items {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.liturgy-item {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 14px;
  padding: 11px 12px;
}
.liturgy-item-title {
  color: var(--ink);
  font-weight: 900;
  font-size: 14px;
}
.liturgy-item-meta {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 900;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.liturgy-item-body {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 7px;
  white-space: pre-wrap;
}
.liturgy-item-custom {
  background: #fffaf2;
}
.lyrics {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.lyrics summary {
  cursor: pointer;
  color: var(--ink-2);
  font-weight: 900;
  font-size: 12px;
}
.lyrics pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  color: var(--ink-2);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}
.assignment {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.assignment:last-child { border-bottom: 0; }
.status-confirmed { color: var(--sage); }
.status-pending { color: var(--amber); }
.info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.info-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--clay-tint);
  color: var(--clay-deep);
  flex: none;
}
.footer {
  text-align: center;
  color: var(--ink-3);
  padding: 18px 0 30px;
  font-size: 13px;
  font-weight: 700;
}
.footer a {
  color: var(--clay-deep);
  text-decoration: none;
}
.legal-page {
  background: var(--paper);
}
.legal-hero {
  background: linear-gradient(160deg, #221d18, #45342c);
  color: var(--paper);
  padding: 26px 20px 34px;
}
.legal-back {
  color: var(--paper);
  display: inline-block;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 800;
  text-decoration: none;
}
.legal-back span {
  color: var(--clay);
}
.legal-content {
  padding-top: 18px;
  padding-bottom: 42px;
}
.legal-card {
  padding: clamp(18px, 4vw, 34px);
}
.legal-card h2,
.legal-card h3 {
  color: var(--ink);
  font-family: var(--display);
  line-height: 1.1;
}
.legal-card h2 {
  font-size: 26px;
  margin: 28px 0 10px;
}
.legal-card h2:first-child {
  margin-top: 0;
}
.legal-card h3 {
  font-size: 18px;
  margin: 20px 0 8px;
}
.legal-card p,
.legal-card li {
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.65;
}
.legal-card ul {
  margin: 8px 0 16px;
  padding-left: 22px;
}
.legal-card a {
  color: var(--clay-deep);
  font-weight: 900;
}
.legal-card ol {
  margin: 8px 0 16px;
  padding-left: 22px;
}
.legal-action {
  background: var(--clay);
  border-radius: 999px;
  color: var(--paper) !important;
  display: inline-flex;
  margin-top: 8px;
  padding: 12px 16px;
  text-decoration: none;
}
