/* ============================================================
   Fizzy - kaupa page. Linktree layout: centered column,
   avatar, name, bio, uniform button stack. Same at every size.
   Brand: sage field, white pills, Poppins, Kallinn avatar.
   ============================================================ */

:root {
  --sage: #a3cf97;
  --sage-deep: #85ba78;
  --can-green: #7ce85e;
  --white: #ffffff;
  --ink: #0d0d0d;
  --sub: #6b7566;
}

/* Gilroy = main (headings, labels) · Poppins = sub (body, details). */
@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/Gilroy-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/Gilroy-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: #96cf7e; }

body {
  font-family: "Poppins", -apple-system, sans-serif;
  background: radial-gradient(115% 85% at 50% 28%, #aadd90 0%, #96cf7e 55%, #7fbc68 100%);
  min-height: 100vh;
  color: var(--white);
  line-height: 1.5;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
}

/* Avatar */
.avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 0.85rem;
  background: var(--can-green);
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(13, 13, 13, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar img {
  width: 54px;
  height: auto;
}

/* Name + bio */
h1 {
  font-family: "Gilroy", "Poppins", -apple-system, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.bio {
  margin-top: 0.15rem;
  max-width: 34ch;
  text-wrap: balance;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.95;
  line-height: 1.45;
}

/* Social icons */
.socials {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 0.75rem;
}
.socials a { color: var(--white); display: inline-flex; opacity: 0.88; transition: opacity 0.15s ease; }
.socials a:hover { opacity: 1; }

/* Button stack */
.links {
  list-style: none;
  margin-top: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.links a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3.7rem;
  padding: 0.55rem 3.2rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 18px rgba(13, 13, 13, 0.07);
  color: var(--white);
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.18s ease;
}
.links .thumb {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  height: 2.4rem;
  width: auto;
  filter: drop-shadow(0 2px 3px rgba(13,13,13,0.18));
}
.links a:hover {
  transform: scale(1.015);
  background: rgba(255, 255, 255, 0.28);
}
.links a:active {
  transform: scale(0.985);
  background: rgba(255, 255, 255, 0.32);
}
.links a:active { transform: scale(0.99); }
.links .text {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.links .label {
  display: block;
  font-family: "Gilroy", "Poppins", -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.links .sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.82;
  margin-top: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.links .arrow {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.55;
  line-height: 1;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.links a:hover .arrow {
  transform: translateY(-50%) translateX(3px);
  opacity: 1;
}
.links .soldout a {
  opacity: 0.45;
  pointer-events: none;
}

/* Footer */
footer { margin-top: 1.6rem; }
.age {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 500;
  opacity: 0.8;
}
footer nav {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}
footer a { color: var(--white); font-weight: 500; text-decoration: none; opacity: 0.85; }
footer a:hover { opacity: 1; text-decoration: underline; }

/* Entrance */
.avatar, h1, .bio, .socials, .links li, footer {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
h1 { animation-delay: 0.05s; }
.bio { animation-delay: 0.1s; }
.socials { animation-delay: 0.15s; }
.links li:nth-child(1) { animation-delay: 0.2s; }
.links li:nth-child(2) { animation-delay: 0.26s; }
.links li:nth-child(3) { animation-delay: 0.32s; }
.links li:nth-child(4) { animation-delay: 0.38s; }
.links li:nth-child(5) { animation-delay: 0.44s; }
footer { animation-delay: 0.52s; }
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .links a, .socials a { transition: none; }
  .avatar, h1, .bio, .socials, .links li, footer { animation: none; opacity: 1; transform: none; }
}
