:root {
  --bg: #0c0b09;
  --surface: rgba(24, 21, 16, 0.72);
  --surface-hover: rgba(32, 28, 21, 0.85);
  --line: rgba(212, 180, 122, 0.14);
  --line-strong: rgba(212, 180, 122, 0.42);
  --gold: #d4b47a;
  --gold-bright: #ebd9ae;
  --text: #ede8de;
  --muted: #8f8a7e;
}

* {
  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(212, 180, 122, 0.09), transparent 65%),
    radial-gradient(ellipse 50% 30% at 50% 110%, rgba(212, 180, 122, 0.04), 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(212, 180, 122, 0.05),
    var(--gold-bright),
    rgba(212, 180, 122, 0.05),
    var(--gold),
    rgba(212, 180, 122, 0.05)
  );
  -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, #1c1913, #0e0d0a);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: "Marcellus", Georgia, serif;
  font-size: 34px;
  color: var(--gold);
}

/* ---- 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%, #a8895a);
  -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;
}

/* ---- 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;
}

.card:hover,
.card:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.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(235, 217, 174, 0.07) 45%,
    rgba(235, 217, 174, 0.13) 50%,
    rgba(235, 217, 174, 0.07) 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, #1e1a13, #12100c);
  display: grid;
  place-items: center;
  font-family: "Marcellus", Georgia, serif;
  font-size: 17px;
  color: var(--gold);
}

.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);
  transform: translate(2px, -2px);
}

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

footer {
  margin-top: 40px;
  color: rgba(143, 138, 126, 0.6);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-align: center;
}

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