@font-face {
  font-family: "Cormorant Garamond";
  src: url("./cormorant-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0d0d0f;
  --panel: #161619;
  --text: #fff3e9;
  --muted: #d2c6c2;
  --steel: #a49a95;
  --outline: #595054;
  font-family: system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  display: grid;
  min-height: 100svh;
  place-items: center;
  margin: 0;
  padding: clamp(0.85rem, 4vh, 2rem) clamp(0.75rem, 4vw, 1.75rem);
  background:
    radial-gradient(ellipse at 48% 0%, #67222b 0%, #2a1016 34%, transparent 69%),
    radial-gradient(ellipse at 94% 95%, #2c0c15, transparent 60%),
    var(--ink);
  color: var(--text);
}

.profile {
  position: relative;
  isolation: isolate;
  width: min(100%, 39rem);
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 0.8rem 0.8rem 0.35rem 0.35rem;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    radial-gradient(ellipse at 2% 0%, #b66b72, transparent 33%) border-box,
    radial-gradient(ellipse at 99% 99%, #a45163, transparent 38%) border-box,
    linear-gradient(155deg, #542632, #a58981 28%, #51252f 64%, #361923) border-box;
  box-shadow: 0 0 0 0.19rem #0b090a, 0 0 3.5rem #a22d3f45, 0 1.4rem 3rem #000a;
}

.profile-images {
  --avatar-diameter: clamp(5.55rem, 26.5vw, 7.4rem);
  --avatar-overhang: clamp(2.65rem, 9vw, 3.3rem);
  position: relative;
  padding-bottom: var(--avatar-overhang);
  background: radial-gradient(ellipse at 50% 0%, #49252a, var(--panel) 74%);
}

.banner,
.avatar {
  margin: 0;
  overflow: hidden;
}

.banner {
  position: relative;
  isolation: isolate;
  height: clamp(9.5rem, 45vw, 16rem);
  border-bottom: 1px solid #ad5b62;
  background-color: #282224;
}

.banner img,
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner img {
  /* Position the neckline relative to the center of the avatar. */
  position: absolute;
  top: calc(100% + var(--avatar-overhang) - var(--avatar-diameter) / 2 - 0.4rem);
  left: 50%;
  width: auto;
  height: 207%;
  transform: translate(-52.5%, -48.7%);
  filter: saturate(0.82) contrast(1.06) brightness(0.94);
  mask-image: linear-gradient(90deg, transparent, #000 10% 87%, transparent);
}

.banner::before {
  position: absolute;
  inset: -1.25rem;
  z-index: -1;
  background:
    linear-gradient(90deg, #24121a9c, #45273161 55%, #29141bb5),
    url("./elvara-banner-portrait.jpg") center 36% / cover;
  filter: blur(18px) saturate(0.62) brightness(0.72);
  content: "";
  pointer-events: none;
}

.banner::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #19090e98, transparent 26%),
    linear-gradient(90deg, #2711195c, transparent 23% 76%, #29121d69);
  content: "";
  pointer-events: none;
}

.avatar {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 50%;
  width: var(--avatar-diameter);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 2px solid #ffdfd3;
  border-radius: 50%;
  background-color: #302729;
  box-shadow: 0 0 0 0.25rem #160f11, 0 0 0 0.32rem #a56c6b, 0 0.5rem 1.65rem #0b0507dd;
}

.avatar img {
  object-position: center;
  filter: saturate(0.6) sepia(0.12);
}

.content {
  padding: 0.75rem clamp(1rem, 5vw, 3rem) clamp(1.2rem, 4vw, 1.9rem);
  text-align: center;
}

h1 {
  display: inline-block;
  margin: 0;
  padding: 0.025em 0.13em 0.08em 0.04em;
  color: #f6e0d6;
  font: italic 600 clamp(4.35rem, 17vw, 7rem) / 0.91 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.045em;
  text-shadow: 0 0.035em 0.12em #6c2636;
}

@supports (background-clip: text) {
  h1 {
    background-image: linear-gradient(174deg, #fff5e8 15%, #f2dcd1 47%, #d9aaa6 70%, #ad6776 89%, #783c4e);
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0.025em 0.07em #6c263681);
  }
}

.bio {
  margin: 0.25rem 0 0;
  color: var(--muted);
  line-height: 1.4;
}

nav h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.15rem 0 0.7rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

nav h2::before,
nav h2::after {
  width: min(16%, 3rem);
  height: 1px;
  background-color: #997878;
  content: "";
}

.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.featured {
  grid-column: 1 / -1;
}

.social-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.22rem 0.55rem;
  min-height: 3rem;
  padding: 0.55rem 0.5rem;
  border: 1px solid var(--outline);
  border-radius: 0.38rem;
  background-color: #222124;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  transition: background 160ms, border-color 160ms, box-shadow 160ms;
}

.social-link:hover {
  border-color: var(--steel);
  background-color: #333033;
}

.social-link:focus-visible {
  outline: 2px solid #ffe0d0;
  outline-offset: 2px;
}

.emoji {
  line-height: 1.2;
}

.telegram {
  min-height: 4.75rem;
  padding-inline: 0.6rem;
  border-color: #f48086;
  background: linear-gradient(130deg, #711628, #a52d42 72%, #7e172d);
  box-shadow: 0 0 1.5rem #df283e67, inset 0 1px #ffb4a36b;
  color: #fff9f4;
  font-size: clamp(1rem, 4.6vw, 1.3rem);
}

.telegram > .emoji {
  font-size: 1.3em;
}

.telegram:hover {
  border-color: #ffd0c5;
  background: #af2137;
  box-shadow: 0 0 1.85rem #ee344d9c, inset 0 1px #ffb4a36b;
}

.link-copy,
.detail {
  display: block;
}

.detail {
  margin-top: 0.14rem;
  color: #ffe5e1;
  font-size: 0.875rem;
  font-weight: 450;
}

@media (min-width: 44rem) and (max-height: 760px) {
  .banner {
    height: clamp(10rem, 31vh, 15rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-link {
    transition: none;
  }
}
