:root {
  --bg: #14110b;
  --surface: rgba(36, 30, 21, 0.78);
  --surface-hover: rgba(48, 40, 27, 0.9);
  --line: rgba(240, 197, 118, 0.22);
  --line-strong: rgba(240, 197, 118, 0.6);
  --gold: #f0c576;
  --gold-bright: #ffe3a1;
  --text: #f8f3e7;
  --muted: #b0a793;
}

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

html {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 40% at 50% -8%, rgba(240, 197, 118, 0.17), transparent 65%),
    radial-gradient(ellipse 50% 30% at 50% 110%, rgba(240, 197, 118, 0.08), transparent 70%);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  justify-content: center;
  padding: clamp(48px, 10vh, 96px) 20px 56px;
}

main {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.noscript {
  color: var(--muted);
  text-align: center;
}

/* ---- Medallion ---- */

.medallion {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
}

.medallion::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 1.5px;
  background: conic-gradient(
    from 0deg,
    rgba(240, 197, 118, 0.08),
    var(--gold-bright),
    rgba(240, 197, 118, 0.08),
    var(--gold),
    rgba(240, 197, 118, 0.08)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: ring-turn 14s linear infinite;
}

@keyframes ring-turn {
  to { transform: rotate(360deg); }
}

.medallion-core {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(160deg, #2b2417, #17130c);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: "Marcellus", Georgia, serif;
  font-size: 34px;
  color: var(--gold-bright);
}

/* ---- Identity ---- */

.name {
  font-family: "Marcellus", Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 6vw, 32px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(100deg, var(--gold-bright) 20%, var(--gold) 60%, #d4a75e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
}

.tagline {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  letter-spacing: 0.02em;
  text-align: center;
}

.rule {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  border: 0;
  margin: 28px 0;
}

/* ---- Sections ---- */

.link-section {
  width: 100%;
}

.link-section + .link-section {
  margin-top: 30px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-family: "Marcellus", Georgia, serif;
  font-weight: 400;
  font-size: 13.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.08s * var(--i));
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

/* ---- Links ---- */

.links {
  width: 100%;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.links li {
  opacity: 0;
  animation: rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.08s * var(--i));
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.card:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(240, 197, 118, 0.1);
}

.card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* sheen sweep */
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent,
    rgba(255, 227, 161, 0.09) 45%,
    rgba(255, 227, 161, 0.17) 50%,
    rgba(255, 227, 161, 0.09) 55%,
    transparent
  );
  pointer-events: none;
}

.card:hover::after {
  animation: sheen 0.9s ease forwards;
}

@keyframes sheen {
  to { left: 130%; }
}

.badge {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #2d2617, #1a150d);
  display: grid;
  place-items: center;
  font-family: "Marcellus", Georgia, serif;
  font-size: 17px;
  color: var(--gold-bright);
}

.card-text {
  flex: 1;
  min-width: 0;
}

.card-label {
  display: block;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.01em;
}

.card-sub {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-arrow {
  flex: none;
  color: var(--muted);
  font-size: 15px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.card:hover .card-arrow {
  color: var(--gold-bright);
  transform: translate(2px, -2px);
}

/* ---- QR code ---- */

.qr-block {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.qr-img {
  width: 116px;
  height: 116px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 28px rgba(240, 197, 118, 0.14);
}

.qr-text {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-align: center;
}

/* already on a phone — no need for the QR */
@media (max-width: 640px) {
  .qr-block {
    display: none;
  }
}

/* ---- Footer ---- */

footer {
  margin-top: 32px;
  color: rgba(176, 167, 147, 0.7);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .medallion::before {
    animation: none;
  }
  .links li,
  .section-title {
    animation: none;
    opacity: 1;
  }
  .card,
  .card-arrow {
    transition: none;
  }
  .card:hover::after {
    animation: none;
  }
  .card:hover {
    transform: none;
  }
}
