/* Palette: #FF66C4 #EEE3FF #B7E3CC #C4FFB2 #FFF0A2 */

:root {
  --pink: #ff66c4;
  --lilac: #eee3ff;
  --mint: #b7e3cc;
  --lime: #c4ffb2;
  --lemon: #fff0a2;
  --ink: #1e1530;
  --ink-muted: #4a3d63;
  --font: "DM Sans", system-ui, sans-serif;
  --max: 24rem;
  --ring: rgba(255, 102, 196, 0.55);
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: var(--font);
  color: var(--ink);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.25rem 3rem;
  -webkit-font-smoothing: antialiased;
  background-color: var(--lilac);
  background-image:
    radial-gradient(100% 70% at 0% 0%, rgba(255, 102, 196, 0.45) 0%, transparent 55%),
    radial-gradient(90% 60% at 100% 0%, rgba(199, 255, 178, 0.5) 0%, transparent 50%),
    radial-gradient(80% 50% at 30% 100%, rgba(255, 240, 162, 0.6) 0%, transparent 50%),
    linear-gradient(155deg, var(--lilac) 0%, var(--mint) 35%, var(--lime) 70%, var(--lemon) 100%);
  /* scroll (default) — `fixed` causes lag / rubber-band mismatch on mobile Safari & Chrome */
  background-attachment: scroll;
  position: relative;
  isolation: isolate;
}

/* soft floating light blobs */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* Fixed blur layers don’t move with scroll; on touch / narrow screens they feel “behind” — pin to document flow instead */
@media (max-width: 768px), (pointer: coarse) {
  body::before,
  body::after {
    position: absolute;
  }
}

body::before {
  width: min(50vw, 20rem);
  height: min(50vw, 20rem);
  top: 10%;
  right: 5%;
  background: var(--pink);
  animation: floaty 12s ease-in-out infinite;
}

body::after {
  width: min(45vw, 18rem);
  height: min(45vw, 18rem);
  bottom: 15%;
  left: 0;
  background: #e8c4ff;
  animation: floaty 14s ease-in-out infinite reverse;
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }

  h1 {
    animation: none;
  }
}

@keyframes floaty {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(12px, -18px) scale(1.05);
  }
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 2rem;
}

.head {
  text-align: center;
  margin-bottom: 1.75rem;
}

/* Conic “candy” ring + soft inner */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.85rem;
  height: 5.85rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(
    from 220deg,
    var(--pink),
    var(--lime),
    var(--lemon),
    var(--mint),
    var(--lilac),
    var(--pink)
  );
  box-shadow:
    0 12px 40px rgba(255, 102, 196, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  user-select: none;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}

h1 {
  font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.2;
  background: linear-gradient(
    100deg,
    #c2186a 0%,
    var(--pink) 22%,
    #ff9fd9 42%,
    #e8c4ff 58%,
    var(--pink) 78%,
    #ffb8e8 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-shift 10s ease infinite;
}

@keyframes title-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.bio {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.9rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    transform 0.16s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
  background-size: 200% 200%;
  box-shadow: 0 4px 16px rgba(30, 21, 48, 0.08);
}

/* Each pill: different gradient mix */
.link:nth-child(1) {
  background-image: linear-gradient(135deg, #ff7acb 0%, var(--pink) 50%, #ffc4e6 100%);
  background-position: 0% 50%;
}

.link:nth-child(2) {
  background-image: linear-gradient(135deg, var(--mint) 0%, var(--lime) 100%);
}

.link:nth-child(3) {
  background-image: linear-gradient(135deg, var(--lime) 0%, var(--lemon) 100%);
}

.link:nth-child(4) {
  background-image: linear-gradient(130deg, var(--lemon) 0%, #ffe566 50%, var(--lilac) 100%);
}

.link:nth-child(5) {
  background-image: linear-gradient(135deg, #f0e6ff 0%, var(--lilac) 40%, #ffc8e8 100%);
}

.link:nth-child(6) {
  background-image: linear-gradient(135deg, #a8e0c0 0%, var(--mint) 45%, #ffd6f0 100%);
}

.link-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: rgba(30, 21, 48, 0.85);
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.4));
}

.link-text {
  min-width: 0;
  line-height: 1.25;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.link:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 28px rgba(255, 102, 196, 0.3);
  filter: brightness(1.04) saturate(1.05);
  border-color: rgba(255, 255, 255, 0.85);
  background-position: 100% 50%;
}

.link:hover .link-icon {
  color: var(--pink);
  filter: none;
}

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

.link:active {
  transform: translateY(0) scale(0.99);
}

/* Short bio (below link buttons) */
.about {
  width: 100%;
  margin-top: 1.75rem;
  padding: 1.2rem 1.35rem 1.35rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.38);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 28px rgba(30, 21, 48, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
}

.about-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #c21d75;
  margin: 0 0 0.7rem;
  font-weight: 700;
}

.about-text {
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.about-text p {
  margin: 0 0 0.75rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Line break only at max 391px (under 392px), avoids bad wraps; no page min-width or sidescroll */
.br-below-392 {
  display: none;
}

@media (max-width: 391px) {
  .br-below-392 {
    display: inline;
  }
}

.page > .about + .about {
  margin-top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.copy-block .copy-line,
.copy-block p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
}

.copy-line {
  margin: 0 0 0.65rem;
}

.copy-line:last-child,
.copy-block p:last-child {
  margin-bottom: 0;
}

.copy-chip {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 200, 232, 0.55) 100%);
  box-shadow: 0 2px 8px rgba(30, 21, 48, 0.08);
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.copy-chip--email {
  max-width: 100%;
  word-break: break-all;
  text-align: left;
  line-height: 1.3;
  border-radius: 0.75rem;
  padding: 0.35rem 0.6rem;
}

.copy-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 102, 196, 0.25);
  border-color: rgba(255, 255, 255, 0.9);
}

.copy-chip:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.copy-chip:active {
  transform: scale(0.98);
}

.copy-chip--done {
  border-color: var(--mint);
  background: linear-gradient(120deg, var(--mint) 0%, var(--lime) 100%);
}

/* Official Storygraph mark: optically nudge smaller so it matches other outline icons at 1.35rem */
.link-icon--thestorygraph {
  transform: scale(0.9);
  transform-origin: center;
}

.creator-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.creator-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  color: var(--ink-muted);
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.creator-badge-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: var(--ink-muted);
}

.creator-badge--ea .creator-badge-icon {
  color: #f05454;
}

.creator-badge--ubisoft .creator-badge-icon {
  color: #0070ff;
}

.about--creators {
  text-align: center;
}
