*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0e1d35;
  --navy-mid: #162848;
  --navy-card: #1a3158;
  --gold: #c9a63c;
  --gold-light: #e2c878;
  --gold-dim: #8a7028;
  --cream: #f5edd8;
  --cream-dim: #c8b99a;
  --white: #ffffff;
}

html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  background: radial-gradient(
    ellipse at 50% 0%,
    #1e3d6e 0%,
    #0e1d35 55%,
    #070f1c 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-family: "EB Garamond", Georgia, serif;
  color: var(--cream);
  padding: 3rem 1rem 2rem;
}

/* Subtle starfield overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(
      1px 1px at 15% 22%,
      rgba(255, 255, 255, 0.18) 0%,
      transparent 100%
    ),
    radial-gradient(
      1px 1px at 42% 11%,
      rgba(255, 255, 255, 0.12) 0%,
      transparent 100%
    ),
    radial-gradient(
      1px 1px at 68% 35%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 100%
    ),
    radial-gradient(
      1px 1px at 80% 8%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 100%
    ),
    radial-gradient(
      1px 1px at 30% 75%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 100%
    ),
    radial-gradient(
      1px 1px at 55% 85%,
      rgba(255, 255, 255, 0.12) 0%,
      transparent 100%
    ),
    radial-gradient(
      1px 1px at 90% 60%,
      rgba(255, 255, 255, 0.09) 0%,
      transparent 100%
    ),
    radial-gradient(
      1px 1px at 5% 50%,
      rgba(255, 255, 255, 0.07) 0%,
      transparent 100%
    );
  pointer-events: none;
  z-index: 0;
}

/* ── Header ── */
header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 2.4rem;
}

.site-title {
  font-family: "Cinzel", serif;
  font-size: clamp(1.5rem, 2rem, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 28px rgba(201, 166, 60, 0.35);
}

.site-subtitle {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: clamp(0.85rem, 1rem, 1.05rem);
  color: var(--cream-dim);
  margin-top: 0.3rem;
  letter-spacing: 0.05em;
}

/* ── Cross ornament ── */
.cross-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.cross-ornament::before,
.cross-ornament::after {
  content: "";
  height: 1px;
  width: 70px;
  background: linear-gradient(to right, transparent, var(--gold-dim));
}

.cross-ornament::after {
  background: linear-gradient(to left, transparent, var(--gold-dim));
}

.cross-symbol {
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1;
  text-shadow: 0 0 12px rgba(201, 166, 60, 0.5);
}

/* ── Card ── */
.card {
  position: relative;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(30, 56, 100, 0.82) 0%,
    rgba(14, 29, 53, 0.88) 100%
  );
  border: 1px solid rgba(201, 166, 60, 0.28);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(201, 166, 60, 0.08),
    0 8px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(201, 166, 60, 0.12);
  max-width: 720px;
  width: 100%;
  padding: 3rem 3.5rem;
  text-align: center;
  animation: fadeUp 0.7s ease both;
}

/* Inner decorative border */
.card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 166, 60, 0.1);
  border-radius: 2px;
  pointer-events: none;
}

/* Corner ornaments */
.card-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--gold-dim);
  border-style: solid;
  opacity: 0.55;
}
.card-corner.tl {
  top: 6px;
  left: 6px;
  border-width: 1px 0 0 1px;
}
.card-corner.tr {
  top: 6px;
  right: 6px;
  border-width: 1px 1px 0 0;
}
.card-corner.bl {
  bottom: 6px;
  left: 6px;
  border-width: 0 0 1px 1px;
}
.card-corner.br {
  bottom: 6px;
  right: 6px;
  border-width: 0 1px 1px 0;
}

/* ── Date label ── */
.date-label {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201, 166, 60, 0.75);
  margin-bottom: 1.6rem;
}

/* ── Verse text ── */
.verse-text {
  font-size: clamp(1.2rem, 1.4rem, 1.55rem);
  line-height: 1.75;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 2rem;
  position: relative;
}

/* Opening quotation mark */
.verse-text::before {
  content: "\201C";
  font-size: 4rem;
  line-height: 0;
  vertical-align: -0.45em;
  color: var(--gold);
  opacity: 0.45;
  margin-right: 0.1em;
  font-style: normal;
}

/* Closing quotation mark */
.verse-text::after {
  content: "\201D";
  font-size: 4rem;
  line-height: 0;
  vertical-align: -0.45em;
  color: var(--gold);
  opacity: 0.45;
  margin-left: 0.05em;
  font-style: normal;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.divider-line {
  height: 1px;
  width: 50px;
  background: linear-gradient(to right, transparent, rgba(201, 166, 60, 0.4));
}

.divider-line.right {
  background: linear-gradient(to left, transparent, rgba(201, 166, 60, 0.4));
}

.divider-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-dim);
}

/* ── Passage reference ── */
.passage-ref a {
  font-family: "Cinzel", serif;
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-decoration: none;
  text-shadow: 0 0 14px rgba(201, 166, 60, 0.2);
  transition:
    color 0.2s,
    text-shadow 0.2s;
  border-bottom: 1px solid rgba(201, 166, 60, 0.3);
  padding-bottom: 1px;
}

.passage-ref a:hover {
  color: var(--gold-light);
  text-shadow: 0 0 20px rgba(201, 166, 60, 0.45);
  border-bottom-color: rgba(226, 200, 120, 0.6);
}

/* ── Loading / Error states ── */
.message {
  font-style: italic;
  color: var(--cream-dim);
  font-size: 1.1rem;
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  margin-top: 2.2rem;
  text-align: center;
}

.footer-cross {
  color: var(--gold-dim);
  font-size: 1.1rem;
  opacity: 0.5;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-text {
  font-family: "Cinzel", serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 166, 60, 0.75);
}

/* ── Fade-in animation ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .card {
    padding: 2rem 1.6rem;
  }
}
