@font-face { font-family: "Instrument Serif"; src: url(/static/fonts/instrument.woff2) format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/static/fonts/instrument-italic.woff2) format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url(/static/fonts/bricolage.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --ink: #120c0e;
  --ink-2: #1c1317;
  --ink-3: #26191e;
  --line: #3a2830;
  --cream: #f7ecdf;
  --muted: #b9a79d;
  --flame: #ff4d2e;
  --flame-2: #ff8a5c;
  --plum: #7a2a59;
  --blush: #f6b4c3;
  --gold: #f0c66b;
  --ok: #7fd6a0;
  --danger: #ff6b6b;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--ink); color: var(--cream);
  font: 16px/1.55 var(--sans); font-optical-sizing: auto; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Film grain over everything. */
body::after {
  content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 100; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }

/* Slow drifting colour behind the page. */
.glow { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.glow i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .32; }
.glow i:nth-child(1) { background: var(--flame); top: -30vmax; right: -20vmax; animation: drift 26s var(--ease) infinite alternate; }
.glow i:nth-child(2) { background: var(--plum); bottom: -35vmax; left: -25vmax; opacity: .45; animation: drift 32s var(--ease) infinite alternate-reverse; }
.glow i:nth-child(3) { background: var(--blush); top: 40%; left: 55%; width: 30vmax; height: 30vmax; opacity: .1; animation: drift 22s var(--ease) infinite alternate; }
@keyframes drift { to { transform: translate(-8vmax, 6vmax) scale(1.15); } }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--flame-2); }
::selection { background: var(--flame); color: var(--ink); }
main { max-width: 1240px; margin: 0 auto; padding: 24px 20px 40px; min-height: 70vh; }
h1, h2, h3 { font-weight: 400; }
em { font-style: italic; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.display { font-family: var(--serif); font-weight: 400; line-height: .95; letter-spacing: -.02em; margin: 0 0 .3em; font-size: clamp(2.6rem, 6vw, 4.6rem); }
.display em { color: var(--flame); }
.display.small { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--muted); }
.eyebrow { letter-spacing: .01em; font-size: .92rem; font-weight: 500; color: var(--muted); margin: 0 0 1rem; display: flex; align-items: center; gap: .6em; flex-wrap: wrap; }
.star { color: var(--flame); }
.star.gold { color: var(--gold); }

/* Ticker */
.ticker { background: var(--flame); color: var(--ink); overflow: hidden; white-space: nowrap; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; padding: 8px 0; }
.ticker-track { display: inline-flex; gap: 1.6em; padding-right: 1.6em; animation: ticker 40s linear infinite; }
.ticker-track .star { color: var(--ink); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Header */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; background: color-mix(in srgb, var(--ink) 72%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.brand { font-family: var(--serif); font-style: italic; font-size: 2.1rem; line-height: 1; text-decoration: none; letter-spacing: -.02em; }
.brand-star { font-style: normal; font-size: .55em; color: var(--flame); vertical-align: super; margin-left: 2px; display: inline-block; animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand:hover { color: var(--cream); }
.top nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nav-link { color: var(--muted); text-decoration: none; font-size: .95rem; padding: 6px 8px; }
.nav-link:hover { color: var(--cream); }
.me { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; }
.mini-av { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--flame), var(--plum)); color: var(--cream); font-size: .75rem; font-weight: 700; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; background: var(--flame); color: var(--ink); border: 0; border-radius: 999px; padding: 11px 22px; font: 600 1rem var(--sans); cursor: pointer; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; box-shadow: 0 0 0 0 transparent; }
.btn:hover { color: var(--ink); background: var(--flame-2); transform: translateY(-2px); box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--flame) 70%, transparent); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 7px 15px; font-size: .9rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-xl { padding: 18px 34px; font-size: 1.15rem; }
.btn.wide { width: 100%; }
.btn-ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--ink-3); color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--flame); }
.btn-danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px var(--danger); }
.btn-danger:hover { background: var(--danger); color: var(--ink); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.link { background: none; border: 0; font: inherit; cursor: pointer; padding: 0; color: var(--muted); }
.link.danger { color: var(--danger); }
form.inline { display: inline; }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 6px; }

/* Notices */
.flash, .notice { background: var(--ink-2); border: 1px solid var(--line); border-left: 4px solid var(--flame); padding: 14px 18px; border-radius: 12px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.error { background: color-mix(in srgb, var(--danger) 14%, var(--ink)); border: 1px solid color-mix(in srgb, var(--danger) 50%, transparent); padding: 12px 16px; border-radius: 12px; }

/* Gate, 404, blocked */
.gate { max-width: 720px; margin: 10vh auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gate .display { font-size: clamp(3.6rem, 12vw, 8rem); }
.gate-copy { color: var(--muted); font-size: 1.15rem; max-width: 34em; margin: 0 0 24px; }
.gate .eyebrow { justify-content: center; }
.leave { color: var(--muted); font-size: .9rem; margin-top: 14px; }
.gating .top nav { display: none; }

/* Hero */
.hero { padding: 7vh 0 9vh; max-width: 980px; }
.hero-title { font-size: clamp(3.4rem, 10.5vw, 8.6rem); line-height: .9; margin-bottom: .35em; }
.hero-title em { color: var(--cream); }
.hero-title em.flame { color: var(--flame); background: linear-gradient(100deg, var(--flame), var(--flame-2) 40%, var(--blush) 60%, var(--flame)); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s ease-in-out infinite; padding-right: .08em; }
@keyframes sheen { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
.hero-lede { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--muted); max-width: 36em; margin: 0 0 34px; }
.hero-lede::first-line { color: var(--cream); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 0 0 var(--flame); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.pillars { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillars li { background: var(--ink-2); padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.pillars b { font-family: var(--serif); font-weight: 400; font-size: 3.2rem; line-height: 1; color: var(--flame); }
.pillars span { color: var(--muted); }

/* Feed */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 8px 0 22px; }
.section-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; margin: 0 0 22px; letter-spacing: -.01em; }
.section-head .section-title { margin: 0; }
.section-title em { color: var(--flame); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; grid-auto-flow: dense; }
.card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--cream); background: var(--ink-2); isolation: isolate; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.card:hover { color: var(--cream); transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 30px 60px -25px #000, 0 0 0 1px color-mix(in srgb, var(--flame) 50%, transparent); }
.card.feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 520px; }
.shot img, .no-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease), filter .8s var(--ease); }
.no-poster { background: linear-gradient(135deg, var(--plum), var(--ink)); }
.shot:hover img { transform: scale(1.06); filter: saturate(1.15); }
.shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--ink) 92%, transparent)); }
.kind { position: absolute; top: 14px; left: 14px; background: color-mix(in srgb, var(--ink) 70%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--cream) 18%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 1.3rem; padding-left: 4px; transition: transform .4s var(--ease), background .4s; }
.shot:hover .play { transform: translate(-50%, -60%) scale(1.12); background: var(--flame); color: var(--ink); }
.card-foot { padding: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.shot-title { font-family: var(--serif); font-size: 1.7rem; line-height: 1.05; }
.feature .shot-title { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 500; color: inherit; text-decoration: none; }
.chip.big { font-size: 1rem; padding: 5px 14px 5px 5px; border: 1px solid var(--line); border-radius: 999px; }
.chip.big .mini-av { width: 30px; height: 30px; }

/* Text posts as typographic covers */
.story { justify-content: flex-start; padding: 20px; gap: 6px; }
.story .kind { position: static; align-self: flex-start; margin-bottom: 4px; }
.story .quote { font-family: var(--serif); font-size: 6rem; line-height: .6; height: .45em; opacity: .9; }
.story-title { font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.story-text { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; flex: 1; }
.feature.story .story-title { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.feature.story .story-text { font-size: 1.6rem; -webkit-line-clamp: 9; }
.story .card-foot { padding: 0; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }
.read { font-weight: 600; font-size: .9rem; }
.tone-0 { background: var(--flame); color: var(--ink); }
.tone-0:hover, .tone-2:hover { color: var(--ink); }
.tone-0 .kind, .tone-2 .kind { background: color-mix(in srgb, var(--ink) 14%, transparent); color: var(--ink); }
.tone-0 .mini-av, .tone-2 .mini-av { background: var(--ink); }
.tone-1 { background: linear-gradient(160deg, var(--plum), #3b1230); }
.tone-2 { background: var(--cream); color: var(--ink); }
.tone-2 .quote { color: var(--flame); }
.tone-3 { background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.tone-3 .quote, .tone-1 .quote { color: var(--flame); }
.empty { padding: 60px 0; text-align: center; }
.more { text-align: center; margin: 36px 0; }

/* Creator page */
.profile { position: relative; margin: 0 0 34px; border-radius: 28px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); }
.cover { height: 190px; background: radial-gradient(circle at 20% 30%, var(--flame), transparent 55%), radial-gradient(circle at 80% 70%, var(--plum), transparent 60%), linear-gradient(120deg, #3b1230, var(--ink)); background-size: 140% 140%; animation: cover 18s ease-in-out infinite alternate; }
@keyframes cover { to { background-position: 100% 100%; } }
.profile-body { display: flex; gap: 24px; align-items: flex-start; padding: 0 28px 26px; margin-top: -64px; flex-wrap: wrap; }
.avatar { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; flex: none; border: 5px solid var(--ink-2); background: var(--ink-3); }
.avatar.ph { display: grid; place-items: center; font-family: var(--serif); font-size: 4rem; background: linear-gradient(135deg, var(--flame), var(--plum)); }
.founding .avatar { border-color: transparent; background-origin: border-box; box-shadow: 0 0 0 4px var(--ink-2), 0 0 0 7px var(--gold), 0 0 40px -6px var(--gold); }
.profile-text { flex: 1; min-width: 240px; padding-top: 78px; }
.profile-name { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 0 0 6px; }
.profile-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1px solid var(--line); }
.pill.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.gold-pill { color: var(--ink); border: 0; background: linear-gradient(110deg, #c9973f, var(--gold) 35%, #fff2c9 50%, var(--gold) 65%, #c9973f); background-size: 250% 100%; animation: sheen 4s ease-in-out infinite; }
.bio { white-space: pre-line; margin: 14px 0 0; max-width: 46em; font-size: 1.05rem; }
.owner-actions { margin: 16px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }

/* Post page */
.post { max-width: 880px; margin: 0 auto; }
.post-head { margin: 20px 0 28px; }
.post-title { font-size: clamp(2.8rem, 8vw, 6rem); }
.stage { border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 40px 80px -40px #000; }
.stage { max-height: 82vh; margin-inline: auto; }
.stage video { width: 100%; height: 100%; max-height: 82vh; object-fit: contain; display: block; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery.single { grid-template-columns: 1fr; }
.gallery img { width: 100%; height: 100%; max-height: 88vh; object-fit: cover; border-radius: 14px; display: block; background: var(--ink-2); }
.gallery.single img { object-fit: contain; }
.gallery img:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.body { margin-top: 26px; font-size: 1.12rem; max-width: 40em; }
.prose { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.6rem); line-height: 1.5; max-width: 34em; }
.prose p:first-child { overflow: hidden; }
.prose p:first-child::first-letter { float: left; font-size: 4.6em; line-height: .78; padding: .06em .1em 0 0; color: var(--flame); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.tags a { text-decoration: none; color: var(--flame-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 13px; font-size: .9rem; transition: background .2s, color .2s; }
.tags a:hover { background: var(--flame); color: var(--ink); border-color: var(--flame); }
.actions { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 18px; align-items: center; font-size: .95rem; flex-wrap: wrap; }
.actions .spacer { flex: 1; }
.actions .quiet { color: var(--muted); }

/* Forms */
.panel-wrap { max-width: 560px; margin: 4vh auto; }
.panel-wrap.wide { max-width: 760px; }
.panel-wrap.split { max-width: 1080px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: start; }
.panel { background: color-mix(in srgb, var(--ink-2) 88%, transparent); border: 1px solid var(--line); border-radius: 28px; padding: 34px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.form-title { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.lede { color: var(--muted); font-size: 1.05rem; }
.pitch { padding: 30px 10px 0 0; }
.pitch .display { font-size: clamp(3rem, 6vw, 5rem); }
.perks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.perks li { padding-left: 28px; position: relative; color: var(--muted); font-size: 1.05rem; }
.perks li::before { content: "✦"; position: absolute; left: 0; color: var(--flame); }
.perks b { color: var(--cream); font-weight: 600; }
.panel label { display: block; margin: 16px 0; }
.panel label > span { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.panel small { display: block; color: var(--muted); margin-top: 6px; font-size: .84rem; }
input, textarea, select { width: 100%; background: var(--ink); color: var(--cream); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; transition: border-color .2s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 60%, transparent); }
input:focus, textarea:focus { outline: none; border-color: var(--flame); box-shadow: 0 0 0 4px color-mix(in srgb, var(--flame) 22%, transparent); }
input[type=date] { color-scheme: dark; }
input[type=file] { padding: 10px; border-style: dashed; cursor: pointer; }
input[type=file]::file-selector-button { background: var(--ink-3); color: var(--cream); border: 0; border-radius: 999px; padding: 7px 14px; margin-right: 12px; font: 600 .85rem var(--sans); cursor: pointer; }
.affix { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--ink); }
.affix:focus-within { border-color: var(--flame); box-shadow: 0 0 0 4px color-mix(in srgb, var(--flame) 22%, transparent); }
.affix span { padding: 12px 0 12px 14px; color: var(--muted); white-space: nowrap; font-weight: 400 !important; margin: 0 !important; }
.affix input { border: 0; box-shadow: none !important; padding-left: 2px; }
.panel label.check { display: flex; gap: 12px; align-items: flex-start; }
.panel label.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--flame); }
.panel label.check span { font-weight: 400; margin: 0; font-size: 1rem; }
.attest { background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 8px 16px; margin: 16px 0; }
legend { padding: 0 6px; color: var(--muted); font-size: .9rem; }
fieldset.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border: 0; padding: 0; }
.kind-opt { margin: 0 !important; cursor: pointer; position: relative; }
.kind-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.kind-opt span { display: flex !important; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px; border: 1.5px solid var(--line); border-radius: 16px; font-weight: 600; margin: 0 !important; transition: all .25s var(--ease); }
.kind-opt i { font-style: normal; font-size: 1.6rem; color: var(--muted); }
.kind-opt input:checked + span { border-color: var(--flame); background: color-mix(in srgb, var(--flame) 12%, transparent); }
.kind-opt input:checked + span i { color: var(--flame); }
.kind-opt input:focus-visible + span { outline: 2px solid var(--flame); outline-offset: 2px; }
.others { border-left: 2px solid var(--flame); padding-left: 16px; }
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 8px 0 18px; counter-reset: s; }
.steps li { counter-increment: s; flex: 1; font-size: .8rem; font-weight: 600; color: var(--muted); border-top: 3px solid var(--line); padding-top: 8px; }
.steps li::before { content: counter(s) " · "; }
.steps li.on { color: var(--cream); border-color: var(--flame); }
.founder-card { padding: 14px 18px; border-radius: 14px; background: linear-gradient(110deg, color-mix(in srgb, var(--gold) 18%, var(--ink)), var(--ink-2)); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.danger-zone { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 16px; }
.danger-zone summary { cursor: pointer; color: var(--danger); font-weight: 600; }
.reasons label { margin: 10px 0 !important; }

/* Admin */
.count-pill { font-family: var(--sans); font-size: .9rem; vertical-align: middle; background: var(--flame); color: var(--ink); border-radius: 999px; padding: 2px 10px; }
.queue { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 12px 0; }
.queue.urgent { border-color: var(--danger); box-shadow: inset 4px 0 0 var(--danger); }
.queue .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.queue .row input { flex: 1 1 220px; width: auto; }
.docs a { color: var(--flame-2); }

/* Legal */
.legal { max-width: 720px; margin: 0 auto; font-size: 1.05rem; }
.legal h1 { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; }
.legal h2 { font-family: var(--serif); font-size: 1.8rem; margin: 1.6em 0 .3em; }
.legal li { margin: .4em 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 60px; padding: 50px 20px 40px; text-align: center; color: var(--muted); }
.sign-off { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; color: var(--cream); margin: 0 0 26px; }
.sign-off em { color: var(--flame); }
.foot nav { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--cream); }
.fine { font-size: .82rem; margin: 0; }

[hidden] { display: none !important; }


/* ===== Icons and header controls ===== */
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; text-decoration: none; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--ink-3); color: var(--cream); }
.icon-btn[aria-pressed="true"] { color: var(--flame); background: color-mix(in srgb, var(--flame) 14%, transparent); }
.search-btn { width: auto; padding: 0 12px 0 10px; display: inline-flex; gap: 8px; border: 1px solid var(--line); border-radius: 999px; }
kbd { font: 600 .72rem var(--sans); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.dot { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--flame); color: var(--ink); font-size: .68rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--ink); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 4px; border-radius: 50%; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .mini-av { width: 32px; height: 32px; font-size: .9rem; }
.menu[open] summary .mini-av { box-shadow: 0 0 0 2px var(--flame); }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: 0 24px 60px -20px #000; display: flex; flex-direction: column; transform-origin: top right; animation: pop .18s var(--ease); z-index: 60; }
.menu-list a, .menu-list button { display: flex; flex-direction: column; text-align: left; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--cream); background: none; border: 0; font: inherit; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--ink-3); color: var(--cream); }
.menu-list small { color: var(--muted); }
.menu-list form { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(-4px); } }

/* ===== Feed controls ===== */
.tabs { display: inline-flex; padding: 4px; gap: 2px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; }
.tabs a { padding: 7px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .2s, background .2s; }
.tabs a:hover { color: var(--cream); }
.tabs a[aria-current="page"] { background: var(--cream); color: var(--ink); }
.tag-rail { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-rail a { text-decoration: none; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .88rem; transition: all .2s; }
.tag-rail a:hover { color: var(--ink); background: var(--flame-2); border-color: var(--flame-2); }
.tag-rail small { color: inherit; opacity: .7; }
.card.shot { background: var(--c, var(--ink-2)); }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.card-stats { display: inline-flex; gap: 10px; font-size: .8rem; font-weight: 600; opacity: .9; }
.card-stats span { display: inline-flex; align-items: center; gap: 4px; }
.card-stats .ico { width: 15px; height: 15px; }
.story .card-foot { gap: 10px; }
.preview-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0; transition: opacity .35s; }
.preview-video.on { opacity: 1; }
.preview-video.on ~ .play { opacity: 0; }
.play .ico { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.kind .ico { width: 12px; height: 12px; fill: currentColor; stroke: none; }
[data-more].loading { opacity: .5; pointer-events: none; }

/* ===== Post actions ===== */
.action-bar { display: flex; gap: 8px; margin: 18px 0 0; flex-wrap: wrap; }
.act { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-2); color: var(--cream); font: 600 .95rem var(--sans); cursor: pointer; text-decoration: none; position: relative; transition: border-color .2s, background .2s, transform .15s; }
.act:hover { border-color: var(--flame); color: var(--cream); }
.act:active { transform: scale(.94); }
.act.like[aria-pressed="true"] { color: var(--flame); border-color: color-mix(in srgb, var(--flame) 60%, transparent); }
.act.like[aria-pressed="true"] .ico { fill: var(--flame); stroke: var(--flame); animation: thump .45s var(--ease); }
.act.save[aria-pressed="true"] .ico { fill: var(--gold); stroke: var(--gold); }
.act.save[aria-pressed="true"] { color: var(--gold); }
@keyframes thump { 40% { transform: scale(1.35); } }
[aria-pressed="true"] .when-off, [aria-pressed="false"] .when-on { display: none; }
.follow-btn[aria-pressed="true"] { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line); }
.follow-btn[aria-pressed="true"]:hover { box-shadow: inset 0 0 0 1.5px var(--danger); color: var(--danger); }
.follow-btn[aria-pressed="true"]:hover .when-on::after { content: " (unfollow)"; }
.burst { position: absolute; left: 22px; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; pointer-events: none; box-shadow: 0 -22px 0 -2px var(--flame), 19px -11px 0 -2px var(--flame-2), 19px 11px 0 -2px var(--blush), 0 22px 0 -2px var(--flame), -19px 11px 0 -2px var(--flame-2), -19px -11px 0 -2px var(--blush); animation: burst .6s var(--ease) forwards; }
@keyframes burst { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
[data-dbl-like] { position: relative; }
.big-heart { position: absolute; width: 120px; height: 120px; margin: -60px 0 0 -60px; pointer-events: none; z-index: 5; background: var(--flame); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.3-9.4C1.4 7.6 3.7 4 7.3 4c2 0 3.6 1.1 4.7 2.8C13.1 5.1 14.7 4 16.7 4c3.6 0 5.9 3.6 4.6 7.1-1.8 4.8-9.3 9.4-9.3 9.4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.3-9.4C1.4 7.6 3.7 4 7.3 4c2 0 3.6 1.1 4.7 2.8C13.1 5.1 14.7 4 16.7 4c3.6 0 5.9 3.6 4.6 7.1-1.8 4.8-9.3 9.4-9.3 9.4z'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 8px 30px color-mix(in srgb, var(--flame) 70%, transparent)); animation: big-heart .85s var(--ease) forwards; }
@keyframes big-heart { 0% { transform: scale(0) rotate(-15deg); opacity: 0; } 25% { transform: scale(1.15) rotate(5deg); opacity: 1; } 45% { transform: scale(.95); } 70% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.2) translateY(-40px); opacity: 0; } }
.stage { background: var(--c, #000); }
.frame { display: block; padding: 0; border: 0; background: var(--c, var(--ink-2)); border-radius: 14px; overflow: hidden; cursor: zoom-in; }
.frame img { border-radius: 0; height: auto; }
.gallery .frame:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.gallery:not(.single) .frame img { aspect-ratio: 4 / 5; height: 100%; }
.more-from { margin-top: 60px; }

/* ===== Comments ===== */
.comments { margin-top: 44px; max-width: 680px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 4px; }
.comment { display: flex; gap: 12px; padding: 12px; border-radius: 14px; transition: background .4s, opacity .3s, transform .3s; }
.comment .mini-av { width: 34px; height: 34px; font-size: .9rem; text-decoration: none; }
.comment.fresh { background: color-mix(in srgb, var(--flame) 12%, transparent); animation: rise .4s var(--ease); }
.comment.gone { opacity: 0; transform: translateX(-12px); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.comment-head { margin: 0; font-size: .92rem; }
.comment-head a { font-weight: 600; text-decoration: none; }
.comment-head time { color: var(--muted); margin-left: 6px; font-size: .85rem; }
.comment-body { margin: 2px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.comment .quiet { font-size: .82rem; }
.comment-form { display: flex; gap: 10px; align-items: flex-end; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--ink-2); }
.comment-form .mini-av { width: 34px; height: 34px; margin-bottom: 4px; }
.comment-form textarea { border: 0; background: transparent; resize: none; padding: 8px 4px; min-height: 40px; }
.comment-form textarea:focus { box-shadow: none; }

/* ===== Reading progress (scroll-driven, no JS) ===== */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--flame), var(--blush)); transform-origin: 0 50%; transform: scaleX(0); z-index: 80; }
@supports (animation-timeline: scroll()) {
  .read-progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* ===== Page transitions ===== */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
::view-transition-group(*) { animation-duration: .42s; animation-timing-function: var(--ease); }

/* ===== Lightbox ===== */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--cream); overflow: hidden; }
.lightbox::backdrop { background: rgba(8, 5, 6, .94); backdrop-filter: blur(10px); }
.lightbox[open] { display: grid; place-items: center; animation: fade .2s; }
.lightbox img { max-width: 94vw; max-height: 88dvh; object-fit: contain; border-radius: 10px; user-select: none; -webkit-user-drag: none; touch-action: pan-y; }
.lightbox img.in-right { animation: in-right .3s var(--ease); }
.lightbox img.in-left { animation: in-left .3s var(--ease); }
@keyframes in-right { from { opacity: 0; transform: translateX(40px); } }
@keyframes in-left { from { opacity: 0; transform: translateX(-40px); } }
@keyframes fade { from { opacity: 0; } }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--cream) 12%, transparent); color: var(--cream); font-size: 1.8rem; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); }
.lightbox button:hover { background: var(--flame); color: var(--ink); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--muted); margin: 0; }

/* ===== Discreet mode ===== */
.discreet .shot img, .discreet .preview-video, .discreet .frame img, .discreet .stage video, .discreet .avatar, .discreet .creator-chip img { filter: blur(26px) saturate(.5); transition: filter .35s; }
.discreet .shot img { transform: scale(1.15); }
.discreet .stage, .discreet .frame { position: relative; overflow: hidden; }
.discreet .stage:not(.revealed)::after, .discreet .frame:not(.revealed)::after { content: "Tap to reveal"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; color: var(--cream); background: color-mix(in srgb, var(--ink) 30%, transparent); cursor: pointer; }
.discreet .revealed img, .discreet .revealed video { filter: none; }

/* ===== Command palette ===== */
.palette { width: min(640px, calc(100vw - 32px)); margin: 12vh auto auto; padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--ink-2); color: var(--cream); box-shadow: 0 40px 100px -30px #000; overflow: hidden; }
.palette::backdrop { background: rgba(8, 5, 6, .6); backdrop-filter: blur(6px); }
.palette[open] { animation: pop .18s var(--ease); }
.palette-box { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.palette-box input { border: 0; background: transparent; font-size: 1.15rem; padding: 6px 0; }
.palette-box input:focus { box-shadow: none; }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.palette li a { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--cream); }
.palette li[aria-selected="true"] a, .palette li a:hover { background: var(--ink-3); box-shadow: inset 3px 0 0 var(--flame); }
.palette li b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette li small { color: var(--muted); }
.palette .hash { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: var(--flame); font-family: var(--serif); font-size: 1.2rem; }
.palette .mini-av { width: 32px; height: 32px; }
.palette .none { padding: 14px; color: var(--muted); }
.palette-hint { margin: 0; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

/* ===== Uploads ===== */
.drop { position: relative; border: 2px dashed var(--line); border-radius: 18px; padding: 34px 18px; text-align: center; transition: border-color .2s, background .2s; background: var(--ink); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-hint { color: var(--muted); font-weight: 400 !important; margin: 0 !important; display: block !important; pointer-events: none; }
.drop-hint b { color: var(--cream); }
.drop.over { border-color: var(--flame); background: color-mix(in srgb, var(--flame) 10%, var(--ink)); }
.drop.has-files { padding: 16px; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.previews:empty { display: none; }
.previews figure { margin: 0; position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--ink-3); animation: rise .3s var(--ease); }
.previews img, .previews video { width: 100%; height: 100%; object-fit: cover; display: block; }
.previews figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 4px 6px; font-size: .72rem; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.upload-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 14px; background: rgba(12, 8, 10, .9); backdrop-filter: blur(10px); animation: fade .2s; }
.upload-overlay p { color: var(--muted); margin: 0; }
.ring { position: relative; width: 160px; height: 160px; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--line); stroke-width: 8; }
.ring .bar { stroke: var(--flame); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset .2s; }
.ring b { font-family: var(--serif); font-weight: 400; font-size: 2.6rem; }
.kinds.two { grid-template-columns: 1fr 1fr; }
.kinds.two .kind-opt span { align-items: flex-start; text-align: left; padding: 14px 16px; }
.kinds.two small { color: var(--muted); margin: 0; font-weight: 400; }

/* ===== Toasts ===== */
.toasts { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 300; pointer-events: none; }
.toast { background: var(--cream); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 600; box-shadow: 0 12px 40px -10px #000; animation: toast-in .3s var(--ease); transition: opacity .4s, transform .4s; }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }

/* ===== Search, activity, saved ===== */
.search-big { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--line); padding: 8px 0; margin: 10px 0 30px; }
.search-big:focus-within { border-color: var(--flame); }
.search-big .ico { width: 30px; height: 30px; color: var(--muted); }
.search-big input { border: 0; background: transparent; font: 400 clamp(2rem, 5vw, 3.2rem) var(--serif); padding: 0; }
.search-big input:focus { box-shadow: none; }
.creator-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.creator-chip { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--ink-2); }
.creator-chip img, .creator-chip .mini-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; font-size: 1.1rem; }
.creator-chip span { display: flex; flex-direction: column; }
.creator-chip small { color: var(--muted); }
.activity { list-style: none; padding: 0; margin: 0; max-width: 720px; }
.activity a { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; text-decoration: none; color: var(--cream); }
.activity a:hover { background: var(--ink-2); color: var(--cream); }
.activity .unread a { background: color-mix(in srgb, var(--flame) 9%, transparent); }
.activity .mini-av { width: 40px; height: 40px; font-size: 1rem; }
.activity .kind-like { background: var(--flame); color: var(--ink); }
.activity .kind-follow { background: var(--gold); color: var(--ink); }
.activity time { color: var(--muted); font-size: .85rem; }
.activity q { color: var(--muted); }
.profile-stats { display: flex; gap: 22px; margin: 14px 0 0; color: var(--muted); flex-wrap: wrap; }
.profile-stats b { color: var(--cream); font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-right: 4px; }

/* ===== Demo personas ===== */
.demo { max-width: 980px; margin: 0 auto; }
.persona-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 24px; }
.persona { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; padding: 18px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; }
.persona .mini-av { width: 48px; height: 48px; font-size: 1.3rem; }
.persona-text { display: flex; flex-direction: column; gap: 2px; }
.persona-text small { color: var(--muted); }
.persona-bio { margin-top: 6px; }
.persona .btn { grid-column: 1 / -1; }

/* ===== Stats dashboard ===== */
.dash { max-width: 920px; margin: 0 auto; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 10px 0 30px; }
.tiles div { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.tiles dt { color: var(--muted); font-size: .9rem; }
.tiles dd { margin: 4px 0 0; font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.chart { margin: 0 0 30px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 10px; }
.chart figcaption { font-weight: 600; margin-bottom: 8px; }
.chart-box { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .bar path { fill: var(--flame); transition: fill .15s; }
.chart .bar .hit { fill: transparent; }
.chart .bar:hover path, .chart .bar:focus path { fill: var(--flame-2); }
.chart .bar:focus { outline: none; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.chart .baseline { stroke: var(--muted); stroke-width: 1; opacity: .5; }
.chart .axis { fill: var(--muted); font: 11px var(--sans); }
.chart-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: var(--cream); color: var(--ink); font-size: .82rem; font-weight: 600; padding: 5px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; }
.chart-table summary { cursor: pointer; color: var(--muted); font-size: .88rem; margin-top: 6px; }
.chart-table table, .top-posts { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.chart-table td, .chart-table th, .top-posts td, .top-posts th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.top-posts th { color: var(--muted); font-weight: 500; font-size: .88rem; }
.top-posts td:not(:first-child), .top-posts th:not(:first-child) { text-align: right; width: 90px; }
.top-posts td small { display: block; color: var(--muted); font-size: .8rem; }
.exit-btn:hover { color: var(--danger); }


/* ===== Processing ===== */
.notice.processing { justify-content: flex-start; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--flame); animation: spin .8s linear infinite; flex: none; }

/* ===== Public landing pages ===== */
.landing { max-width: 900px; margin: 0 auto; }
.landing .display { font-size: clamp(3rem, 8vw, 6rem); }
.landing-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 48px; }
.landing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 24px 0 40px; }
.landing-grid > div { background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.landing-grid h2 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; margin: 0 0 8px; }
.landing-grid p { margin: 0; color: var(--muted); }
.steps-list { counter-reset: step; list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.steps-list li { counter-increment: step; position: relative; padding: 16px 18px 16px 64px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; color: var(--muted); }
.steps-list li::before { content: counter(step); position: absolute; left: 18px; top: 14px; font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--flame); }
.steps-list b { color: var(--cream); }
.compare-wrap { overflow-x: auto; margin: 24px 0 8px; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; }
.compare thead th:nth-child(2), .compare td:nth-child(2) { background: color-mix(in srgb, var(--flame) 9%, transparent); }
.compare tbody th { color: var(--muted); font-weight: 500; }
.faq { margin: 40px 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq details p { color: var(--muted); margin: 10px 0 0; max-width: 60ch; }
.gate-about { margin-top: 26px; font-size: .9rem; color: var(--muted); }

/* ===== Marked copies and tracing ===== */
.preparing { display: flex; gap: 14px; align-items: center; padding: 40px 28px; border-radius: var(--radius); background: color-mix(in srgb, var(--gold) 8%, var(--ink-2)); border: 1px dashed color-mix(in srgb, var(--gold) 45%, var(--line)); }
.preparing p { margin: 0; color: var(--muted); }
.preparing b { color: var(--cream); }
.marked-note { color: var(--muted); font-size: .88rem; border-left: 3px solid var(--gold); padding: 6px 12px; margin: 0 0 16px; }
.trace-page { max-width: 760px; margin: 0 auto; }
.trace-page .eyebrow a { color: var(--muted); }
.trace-verdict { font-family: var(--serif); font-size: 1.8rem; margin: 4px 0; }
.trace-verdict.named { color: var(--flame); }
.trace-verdict.lead { color: var(--gold); }
.trace-status { display: flex; gap: 10px; align-items: center; color: var(--muted); }

/* ===== Paid access ===== */
.lock-badge { background: color-mix(in srgb, var(--gold) 88%, transparent); color: var(--ink); }
.lock-badge.open { background: color-mix(in srgb, var(--ok) 85%, transparent); }
.lock-badge .ico, .lock-inline .ico, .support-note .ico, .gold-pill .ico, .lock-check .ico { width: 14px; height: 14px; fill: none; stroke: currentColor; }
.story .lock-badge { position: static; align-self: flex-start; }
.card.locked .shot-title::after { content: ""; }
.lock-inline { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); font-weight: 600; }
.support-btn { background: var(--gold); }
.support-btn:hover { background: #ffd98a; }
.support-note { display: flex; align-items: center; gap: 6px; color: var(--gold); margin: 10px 0 0; }
.teaser { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--c, var(--ink-2)); max-height: 70vh; }
.teaser img { width: 100%; height: 100%; max-height: 70vh; object-fit: cover; display: block; transform: scale(1.04); }
.teaser::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--ink) 75%, transparent)); }
.body.cut { position: relative; max-height: 16em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.unlock { position: relative; margin: -60px auto 0; max-width: 560px; padding: 34px 30px 26px; text-align: center; background: color-mix(in srgb, var(--ink-2) 92%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); border-radius: 28px; box-shadow: 0 30px 80px -30px #000, 0 0 60px -20px color-mix(in srgb, var(--gold) 40%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2; }
.post.kind-text .unlock { margin-top: 56px; }
.unlock-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); margin-top: -62px; box-shadow: 0 0 0 6px var(--ink-2); }
.unlock-ico .ico { width: 26px; height: 26px; stroke-width: 2; }
.unlock-title { font-size: clamp(2rem, 5vw, 2.8rem); margin: 6px 0 0; }
.unlock-title em { color: var(--gold); }
.unlock-copy { color: var(--muted); margin: 0 0 8px; max-width: 30em; }
.unlock .redeem { width: 100%; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.redeem-label { margin: 0 0 8px; color: var(--muted); font-size: .92rem; }
.redeem-form { display: flex; gap: 8px; }
.redeem-form input { text-transform: uppercase; letter-spacing: .12em; text-align: center; font-weight: 600; }
.unlock .fine { color: var(--muted); font-size: .8rem; margin: 6px 0 0; }
.unlocked-flash { border-left-color: var(--ok); }
.lock-check { background: color-mix(in srgb, var(--gold) 8%, var(--ink)); border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line)); border-radius: 12px; padding: 12px 14px; }
.lock-check b { color: var(--gold); }
.support-fields { margin-top: 22px; }
.supporters-page { max-width: 980px; margin: 0 auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 34px; }
.panel.tool { padding: 24px; }
.panel.tool .section-title { font-size: 1.8rem; margin-bottom: 6px; }
.panel.tool label { display: block; margin: 12px 0; }
.panel.tool label > span { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.code-reveal { background: color-mix(in srgb, var(--gold) 10%, var(--ink-2)); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 20px; padding: 22px 24px; margin: 20px 0; animation: rise .4s var(--ease); }
.code-reveal .section-title { font-size: 1.8rem; margin-bottom: 6px; }
.codes { font: 600 1rem/1.7 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; background: var(--ink); }
.supporters-table td small { display: block; color: var(--muted); font-size: .8rem; }
.supporters-table td:not(:first-child), .supporters-table th:not(:first-child) { text-align: left; width: auto; }
.supporters-table tr.expired td { color: var(--muted); }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } .unlock { padding: 30px 18px 20px; } .redeem-form { flex-direction: column; } }

@media (max-width: 860px) {
  .panel-wrap.split { grid-template-columns: 1fr; }
  .pitch { padding: 0; }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  main { padding: 16px 16px 32px; }
  .top { padding: 10px 16px; }
  .brand { font-size: 1.8rem; }
  .search-btn kbd, .new-btn, .exit-btn { display: none; }
  .search-btn { width: 40px; padding: 0; border: 0; justify-content: center; }
  .tabs a { padding: 7px 12px; }
  .action-bar .act span:not([data-count]) { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card.feature { min-height: 420px; }
  .shot-title { font-size: 1.25rem; }
  .story { padding: 14px; }
  .story-title { font-size: 1.4rem; }
  .story-text { font-size: 1rem; -webkit-line-clamp: 5; }
  .story .quote { font-size: 4rem; }
  .card-foot { padding: 12px; }
  .chip { font-size: .78rem; }
  .panel { padding: 22px; border-radius: 22px; }
  .profile-body { padding: 0 18px 20px; }
  .avatar { width: 104px; height: 104px; }
  .profile-text { padding-top: 0; }
  .gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
