@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/CormorantGaramond-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/CormorantGaramond-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: block;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('/fonts/EBGaramond-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

@keyframes fallback-reveal {
  to { opacity: 1; }
}

body {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.58rem, 3.6vw, 2.16rem);
  line-height: 1.7;
  background-color: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fallback-reveal 0s 3s forwards;
}

main {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.verse-block {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  text-align: center;
  will-change: transform;
}

.verse-ref {
  font-size: 0.85em;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  margin-bottom: 0.5em;
  color: #c83232;
}

.verse-text {
  font-size: 1em;
}

.verse-translation-ref {
  font-size: 0.65em;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  color: #c83232;
  opacity: 0.8;
  margin-top: 1em;
  margin-bottom: 0.3em;
}

.verse-translation {
  font-size: 0.8em;
  font-style: italic;
  opacity: 0.8;
}

footer {
  font-family: 'EB Garamond', serif;
  text-align: center;
  padding: 1rem;
  font-size: 0.35em;
  font-variant: small-caps;
  letter-spacing: 0.15em;
  opacity: 0.6;
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
