/* linkhub public page */
:root {
  --accent: #ff5c9a;
  --bg-top: #3b0f2d;
  --bg-bottom: #0f0509;
  --ink: #fbeff4;
  --ink-soft: #d9b8c7;
  --ink-mute: #a17e91;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-hi: rgba(255, 255, 255, 0.10);
  --line: rgba(255, 255, 255, 0.11);
  --glow: var(--accent);
  --feature-ink: #fff;
  --radius-l: 22px;
  --radius-m: 18px;
}
[data-theme="noir"] {
  --bg-top: #1c1c1f; --bg-bottom: #050506;
  --ink: #f4f2f0; --ink-soft: #c2bdb9; --ink-mute: #8a8580;
}
[data-theme="neon"] {
  --bg-top: #0e1340; --bg-bottom: #04040f;
  --ink: #eef1ff; --ink-soft: #b7bdf0; --ink-mute: #7d84bf;
}
[data-theme="honey"] {
  --bg-top: #3a2410; --bg-bottom: #120a04;
  --ink: #fff4e3; --ink-soft: #e2c9a6; --ink-mute: #a98b66;
}
[data-theme="blush"] {
  --bg-top: #fde4ea; --bg-bottom: #fff6f3;
  --ink: #3a0f26; --ink-soft: #6c3f55; --ink-mute: #9b7486;
  --surface: rgba(58, 15, 38, 0.06); --surface-hi: rgba(58, 15, 38, 0.10); --line: rgba(58, 15, 38, 0.12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: radial-gradient(120% 70% at 50% -10%, var(--bg-top) 0%, var(--bg-bottom) 70%) fixed var(--bg-bottom);
  overflow-x: hidden;
}
body.gated { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; pointer-events: none; }
.portrait, .link__thumb, .shot { -webkit-touch-callout: none; }
@media print { body { display: none !important; } }

.backdrop {
  position: fixed; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  filter: saturate(0.9);
}
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-bottom) 55%, transparent) 0%, var(--bg-bottom) 85%);
}
.glow {
  position: fixed; z-index: -1; pointer-events: none;
  left: 50%; top: -60px; width: 460px; height: 460px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 42%, transparent), transparent 72%);
  filter: blur(18px);
}
[data-theme="blush"] .glow { opacity: 0.55; }

.page {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: calc(44px + env(safe-area-inset-top)) 20px calc(40px + env(safe-area-inset-bottom));
  display: grid;
  gap: 28px;
}

/* live-now strip */
.live { display: flex; align-items: center; justify-content: center; gap: 10px; margin: -14px auto 0; padding: 10px 16px; border-radius: 999px; width: fit-content; max-width: 100%;
  color: var(--ink); background: var(--surface-hi); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent), 0 10px 30px -14px color-mix(in srgb, var(--accent) 80%, transparent); font-size: 15px; }
.live__dot { width: 10px; height: 10px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 0 0 rgba(255,59,92,.6); animation: livepulse 1.6s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,92,.55); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.live__icon { display: grid; place-items: center; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .live__dot { animation: none; } }

/* hero */
.hero { text-align: center; display: grid; justify-items: center; gap: 6px; }
.portrait {
  width: 160px; height: 160px; border-radius: 50%; overflow: hidden;
  margin-bottom: 14px;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--bg-bottom) 70%, transparent),
    0 0 0 5px color-mix(in srgb, var(--accent) 80%, white 10%),
    0 24px 60px -18px color-mix(in srgb, var(--accent) 70%, transparent);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait--empty {
  display: grid; place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 70%, black), var(--accent));
  font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 76px; color: #fff;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.name {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic; font-weight: 500;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: clamp(38px, 11vw, 48px);
  line-height: 1.05; letter-spacing: -0.015em;
  text-wrap: balance;
}
.handle { margin: 0; color: var(--ink-mute); font-size: 15px; font-weight: 500; }
.tagline {
  margin: 10px 0 0;
  font-family: "Fraunces", Georgia, serif; font-weight: 300; font-style: italic;
  font-variation-settings: "SOFT" 60, "opsz" 32;
  font-size: 20px; line-height: 1.3; color: var(--ink-soft);
  text-wrap: balance;
}
.bio { margin: 6px 0 0; max-width: 40ch; color: var(--ink-soft); font-size: 15.5px; text-wrap: pretty; }

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-soft);
  transition: color .15s, background-color .15s;
}
.socials a:hover, .socials a:focus-visible { color: var(--ink); background: var(--surface-hi); }

/* the big button */
.feature {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px;
  min-height: 84px; padding: 18px 20px 18px 24px;
  border-radius: var(--radius-l);
  color: var(--feature-ink);
  background: linear-gradient(115deg, color-mix(in srgb, var(--accent) 80%, #2a0010) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 75%, white) 100%);
  box-shadow:
    0 18px 44px -14px color-mix(in srgb, var(--accent) 85%, transparent),
    inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s;
}
.feature:hover, .feature:focus-visible { transform: translateY(-2px); box-shadow: 0 26px 54px -16px color-mix(in srgb, var(--accent) 95%, transparent), inset 0 1px 0 rgba(255,255,255,.4); }
.feature:active { transform: translateY(0) scale(.99); }
.feature--glyph { grid-template-columns: auto minmax(0, 1fr) auto; padding-left: 18px; }
.feature__glyph { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.feature__body { display: grid; gap: 2px; min-width: 0; }
.feature__title {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-variation-settings: "SOFT" 80, "opsz" 72;
  font-size: 24px; line-height: 1.1; letter-spacing: -0.01em;
}
.feature__sub { font-size: 14.5px; opacity: .92; }
.feature__arrow {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.feature__sheen {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sheen 7s cubic-bezier(.4,0,.2,1) 1.4s infinite;
}
@keyframes sheen { 0% { transform: translateX(-120%); } 22% { transform: translateX(120%); } 100% { transform: translateX(120%); } }

/* feed */
.feed { display: grid; gap: 12px; }
.post { position: relative; display: block; border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); aspect-ratio: 4 / 3; }
.post__link { display: block; width: 100%; height: 100%; }
.post img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post--locked img { transform: scale(1.06); }
.post__lock { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: color-mix(in srgb, var(--accent) 85%, black); box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 90%, transparent), inset 0 0 0 1px rgba(255,255,255,.35); }
.post__bar { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; padding: 34px 14px 12px 16px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.post__text { display: grid; gap: 2px; min-width: 0; }
.post__cap { font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.post__meta { font-size: 12.5px; opacity: .85; }
.post__go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }

/* likes */
.like { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 13px; color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); pointer-events: auto; transition: transform .15s, background-color .15s; }
.like svg { transition: transform .2s; }
.like--on { background: color-mix(in srgb, var(--accent) 85%, black); }
.like--on svg { color: #fff; }
.like--pop svg { transform: scale(1.35); }
.like__n:empty { display: none; }
.like:active { transform: scale(.95); }
.is-preview .like { pointer-events: none; }

/* live member counts */
.members { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-family: "Instrument Sans", system-ui, sans-serif; font-weight: 600; font-size: 11.5px; letter-spacing: .01em; line-height: 1.4; color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); white-space: nowrap; }
.members--onaccent { color: #fff; background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }

/* ordinary links */
.links { display: grid; gap: 12px; }
.link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 64px; padding: 12px 14px 12px 20px;
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .15s, transform .15s;
}
.link--thumb { grid-template-columns: auto minmax(0, 1fr) auto; padding-left: 12px; }
.link:hover, .link:focus-visible { background: var(--surface-hi); transform: translateY(-1px); }
.link__thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.link__glyph { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); background: var(--surface-hi); box-shadow: inset 0 0 0 1px var(--line); }
.link__text { display: grid; gap: 1px; min-width: 0; }
.link__title { font-weight: 600; font-size: 16.5px; line-height: 1.25; }
.link__sub { font-size: 13.5px; color: var(--ink-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link__chev { color: var(--ink-mute); display: grid; place-items: center; width: 32px; height: 32px; }

/* gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.shot { margin: 0; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); }
.shot--wide { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
  font-size: 13px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}

.foot { text-align: center; color: var(--ink-mute); font-size: 12.5px; margin-top: 10px; }
.foot p { margin: 4px 0; }

/* age gate */
.gate {
  position: fixed; inset: 0; z-index: 50;
  display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 20px;
  background: color-mix(in srgb, var(--bg-bottom) 72%, transparent);
  backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2);
  transition: opacity .4s;
}
.gate[hidden] { display: none; }
.gate.out, .sheet.out { opacity: 0; pointer-events: none; }
.sheet.out .sheet__card { transform: translateY(24px); }
.gate__card {
  width: 100%; max-width: 380px; min-width: 0; padding: 30px 26px 24px; text-align: center;
  border-radius: 26px;
  background: color-mix(in srgb, var(--bg-top) 60%, var(--bg-bottom));
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), inset 0 0 0 1px var(--line);
}
[data-theme="blush"] .gate__card { background: #fff; }

/* link sheet behind the big button */
.sheet {
  position: fixed; inset: 0; z-index: 50;
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; justify-items: center; padding: 0;
  background: color-mix(in srgb, var(--bg-bottom) 70%, transparent);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transition: opacity .35s;
}
.sheet[hidden] { display: none; }
.sheet__card {
  width: 100%; max-width: 520px; min-width: 0; max-height: 88dvh; overflow: auto; overflow-x: hidden;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: color-mix(in srgb, var(--bg-top) 60%, var(--bg-bottom));
  box-shadow: 0 -20px 60px -20px rgba(0,0,0,.7), inset 0 1px 0 var(--line);
  transform: translateY(0); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
[data-theme="blush"] .sheet__card { background: #fff; }
.sheet__grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 6px auto 16px; }
.sheet__title {
  margin: 0; text-align: center; overflow-wrap: anywhere;
  font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 500;
  font-variation-settings: "SOFT" 100, "opsz" 96; font-size: 28px; line-height: 1.1;
}
.sheet__sub { margin: 6px 0 0; text-align: center; color: var(--ink-soft); font-size: 14.5px; }
.sheet__list { display: grid; gap: 10px; margin-top: 18px; }
.sheet__item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 64px; padding: 12px 14px 12px 18px; border-radius: 18px;
  color: var(--feature-ink);
  background: linear-gradient(115deg, color-mix(in srgb, var(--accent) 80%, #2a0010) 0%, var(--accent) 60%, color-mix(in srgb, var(--accent) 75%, white) 100%);
  box-shadow: 0 12px 30px -14px color-mix(in srgb, var(--accent) 85%, transparent), inset 0 1px 0 rgba(255,255,255,.3);
}
.sheet__item--lead { grid-template-columns: auto minmax(0, 1fr) auto; padding-left: 12px; }
.sheet__glyph { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.sheet__item img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.sheet__text { display: grid; gap: 1px; min-width: 0; }
.sheet__name { font-weight: 600; font-size: 17px; line-height: 1.2; }
.sheet__meta { font-size: 13.5px; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet__arrow { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.sheet__close {
  display: block; width: 100%; margin-top: 14px; min-height: 48px; border: 0; border-radius: 14px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 15px; color: var(--ink-soft); background: var(--surface-hi);
}
@media (min-width: 640px) {
  .sheet { align-items: center; padding: 20px; }
  .sheet__card { border-radius: 26px; max-height: 80vh; }
}
.gate__eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 14px; font-weight: 600; }
.gate__title {
  margin: 0; font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 500;
  font-variation-settings: "SOFT" 100, "opsz" 96; font-size: 32px; line-height: 1.1;
}
.gate__text { margin: 12px 0 22px; color: var(--ink-soft); font-size: 15px; }
.gate__yes {
  width: 100%; min-height: 54px; border: 0; border-radius: 16px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 16px; color: #fff;
  background: var(--accent);
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--accent) 90%, transparent);
}
.gate__no { display: inline-block; margin-top: 14px; color: var(--ink-mute); font-size: 14px; background: none; border: 0; font-family: inherit; cursor: pointer; }

.is-preview a, .is-preview button { pointer-events: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .feature__sheen { animation: none; }
  .feature, .link, .gate, .sheet, .sheet__card { transition: none; }
}

/* supplied raster brand marks */
.brand-mask { display: inline-block; background: currentColor; -webkit-mask: var(--brand) center / contain no-repeat; mask: var(--brand) center / contain no-repeat; }
.brand-img { display: inline-block; object-fit: contain; border-radius: 22%; }
