:root {
  --night: #07111f;
  --gold: #d8ad62;
  --gold-light: #f1d79f;
  --ivory: #f7f1e5;
  --mist: #b9c2cc;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: max(2.25rem, env(safe-area-inset-top)) 1rem
    max(2.25rem, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% -8%, rgba(65, 103, 138, 0.42), transparent 34rem),
    radial-gradient(circle at 7% 56%, rgba(49, 104, 111, 0.16), transparent 24rem),
    linear-gradient(155deg, #0b1828 0%, #07111f 46%, #040a12 100%);
  isolation: isolate;
}

.site-shell::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.44;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.8) 0 0.7px, transparent 1px),
    radial-gradient(circle at 74% 31%, rgba(241, 215, 159, 0.75) 0 0.65px, transparent 1px),
    radial-gradient(circle at 43% 76%, rgba(255, 255, 255, 0.55) 0 0.65px, transparent 1px);
  background-size: 79px 83px, 123px 109px, 97px 131px;
}

.ambient {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(216, 173, 98, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.ambient-one {
  top: -10rem;
  left: 50%;
  width: 35rem;
  height: 35rem;
  transform: translateX(-50%);
}

.ambient-two {
  top: -7rem;
  left: 50%;
  width: 29rem;
  height: 29rem;
  border-color: rgba(216, 173, 98, 0.08);
  transform: translateX(-50%);
}

.link-page {
  width: min(100%, 41rem);
  margin: 0 auto;
}

.profile-header {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.portrait-frame {
  position: relative;
  width: 10.75rem;
  height: 10.75rem;
  margin-bottom: 1.6rem;
  padding: 0.36rem;
  border: 1px solid rgba(241, 215, 159, 0.74);
  border-radius: 50%;
  background: rgba(7, 17, 31, 0.72);
  box-shadow:
    0 0 0 0.5rem rgba(216, 173, 98, 0.06),
    0 1.5rem 4rem rgba(0, 0, 0, 0.45);
}

.portrait-frame::before,
.portrait-frame::after {
  position: absolute;
  top: 50%;
  width: 2.5rem;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(216, 173, 98, 0.7));
}

.portrait-frame::before {
  right: calc(100% + 0.5rem);
}

.portrait-frame::after {
  left: calc(100% + 0.5rem);
  transform: rotate(180deg);
}

.portrait-glow {
  position: absolute;
  inset: -1.2rem;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 173, 98, 0.16), transparent 64%);
  filter: blur(4px);
}

.portrait {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  line-height: 1.55;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 10vw, 3.7rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  text-shadow: 0 0.6rem 2rem rgba(0, 0, 0, 0.5);
}

.title-ornament {
  display: flex;
  align-items: center;
  width: min(15rem, 60%);
  margin: 1.15rem auto 1.25rem;
  color: var(--gold);
  gap: 0.65rem;
}

.title-ornament span {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 173, 98, 0.72));
}

.title-ornament span:last-child {
  transform: rotate(180deg);
}

.title-ornament i {
  font-size: 0.65rem;
  font-style: normal;
}

.bio {
  max-width: 36rem;
  margin: 0;
  color: #d2d8df;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 3.8vw, 1.13rem);
  line-height: 1.72;
}

.link-list {
  display: grid;
  margin-top: 2.25rem;
  gap: 0.85rem;
}

.link-card {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 5.4rem;
  padding: 0.85rem 1rem;
  overflow: hidden;
  border: 1px solid rgba(216, 173, 98, 0.27);
  border-radius: 0.9rem;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.055), transparent 65%),
    rgba(13, 27, 44, 0.88);
  box-shadow: 0 0.9rem 2.3rem rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
  gap: 0.9rem;
}

.link-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  content: "";
  background: linear-gradient(transparent, var(--gold), transparent);
  opacity: 0.52;
}

.link-card:hover {
  border-color: rgba(241, 215, 159, 0.68);
  background-color: rgba(18, 37, 59, 0.96);
  box-shadow: 0 1.1rem 2.8rem rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
}

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

.link-card-featured {
  border-color: rgba(241, 215, 159, 0.72);
  background:
    linear-gradient(110deg, rgba(255, 248, 226, 0.13), transparent 58%),
    linear-gradient(135deg, #26384b, #152439 70%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 1rem 3rem rgba(0, 0, 0, 0.35);
}

.icon-wrap {
  display: grid;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(216, 173, 98, 0.35);
  border-radius: 50%;
  color: var(--gold-light);
  background: rgba(4, 10, 18, 0.35);
  place-items: center;
}

.icon-wrap svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.link-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.25rem;
}

.link-copy strong {
  color: #fff9ec;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.link-copy small {
  overflow: hidden;
  color: var(--mist);
  font-size: 0.79rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrow {
  width: 1.2rem;
  fill: none;
  color: rgba(241, 215, 159, 0.72);
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 180ms ease;
}

.link-card:hover .arrow {
  transform: translate(2px, -2px);
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.1rem;
  color: rgba(216, 173, 98, 0.72);
  gap: 0.7rem;
}

footer p {
  margin: 0;
  color: #8f9aa5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-style: italic;
  letter-spacing: 0.03em;
}

footer span {
  font-size: 0.5rem;
}

@media (min-width: 640px) {
  .site-shell {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
  }

  .portrait-frame {
    width: 12rem;
    height: 12rem;
  }

  .link-card {
    min-height: 5.8rem;
    padding: 1rem 1.15rem;
    gap: 1.1rem;
  }

  .link-copy strong {
    font-size: 1.16rem;
  }

  .link-copy small {
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .link-card,
  .arrow {
    transition: none;
  }
}
