:root {
  /* Pulled from assets/hero.jpg (dress red), tuned slightly darker per request */
  --red: #D01620;
  --red-hover: #9F0C16;
  --red-light: #F8E8E8;
  --red-soft: #F8E8E8;
  --pill-pink: #F28AA6;
  --pill-pink-hover: #E86D90;

  --navy: #001858;
  --muted: rgba(0, 24, 88, 0.62);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.16);
  --page-max: 720px;
  --content-max: 448px;
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  /* iOS overscroll can reveal the root (html) background.
     Keep it BLACK so top overscroll stays black; the gradient still transitions to red lower down. */
  background-color: #000;
  background-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 45%,
    var(--red) 55%,
    var(--red) 100%
  );
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--navy);
  font-family: Poppins, ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Let the html background show through (including during overscroll). */
  background: transparent;
  overflow-x: hidden;
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.page {
  position: relative;
  width: min(100%, var(--page-max));
  min-height: 100dvh;
  margin-inline: auto;
  /* No extra top gap: let the hero touch the top (except for iOS safe-area). */
  --pad-top: env(safe-area-inset-top);
  --pad-right: max(18px, env(safe-area-inset-right));
  --pad-bottom: max(42px, env(safe-area-inset-bottom));
  --pad-left: max(18px, env(safe-area-inset-left));
  padding: var(--pad-top) var(--pad-right) var(--pad-bottom) var(--pad-left);
  background: var(--red);
  color: #fff;
}

.topbar,
.profile,
.spotify-card,
.link-list,
.embeds {
  width: min(100%, var(--content-max));
  margin-inline: auto;
}

.topbar {
  position: absolute;
  top: calc(var(--pad-top) + 12px);
  right: max(12px, env(safe-area-inset-right));
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 0;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.subscribe-button,
.share-button {
  appearance: none;
  border: 0;
  background: rgba(232, 232, 232, .94);
  color: #59606b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-height: 36px;
  box-shadow: none;
}
.subscribe-button {
  display: none;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.subscribe-button svg { width: 14px; height: 14px; fill: currentColor; }
.share-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.share-button svg { width: 18px; height: 18px; fill: currentColor; }

.profile { text-align: center; }

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}
/* Quick fade to black at the very top of the hero. */
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 10%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14%;
  background: linear-gradient(
    to bottom,
    rgba(208, 22, 32, 0) 0%,
    rgba(208, 22, 32, .20) 35%,
    rgba(208, 22, 32, .55) 70%,
    var(--red) 100%
  );
  pointer-events: none;
}

.profile-image {
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

/* Mobile/tablet: let the hero image bleed to the viewport edges (ignore the .page padding).
   Use a 100vw centering trick to avoid layout overflow + horizontal page scroll. */
@media (max-width: 859.98px) {
  .page { overflow-x: clip; }
  @supports not (overflow: clip) { .page { overflow-x: hidden; } }

  .profile { width: 100%; }
  .hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}
.profile h1 {
  margin: 16px 0 8px;
  position: relative;
  z-index: 1;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(26px, 7vw, 31px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
  color: #fff;
}
.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.social-row a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  transition: transform .16s ease, opacity .16s ease;
}
.social-row a:active { transform: scale(.92); opacity: .72; }
.social-row svg { width: 22px; height: 22px; fill: currentColor; }

.media-block iframe,
.youtube-card iframe {
  display: block;
  width: 100%;
  border: 0;
}
.spotify-card { margin-bottom: 24px; }
.spotify-card iframe {
  height: 152px;
  border-radius: 22px;
  background: #531d27;
}

.link-list {
  display: grid;
  gap: 20px;
  margin-bottom: 28px;
}

/* Neon/glow CTA buttons */
.link-button {
  position: relative;
  isolation: isolate;
  min-height: 68px;
  padding: 14px 22px;
  border-radius: 999px;

  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #ff0a8a 0%, #ec0078 42%, #c90062 100%);

  color: #fff;
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  align-items: center;
  text-align: center;
  text-decoration: none;

  font-size: clamp(15px, 1.125rem, 20px);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.13em;

  border: 1px solid rgba(255, 255, 255, 0.16);

  box-shadow:
    0 0 0 10px rgba(105, 0, 62, 0.26),
    0 0 28px rgba(255, 0, 128, 0.55),
    0 18px 38px rgba(68, 0, 39, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -10px 24px rgba(100, 0, 52, 0.18);

  overflow: visible;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;

  touch-action: manipulation;
}

/* Animated outer glow */
.link-button::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -2;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 0, 140, 0.62), transparent 58%);
  filter: blur(18px);
  opacity: 0.75;
  animation: neonPulse 2.35s ease-in-out infinite;
  pointer-events: none;
}

/* Subtle moving shine across the face */
.link-button::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      transparent 32%,
      rgba(255, 255, 255, 0.18) 45%,
      transparent 58%,
      transparent 100%
    );
  transform: translateX(-95%);
  animation: neonSweep 3.6s ease-in-out infinite;
  pointer-events: none;
}

.link-button:hover {
  filter: brightness(1.08) saturate(1.1);
  box-shadow:
    0 0 0 10px rgba(105, 0, 62, 0.32),
    0 0 38px rgba(255, 0, 150, 0.78),
    0 20px 44px rgba(68, 0, 39, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -10px 24px rgba(100, 0, 52, 0.18);
}

.link-button:active {
  transform: scale(0.975);
  filter: brightness(0.98);
}

.link-button svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  justify-self: center;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
}

.link-button span {
  grid-column: 2;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.32),
    0 2px 8px rgba(52, 0, 31, 0.28);
}

.link-button small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.92;
}

@keyframes neonPulse {
  0%, 100% {
    opacity: 0.58;
    transform: scale(0.985);
  }

  50% {
    opacity: 0.98;
    transform: scale(1.035);
  }
}

@keyframes neonSweep {
  0%, 44% {
    transform: translateX(-110%);
    opacity: 0;
  }

  55% {
    opacity: 1;
  }

  74%, 100% {
    transform: translateX(110%);
    opacity: 0;
  }
}
.link-with-image img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  justify-self: start;
  margin-left: -2px;
}
.link-with-image span { text-align: center; }
.link-with-image strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.embeds { display: grid; gap: 20px; }

/* Temporary: hide YouTube + X/Twitter sections */
.youtube-card,
.tweet-card {
  display: none;
}
.embed-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 4px 0 12px;
  overscroll-behavior-x: contain;
}
.embed-scroll::-webkit-scrollbar { height: 6px; }
.embed-scroll::-webkit-scrollbar-thumb { background: rgba(233, 31, 52, .25); border-radius: 99px; }
.tiktok-embed {
  flex: 0 0 auto;
  width: 325px;
  max-width: 86vw;
  height: 575px;
  border: 0;
  border-radius: 16px;
  background: #111;
  overflow: hidden;
  scroll-snap-align: center;
}
.youtube-card {
  overflow: hidden;
  border-radius: 22px;
  background: #111;
  box-shadow: 0 10px 24px rgba(0, 24, 88, .08);
}
.youtube-card iframe {
  aspect-ratio: 16 / 9;
  height: auto;
}
.tweet-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(0, 24, 88, .08);
  color: #0f1419;
}
.tweet-header {
  display: grid;
  grid-template-columns: 40px 1fr 28px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.tweet-header img { border-radius: 50%; object-fit: cover; }
.tweet-header strong { display: block; font-size: 14px; line-height: 1.2; }
.tweet-header span { display: block; font-size: 13px; color: #536471; }
.tweet-header svg { width: 22px; height: 22px; fill: #E91F34; justify-self: end; }
.tweet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  overflow: hidden;
  border-radius: 13px;
  background: #d7dbe0;
}
.tweet-grid img {
  width: 100%;
  height: 176px;
  object-fit: cover;
  display: block;
}
.tweet-grid img:first-child { grid-row: span 2; height: 354px; }
.tweet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 13px;
  color: #536471;
}
.tweet-footer a {
  color: #E91F34;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 640px) {
  body { padding: 56px 0; }
  .page {
    min-height: auto;
    border-radius: 18px;
    padding: 14px 64px 64px;
    box-shadow: var(--shadow);
  }
  .topbar { margin-bottom: 12px; }
  .spotify-card iframe { height: 122px; }
}

/* Keep the hero full-bleed for phones + most tablets; only "card" the image on larger screens. */
@media (min-width: 860px) {
  .page { width: 576px; }
  .hero {
    width: min(100%, 337px);
    margin-inline: auto;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 12px 28px rgba(0, 24, 88, .08);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .link-button::before,
  .link-button::after {
    animation: none !important;
  }
}
