/* Self-hosted Outfit (variable, 300–600). No third-party font requests. */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Defaults; /theme.css (generated from links.json) overrides these. */
:root {
  --bg-color: #0b1510;
  --text-color: #f4faf2;
  --muted-color: #93a89a;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-hover-bg: rgba(255, 255, 255, 0.1);
  --card-border: rgba(255, 255, 255, 0.1);
  --accent-color: #38bdf8;
  --gradient-1: #8b5cf6;
  --gradient-2: #3b82f6;
}

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

body {
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

.icon {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
}

/* Dynamic Background */
.background-animation {
  position: fixed;
  inset: 0;
  /* Faint paw watermark in the corner, over the ambient radial wash. */
  background:
    url('/img/paw.svg') no-repeat right -70px bottom -90px / 420px auto,
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--bg-color) 80%, white 8%), var(--bg-color));
  z-index: -1;
}

.background-animation::before,
.background-animation::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: drift 10s infinite alternate ease-in-out;
}

.background-animation::before {
  background: var(--gradient-1);
  top: -50px;
  left: -50px;
}

.background-animation::after {
  background: var(--gradient-2);
  bottom: -50px;
  right: -50px;
  animation-delay: -5s;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(50px, 50px); }
}

.container {
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  z-index: 1;
}

/* Profile Section */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.profile-img-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-color);
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 600;
}

.profile-bio {
  font-size: 0.9rem;
  color: var(--muted-color);
  line-height: 1.4;
}

/* Socials: icon row */
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.social {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  color: var(--text-color);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  opacity: 0.85;
  transition: all 0.3s ease;
}

.social {
  position: relative;
}

.social .badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-color);
  color: var(--bg-color);
  border: 2px solid var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.social.is-gated:hover .badge { transform: scale(1.12); }

.icon-wide { width: 1.8em; }

/* Two-tone marks: parts that should read as cut-outs take the page background. */
.icon .knockout { fill: var(--bg-color); }

.social:hover,
.social:focus-visible {
  opacity: 1;
  transform: translateY(-2px) scale(1.08);
  color: var(--accent-color);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Two labelled trays: public profiles, then the members' side (tinted, tagged 18+).
   Stacked on phones and tablets; side by side on wide screens (see the bottom of the file). */
.groups {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
}

.group-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-color);
}

.group-tag {
  display: flex;
  color: var(--accent-color);
  font-size: 1.05rem;
}

.group .socials {
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
}

.group-members .socials {
  background: color-mix(in srgb, var(--gradient-1) 22%, rgba(255, 255, 255, 0.03));
  border-color: color-mix(in srgb, var(--gradient-1) 50%, transparent);
}

/* Phones: five bubbles per row must fit, so the edges tighten while the avatar and
   type scale up a notch. 56px bubbles clear a 375px screen; 60px clear the 402px
   iPhone 16 Pro. */
@media (max-width: 420px) {
  .container { padding: 2rem 1rem; gap: 1.6rem; }
  .profile-img-container { width: 144px; height: 144px; }
  .profile-name { font-size: 1.75rem; }
  .profile-bio { font-size: 1rem; }
  .groups { gap: 1.1rem; }
  .group-label { font-size: 0.78rem; }
  .socials { gap: 0.6rem; }
  .group .socials { padding: 0.65rem 0.7rem; }
  .social { width: 56px; height: 56px; font-size: 1.5rem; }
  .social .badge { width: 26px; height: 26px; font-size: 0.95rem; }
}

@media (min-width: 395px) and (max-width: 420px) {
  .social { width: 60px; height: 60px; font-size: 1.6rem; }
}

/* Links: button cards */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1rem 1.25rem;
  border-radius: 30px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.link-card:hover,
.link-card:focus-visible {
  background: var(--card-hover-bg);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.link-icon,
.link-trailing {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.link-text {
  flex-grow: 1;
  text-align: center;
  font-weight: 500;
}

.link-trailing {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.link-card:hover .link-trailing,
.link-card:focus-visible .link-trailing {
  opacity: 0.7;
}

/* Gated links always show their 18+ mark so the affordance is visible before tapping. */
.link-card.is-gated .link-trailing {
  opacity: 0.6;
}

.link-card.is-gated:hover .link-trailing {
  opacity: 1;
  color: var(--accent-color);
}

/* Pinned links get a slow gradient shimmer on the border. */
.link-card.is-pinned {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-color), var(--bg-color)) padding-box,
    linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-1)) border-box;
  background-size: 100% 100%, 300% 300%;
  animation: fadeInUp 0.6s ease forwards, shimmer 6s linear infinite;
}

@keyframes shimmer {
  from { background-position: 0 0, 0% 50%; }
  to { background-position: 0 0, 300% 50%; }
}

/* Staggered entrance (inline styles are blocked by CSP, so use nth-child). */
.link-card:nth-child(1) { animation-delay: 0.10s; }
.link-card:nth-child(2) { animation-delay: 0.20s; }
.link-card:nth-child(3) { animation-delay: 0.30s; }
.link-card:nth-child(4) { animation-delay: 0.40s; }
.link-card:nth-child(5) { animation-delay: 0.50s; }
.link-card:nth-child(6) { animation-delay: 0.60s; }
.link-card:nth-child(7) { animation-delay: 0.70s; }
.link-card:nth-child(8) { animation-delay: 0.80s; }
.link-card:nth-child(n+9) { animation-delay: 0.90s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 404 page: the hood pup sits on top of the heading. */
.mascot {
  width: min(200px, 52vw);
  margin-bottom: -0.25rem;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.4));
}

.mascot svg { width: 100%; height: auto; display: block; }

/* Laptops and up: scale the column up and set the trays side by side, so the page
   reads as built for the screen rather than a phone page adrift. Two tiers: a
   modest step from 1100px, the full-size treatment from 1400px (1080p and up). */
@media (min-width: 1100px) {
  .container { max-width: 1040px; gap: 2.25rem; }
  .profile-img-container { width: 176px; height: 176px; padding: 4px; }
  .profile-img { border-width: 4px; }
  .profile-name { font-size: 2.25rem; }
  .profile-bio { font-size: 1.15rem; }
  .groups { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 1.5rem; }
  .group-label { font-size: 0.85rem; }
  .social { width: 72px; height: 72px; font-size: 1.9rem; }
  .socials { gap: 0.9rem; }
  .group .socials { padding: 1.1rem 1.35rem; }
  .social .badge { width: 28px; height: 28px; font-size: 1.05rem; }
  .mascot { width: 260px; }
  .background-animation::before,
  .background-animation::after { width: 560px; height: 560px; }
}

@media (min-width: 1400px) {
  .container { max-width: 1340px; gap: 2.75rem; }
  .profile-img-container { width: 216px; height: 216px; padding: 5px; }
  .profile-name { font-size: 2.85rem; }
  .profile-bio { font-size: 1.35rem; }
  .groups { gap: 2.25rem; }
  .group { gap: 0.7rem; }
  .group-label { font-size: 1rem; letter-spacing: 0.16em; }
  .social { width: 92px; height: 92px; font-size: 2.45rem; }
  .socials { gap: 1.15rem; }
  .group .socials { padding: 1.4rem 1.8rem; }
  .social .badge { width: 32px; height: 32px; font-size: 1.2rem; right: -7px; bottom: -7px; }
  .mascot { width: 300px; }
  .background-animation::before,
  .background-animation::after { width: 680px; height: 680px; }
}

@media (prefers-reduced-motion: reduce) {
  .background-animation::before,
  .background-animation::after,
  .link-card.is-pinned {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
  .link-card { animation: none; opacity: 1; }
  * { transition-duration: 0.01ms !important; }
}
