/* Links page (/links): link-in-bio styled like the Carter HD YouTube channel art,
   not the Cyber-Tribal main site. Steel blue, bold white type, light-blue halftone blobs. */
:root {
  --hd-blue: #2b5c84;
  --hd-blue-deep: #1f4566;
  --hd-sky: #6cc4e0;
  --hd-white: #f7fbff;
  --hd-ink: #10263a;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--hd-blue);
  color: var(--hd-white);
  font-family: Montserrat, system-ui, sans-serif;
  overflow-x: hidden;
}

/* Halftone blobs, like the dotted splashes on the channel banner */
.halftone {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, var(--hd-sky) 1.6px, transparent 2.2px) 0 0 / 9px 9px;
  opacity: 0.55;
}

.halftone-a {
  top: -6rem;
  right: -8rem;
  width: 26rem;
  height: 22rem;
  -webkit-mask: radial-gradient(closest-side, #000 55%, transparent);
  mask: radial-gradient(closest-side, #000 55%, transparent);
  border-radius: 46% 54% 38% 62% / 52% 40% 60% 48%;
}

.halftone-b {
  bottom: -8rem;
  left: -9rem;
  width: 28rem;
  height: 24rem;
  -webkit-mask: radial-gradient(closest-side, #000 50%, transparent);
  mask: radial-gradient(closest-side, #000 50%, transparent);
  border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%;
}

.links-page {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 4.5rem) 1.25rem 3rem;
  text-align: center;
}

/* Header: avatar, CARTER HD wordmark, handwritten tagline */
.links-avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--hd-white);
}

.wordmark {
  margin: 1rem 0 0;
  font-weight: 900;
  font-size: clamp(2.75rem, 12vw, 3.75rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.wordmark span {
  display: block;
}

.tagline {
  margin: 0.5rem 0 0;
  font-family: 'Gochi Hand', cursive;
  font-size: 1.5rem;
}

.handle {
  margin: 0.25rem 0 0;
  font-weight: 600;
  color: var(--hd-sky);
}

/* Link buttons: one .link-card per link */
.link-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.875rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  padding: 0.625rem 1.25rem;
  background: var(--hd-white);
  color: var(--hd-ink);
  border-radius: var(--radius);
  text-decoration: none;
  text-align: left;
  box-shadow: 0 4px 0 var(--hd-blue-deep);
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}

a.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--hd-blue-deep);
}

a.link-card:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--hd-blue-deep);
}

a.link-card:focus-visible {
  outline: 3px solid var(--hd-sky);
  outline-offset: 3px;
}

.link-card img {
  width: 40px;
  height: auto;
  border-radius: 4px;
  flex-shrink: 0;
}

.link-text {
  display: grid;
  min-width: 0;
}

.link-title {
  font-weight: 800;
  font-size: 1.05rem;
}

.link-sub {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hd-blue);
}

/* Coming soon: not clickable yet */
.link-card.is-soon {
  background: var(--hd-blue-deep);
  color: var(--hd-white);
  border: 2px dashed var(--hd-sky);
  box-shadow: none;
}

.link-card.is-soon .link-sub {
  font-family: 'Gochi Hand', cursive;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--hd-sky);
}

.links-home {
  margin-top: 2.5rem;
  font-weight: 600;
}

.links-home a {
  color: var(--hd-white);
}

/* Compact bar: slides in at the top as the big header scrolls away. --p (0 to 1) is set by the scroll script in index.html. */
.compact-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--hd-blue-deep);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform: translateY(-100%);
  opacity: 0;
}

.compact-bar img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--hd-white);
}

@media (prefers-reduced-motion: no-preference) {
  .links-page header {
    transform: translateY(calc(var(--p, 0) * -40px)) scale(calc(1 - var(--p, 0) * 0.25));
    opacity: calc(1 - var(--p, 0));
  }

  .compact-bar {
    transform: translateY(calc((1 - var(--p, 0)) * -100%));
    opacity: var(--p, 0);
  }
}

/* Desktop: scale the whole column up 150%. Phones keep 100% since the page already fills the screen. */
@media (min-width: 768px) {
  .links-page,
  .compact-bar {
    zoom: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.link-card,
  a.link-card:hover,
  a.link-card:active {
    transform: none;
    transition: none;
  }
}
