@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/inter-latin-wght-normal.woff2') format('woff2');
}

:root {
  --accent: #1f4fd8;
  --bg: #ffffff;
  --fg: #111318;
  --muted: #5d6370;
  --line: #e3e5ea;
  --hover: #f5f6f8;
  color-scheme: light;
}
.mode-dark {
  --bg: #0d0e11;
  --fg: #eceef2;
  --muted: #8d93a0;
  --line: #24272e;
  --hover: #16181d;
  color-scheme: dark;
}
/* Pages with no owner's theme (the apex privacy page) follow the system setting. */
@media (prefers-color-scheme: dark) {
  .mode-auto {
    --bg: #0d0e11;
    --fg: #eceef2;
    --muted: #8d93a0;
    --line: #24272e;
    --hover: #16181d;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 13px/1.5 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
h1, h2, p { margin: 0; }

.page { max-width: 560px; margin: 0 auto; padding: 48px 16px 64px; }
.bio { color: var(--muted); white-space: pre-line; }
.section {
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.title { font-weight: var(--w-title, 500); }
.sub { display: block; color: var(--muted); font-size: 12px; }
.avatar { object-fit: cover; border: 1px solid var(--line); }
.thumb { object-fit: cover; flex: none; }
a:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

/* Stack: centered column, full-width hairline rows */
.layout-stack .head { text-align: center; margin-bottom: 28px; }
.layout-stack .avatar { width: 88px; height: 88px; margin: 0 auto 16px; }
.layout-stack h1 { font-size: calc(17px * var(--h1-scale, 1)); font-weight: var(--w-head, 600); letter-spacing: calc(-0.01em * var(--track, 1)); margin-bottom: 4px; }
.layout-stack .bio { max-width: 400px; margin: 0 auto; }
.layout-stack .links { display: flex; flex-direction: column; gap: 8px; }
.layout-stack .section { margin: 16px 0 0; text-align: center; }
.layout-stack .row {
  display: flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 8px 14px;
  border: 1px solid var(--line); background: var(--bg);
  transition: border-color 120ms, background-color 120ms;
}
.layout-stack .row .thumb { width: 32px; height: 32px; }
.layout-stack .row .text { flex: 1; min-width: 0; }
.layout-stack .row .arrow { color: var(--muted); }
.layout-stack .row:hover { border-color: var(--accent); background: var(--hover); }
.layout-stack .row:hover .arrow { color: var(--accent); }
.layout-stack .row.featured { border-color: var(--accent); background: var(--accent); color: #fff; }
.layout-stack .row.featured .sub, .layout-stack .row.featured .arrow { color: rgba(255, 255, 255, 0.78); }

/* Grid: compact header, two-column tiles */
.layout-grid .page { max-width: 640px; }
.layout-grid .head {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.layout-grid .avatar { width: 56px; height: 56px; flex: none; }
.layout-grid h1 { font-size: calc(15px * var(--h1-scale, 1)); font-weight: var(--w-head, 600); }
.layout-grid .links { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.layout-grid .section, .layout-grid .tile { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.layout-grid .section { grid-column: 1 / -1; padding: 16px 14px 6px; }
.layout-grid .tile {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 120px; padding: 14px; background: var(--bg);
  transition: background-color 120ms;
}
.layout-grid .tile .thumb { width: 100%; aspect-ratio: 16 / 9; height: auto; margin-bottom: 10px; }
.layout-grid .tile .title::after { content: ' \2197'; color: var(--muted); }
.layout-grid .tile:hover { background: var(--hover); }
.layout-grid .tile:hover .title { color: var(--accent); }
.layout-grid .tile.wide { grid-column: 1 / -1; min-height: 72px; }
.layout-grid .tile.featured { grid-column: 1 / -1; background: var(--accent); color: #fff; }
.layout-grid .tile.featured .sub, .layout-grid .tile.featured .title::after { color: rgba(255, 255, 255, 0.78); }
.layout-grid .tile.featured:hover .title { color: #fff; }

/* Editorial: left-aligned, large type, numbered index */
.layout-editorial .page { max-width: 680px; padding-top: 64px; }
.layout-editorial .head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  margin-bottom: 40px;
}
.layout-editorial h1 {
  font-size: calc(40px * var(--h1-scale, 1)); line-height: 1.05; font-weight: var(--w-head, 600); letter-spacing: calc(-0.035em * var(--track, 1));
  margin-bottom: 14px;
}
.layout-editorial .bio { font-size: 14px; max-width: 440px; }
.layout-editorial .avatar { width: 64px; height: 64px; flex: none; }
.layout-editorial .links { border-top: 1px solid var(--fg); }
.layout-editorial .section { padding: 24px 0 8px; border-bottom: 1px solid var(--line); }
.layout-editorial .entry {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: baseline; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.layout-editorial .num { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }
.layout-editorial .entry .title { font-size: 16px; letter-spacing: calc(-0.01em * var(--track, 1)); }
.layout-editorial .arrow { color: var(--muted); transition: transform 120ms; }
.layout-editorial .entry:hover .title, .layout-editorial .entry:hover .arrow { color: var(--accent); }
.layout-editorial .entry:hover .arrow { transform: translateX(3px); }
.layout-editorial .entry.featured .num { color: var(--accent); }
.layout-editorial .entry.featured .title { font-weight: 600; }

/* Cover: edge-to-edge photo, large name, divided list */
.layout-cover .page { padding-top: 16px; }
.layout-cover .head { margin-bottom: 16px; }
.layout-cover .cover-media {
  aspect-ratio: 16 / 9; max-height: 38vh; overflow: hidden; margin-bottom: 12px;
  border: 1px solid var(--line); background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.layout-cover .cover-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
@media (min-width: 600px) {
  /* Wide screens: a slim landscape banner that spans the column. */
  .layout-cover .cover-media { aspect-ratio: 2.4 / 1; max-height: none; }
}
.layout-cover .cover-initial { font-size: 72px; font-weight: var(--w-head, 600); letter-spacing: calc(-0.04em * var(--track, 1)); color: #fff; }
.layout-cover h1 { font-size: calc(28px * var(--h1-scale, 1)); line-height: 1.1; font-weight: var(--w-head, 600); letter-spacing: calc(-0.025em * var(--track, 1)); margin-bottom: 6px; }
.layout-cover .bio { font-size: 14px; }
.layout-cover .links { border-top: 1px solid var(--line); }
.layout-cover .section { padding: 20px 0 6px; border-bottom: 1px solid var(--line); }
.layout-cover .item {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 2px;
  border-bottom: 1px solid var(--line); transition: color 120ms;
}
.layout-cover .item .thumb { width: 36px; height: 36px; }
.layout-cover .item .text { flex: 1; min-width: 0; }
.layout-cover .item .title { font-size: 15px; }
.layout-cover .item .arrow { font-size: 20px; line-height: 1; color: var(--muted); transition: transform 120ms; }
.layout-cover .item:hover .title, .layout-cover .item:hover .arrow { color: var(--accent); }
.layout-cover .item:hover .arrow { transform: translateX(3px); }
.layout-cover .item.featured { border-left: 2px solid var(--accent); padding-left: 12px; }
.layout-cover .item.featured .title { font-weight: 600; color: var(--accent); }
.layout-cover .block { margin: 14px 0; }
.layout-cover .social-row { justify-content: flex-start; margin: 10px -12px; }

/* Poster: oversized link titles */
.layout-poster .page { max-width: 720px; }
.layout-poster .head {
  display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 8px;
  border-bottom: 1px solid var(--fg);
}
.layout-poster .avatar { width: 36px; height: 36px; flex: none; }
.layout-poster h1 { font-size: 12px; font-weight: var(--w-head, 600); letter-spacing: 0.08em; text-transform: uppercase; }
.layout-poster .head .bio { font-size: 12px; }
.layout-poster .section { padding: 28px 0 6px; }
.layout-poster .bill {
  display: grid; grid-template-columns: 1fr auto; align-items: start; column-gap: 12px;
  padding: 14px 0 16px; border-bottom: 1px solid var(--line);
}
.layout-poster .bill .title {
  font-size: clamp(28px, 8.5vw, 44px); line-height: 1.02; font-weight: var(--w-head, 600); letter-spacing: calc(-0.035em * var(--track, 1));
  overflow-wrap: anywhere; transition: color 120ms;
}
.layout-poster .bill .title .lock { width: 0.5em; height: 0.5em; vertical-align: 0.15em; }
.layout-poster .bill .arrow { font-size: 22px; color: var(--muted); padding-top: 6px; transition: color 120ms, transform 120ms; }
.layout-poster .bill .sub { grid-column: 1 / -1; margin-top: 6px; font-size: 13px; }
.layout-poster .bill:hover .title, .layout-poster .bill:hover .arrow { color: var(--accent); }
.layout-poster .bill:hover .arrow { transform: translate(2px, -2px); }
.layout-poster .bill.featured .title { color: var(--accent); }
.layout-poster .block { margin: 16px 0; }
.layout-poster .social-row { justify-content: flex-start; margin: 12px -12px; }

@media (max-width: 480px) {
  .layout-cover .page { padding-top: 0; }
  .layout-cover .cover-media { margin-left: -16px; margin-right: -16px; border-left: 0; border-right: 0; border-top: 0; }
  .page { padding-top: 32px; }
  .layout-editorial h1 { font-size: calc(30px * var(--h1-scale, 1)); }
  .layout-grid .tile { min-height: 104px; padding: 12px; }
}

.notfound { text-align: center; padding-top: 120px; }
.notfound h1 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }

/* P4 blocks, shared by all layouts */
.block { display: block; }
.social-row { display: flex; justify-content: center; gap: 4px; padding: 4px 0; }
.social {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  color: var(--fg); border: 1px solid transparent; transition: border-color 120ms, color 120ms;
}
.social:hover { border-color: var(--line); color: var(--accent); }
.image { margin: 0; }
.image img { width: 100%; height: auto; border: 1px solid var(--line); }
.image .sub { margin-top: 6px; }
.video { margin: 0; }
.video .title { display: block; margin-bottom: 6px; }
.video .frame { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: var(--hover); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.countdown {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px;
  border: 1px dashed var(--line); color: var(--fg);
}
.countdown .text { flex: 1; min-width: 0; }
.countdown .timer { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent); white-space: nowrap; }
/* Over a gradient or photo the accent can vanish into the backdrop: use the text colour. */
body:is(.bg-gradient, .bg-image) .countdown .timer { color: var(--fg); }
.countdown.clickable { border-style: solid; }
.countdown.clickable:hover { border-color: var(--accent); background: var(--hover); }
/* Email gate: fallback page form and the modal's form */
.gate-row { display: flex; }
.gate-form { display: flex; flex-direction: column; gap: 8px; }
.gate-row input[type=email] {
  flex: 1; min-width: 0; height: 40px; padding: 0 10px; font: inherit; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line); border-right: 0; border-radius: 0;
}
.gate-row input[type=email]:focus { outline: 1px solid var(--accent); outline-offset: -1px; }
.gate-row button, .fl-gate-primary {
  height: 40px; padding: 0 16px; font: inherit; font-weight: 500; color: var(--on-accent, #fff);
  background: var(--accent); border: 1px solid var(--accent); border-radius: 0; cursor: pointer;
}
.gate-row button:disabled, .fl-gate-primary:disabled { opacity: 0.6; cursor: default; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.gate-error { color: #b42318; font-size: 12px; margin: 8px 0 0; }
.mode-dark .gate-error { color: #f97066; }
.gate-privacy { margin: 8px 0 0; font-size: 11px; }
.gate-form .gate-privacy { margin: 0; }
.gate-privacy a, .fl-foot a {
  color: var(--muted); text-decoration: underline; text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.gate-privacy a:hover, .fl-foot a:hover { color: var(--fg); text-decoration-color: currentColor; }

/* Footer under every persona page, outside the layout markup */
.fl-foot { margin: -32px auto 0; padding: 0 16px 32px; text-align: center; font-size: 11px; }

/* Gate modal (public/js/gates.js) */
.fl-gate {
  width: calc(100% - 32px); max-width: 380px; padding: 0; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 0; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.fl-gate::backdrop { background: rgba(0, 0, 0, 0.55); }
.fl-gate [hidden] { display: none !important; }
.fl-gate-panel { position: relative; padding: 28px 20px 20px; text-align: center; }
.fl-gate-close {
  position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; padding: 0; font-size: 22px; line-height: 1;
  color: var(--muted); background: none; border: 0; cursor: pointer;
}
.fl-gate-close:hover { color: var(--fg); }
.fl-gate-close:focus-visible, .fl-gate button:focus-visible, .fl-gate a:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.fl-gate-title { font-size: 17px; font-weight: var(--w-head, 600); letter-spacing: calc(-0.01em * var(--track, 1)); margin: 0 0 6px; overflow-wrap: anywhere; }
.fl-gate-note { margin: 0 0 14px; }
.fl-gate .bio { margin: 8px 0 16px; }
.fl-gate form { margin-top: 14px; }
.fl-gate-actions { display: flex; flex-direction: column; gap: 8px; }
.fl-gate-secondary {
  height: 40px; font: inherit; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 0; cursor: pointer;
}
.fl-gate-secondary:hover { border-color: var(--accent); color: var(--accent); }
.fl-gate-open { display: inline-flex; align-items: center; margin-top: 14px; text-decoration: none; }
.layout-grid .block { grid-column: 1 / -1; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px; }
.layout-grid .countdown { border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.layout-grid .image img, .layout-grid .video .frame { border: 0; }
.layout-editorial .block { margin: 14px 0; }
.layout-editorial .social-row { justify-content: flex-start; margin: 10px -12px; }

/* 18+ lock and age confirmation */
.lock { display: inline-block; vertical-align: -1px; margin-right: 6px; }
.social.locked, .social.unlocked { position: relative; }
.social.locked .lock, .social.unlocked .lock { position: absolute; right: 4px; bottom: 4px; margin: 0; width: 10px; height: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.agegate-box { text-align: center; }
.agegate-box .bio { margin-bottom: 20px; }
.agegate-badge {
  display: inline-block; margin-bottom: 12px; padding: 2px 8px; font-weight: 600; font-size: 12px;
  border: 1px solid var(--accent); color: var(--accent);
}
.agegate-confirm { width: 100%; font: inherit; text-align: left; cursor: pointer; }

/* In-app browser escape page */
.escape .head { margin-bottom: 20px; }
.escape-status { display: none; text-align: center; color: var(--muted); }
.escape-trying .escape-status { display: block; }
.escape-trying .escape-help { display: none; }
.escape-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; text-align: center; }
.escape-help > .bio { text-align: center; margin-bottom: 16px; }
.escape-steps { margin: 0 0 20px; padding: 14px 14px 14px 34px; border: 1px solid var(--line); }
.escape-steps li + li { margin-top: 4px; }
.copy-row { display: flex; }
.copy-input {
  flex: 1; min-width: 0; height: 48px; padding: 0 12px; font: inherit; font-size: 12px; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line); border-right: 0; border-radius: 0;
}
.copy-button {
  height: 48px; padding: 0 16px; font: inherit; font-weight: 500; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line); border-radius: 0; cursor: pointer;
}
.copy-button:hover { border-color: var(--accent); color: var(--accent); }
.continue { display: block; text-align: center; color: var(--muted); padding: 12px 0; text-decoration: underline; text-underline-offset: 3px; }
.layout-stack .escape .links { gap: 10px; }

/* ==========================================================================
   Theme options (CONTRACT C6). Opt-in body classes set from the page
   settings; a page with default settings matches none of these rules.
   Values flow through custom properties so custom_css (emitted after this
   file) can retune them, and still wins at equal specificity.
   ========================================================================== */

/* Fonts. Inter Display is Inter's optical-size cut: the opsz file is
   already self-hosted beside the default one and only loads when used. */
@font-face {
  font-family: 'Inter Display';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/inter-latin-opsz-normal.woff2') format('woff2');
}
.font-serif {
  --font: ui-serif, 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, Cambria, 'Times New Roman', serif;
  --track: 0.3; --h1-scale: 1.12;
}
.font-mono {
  --font: ui-monospace, 'SF Mono', 'Cascadia Code', 'JetBrains Mono', 'Roboto Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --track: 0; --w-head: 700;
}
.font-rounded {
  --font: ui-rounded, 'SF Pro Rounded', 'Hiragino Maru Gothic ProN', Quicksand, Nunito, 'Varela Round', 'Arial Rounded MT Bold', 'Segoe UI', system-ui, sans-serif;
  --track: 0.4; --w-head: 700; --w-title: 600;
}
.font-display {
  --font: 'Inter Display', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --track: 1.15; --w-head: 800; --w-title: 600; --h1-scale: 1.45;
}
body:is(.font-serif, .font-mono, .font-rounded, .font-display) { font-family: var(--font); }
body:is(.font-serif, .font-mono, .font-rounded) { font-feature-settings: normal; }
body.font-serif { font-size: 14px; }
.font-display .section { font-weight: 700; }

/* Button styles: each sets the same variables, applied below to link
   elements of every layout, social icons, countdowns and the gate modal. */
.btn-pill {
  --btn-radius: 999px; --btn-card-radius: 22px; --btn-bw: 1px;
  --btn-bg: var(--bg); --btn-border: var(--line);
  --btn-shadow: 0 1px 2px rgba(17, 19, 24, 0.06), 0 2px 10px rgba(17, 19, 24, 0.05);
  --btn-hover-bg: var(--bg); --btn-hover-fg: var(--fg); --btn-hover-border: var(--accent);
  --btn-hover-shadow: 0 8px 22px rgba(17, 19, 24, 0.12); --btn-hover-move: translateY(-1px);
  --avatar-radius: 50%;
}
.btn-square {
  --btn-radius: 0; --btn-card-radius: 0; --btn-bw: 2px;
  --btn-bg: var(--bg); --btn-border: var(--fg); --btn-shadow: none;
  --btn-hover-bg: var(--fg); --btn-hover-fg: var(--bg); --btn-hover-border: var(--fg);
  --btn-hover-shadow: none; --btn-hover-move: none;
  --avatar-radius: 0; --banner-radius: 0;
}
.btn-outline {
  --btn-radius: 12px; --btn-card-radius: 16px; --btn-bw: 1.5px;
  --btn-bg: transparent; --btn-border: var(--accent); --btn-shadow: none;
  --btn-hover-bg: var(--accent); --btn-hover-fg: var(--on-accent, #fff); --btn-hover-border: var(--accent);
  --btn-hover-shadow: none; --btn-hover-move: none;
  --avatar-radius: 16px;
}
.btn-shadow {
  --btn-radius: 10px; --btn-card-radius: 14px; --btn-bw: 2px;
  --btn-bg: var(--bg); --btn-border: var(--fg); --btn-shadow: 4px 4px 0 var(--accent);
  --btn-hover-bg: var(--bg); --btn-hover-fg: var(--fg); --btn-hover-border: var(--fg);
  --btn-hover-shadow: 6px 6px 0 var(--accent); --btn-hover-move: translate(-2px, -2px);
  --btn-feat-shadow: 4px 4px 0 var(--fg); --btn-feat-hover-shadow: 6px 6px 0 var(--fg);
  --avatar-radius: 14px;
}
.btn-glass {
  --btn-radius: 16px; --btn-card-radius: 20px; --btn-bw: 1px;
  --btn-bg: rgba(255, 255, 255, 0.55); --btn-border: rgba(255, 255, 255, 0.75);
  --btn-shadow: 0 0 0 1px rgba(17, 19, 24, 0.04), 0 8px 24px rgba(17, 19, 24, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --btn-hover-bg: rgba(255, 255, 255, 0.78); --btn-hover-fg: var(--fg); --btn-hover-border: rgba(255, 255, 255, 0.95);
  --btn-hover-shadow: 0 0 0 1px rgba(17, 19, 24, 0.05), 0 12px 32px rgba(17, 19, 24, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --btn-hover-move: translateY(-1px);
  --btn-blur: blur(16px) saturate(160%);
  --btn-feat-bg: color-mix(in srgb, var(--accent) 82%, transparent);
  --avatar-radius: 50%;
}
.mode-dark .btn-glass {
  --btn-bg: rgba(255, 255, 255, 0.07); --btn-border: rgba(255, 255, 255, 0.14);
  --btn-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --btn-hover-bg: rgba(255, 255, 255, 0.12); --btn-hover-border: rgba(255, 255, 255, 0.26);
  --btn-hover-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) :is(.row, .tile, .entry, .item, .bill, .countdown) {
  border: var(--btn-bw) solid var(--btn-border);
  border-radius: var(--btn-radius);
  background: var(--btn-bg);
  color: var(--fg);
  box-shadow: var(--btn-shadow);
  -webkit-backdrop-filter: var(--btn-blur, none);
  backdrop-filter: var(--btn-blur, none);
  transition: background-color 140ms, border-color 140ms, color 140ms, box-shadow 140ms, transform 140ms;
}
:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) :is(.tile, .bill) { border-radius: var(--btn-card-radius); }
:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) :is(a.row, a.tile, a.entry, a.item, a.bill, a.countdown):hover {
  background: var(--btn-hover-bg); color: var(--btn-hover-fg); border-color: var(--btn-hover-border);
  box-shadow: var(--btn-hover-shadow); transform: var(--btn-hover-move);
}
:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) :is(a.row, a.tile, a.entry, a.item, a.bill, a.countdown):hover :is(.title, .arrow, .num) { color: inherit; }
:is(.btn-square, .btn-outline) :is(a.row, a.tile, a.entry, a.item, a.bill, a.countdown):hover :is(.sub, .timer) { color: inherit; opacity: 0.8; }
.btn-shadow :is(a.row, a.tile, a.entry, a.item, a.bill, a.countdown, .social):active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--accent); }

/* Featured links: a solid accent button in every style. */
:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) :is(.row, .tile, .entry, .item, .bill).featured {
  border: var(--btn-bw) solid var(--accent);
  background: var(--btn-feat-bg, var(--accent));
  color: var(--on-accent, #fff);
  box-shadow: var(--btn-feat-shadow, var(--btn-shadow));
}
:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) :is(.row, .tile, .entry, .item, .bill).featured :is(.title, .num, .arrow) { color: inherit; }
:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) :is(.row, .tile, .entry, .item, .bill).featured .sub { color: inherit; opacity: 0.8; }
:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) :is(a.row, a.tile, a.entry, a.item, a.bill).featured:hover {
  background: var(--btn-feat-bg, var(--accent)); color: var(--on-accent, #fff); border-color: var(--accent);
  box-shadow: var(--btn-feat-hover-shadow, var(--btn-hover-shadow)); filter: brightness(1.08);
}
.btn-square :is(a.row, a.tile, a.entry, a.item, a.bill).featured:hover { border-color: var(--fg); }

/* Layout adjustments: divided lists become separate buttons. */
:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) .links { border: 0; }
:is(.layout-stack, .layout-grid):is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) .links { gap: 10px; }
:is(.layout-editorial, .layout-cover, .layout-poster):is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) .links {
  display: flex; flex-direction: column; gap: 10px;
}
.layout-grid:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) .section { border: 0; padding: 14px 4px 0; }
.layout-grid:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) .block:not(.countdown) { border: 0; padding: 2px 0; }
.layout-grid:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) .tile .thumb { border-radius: calc(var(--btn-card-radius) * 0.6); }
.layout-editorial:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) .section { border: 0; padding: 18px 2px 0; }
.layout-editorial:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) .entry { padding: 14px 18px; }
.layout-cover:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) .section { border: 0; padding: 16px 2px 0; }
.layout-cover:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) .item { padding: 10px 18px; }
.layout-poster:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) .bill { padding: 16px 22px 18px; }
:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) :is(.row, .item) .thumb { border-radius: calc(var(--btn-radius) * 0.5); }
.btn-pill :is(.row, .item) .thumb { border-radius: 50%; }
.btn-pill :is(.row, .item, .countdown) { padding-left: 18px; padding-right: 18px; }
.btn-pill .row .thumb { margin-left: -8px; }

/* Social icons, images, video, avatar, gate modal. */
:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) .social-row { gap: 10px; flex-wrap: wrap; margin-left: 0; margin-right: 0; }
:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) .social {
  border: var(--btn-bw) solid var(--btn-border); border-radius: var(--btn-radius);
  background: var(--btn-bg); box-shadow: var(--btn-shadow);
  -webkit-backdrop-filter: var(--btn-blur, none); backdrop-filter: var(--btn-blur, none);
  transition: background-color 140ms, border-color 140ms, color 140ms, box-shadow 140ms, transform 140ms;
}
.btn-shadow .social { box-shadow: 3px 3px 0 var(--accent); }
:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) .social:hover {
  background: var(--btn-hover-bg); color: var(--btn-hover-fg); border-color: var(--btn-hover-border);
  box-shadow: var(--btn-hover-shadow); transform: var(--btn-hover-move);
}
:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) :is(.image img, .video .frame) { border-radius: var(--btn-card-radius); overflow: hidden; }
:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) .avatar { border-radius: var(--avatar-radius, 0); }
:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) .fl-gate { border-radius: var(--btn-card-radius); }
:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) :is(.fl-gate-primary, .fl-gate-secondary) { border-radius: var(--btn-radius); }
:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) .gate-row input[type=email] { border-radius: var(--btn-radius) 0 0 var(--btn-radius); }
:is(.btn-pill, .btn-square, .btn-outline, .btn-shadow, .btn-glass) .gate-row button { border-radius: 0 var(--btn-radius) var(--btn-radius) 0; }
.btn-pill .gate-row input[type=email] { padding-left: 16px; }
.btn-pill .agegate-badge { border-radius: 999px; }
.btn-square .fl-gate { border: 2px solid var(--fg); }
.btn-shadow .fl-gate { border: 2px solid var(--fg); box-shadow: 6px 6px 0 var(--accent); }
.btn-glass .fl-gate::backdrop { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Backgrounds. The page stays on --bg (html) underneath; a fixed layer
   holds the gradient or image plus a scrim in the page's mode so text
   stays readable. Muted text and hairlines turn translucent to suit. */
body:is(.bg-gradient, .bg-image) {
  --line: rgba(17, 19, 24, 0.13);
  --muted: rgba(17, 19, 24, 0.7);
  --scrim-top: rgba(255, 255, 255, 0.5);
  --scrim-bottom: rgba(255, 255, 255, 0.5);
  background: transparent;
}
body.bg-image { --scrim-top: rgba(255, 255, 255, 0.48); --scrim-bottom: rgba(255, 255, 255, 0.74); }
.mode-dark body:is(.bg-gradient, .bg-image) {
  --line: rgba(255, 255, 255, 0.15);
  --muted: rgba(236, 238, 242, 0.72);
  --scrim-top: rgba(13, 14, 17, 0.5);
  --scrim-bottom: rgba(13, 14, 17, 0.5);
}
.mode-dark body.bg-image { --scrim-top: rgba(13, 14, 17, 0.5); --scrim-bottom: rgba(13, 14, 17, 0.76); }
body:is(.bg-gradient, .bg-image)::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0; height: 100lvh; z-index: -1; pointer-events: none;
  background-color: var(--bg);
}
body.bg-gradient::before {
  background-image: linear-gradient(var(--scrim-top), var(--scrim-bottom)), linear-gradient(155deg, var(--accent) 0%, var(--bg2, var(--accent)) 100%);
}
body.bg-image::before {
  background-image: linear-gradient(var(--scrim-top), var(--scrim-bottom)), var(--bg-image);
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
/* Banner: a short rounded strip above the header (Cover uses its own slot). */
.banner {
  aspect-ratio: 3 / 1; max-height: 200px; margin-bottom: 24px; overflow: hidden;
  border-radius: var(--banner-radius, 14px); background: var(--accent);
}
.banner img { width: 100%; height: 100%; object-fit: cover; }
.layout-editorial .banner { margin-bottom: 36px; }
.layout-poster .banner { margin-bottom: 16px; }
.layout-cover .cover-media img.cover-banner { object-position: center; }
.layout-cover .cover-avatar {
  position: relative; width: 84px; height: 84px; margin: -54px 0 12px 16px;
  border: 3px solid var(--bg); background: var(--bg);
}
@media (max-width: 480px) {
  .banner { margin-bottom: 20px; }
  .layout-cover .cover-avatar { width: 76px; height: 76px; margin: -46px 0 10px 0; }
}

/* Privacy page (/privacy) */
.privacy { max-width: 640px; }
.privacy-head { margin-bottom: 28px; }
.privacy-back { display: inline-block; margin-bottom: 24px; color: var(--muted); }
.privacy-back:hover { color: var(--accent); }
.privacy h1 { font-size: 22px; font-weight: var(--w-head, 600); letter-spacing: calc(-0.015em * var(--track, 1)); margin-bottom: 8px; }
.privacy .bio { font-size: 14px; white-space: normal; }
.privacy section { border-top: 1px solid var(--line); padding: 20px 0 6px; }
.privacy h2 {
  margin-bottom: 12px; font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.privacy h3 { font-size: 13px; font-weight: 600; margin: 18px 0 6px; }
.privacy h2 + h3 { margin-top: 0; }
.privacy p, .privacy li { line-height: 1.6; }
.privacy p, .privacy ul { margin: 0 0 10px; }
.privacy ul { padding-left: 18px; }
.privacy li + li { margin-top: 6px; }
.privacy .basis { color: var(--muted); font-size: 12px; }
.privacy p a, .privacy li a {
  text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere;
}
.privacy code { font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.privacy-table { width: 100%; border-collapse: collapse; margin: 4px 0 12px; font-size: 12px; }
.privacy-table th, .privacy-table td {
  padding: 8px 12px 8px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line);
}
.privacy-table th { font-weight: 500; color: var(--muted); white-space: nowrap; }
.privacy-table td:first-child, .privacy-table td:last-child { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
