:root {
  --ink: #f4efe4;
  --muted: #d7cbb8;
  --gold: #d4af69;
  --shadow: rgba(10, 12, 18, 0.45);
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #1c2334;
  color: var(--ink);
}

body {
  min-height: 100dvh;
  background-image:
    linear-gradient(180deg, rgba(16, 20, 32, 0.55), rgba(16, 20, 32, 0.78)),
    var(--edition-art, none);
  background-size: cover;
  background-position: center;
}

.shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

.top {
  text-align: center;
  text-shadow: 0 1px 12px var(--shadow);
}

.kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0 0 0.35rem;
  font-family: "Segoe UI", system-ui, sans-serif;
}

h1 {
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}

.fallback-note {
  margin: 0 0 1rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--gold);
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 0;
  flex: 1;
  min-height: 22rem;
  border-radius: 1.25rem;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.slide {
  min-width: 100%;
  scroll-snap-align: start;
  padding: 1.75rem 1.5rem;
  background: rgba(18, 22, 34, 0.55);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-label {
  font-family: "Segoe UI", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  color: var(--gold);
  margin: 0 0 1rem;
}

blockquote,
.slide p {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.55;
}

.ref {
  margin-top: 1.25rem !important;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem !important;
  color: var(--muted);
}

.prayer {
  white-space: pre-line;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin: 1rem 0;
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 0;
  background: rgba(244, 239, 228, 0.35);
  padding: 0;
}

.dot.is-active {
  background: var(--gold);
}

.actions,
.history {
  font-family: "Segoe UI", system-ui, sans-serif;
}

#notify-btn {
  width: 100%;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--ink);
  padding: 0.8rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

#notify-btn[hidden] {
  display: none;
}

.status {
  min-height: 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.history h2 {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.chip {
  flex: 0 0 auto;
  border: 1px solid rgba(212, 175, 105, 0.45);
  color: var(--ink);
  background: rgba(18, 22, 34, 0.45);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  text-decoration: none;
}

.chip.is-current {
  background: rgba(212, 175, 105, 0.2);
}
