/* A creator's public page. All colours come from the theme variables written into <style id="theme-vars">:
   --bg --bg2 --surface --text --muted --accent --accent-text --border --page-bg --font --btn-r --card-r.
   The gradient is painted on the body and scrolls with it (a fixed attachment breaks on iOS Safari and in full-page captures). */

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--page-bg); color: var(--text); font: 400 16px/1.5 var(--font); }
h1, h2, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }

/* Marigold is lynkpin's own theme: it keeps the marigold money colour for tips and the avatar. Other themes use their accent. */
html { --avatar-bg: var(--accent); --avatar-text: var(--accent-text); --tip-bg: color-mix(in srgb, var(--accent) 13%, var(--surface)); --tip-btn: var(--accent); --tip-btn-text: var(--accent-text); --soft: color-mix(in srgb, var(--accent) 13%, var(--surface)); }
html[data-theme="marigold"] { --avatar-bg: #F5A524; --avatar-text: #2A0F2B; --tip-bg: #FDEBC6; --tip-btn: #F5A524; --tip-btn-text: #2A0F2B; }
html[data-theme="marigold"][data-mode="dark"] { --avatar-bg: var(--accent); --avatar-text: var(--accent-text); --tip-bg: #43301A; --tip-btn: #F7B23B; --tip-btn-text: #1A0E1C; }
@media (prefers-color-scheme: dark) { html[data-theme="marigold"][data-mode="auto"] { --avatar-bg: var(--accent); --avatar-text: var(--accent-text); --tip-bg: #43301A; --tip-btn: #F7B23B; --tip-btn-text: #1A0E1C; } }

.page { max-width: 560px; margin: 0 auto; padding: 40px 16px 28px; display: flex; flex-direction: column; gap: 22px; }
.head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding-top: 8px; }
.avatar { width: 104px; height: 104px; border-radius: 50%; background: var(--avatar-bg); color: var(--avatar-text); display: grid; place-items: center; font: 700 36px/1 var(--font); box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); margin-bottom: 10px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.head h1 { font: 700 26px/1.2 var(--font); letter-spacing: -.01em; }
.bio { color: var(--muted); max-width: 30em; font-size: 15px; line-height: 22px; }
.blocks { display: flex; flex-direction: column; gap: 12px; }

/* links */
.blk { --a: calc(max(var(--op, 1), var(--op-floor, 0)) * 100%); }
.link { position: relative; display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 8px 52px; background: color-mix(in srgb, var(--surface) var(--a), transparent); color: var(--text); border: 1px solid var(--border); border-radius: var(--btn-r); text-decoration: none; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.link .emoji { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; line-height: 1; }
.lt { display: flex; flex-direction: column; min-width: 0; }
.link .t { font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; overflow-wrap: anywhere; }
.link .s { font-size: 13px; line-height: 18px; color: var(--muted); overflow-wrap: anywhere; }
.link.pinned { background: color-mix(in srgb, var(--accent) var(--a), transparent); color: var(--accent-text); border-color: var(--accent); }
.link.pinned .s { color: var(--accent-text); opacity: .92; }
.link.ghost { background: transparent; box-shadow: none; border-color: var(--text); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .link, .btn-block-link, .btn-tip, .ev-btn, .chip { transition: transform .15s, box-shadow .15s; }
  .link:hover, .btn-block-link:hover, .btn-tip:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(0,0,0,.25); }
}

.eyebrow { font: 600 12px/16px var(--font); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 2px 0; }
.prose { text-align: center; color: var(--muted); padding: 4px 6px; overflow-wrap: anywhere; white-space: pre-line; }

/* cards */
.card { background: color-mix(in srgb, var(--surface) var(--a), transparent); border: 1px solid var(--border); border-radius: var(--card-r); }
.blk.card, .embed, .tip { padding: 20px; }
.blk.pinned.card, .embed.pinned, .tip.pinned, .events.pinned .ev { box-shadow: 0 0 0 2px var(--accent); border-color: var(--accent); }
.countdown.pinned, .email.pinned { box-shadow: 0 0 0 2px var(--accent); }

.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 9999px; background: color-mix(in srgb, var(--surface) var(--a), transparent); border: 1px solid var(--border); font: 600 13px/1 var(--font); text-decoration: none; }

/* player */
.embed { padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-r); overflow: hidden; }
.embed-frame { background: var(--surface); width: 100%; }
.embed-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--surface); color-scheme: normal; }
.embed-cap { padding: 10px 16px; font-size: 13px; color: var(--muted); text-align: center; }
.embed-gate { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 16px 14px; text-align: center; background: var(--surface); }
.embed-gate-t { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; overflow-wrap: anywhere; }
.embed-gate-n { color: var(--muted); max-width: 30em; }
.embed-load { min-height: 52px; padding: 0 28px; border: 0; border-radius: var(--btn-r); background: var(--accent); color: var(--accent-text); font-weight: 700; }
.embed-gate .embed-fallback { min-height: 44px; font-weight: 500; font-size: 14px; background: transparent; text-decoration: underline; }
.embed-fallback { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; padding: 8px 16px; background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; }
.embed.failed .embed-frame { display: none; }

/* countdown */
.countdown { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.cd-soon, .cd-out { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cd-title { font: 700 24px/1.2 var(--font); overflow-wrap: anywhere; }
.cd-tiles { display: flex; gap: 8px; justify-content: center; }
.cd-tile { min-width: 56px; padding: 8px 6px; border-radius: 12px; background: var(--soft); display: flex; flex-direction: column; align-items: center; }
.cd-tile b { font: 700 26px/1.1 var(--font); font-variant-numeric: tabular-nums; }
.cd-tile span { font-size: 12px; color: var(--muted); }
.cd-date { color: var(--muted); }
.badge-out { display: inline-block; font: 700 11px/16px var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 3px 12px; border-radius: 9999px; background: var(--tip-btn); color: var(--tip-btn-text); }
.btn-block-link { display: flex; align-items: center; justify-content: center; align-self: stretch; min-height: 52px; padding: 0 20px; border-radius: var(--btn-r); background: var(--accent); color: var(--accent-text); font-weight: 700; text-decoration: none; text-align: center; }

/* events */
.events { display: flex; flex-direction: column; gap: 10px; }
.ev-list { display: flex; flex-direction: column; gap: 8px; }
.ev { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: calc(var(--card-r) * .6); }
.ev-date { display: flex; flex-direction: column; align-items: center; min-width: 44px; line-height: 1.1; }
.ev-date small { font: 600 11px/14px var(--font); letter-spacing: .06em; color: var(--muted); }
.ev-date b { font: 700 24px/1.1 var(--font); }
.ev-info { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; line-height: 20px; }
.ev-info b { overflow-wrap: anywhere; }
.ev-info span { color: var(--muted); overflow-wrap: anywhere; }
.ev-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 9999px; background: var(--soft); color: var(--text); font: 600 13px/1 var(--font); text-decoration: none; border: 1px solid var(--border); }

/* tip jar */
.tip { background: color-mix(in srgb, var(--tip-bg) var(--a), transparent); border-radius: var(--card-r); display: flex; flex-direction: column; gap: 12px; border: 0; }
.tip-h { font: 700 22px/1.2 var(--font); }
.tip-note { color: var(--text); font-size: 14px; opacity: .85; }
.btn-tip { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; width: 100%; padding: 0 20px; border: 0; border-radius: var(--btn-r); background: var(--tip-btn); color: var(--tip-btn-text); font-weight: 700; text-decoration: none; }
.btn-tip[disabled] { opacity: .65; cursor: default; }
.btn-tip.quiet { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.steps { display: flex; flex-direction: column; gap: 4px; }
.steps li { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.num { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font: 700 12px/1 var(--font); flex: none; }
.step-body { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.step-val b { font-family: "Noto Sans Mono", ui-monospace, monospace; font-weight: 700; }
.copy { min-height: 44px; padding: 0 18px; border-radius: 9999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 13px/1 var(--font); }
.amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.amt { min-height: 44px; padding: 0 18px; border-radius: 9999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 14px/1 var(--font); }
.amt.on, .amt[aria-checked="true"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.lbl { font: 600 13px/18px var(--font); display: block; margin-bottom: 4px; }
.inp { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--text) 55%, var(--surface)); background: var(--surface); color: var(--text); }
.inp.mono { font-family: "Noto Sans Mono", ui-monospace, monospace; font-size: 15px; }
.inp::placeholder { color: var(--muted); opacity: 1; }
.tip-status { min-height: 0; }
.ts-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface); font-size: 14px; line-height: 20px; }
.ts-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); flex: none; margin-top: 1px; }
.tip-status[data-state="paid"] .ts-card { background: color-mix(in srgb, #0B7258 16%, var(--surface)); }
.tip-status[data-state="paid"] .ts-ic { background: #0B7258; color: #fff; }
.tip-status[data-state="failed"] .ts-card { background: color-mix(in srgb, #B42318 14%, var(--surface)); }
.tip-status[data-state="failed"] .ts-ic { background: #B42318; color: #fff; }
.tip-status[data-state="waiting"] .ts-ic { background: var(--tip-btn); color: var(--tip-btn-text); }
.tip-alt { text-align: center; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.tip-alt .handle, .step-val .handle { font-family: "Noto Sans Mono", ui-monospace, monospace; }

/* email */
.email { display: flex; flex-direction: column; gap: 10px; }
.em-h { font: 700 20px/1.25 var(--font); }
.em-form { display: flex; gap: 8px; }
.em-form .inp { border-radius: var(--btn-r); flex: 1; min-width: 0; }
.em-btn { min-height: 48px; padding: 0 22px; border-radius: var(--btn-r); border: 0; background: var(--accent); color: var(--accent-text); font-weight: 700; }
.em-status { min-height: 0; font-weight: 600; }
.em-status:empty { display: none; }
.email.done .em-form { display: none; }

/* github */
.github { display: flex; flex-direction: column; gap: 10px; }
.repos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.repo { display: flex; flex-direction: column; gap: 4px; padding: 12px; height: 100%; text-decoration: none; border-radius: 14px; min-width: 0; }
.repo .handle { font-weight: 700; font-size: 13px; overflow-wrap: anywhere; }
.rd { font-size: 12px; line-height: 16px; color: var(--muted); overflow-wrap: anywhere; }
.rm { margin-top: auto; padding-top: 4px; display: flex; gap: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.rm span { display: inline-flex; align-items: center; gap: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
@media (max-width: 379px) { .repos { grid-template-columns: 1fr; } }

/* footer */
.foot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 6px; }
.share { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 9999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; }
.made { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; color: var(--muted); text-decoration: none; }
.made:hover { text-decoration: underline; }
.toast-lite { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #2A0F2B; color: #FFFAF4; border-radius: 9999px; padding: 10px 20px; font-size: 14px; z-index: 10; max-width: calc(100vw - 32px); }

@media (max-width: 420px) { .page { padding-top: 28px; } .link { padding: 8px 44px; } }
@media (max-width: 330px) { .em-form { flex-direction: column; } .em-btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* see-through blocks: a little blur keeps the photo behind them calm */
.translucent.link, .translucent.card, .translucent.tip, .translucent .card, .translucent .chip { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Profile photo across the full width of the page (the "Full width" photo style). Without a photo the initials circle stays.
   Nothing in the header may shrink (flex-shrink: 0) and the text gets its own breathing room under the photo, so the bio never gets squeezed or lost against the picture. */
html[data-avatar="banner"] .head { align-self: stretch; padding: 0 0 18px; border-radius: var(--card-r); gap: 6px; }
html[data-avatar="banner"] .head > * { flex-shrink: 0; }
html[data-avatar="banner"] .avatar.has-img { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: var(--card-r); box-shadow: none; margin-bottom: 8px; }
html[data-avatar="banner"] .head h1 { padding: 4px 18px 0; }
html[data-avatar="banner"] .head .bio { padding: 0 18px; max-width: none; width: 100%; }

.report-link { color: var(--muted); font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; }

.sl-art { width: min(100%, 280px); aspect-ratio: 1; object-fit: cover; border-radius: var(--card-r); box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.gate-opt { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 14px; }
.gate-opt input { width: 20px; height: 20px; flex: none; }

.make-pin { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; margin-top: 10px; border-radius: 9999px; background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: 14px; text-decoration: none; }
.make-pin:hover { filter: brightness(1.08); }
