@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=EB+Garamond:wght@400;500&display=swap");

:root {
  color-scheme: light;
  --bg: #f1e6d0;
  --fg: #2a1a12;
  --muted: #6b4f3a;
  --accent: #9b2c1f;
  --gold: #c08a2e;
  --border: #d8c3a0;
  --radius: 4px;
  --font: "EB Garamond", Georgia, serif;
  --deck-backdrop: #140c08;
}

body { font-family: var(--font); color: var(--fg); }

.slide { padding: 80px 88px; font-family: var(--font); }

.slide-title {
  background: radial-gradient(ellipse at 50% 40%, #7a2418 0%, #3a120c 60%, #1c0906 100%);
  color: #f5e9d2;
  display: grid;
  place-items: center;
  text-align: center;
}
.slide-title::before {
  content: "";
  position: absolute;
  inset: 32px;
  border: 2px solid rgba(192, 138, 46, 0.55);
  pointer-events: none;
}
.slide-title h1 {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 112px;
  letter-spacing: 6px;
  margin: 0;
  line-height: 1.05;
}
.eyebrow {
  font-family: "Cinzel", serif;
  font-size: 22px;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 24px;
}
.rule { width: 160px; height: 3px; background: var(--gold); margin: 32px auto; }
.subtitle { font-size: 40px; font-style: italic; margin: 0; color: #ead8b8; }

.slide-qa {
  background: var(--bg);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: center;
}
.slide-qa.alt { background: #eadcc0; }
.slide-qa::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 40px, var(--gold) 40px 48px);
}
.qa-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  border-right: 3px solid var(--gold);
  height: 100%;
  justify-content: center;
}
.qa-num {
  font-family: "Cinzel", serif;
  font-size: 140px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.qa-tag {
  font-family: "Cinzel", serif;
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--muted);
  padding-right: 16px;
}
.qa-body h2 {
  font-family: "Cinzel", serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 28px;
  color: #3a120c;
}
.qa-body p {
  font-size: 27px;
  line-height: 1.45;
  margin: 0;
}

.title-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; height: 100%; }
.loading { display: flex; align-items: center; gap: 10px; padding: 16px; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 24px; text-align: center; }
.empty-title { font-weight: 600; margin: 0 0 6px; }
.hint { opacity: 0.7; font-size: 0.9em; }
.alert { padding: 12px 16px; border-radius: 8px; border: 1px solid currentColor; }
.alert-error { color: #9b1c1c; background: #fdecec; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; font: inherit; }
.btn-secondary { background: transparent; border-color: currentColor; }

[data-current] .rise { animation: rise 600ms ease-out both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
}
