@font-face {
  font-family: Inter;
  src: url("assets/inter-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f2f2f2;
  background: #242424;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
svg { display: block; width: 24px; height: 24px; }
a:focus-visible { outline: 3px solid #82caff; outline-offset: 5px; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.backdrop { display: none; }

.profile-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-bottom: 32px;
  background: #242424;
}

.profile-header { order: 0; position: relative; padding-top: 16px; }
.portrait {
  width: 158px;
  height: 158px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #fafafa, #e6e6e6);
  overflow: hidden;
  position: relative;
  border: 4px solid #eeeeee;
  padding: 0;
  animation: reveal .65s ease both;
}
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 36%;
  transform: scale(2);
  transform-origin: 50% 38%;
}
.identity { margin-top: -4px; padding: 0 24px; text-align: center; position: relative; animation: reveal .65s .10s ease both; }
h1 { font-size: 2rem; font-weight: 750; line-height: 1.1; margin: 0; }
.name { position: relative; display: inline-block; }
.verified { width: .85em; height: .85em; position: absolute; top: 50%; left: calc(100% + 6px); transform: translateY(-50%); }
.handle { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: .875rem; line-height: 1.5; font-weight: 400; margin: 4px 0; }
.divider { color: #a3a3a3; }
.status { display: inline-flex; align-items: center; gap: 6px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; position: relative; }
.status-dot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: ping 1.5s ease-out infinite; }

.socials { order: 2; display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: auto; padding: 8px 24px; animation: reveal .65s .20s ease both; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #f2f2f233; transition: opacity .2s, transform .2s; }
.socials svg { width: 20px; height: 20px; }
.socials a:active { transform: scale(.94); }

.links { order: 1; display: grid; gap: 16px; padding: 12px 16px 8px; }
.featured-link {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  display: block;
  position: relative;
  height: clamp(360px, 100vw, 400px);
  min-height: 25rem;
  border-radius: 20px;
  background: #391e25;
  isolation: isolate;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .25s ease, box-shadow .3s ease;
  animation: card-glow 4.5s ease-in-out infinite;
}
.featured-photo { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: inherit; }
.featured-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; animation: photo-drift 9s ease-in-out infinite alternate; }
.featured-link::before { content: ""; position: absolute; z-index: 3; inset: 0; border: 1px solid #ffb3c559; border-radius: inherit; pointer-events: none; }
.featured-link::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; background: linear-gradient(180deg, #0002 0%, transparent 26%, #180b101a 43%, #180b10c7 67%, #180b10f5 100%); pointer-events: none; }
.featured-shine { position: absolute; z-index: 2; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.featured-shine::after { content: ""; position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 42%, #ffffff10 48%, #ffffff26 50%, #ffffff10 52%, transparent 58%); transform: translateX(-85%); animation: light-sweep 7s ease-in-out infinite; }
.featured-badge { position: absolute; z-index: 1; left: 18px; top: 18px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 30px; border: 1px solid #ffffff40; background: #201519b8; color: #fff; backdrop-filter: blur(12px); font-size: .8125rem; font-weight: 600; line-height: 1.2; letter-spacing: .02em; }
.featured-badge svg { width: 15px; height: 15px; }
.featured-content { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; padding: 24px; color: #fff; text-align: center; }
.featured-label { display: block; font-size: 2rem; line-height: 1.15; letter-spacing: -.035em; font-weight: 750; text-shadow: 0 2px 12px #0007; }
.featured-note { display: block; margin-top: 7px; font-size: .875rem; line-height: 1.5; color: #fff4f8; }
.featured-action { display: flex; justify-content: center; align-items: center; gap: 9px; width: 100%; min-height: 48px; margin-top: 18px; padding: 12px; border-radius: 12px; background: linear-gradient(110deg, #fff, #ffedf3); color: #381220; font-size: .9375rem; font-weight: 750; line-height: 1.4; box-shadow: 0 4px 22px #ff4b7926; transition: transform .25s ease, box-shadow .25s ease; }
.featured-action svg { width: 18px; height: 18px; color: #a9244d; }
.featured-link:active .featured-action { transform: scale(.975); }
.pill-link { position: relative; display: flex; justify-content: center; align-items: center; min-height: 61px; padding: 16px 64px; border-radius: 14px; background: #1a1a1a; box-shadow: 0 4px 14px -4px #0004; font-size: 1rem; font-weight: 750; line-height: 1.5; text-align: center; transition: transform .3s, box-shadow .3s, background .3s; }
.pill-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; color: #f263a9; }
.pill-icon svg { width: 27px; height: 27px; }

@media (hover: hover) {
  .socials a:hover { opacity: .8; }
  .featured-link:hover .featured-action { transform: translateY(-2px); box-shadow: 0 5px 28px #ff4b7966; }
  .pill-link:hover { transform: scale(1.04); background: #202020; box-shadow: 0 6px 18px -4px #0006; }
}

@media (min-width: 768px) {
  .backdrop { display: block; position: fixed; inset: -6%; background: linear-gradient(#24242466, #24242466), url("assets/caroline.jpg") center 40% / cover no-repeat; filter: blur(40px); pointer-events: none; }
  .profile-card { width: 509px; max-width: calc(100% - 48px); min-height: 0; margin: 24px auto; border-radius: 28px; box-shadow: 0 60px 120px -28px #0009, 0 28px 56px -20px #00000073, 0 8px 20px -8px #00000052, inset 0 1px 1px #fff9, inset 0 -2px 3px #00000038, 0 0 0 1px #00000014; }
  .profile-header { padding: 0; }
  .portrait { width: 100%; height: auto; aspect-ratio: 1.29579; border-radius: 28px 28px 0 0; border: 0; background: #242424; }
  .portrait img { transform: none; object-position: 50% 40%; }
  .portrait::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 160px; background: linear-gradient(to top, #242424 0%, #242424f4 12.5%, #242424d7 25%, #242424ae 37.5%, #24242480 50%, #24242451 62.5%, #24242428 75%, #2424240b 87.5%, #24242400 100%); }
  .identity { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; padding: 0 24px 12px; text-shadow: 0 1px 10px #0009; animation: none; }
  h1 { margin-bottom: 4px; line-height: 1.5; }
  .handle { margin-top: 0; }
  .socials { order: 1; margin-top: 0; padding: 4px 24px 8px; }
  .links { order: 2; padding-top: 32px; }
}

@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
@keyframes card-glow { 0%, 100% { box-shadow: 0 10px 28px -12px #000a, 0 0 0 1px #e9557b38, 0 0 20px -8px #fb477838; } 50% { box-shadow: 0 14px 32px -12px #000a, 0 0 0 1px #ff87a15e, 0 0 30px -6px #fb47785c; } }
@keyframes photo-drift { from { transform: scale(1); } to { transform: scale(1.055); } }
@keyframes light-sweep { 0%, 55% { transform: translateX(-85%); } 85%, 100% { transform: translateX(85%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .featured-link { transform: none; box-shadow: 0 10px 28px -12px #000a, 0 0 0 1px #e9557b38; }
  .featured-shine { display: none; }
}
