@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=UnifrakturCook:wght@700&display=swap');

:root {
  --black: #08070b;
  --dark-purple: #160d24;
  --gold: #d4aa52;
  --bright-gold: #f1d681;
  --paper: #e8dcc0;
  --red: #9e2943;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  position: relative;
  display: grid;
  min-height: 100vh;
  margin: 0;
  place-items: center;
  padding: 2rem 1rem;
  overflow-x: hidden;
  color: var(--paper);
  font-family: 'Cinzel', Georgia, serif;
  background:
    radial-gradient(circle at center, #3b1b59 0%, transparent 35rem),
    linear-gradient(135deg, var(--black), var(--dark-purple), #050408);
}

body::before {
  position: fixed;
  inset: -30%;
  z-index: -1;
  content:
    '♠ ♥ ♣ ♦  ♣ ♦ ♠ ♥  ♦ ♠ ♥ ♣  ♥ ♣ ♦ ♠\A'
    '♣ ♦ ♠ ♥  ♠ ♥ ♣ ♦  ♥ ♣ ♦ ♠  ♣ ♦ ♠ ♥\A'
    '♦ ♠ ♥ ♣  ♥ ♣ ♦ ♠  ♠ ♥ ♣ ♦  ♦ ♠ ♥ ♣\A'
    '♥ ♣ ♦ ♠  ♣ ♦ ♠ ♥  ♦ ♠ ♥ ♣  ♠ ♥ ♣ ♦';
  color: rgba(241, 214, 129, 0.13);
  font-family: Georgia, serif;
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: 1.5rem;
  line-height: 2;
  white-space: pre;
  transform: rotate(-18deg);
  animation: floatSuits 35s linear infinite;
}

h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 2rem;
  color: var(--red);
  font-family: 'UnifrakturCook', 'Cinzel', serif;
  font-size: clamp(2.3rem, 7vw, 4.7rem);
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  text-shadow:
    1px 1px 0 var(--bright-gold),
    0 0 12px rgba(158, 41, 67, 0.5);
}

.koning {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  height: 330px;
  margin: 0 auto 3rem;
  padding: 10px;
  background: var(--gold);
  border: 3px solid var(--red);
  box-shadow:
    0 0 0 5px var(--black),
    0 0 0 8px var(--gold),
    0 12px 25px rgba(0, 0, 0, 0.55);
  clip-path: polygon(
    8% 0,
    92% 0,
    100% 8%,
    100% 92%,
    92% 100%,
    8% 100%,
    0 92%,
    0 8%
  );
}

.koning img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter:
    sepia(0.35)
    saturate(0.7)
    contrast(1.15)
    brightness(0.75);
  mix-blend-mode: multiply;
}

p {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 560px;
  min-height: 120px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  color: var(--black);
  background: rgba(241, 214, 129, 0.35);
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  font-size: clamp(0.95rem, 2.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
  text-align: center;
}

h2 {
  position: relative;
  z-index: 2;
  margin: 2.5rem auto 1.5rem;
  padding: 0.8rem 2rem;
  color: var(--red);
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1.4rem, 4vw, 2.3rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    1px 1px 0 var(--bright-gold),
    0 0 10px rgba(158, 41, 67, 0.45);
}


@keyframes floatSuits {
  from {
    transform: translate(-4%, -4%) rotate(-18deg);
  }

  to {
    transform: translate(4%, 4%) rotate(-18deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 600px) {
  body {
    padding: 1.5rem 1rem;
  }

  .koning {
    height: 270px;
  }

  h2 {
    padding-right: 1.75rem;
    padding-left: 1.75rem;
  }
}