@font-face {
  font-family: "Cinzel";
  src: url("assets/fonts/cinzel-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ivory: #e9ddc2;
  --champagne: #bfa575;
  --ink: #110803;
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body {
  margin: 0;
  min-width: 240px;
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  color: var(--ivory);
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse at 50% 43%, transparent 5%, rgba(10,4,1,.38) 58%, rgba(6,3,1,.88) 100%),
    url("assets/images/wallpaper.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8,4,2,.24), transparent 28%, transparent 62%, rgba(8,4,2,.70));
}

.atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.atmosphere::before {
  content: "";
  position: absolute;
  inset: -10%;
  opacity: .52;
  background:
    radial-gradient(ellipse at 38% 39%, rgba(172,91,26,.40), transparent 36%),
    radial-gradient(ellipse at 61% 49%, rgba(151,74,26,.34), transparent 32%),
    radial-gradient(ellipse at 54% 36%, rgba(229,162,84,.19), transparent 19%);
  animation: warm-light 24s ease-in-out infinite alternate;
}

main {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: clamp(3rem, 7vh, 6rem) 1.5rem;
}
.title {
  width: min(100%, 1120px);
  text-align: center;
}
.wordmark {
  margin: 0 auto;
  /* Balance the transparent breathing room already present in the artwork. */
  margin-bottom: clamp(-3rem, -4.5vw, -.875rem);
  width: min(100%, 1040px);
  line-height: 0;
}
.wordmark img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(.9) saturate(.78);
}
.subtitle {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 400;
  font-size: clamp(.875rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  text-transform: uppercase;
  letter-spacing: .2em;
  margin: .75rem 0 0;
}
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(190px, 65%);
  height: 20px;
  margin: 13px auto 0;
  color: var(--champagne);
}
.divider::before, .divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--champagne));
  opacity: .6;
}
.divider::after { transform: rotate(180deg); }
.divider span {
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  border: 1px solid currentColor;
  box-shadow: 0 0 7px rgba(236,180,95,.23);
}
.message {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.6;
  letter-spacing: .015em;
  color: #d5c2a2;
  margin: clamp(1.5rem, 4vh, 2.75rem) 0 0;
  text-wrap: balance;
}

@keyframes warm-light {
  from { transform: translate(-2%,1%) scale(.98); }
  to { transform: translate(3%,-2%) scale(1.05); }
}
.is-paused .atmosphere::before { animation-play-state: paused; }
@media (max-width: 600px) {
  main { padding-inline: 1rem; }
  .subtitle { letter-spacing: .16em; }
}
@media (prefers-reduced-motion: reduce) {
  .atmosphere::before { animation: none; }
}
