/* -------- Design tokens ------------------------------------------------ */
:root {
  --bg-top: #f8f1e1;
  --bg-bot: #ecdec4;
  --gold-dark: #7a5c24;
  --gold: #a07b37;
  --gold-lt: #c4a15c;
  --ink: #2d241a;
  --paper: #f4ecd8;

  --font-display: "Cormorant Garamond", "Lora", Georgia, serif;
  --font-ui: "Poppins", system-ui, -apple-system, sans-serif;
}

/* -------- Reset -------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

body {
  min-height: 100vh;
  background: #241c12;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 32px);
  font-family: var(--font-ui);
  color: var(--ink);
}

/* -------- Cover card (fixed aspect ratio, scales with viewport) ------- */
.cover {
  position: relative;
  width: 100%;
  max-width: 1366px;
  aspect-ratio: 1366 / 768;

  /* cqw lets every child size fluidly against the card */
  container-type: inline-size;

  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bot) 100%);
  color: var(--ink);
  overflow: hidden;
  border-radius: 2px;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.55),
    0 6px 18px -6px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(122, 92, 36, 0.15);
  isolation: isolate;
}

/* Soft radial vignette — pulls focus to the centre */
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 50%,
    rgba(0, 0, 0, 0.14) 100%
  );
  pointer-events: none;
  z-index: 4;
}

/* -------- Grain texture (SVG feTurbulence) ---------------------------- */
.grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 3;
}

/* -------- Corner brackets --------------------------------------------- */
.corner {
  position: absolute;
  width: 2.9cqw;
  height: 2.9cqw;
  z-index: 5;
  border: 1px solid var(--gold-dark);
  opacity: 0.55;
}
.corner--tl {
  top: 2cqw;
  left: 2cqw;
  border-right: 0;
  border-bottom: 0;
}
.corner--tr {
  top: 2cqw;
  right: 2cqw;
  border-left: 0;
  border-bottom: 0;
}
.corner--bl {
  bottom: 2cqw;
  left: 2cqw;
  border-right: 0;
  border-top: 0;
}
.corner--br {
  bottom: 2cqw;
  right: 2cqw;
  border-left: 0;
  border-top: 0;
}

/* -------- Logos in top corners ---------------------------------------- */
.brand {
  position: absolute;
  top: 4cqw;
  display: flex;
  flex-direction: column;
  gap: 0.5cqw;
  margin: 0;
  z-index: 6;
  animation: rise 0.9s ease-out both;
}
.brand--left {
  left: 4.4cqw;
  align-items: flex-start;
}
.brand--right {
  right: 4.4cqw;
  align-items: flex-end;
}

.brand img {
  width: auto;
  height: 9cqw;
}
.brand--left img {
  height: 8.7cqw;
}

.brand figcaption {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 1.02cqw;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 0.4cqw;
}
.brand--right figcaption {
  color: var(--gold-dark);
  font-weight: 500;
}

/* -------- Skull watermark --------------------------------------------- */
.skull {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  width: 29cqw;
  z-index: 1;
  pointer-events: none;
  opacity: 0.17;
  animation: breathe 12s ease-in-out infinite;
}
.skull img {
  width: 100%;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.15;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.19;
    transform: translate(-50%, -50%) scale(1.015);
  }
}

/* -------- Hero -------------------------------------------------------- */
.hero {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 5;
  padding: 0 6cqw;
  animation: rise 1.1s 0.15s ease-out both;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 1cqw;
  color: var(--gold-dark);
  width: 36cqw;
}
.ornament .line {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}
.ornament .diamond {
  width: 1.5cqw;
  height: 0.75cqw;
  flex-shrink: 0;
  color: currentColor;
}

.kicker {
  margin: 1.2cqw 0 0.4cqw;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1.3cqw;
  letter-spacing: 0.9em;
  text-indent: 0.9em; /* compensate for letter-spacing trailing */
  color: var(--gold-dark);
}

.title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 16cqw;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--gold-dark);
  text-shadow:
    0 2px 0 rgba(196, 161, 92, 0.18),
    0 6px 20px rgba(0, 0, 0, 0.08);
  background: linear-gradient(
    180deg,
    var(--gold) 0%,
    var(--gold-dark) 65%,
    #5e441a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.12));
}

.subtitle {
  margin: 1.2cqw 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 3.3cqw;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: 0.005em;
}

.ornament--bottom {
  margin-top: 2.4cqw;
}

.cta {
  margin: 1.2cqw 0 0;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 1.15cqw;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.cta .sep {
  margin: 0 0.7em;
  color: var(--gold);
}

/* -------- Entrance animation ------------------------------------------ */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------- Reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .brand,
  .hero,
  .skull {
    animation: none;
  }
}

/* -------- Small-screen fallback --------------------------------------- */
@media (max-width: 520px) {
  .kicker {
    letter-spacing: 0.6em;
    text-indent: 0.6em;
  }
  .cta {
    letter-spacing: 0.3em;
    text-indent: 0.3em;
  }
}
