/* Creator page. Colors come from CSS variables set per creator in the page's <style>.
   Design follows the apple-design skill: instant press feedback, size-specific type,
   translucent "glass" material, and the reduced-motion/transparency/contrast settings. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { font: 100%/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
html, body { margin: 0; min-height: 100%; }

body {
  color: var(--text);
  background: var(--fallback-bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; /* our own press feedback replaces the grey flash */
}

/* fixed layer: the photo stays put while the links scroll (background-attachment: fixed
   is broken on iOS, so a separate element is used instead) */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--fallback-bg);
  background-size: cover;
  background-position: center;
}
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--veil);
}
.backdrop-plain::after { display: none; }
.light-text .backdrop-plain { background-image: linear-gradient(160deg, #2a2f3a, #15171c); }

.card {
  width: 100%;
  max-width: 35rem;
  margin: 0 auto;
  padding: 3.5rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}
.avatar-empty {
  display: grid;
  place-items: center;
  font-size: 2.75rem;
  font-weight: 600;
  background: var(--button-bg);
  color: var(--button-text);
}

/* large text: tight leading, negative tracking */
.nickname {
  margin: 1rem 0 0;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.light-text .nickname, .light-text .bio { text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }

/* small text: looser leading, neutral tracking */
.bio {
  margin: .5rem 0 0;
  max-width: 27.5rem;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.links {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.link {
  position: relative;
  display: block;
  width: 100%;
  min-height: 3.25rem;
  /* side padding leaves room for the icon, so the title stays centred */
  padding: 1rem 3.25rem;
  border-radius: var(--radius);
  background: var(--button-bg);
  color: var(--button-text);
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  /* release eases back; press itself is instant (see :active) */
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}
.link-icon {
  position: absolute;
  left: 1.125rem;
  top: 50%;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: -.625rem;
  fill: currentColor;
}

/* feedback on press, not on release */
.link:active { transform: scale(.97); transition-duration: .1s; }
@media (hover: hover) {
  .link:hover { box-shadow: 0 4px 18px rgba(0, 0, 0, .24); }
}
.link:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

/* glass: translucent material over the background, bright top edge catches the light */
.fill-glass .link {
  background: var(--glass-bg);
  color: var(--text);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid transparent;
  border-top-color: var(--glass-edge);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
}
.light-text.fill-glass .link { text-shadow: 0 1px 2px rgba(0, 0, 0, .3); font-weight: 650; }

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

/* glass falls back to the solid button when the system asks for less transparency */
@media (prefers-reduced-transparency: reduce) {
  .fill-glass .link {
    background: var(--button-bg);
    color: var(--button-text);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    text-shadow: none;
  }
}

@media (prefers-contrast: more) {
  .backdrop::after { background: var(--fallback-bg); opacity: .85; }
  .link, .fill-glass .link {
    background: var(--button-bg);
    color: var(--button-text);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 2px solid var(--text);
    text-shadow: none;
  }
  .light-text .nickname, .light-text .bio { text-shadow: none; }
  .bio { color: var(--text); }
}

/* footer link to the privacy page: present but quiet */
.foot { padding: 0 1rem 2rem; text-align: center; }
.foot a { color: var(--muted); font-size: .8125rem; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* privacy page */
.prose { text-align: left; align-items: stretch; line-height: 1.55; }
.prose h1 { margin: 1rem 0 .5rem; font-size: 1.75rem; letter-spacing: -0.02em; line-height: 1.15; }
.prose h2 { margin: 1.5rem 0 .25rem; font-size: 1.0625rem; }
.prose p, .prose li { color: var(--muted); font-size: .9375rem; }
.prose ul { padding-left: 1.25rem; }
.prose a { color: var(--text); }
.prose .back { text-decoration: none; font-size: .9375rem; }
.prose .small { margin-top: 2rem; font-size: .8125rem; }
.light-text .prose { text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
