:root {
  --red-deep: #7a0c12;
  --red: #a3121b;
  --red-bright: #c8272c;
  --gold: #d4af37;
  --gold-soft: #e9d38f;
  --paper: #fdf6ec;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: radial-gradient(ellipse at center, var(--red) 0%, var(--red-deep) 65%, #4a0509 100%);
  color: var(--paper);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  display: flex;
  align-items: center;
  align-items: safe center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

.symbol-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Noto Serif SC", serif;
  font-size: min(80vw, 80vh);
  line-height: 1;
  color: var(--gold);
  opacity: 0.07;
  user-select: none;
  z-index: 0;
}

.symbol-watermark,
.symbol-watermark:link,
.symbol-watermark:visited,
.symbol-watermark:hover,
.symbol-watermark:active,
.symbol-watermark:focus {
  color: var(--gold);
  text-decoration: none;
  cursor: pointer;
}

.symbol a,
.symbol a:link,
.symbol a:visited,
.symbol a:hover,
.symbol a:active,
.symbol a:focus {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

main {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: min(90vw, 640px);
  text-align: center;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.symbol {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(4rem, 14vw, 7rem);
  color: var(--gold-soft);
  line-height: 1;
  margin: 0 0 1.5rem;
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
  animation: glow 4s ease-in-out infinite;
}

@keyframes glow {

  0%,
  100% {
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.35);
  }

  50% {
    text-shadow: 0 0 55px rgba(212, 175, 55, 0.65);
  }
}

.divider {
  width: 64px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
  margin: 1.75rem auto;
}

h1 {
  font-weight: 500;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  letter-spacing: 0.02em;
  margin: 0 0 1.25rem;
  color: var(--paper);
}

p {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.85;
  font-weight: 400;
  font-style: italic;
  color: var(--gold-soft);
  margin: 3.5rem 0 1.1rem;
}

p:last-of-type {
  margin-bottom: 0;
}

.signature {
  align-self: flex-end;
  margin-top: 2.25rem;
  font-style: normal;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  letter-spacing: 0.08em;
  color: var(--paper);
  opacity: 0.85;
  text-align: left;
}

.signature .indent {
  display: block;
  margin-left: 2em;
}

.back-link {
  color: var(--gold-soft);
  text-decoration-color: var(--gold);
  text-underline-offset: 0.2em;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--gold-soft);
  text-decoration-color: var(--gold-soft);
}

@media (prefers-reduced-motion: reduce) {
  .symbol {
    animation: none;
  }
}

.qr-code-link {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  display: block;
  line-height: 0;
  text-decoration: none;
}

.qr-code {
  width: clamp(64px, 10vw, 96px);
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  overflow: hidden;
  opacity: 0.9;
}

.qr-code-link:hover .qr-code,
.qr-code-link:focus-visible .qr-code {
  opacity: 1;
}

@media (max-width: 640px) {
  body {
    flex-direction: column;
    justify-content: center;
    justify-content: safe center;
  }

  .qr-code-link {
    position: static;
    align-self: center;
    margin: 0 0 1.75rem;
  }
}
