:root {
  --bg: #fff2f6;
  --paper: #fff;
  --ink: #3b2431;
  --ink-soft: #7b5566;
  --plum: #8e3d59;
  --berry: #c92a5c;
  --noir: #2b2129;

  --pink-50: #fff6f9;
  --pink-100: #ffe6ee;
  --pink-200: #ffd0de;
  --pink-300: #f9aac2;
  --pink-400: #f387a9;
  --mint-400: #6fd6c8;

  --font: "Outfit", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  --card-radius: 32px;
  --banner-height: 150px;
  --avatar-size: 120px;
  --chain-bleed: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

html.can-grab,
html.can-grab * {
  cursor: grab !important;
}

html.is-grabbing,
html.is-grabbing * {
  cursor: grabbing !important;
  user-select: none;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(20px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  font-feature-settings: "palt";
}

h1,
h2,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

/* Backdrop: soft glows over faint gingham */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(243, 135, 169, .07) 50%, transparent 0),
    linear-gradient(rgba(243, 135, 169, .07) 50%, transparent 0);
  background-size: 28px 28px;
}

.glow {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  animation: drift 22s ease-in-out infinite alternate;
}

.glow--pink {
  width: 80vmax;
  height: 80vmax;
  top: -40vmax;
  left: -30vmax;
  background: radial-gradient(closest-side, rgba(255, 176, 204, .55), transparent);
}

.glow--mint {
  width: 70vmax;
  height: 70vmax;
  bottom: -35vmax;
  right: -30vmax;
  background: radial-gradient(closest-side, rgba(160, 236, 224, .45), transparent);
  animation-duration: 26s;
  animation-direction: alternate-reverse;
}

.glow--blend {
  width: 44vmax;
  height: 44vmax;
  top: 30%;
  right: -12vmax;
  background:
    radial-gradient(closest-side at 50% 38%, rgba(150, 228, 242, .35), transparent),
    radial-gradient(closest-side at 50% 62%, rgba(255, 150, 196, .35), transparent);
  animation-duration: 18s;
}

@keyframes drift {
  to {
    transform: translate3d(6vmax, 4vmax, 0) scale(1.08);
  }
}

/* Card */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 420px);
  margin-top: 8px;
  padding-bottom: 24px;
  background: var(--paper);
  border-radius: var(--card-radius);
  box-shadow:
    0 30px 60px -24px rgba(142, 61, 89, .3),
    0 10px 24px -12px rgba(142, 61, 89, .18);
  animation: rise .8s var(--ease-out) backwards;
}

.banner {
  position: relative;
  height: var(--banner-height);
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  background-color: var(--pink-50);
  background-image:
    linear-gradient(90deg, rgba(243, 135, 169, .3) 50%, transparent 0),
    linear-gradient(rgba(243, 135, 169, .3) 50%, transparent 0);
  background-size: 22px 22px;
  background-position: center top;
}

/* Lace trim: eyelet band with scallops hanging into the card */
.banner::before,
.banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}

.banner::before {
  bottom: 0;
  height: 14px;
  background:
    radial-gradient(circle, #fff 2px, transparent 2.6px) center / 16px 14px repeat-x,
    var(--pink-300);
}

.banner::after {
  top: 100%;
  height: 8px;
  background: radial-gradient(circle at 50% 0, var(--pink-300) 7.5px, transparent 8px) center top / 16px 8px repeat-x;
}

.eyelet {
  position: absolute;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #d7a9bb 0 2.5px, #fff 3px 4px, #c9b3bd 4.5px);
  box-shadow: 0 1px 2px rgba(142, 61, 89, .25);
}

.eyelet--left {
  left: 22px;
}

.eyelet--right {
  right: 22px;
}

.bow {
  position: absolute;
  z-index: 4;
  top: 4px;
  left: 50%;
  width: 60px;
  height: 60px;
  translate: -50% 0;
  overflow: visible;
  filter: drop-shadow(0 2px 1.5px rgba(142, 61, 89, .22));
}

.bow__loop {
  fill: var(--berry);
}

.bow__tail {
  fill: #a81d4a;
}

.bow__knot {
  fill: #b3214f;
}

.charm-chain {
  position: absolute;
  z-index: 3;
  top: 0;
  left: calc(-1 * var(--chain-bleed));
  width: calc(100% + 2 * var(--chain-bleed));
  height: 320px;
  pointer-events: none;
}

/* Profile */

.profile {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--avatar-size) / -2 + 4px);
  padding: 0 24px;
  text-align: center;
}

.avatar {
  position: relative;
  width: var(--avatar-size);
  height: var(--avatar-size);
  margin: 0 auto;
  border-radius: 50%;
  box-shadow:
    0 0 0 5px #fff,
    0 0 0 7px var(--pink-200),
    0 18px 34px -12px rgba(142, 61, 89, .45);
  transition: transform .5s var(--ease-spring);
}

.avatar:hover {
  transform: scale(1.03) rotate(-2deg);
}

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

.name {
  margin-top: 18px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
  color: #6f2745;
}

.name__latin {
  letter-spacing: -.01em;
}

.role {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--plum);
}

.role__amp {
  color: var(--berry);
}

.bio {
  margin-top: 14px;
  word-break: auto-phrase;
  text-wrap: pretty;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* Section headings */

.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.eyebrow span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--berry);
}

/* Fan card */

.fan {
  position: relative;
  display: flex;
  margin: 24px 20px 0;
  border: 1.5px solid var(--pink-200);
  border-radius: 20px;
  background: var(--pink-50);
  overflow: hidden;
}

.fan__stripes {
  flex: none;
  width: 12px;
  background: repeating-linear-gradient(var(--pink-400) 0 7px, #fff 7px 12px);
}

.fan__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 52px 14px 16px;
}

.fan__eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--berry);
}

.fan__statement {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-soft);
}

.fan__statement strong {
  margin-right: 1px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.fan__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 2px 0;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--plum);
  text-decoration: underline;
  text-decoration-color: var(--pink-300);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}

.fan__link:hover {
  color: var(--berry);
  text-decoration-color: currentColor;
}

.fan__link:focus-visible {
  outline: 2.5px solid var(--berry);
  outline-offset: 3px;
}

.fan__link svg {
  width: 11px;
  height: 11px;
}

.phrase {
  display: inline-block;
}

.fan__pin {
  position: absolute;
  top: 50%;
  right: 16px;
  translate: 0 -50%;
  width: 26px;
  height: 26px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fan__pin-frame {
  stroke: var(--noir);
  stroke-width: 2.6;
}

.fan__pin-bar {
  stroke: var(--mint-400);
  stroke-width: 3;
}

/* Links */

.links {
  margin: 24px 20px 0;
}

.links ul {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 10px 16px 10px 10px;
  border: 1.5px solid var(--pink-200);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition:
    transform .5s var(--ease-spring),
    border-color .25s,
    box-shadow .35s var(--ease-out);
}

.link:hover {
  transform: translateY(-2px);
  border-color: var(--pink-300);
  box-shadow: 0 12px 24px -14px rgba(201, 42, 92, .45);
}

.link:active {
  transform: scale(.975);
  transition-duration: .12s;
}

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

.link__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--pink-100);
  color: var(--berry);
}

.link__icon svg {
  width: 20px;
  height: 20px;
}

.link__arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.link__label {
  font-size: 15px;
  font-weight: 700;
}

.link__meta {
  overflow: hidden;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link__arrow {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--pink-400);
  transition: transform .5s var(--ease-spring);
}

.link:hover .link__arrow {
  transform: translateX(3px);
}

.link--primary {
  border-color: var(--noir);
  background: var(--noir);
  color: #fff;
}

.link--primary:hover {
  border-color: var(--noir);
  box-shadow: 0 14px 28px -14px rgba(43, 33, 41, .7);
}

.link--primary .link__icon {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.link--primary .link__meta {
  color: #f4c3d3;
}

.link--primary .link__arrow {
  color: var(--pink-300);
}

/* Footer */

.footer {
  margin-top: auto;
  padding-top: 28px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  animation: rise .8s .32s var(--ease-out) backwards;
}

/* Entrance */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.profile,
.fan,
.links {
  animation: rise .8s var(--ease-out) backwards;
}

.profile {
  animation-delay: .08s;
}

.fan {
  animation-delay: .16s;
}

.links {
  animation-delay: .24s;
}

/* Phones: the card becomes the page */
@media (max-width: 479px) {
  :root {
    --chain-bleed: 0px;
  }

  body {
    padding: 0;
  }

  .card {
    width: 100%;
    min-height: 100svh;
    margin-top: 0;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    border-radius: 0;
    box-shadow: none;
  }

  .banner {
    border-radius: 0;
  }
}

@media (min-width: 640px) {
  body {
    justify-content: center;
    padding-block: 48px;
  }

  .card {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
