/* elevator.blog: black, monochrome, one typeface. Motion does the talking. */
:root {
  --ink: #000;
  --bone: #f4f4f2;
  --dim: #8d8d8b;
  --faint: #565655;
  --rule: #1b1b1b;
  --rule-2: #2c2c2c;
  --raise: #0b0b0b;
  --lamp: #ffffff;
  --lamp-glow: rgba(255, 255, 255, .18);
  --display: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--display);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --out: var(--ease);
  --lift: cubic-bezier(.76, 0, .24, 1);
  --gut: clamp(20px, 4vw, 64px);
  --wide: 1440px;
  --r: 10px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--bone); font: 400 16px/1.6 var(--display); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -.04em; line-height: 1; margin: 0; }
p { margin: 0; }
::selection { background: var(--bone); color: #000; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bone); color: #000; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* reading progress */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--bone); transform: scaleX(var(--p, 0)); transform-origin: left; }
body:not(.reading) .progress { display: none; }

/* header */
.top { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gut); transition: transform .6s var(--ease), background .4s, padding .4s var(--ease); }
.top.solid { background: rgba(0, 0, 0, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px); padding-block: 14px; }
.top.away { transform: translateY(-100%); }
main { padding-top: 76px; }
.logo { display: inline-flex; align-items: baseline; font-weight: 600; font-size: 1.18rem; letter-spacing: -.045em; line-height: 1; }
.logo-dot { display: inline-block; width: .2em; height: .2em; margin: 0 .07em; background: currentColor; border-radius: 1px; transition: transform .7s var(--lift); }
.logo:hover .logo-dot, .logo:focus-visible .logo-dot { transform: translateY(-.5em); }
.js .logo-dot { animation: dotIn 1.4s var(--lift) .3s both; }
@keyframes dotIn { 0% { transform: translateY(.9em); opacity: 0; } 55% { transform: translateY(-.55em); opacity: 1; } 100% { transform: none; } }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 34px); font-size: .9rem; }
.nav a { display: inline-flex; align-items: center; line-height: 1; color: var(--dim); transition: color .3s; }
.nav a:hover { color: var(--bone); }
.nav .nav-pill { display: inline-flex; align-items: center; height: 38px; line-height: 1; color: var(--bone); border: 1px solid var(--rule-2); border-radius: 999px; padding: 0 17px; transition: border-color .3s, background .3s, color .3s; }
.nav .nav-pill:hover { background: var(--bone); color: #000; border-color: var(--bone); }
@media (max-width: 560px) { .nav a:first-child { display: none; } }

/* text roll: the label slides up and an identical copy follows */
[data-roll] { display: inline-block; position: relative; overflow: hidden; vertical-align: top; line-height: 1.2; }
[data-roll] > b { display: inline-block; font-weight: inherit; transition: transform .55s var(--lift); }
[data-roll]::after { content: attr(data-label); position: absolute; left: 0; top: 100%; transition: transform .55s var(--lift); }
a:hover > [data-roll] > b, button:hover > [data-roll] > b, a:focus-visible > [data-roll] > b,
a:hover > [data-roll]::after, button:hover > [data-roll]::after, a:focus-visible > [data-roll]::after { transform: translateY(-100%); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--bone); color: #000; border: 1px solid var(--bone); font-weight: 500; font-size: .95rem; cursor: pointer; transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s; }
.btn:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--rule-2); }
.btn-ghost:hover { border-color: var(--bone); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .88rem; }

/* meta */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: .85rem; color: var(--dim); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: .5px 9px 0; line-height: 1; border: 1px solid var(--rule-2); border-radius: 999px; font-size: .75rem; color: var(--dim); }
.tag-m { color: #000; background: var(--bone); border-color: var(--bone); }

/* reveal primitives */
.js [data-chars] .ch { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.3em); transition: opacity .9s var(--ease), filter .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--c) * 24ms); }
.js [data-chars].in .ch { opacity: 1; filter: none; transform: none; }
[data-chars] .wd, [data-mark] .wd { display: inline-block; white-space: nowrap; }
.js [data-words] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.js [data-words] .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--d) * 55ms); }
.js [data-words].in .w > span { transform: none; }
.js [data-in] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-in].in { opacity: 1; transform: none; }
.frame { position: relative; overflow: hidden; border-radius: var(--r); background: var(--raise); }
.frame img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0)) scale(1.08); transition: filter .8s var(--ease); }
.js [data-wipe] { clip-path: inset(100% 0 0 0 round var(--r)); transition: clip-path 1.4s var(--lift); }
.js [data-wipe] img { transform: translateY(var(--py, 0)) scale(1.3); transition: transform 1.8s var(--ease), filter .8s var(--ease); }
.js [data-wipe].in { clip-path: inset(0 0 0 0 round var(--r)); }
.js [data-wipe].in img { transform: translateY(var(--py, 0)) scale(1.08); }
.js [data-wipe].settled img { transition: filter .8s var(--ease); }

/* hero */
.hero { position: relative; max-width: var(--wide); margin: 0 auto; padding: clamp(80px, 20vh, 220px) var(--gut) clamp(60px, 10vh, 120px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20vh -20vw 0; z-index: -1; pointer-events: none; background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 30%), rgba(255,255,255,.075), transparent 70%); }
.hero-title { font-size: clamp(3.4rem, 11.5vw, 12.5rem); font-weight: 500; letter-spacing: -.065em; line-height: .88; max-width: 11ch; }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 48px; margin-top: clamp(40px, 7vw, 96px); }
.hero-intro { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--dim); max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.js .hero-foot { transition-delay: .7s; }

/* featured */
.feature { max-width: var(--wide); margin: 0 auto; padding: clamp(20px, 4vw, 48px) var(--gut) clamp(60px, 10vw, 140px); }
.feature-img { aspect-ratio: 16 / 8; }
.feature-copy { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px clamp(16px, 2vw, 32px); margin-top: 28px; }
.feature-copy > .meta { grid-column: 1 / -1; }
.feature-copy > .meta > span:first-child { color: var(--bone); }
.feature-title { grid-column: 1 / span 7; font-size: clamp(2.2rem, 5.2vw, 5.2rem); letter-spacing: -.055em; line-height: .95; }
.feature-side { grid-column: 9 / span 4; align-self: end; display: flex; flex-direction: column; gap: 16px; }
.feature-dek { font-size: 1.12rem; color: var(--dim); line-height: 1.5; }
.feature-link:hover .frame img { filter: brightness(1.12); }
@media (max-width: 860px) { .feature-title, .feature-side { grid-column: 1 / -1; } .feature-img { aspect-ratio: 4 / 3; } }

/* latest list */
.latest { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gut) clamp(80px, 12vw, 160px); }
.sec-head { display: flex; align-items: baseline; gap: 16px; padding-bottom: 20px; }
.sec-head h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.05em; }
.sec-count { color: var(--faint); font-size: .9rem; }
.sec-act { margin-left: auto; }
.rows { list-style: none; margin: 0; padding: 0; }
.row a { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 8px clamp(20px, 4vw, 64px); align-items: center; padding: clamp(22px, 3vw, 36px) 0; border-top: 1px solid var(--rule); transition: opacity .45s var(--ease); }
.row a::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--bone); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--lift); }
.row a:hover::before, .row a:focus-visible::before { transform: scaleX(1); }
.row:last-child a { border-bottom: 1px solid var(--rule); }
.row-thumb { display: none; }
.row-title { font-size: clamp(1.45rem, 2.8vw, 2.6rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.05; transition: transform .6s var(--ease); }
.row-dek { color: var(--dim); font-size: .98rem; line-height: 1.5; max-width: 42ch; }
.row-meta { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: .85rem; white-space: nowrap; justify-self: end; }
.row.is-draft .row-title::after { content: " (draft)"; color: var(--faint); font-size: .5em; letter-spacing: 0; }
@media (hover: hover) {
  .rows:hover .row a { opacity: .32; }
  .rows .row a:hover { opacity: 1; }
  .row a:hover .row-title { transform: translateX(14px); }
}
@media (max-width: 860px) {
  .row a { grid-template-columns: 92px minmax(0, 1fr); gap: 6px 16px; align-items: start; }
  .row-thumb { display: block; grid-row: span 2; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--raise); }
  .row-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .row-dek { display: none; }
  .row-meta { justify-self: start; flex-wrap: wrap; white-space: normal; gap: 10px; }
}
.empty { color: var(--dim); padding: 30px 0; }

/* preview image that trails the cursor over the list */
.peek { position: fixed; left: 0; top: 0; z-index: 30; width: clamp(240px, 22vw, 340px); aspect-ratio: 4 / 3; pointer-events: none; border-radius: var(--r); overflow: hidden;
  transform: translate3d(var(--x, -999px), var(--y, -999px), 0) translate(-50%, -50%) rotate(var(--rot, 0deg)); clip-path: inset(50% 50% 50% 50% round var(--r)); transition: clip-path .6s var(--lift); }
.peek.on { clip-path: inset(0 0 0 0 round var(--r)); }
.peek img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); transition: transform .9s var(--ease); }
.peek.on img { transform: scale(1); }
@media (hover: none), (max-width: 860px) { .peek { display: none; } }

/* membership band */
.join-band { max-width: var(--wide); margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gut); border-top: 1px solid var(--rule); }
.join-band h2 { font-size: clamp(3.2rem, 11vw, 11.5rem); letter-spacing: -.065em; line-height: .88; }
.band-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 32px clamp(24px, 4vw, 64px); align-items: end; margin-top: clamp(36px, 5vw, 64px); }
.band-grid > p { color: var(--dim); font-size: 1.1rem; max-width: 40ch; }
.band-plans { display: flex; gap: clamp(24px, 4vw, 56px); }
.band-plans p { display: flex; flex-direction: column; }
.band-plans b { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.band-plans span { color: var(--faint); font-size: .85rem; margin-top: 6px; }
@media (max-width: 860px) { .band-grid { grid-template-columns: 1fr; align-items: start; } .band-grid .btn { justify-self: start; } }

/* story */
.story-head { max-width: var(--wide); margin: 0 auto; padding: clamp(60px, 13vh, 150px) var(--gut) clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 26px; }
.story-title { font-size: clamp(2.6rem, 7.4vw, 7.4rem); letter-spacing: -.06em; line-height: .92; max-width: 14ch; text-wrap: balance; }
.story-sub { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; }
.story-dek { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.45; color: var(--dim); max-width: 40ch; }
.story-by > span:empty { display: none; }
.story-cover { width: min(var(--wide), calc(100% - 2 * var(--gut))); margin: 0 auto; aspect-ratio: 16 / 8; }
.cover-empty { height: 100%; display: grid; place-items: center; border: 1px dashed var(--rule-2); border-radius: var(--r); color: var(--dim); }
@media (max-width: 700px) { .story-cover { aspect-ratio: 4 / 3; } }
.story-col { max-width: calc(680px + 2 * var(--gut)); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gut) 40px; }
.prose { font-size: clamp(1.08rem, 1.2vw, 1.18rem); line-height: 1.78; color: #cfcfcd; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); letter-spacing: -.035em; line-height: 1.15; color: var(--bone); margin-top: 2.2em; }
.prose h3 { font-size: 1.25rem; letter-spacing: -.02em; color: var(--bone); margin-top: 1.9em; }
.prose a { color: var(--bone); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--faint); transition: text-decoration-color .3s; }
.prose a:hover { text-decoration-color: var(--bone); }
.prose strong, .prose b { color: var(--bone); font-weight: 600; }
.prose blockquote { margin: 2.2em 0; padding-left: 24px; border-left: 1px solid var(--bone); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.3; letter-spacing: -.03em; color: var(--bone); }
.prose figure { margin: 2.6em 0; }
.prose figure.wide { margin-inline: clamp(-180px, -12vw, 0px); }
.prose figure img, .prose > img { width: 100%; border-radius: var(--r); }
.prose figcaption { font-size: .85rem; color: var(--faint); margin-top: 12px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose hr { border: 0; height: 1px; background: var(--rule-2); margin: 2.6em 0; }
.prose hr.paywall-break { display: none; }
.js .prose > * { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .prose > .in { opacity: 1; transform: none; }

/* the leak: scrambled lines that keep shifting, fading under the gate */
.leak { margin-top: 1.25em; font-size: clamp(1.08rem, 1.2vw, 1.18rem); line-height: 1.78; color: #a9a9a7; user-select: none; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0,0,0,.5) 45%, transparent 92%); mask-image: linear-gradient(180deg, #000, rgba(0,0,0,.5) 45%, transparent 92%); }
.leak > * + * { margin-top: 1.25em; }
.leak h2, .leak h3 { font-size: 1.7rem; font-weight: 500; letter-spacing: -.035em; line-height: 1.15; margin-top: 1.6em; }
.leak blockquote { margin: 0; padding-left: 24px; border-left: 1px solid var(--rule-2); }
.leak > :nth-child(1) { filter: blur(.4px); }
.leak > :nth-child(2) { filter: blur(2.4px); }
.leak > :nth-child(n+3) { filter: blur(5px); }
.gate { position: relative; margin-top: -40px; padding: 48px 0 8px; border-top: 1px solid var(--rule-2); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.gate::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--bone); transform: scaleX(0); transition: transform 1.4s var(--lift) .2s; }
.gate.in::before { transform: scaleX(1); }
.gate h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.05em; max-width: 16ch; }
.gate p { color: var(--dim); max-width: 44ch; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }
.js .gate > * { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .gate.in > * { opacity: 1; transform: none; }
.js .gate.in > :nth-child(2) { transition-delay: .1s; }
.js .gate.in > :nth-child(3) { transition-delay: .2s; }

/* meter toast */
.meter { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 20px;
  background: rgba(20, 20, 20, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--rule-2); border-radius: 999px; font-size: .9rem;
  width: max-content; max-width: calc(100% - 32px); transform: translate(-50%, 180%); transition: transform .9s var(--ease); }
.meter.in { transform: translate(-50%, 0); }
.meter p { color: var(--dim); } .meter b { color: var(--bone); font-weight: 600; }
.meter a { background: var(--bone); color: #000; border-radius: 999px; padding: 7px 14px; font-weight: 500; }
.meter-x { background: none; border: 0; color: var(--faint); font-size: 1.2rem; cursor: pointer; padding: 0 8px 0 2px; }

/* up next */
.next { max-width: var(--wide); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gut) clamp(80px, 10vw, 140px); }
.next-link { display: flex; flex-direction: column; gap: 22px; border-top: 1px solid var(--rule); padding-top: 32px; }
.next-title { font-size: clamp(2.2rem, 6vw, 5.6rem); letter-spacing: -.06em; line-height: .95; max-width: 16ch; }
.next-img { aspect-ratio: 16 / 6; }
.next-link:hover .frame img { filter: brightness(1.12); }

/* forms */
.panel { max-width: 460px; margin: 0 auto; padding: clamp(60px, 14vh, 140px) var(--gut) 100px; }
.panel-form { display: flex; flex-direction: column; gap: 16px; }
.panel-form h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: -.055em; margin-bottom: 8px; }
.form-lead { color: var(--dim); font-size: 1.05rem; }
label { display: flex; flex-direction: column; gap: 8px; font-size: .85rem; color: var(--dim); }
label small { color: var(--faint); font-size: .8rem; }
input:not([type=checkbox]):not([type=radio]), textarea { font: 400 1rem/1.4 var(--display); color: var(--bone); background: var(--raise); border: 1px solid var(--rule-2); border-radius: var(--r); padding: 13px 14px; width: 100%; transition: border-color .3s, background .3s; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--bone); background: #111; }
.panel-form .btn { margin-top: 10px; width: 100%; }
.form-err { border: 1px solid #5a2a24; background: #1a0d0b; border-radius: var(--r); padding: 12px 14px; color: #ffb9ae; font-size: .92rem; }
.form-note, .form-alt { font-size: .85rem; color: var(--faint); }
.form-alt a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }
.plans { border: 0; padding: 0; margin: 4px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan { cursor: pointer; }
.plan input { position: absolute; opacity: 0; }
.plan span { display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 1px solid var(--rule-2); border-radius: var(--r); transition: border-color .3s, background .3s; }
.plan b { color: var(--bone); font-weight: 500; }
.plan em { font-style: normal; color: var(--dim); font-size: .9rem; }
.plan input:checked + span { border-color: var(--bone); background: #111; }
.plan input:focus-visible + span { outline: 2px solid var(--bone); outline-offset: 2px; }
.account, .err { max-width: 760px; margin: 0 auto; padding: clamp(60px, 14vh, 150px) var(--gut) 100px; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.account h1, .err h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.055em; }
.facts { margin: 0; width: 100%; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 160px 1fr; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--faint); } .facts dd { margin: 0; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.err-code { font-size: clamp(6rem, 20vw, 14rem); font-weight: 500; letter-spacing: -.08em; line-height: .8; }

/* flash */
.flash { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 55; background: var(--bone); color: #000; padding: 11px 20px; border-radius: 999px; font-size: .92rem; animation: flash 4.5s var(--ease) forwards; }
@keyframes flash { 0% { opacity: 0; transform: translate(-50%, -12px); } 8%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -12px); visibility: hidden; } }

/* footer: giant wordmark rises letter by letter */
.foot { border-top: 1px solid var(--rule); overflow: hidden; }
.foot-row { max-width: var(--wide); margin: 0 auto; padding: 36px var(--gut) 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; justify-content: space-between; font-size: .88rem; color: var(--faint); }
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: var(--dim); transition: color .3s; }
.foot-links a:hover { color: var(--bone); }
.foot-mark { font-size: clamp(3rem, 16.4vw, 15rem); font-weight: 600; letter-spacing: -.075em; line-height: .8; text-align: center; white-space: nowrap; padding: clamp(30px, 5vw, 70px) 0 0; margin-bottom: -.08em; color: #1c1c1c; overflow: hidden; }
.js .foot-mark .ch { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease) calc(var(--c) * 35ms), font-weight .35s var(--ease) 0s, color .5s; }
.js .foot-mark.in .ch { transform: none; }
.foot-mark .ch:hover { color: #3a3a3a; }

/* admin */
.adminpage main { padding-top: 90px; }
.adm { display: grid; grid-template-columns: 200px minmax(0, 1fr); max-width: var(--wide); margin: 0 auto; padding: 24px var(--gut) 80px; gap: clamp(20px, 4vw, 56px); }
.adm-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 90px; align-self: start; }
.adm-nav a { padding: 9px 14px; color: var(--dim); border-radius: 8px; transition: color .25s, background .25s; }
.adm-nav a:hover { color: var(--bone); background: var(--raise); }
.adm-nav a[aria-current] { color: var(--bone); background: #141414; }
.adm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.adm-head h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.05em; }
.adm-head-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 32px; }
.stats div { padding: 18px; border: 1px solid var(--rule); border-radius: var(--r); }
.stats dt { color: var(--faint); font-size: .85rem; }
.stats dd { margin: 6px 0 2px; font-size: 2.3rem; font-weight: 500; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stats small { color: var(--faint); font-size: .8rem; }
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th { text-align: left; font-weight: 500; color: var(--faint); font-size: .82rem; padding: 10px 12px; border-bottom: 1px solid var(--rule-2); }
.tbl td { padding: 14px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.tbl tbody tr { transition: background .25s; }
.tbl tbody tr:hover { background: var(--raise); }
.tbl-title { display: flex; align-items: center; gap: 14px; }
.tbl-title img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; }
.tbl-title span { display: flex; flex-direction: column; gap: 3px; }
.tbl b { font-weight: 500; }
.tbl small, .block { color: var(--faint); font-size: .8rem; display: block; }
.tbl-act { text-align: right; white-space: nowrap; }
.tbl-act a, .tbl-act button { color: var(--dim); margin-left: 14px; background: none; border: 0; cursor: pointer; font-size: .88rem; padding: 0; }
.tbl-act a:hover, .tbl-act button:hover { color: var(--bone); }
.tbl-act form { display: inline; }
.pill { display: inline-block; padding: 2px 10px; border: 1px solid var(--rule-2); border-radius: 999px; font-size: .78rem; color: var(--dim); }
.pill-on { border-color: var(--bone); color: var(--bone); }
.settings { display: flex; flex-direction: column; gap: 32px; max-width: 640px; }
.settings fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.settings legend { font-weight: 500; font-size: 1.1rem; padding: 0 0 12px; color: var(--bone); width: 100%; border-bottom: 1px solid var(--rule-2); margin-bottom: 6px; }
.settings .btn { align-self: flex-start; }
@media (max-width: 860px) {
  .adm { grid-template-columns: 1fr; }
  .adm-nav { flex-direction: row; position: static; overflow-x: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .tbl thead { display: none; }
  .tbl tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .tbl td { border: 0; padding: 4px 0; }
  .tbl td:first-child { grid-column: 1 / -1; }
  .tbl-act { grid-column: 1 / -1; text-align: left; }
  .tbl-act a:first-child, .tbl-act form button:first-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .peek { display: none; }
}

/* =====================================================================
   Type only. The variable weight axis (100 to 900) is the animation:
   letters thicken near the pointer, titles ripple bolder on hover,
   the headline thins as you scroll past it.
   ===================================================================== */
.ch, .hc { font-weight: clamp(100, calc(var(--w, 500) + var(--fw, 0)), 900); }
.js [data-chars] .ch { transition: opacity .9s var(--ease) calc(var(--c) * 24ms), filter .9s var(--ease) calc(var(--c) * 24ms), transform 1.1s var(--ease) calc(var(--c) * 24ms), font-weight .35s var(--ease) 0s; }
.hero-title { --w: 500; }
.hero-title .ch { transform-origin: 50% 100%; }

/* ticker of story titles, solid and outlined, speeding up with your scroll */
.ticker { overflow: hidden; border-block: 1px solid var(--rule); padding: clamp(14px, 2vw, 26px) 0; margin-bottom: clamp(60px, 9vw, 120px); }
.ticker-track { display: flex; width: max-content; animation: tick 60s linear infinite; transform: skewX(var(--skew, 0deg)); }
.ticker-set { display: flex; align-items: center; flex: none; }
.tk { font-size: clamp(2.2rem, 6vw, 5.6rem); font-weight: 600; letter-spacing: -.055em; white-space: nowrap; padding: 0 .35em; }
.tk-o { color: transparent; -webkit-text-stroke: 1px #6b6b69; font-weight: 300; }
.ticker i { font-style: normal; color: var(--faint); font-size: clamp(1.4rem, 3vw, 2.6rem); font-weight: 200; }
@keyframes tick { to { transform: translateX(-50%) skewX(var(--skew, 0deg)); } }

/* featured: pure type */
.feature { padding-top: 0; }
.feature-link { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px clamp(16px, 2vw, 32px); }
.feature-link > .meta { grid-column: 1 / -1; }
.meta-strong { color: var(--bone); }
.feature-title { grid-column: 1 / span 10; font-size: clamp(2.8rem, 8.4vw, 9rem); letter-spacing: -.065em; line-height: .9; transition: font-weight .6s var(--ease), letter-spacing .6s var(--ease); }
.feature-link:hover .feature-title { font-weight: 300; letter-spacing: -.055em; }
.feature-side { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 18px; }
.read-link { color: var(--bone); border-bottom: 1px solid var(--bone); padding-bottom: 2px; }
.feature-link:hover .read-link > [data-roll] > b, .feature-link:hover .read-link > [data-roll]::after { transform: translateY(-100%); }
@media (max-width: 860px) { .feature-title, .feature-side { grid-column: 1 / -1; } }

/* list titles ripple bolder letter by letter on hover */
.row-title .hc { display: inline-block; --w: 500; transition: font-weight .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--c) * 14ms); }
.row a:hover .row-title .hc, .row a:focus-visible .row-title .hc { --w: 760; }
.row-title .wd { display: inline-block; white-space: nowrap; }
.row a { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; }
@media (max-width: 860px) { .row a { grid-template-columns: minmax(0, 1fr); } .row-dek { display: block; font-size: .92rem; } }
.next-title .hc { display: inline-block; --w: 500; transition: font-weight .5s var(--ease); transition-delay: calc(var(--c) * 14ms); }
.next-link:hover .next-title .hc { --w: 200; }

/* story page without a cover */
.story-head { padding-bottom: 0; }
.story-title { font-size: clamp(2.8rem, 8.6vw, 9rem); letter-spacing: -.065em; line-height: .9; max-width: 13ch; --w: 500; }
.story-col { padding-top: clamp(56px, 8vw, 110px); border-top: 1px solid var(--rule); margin-top: clamp(40px, 6vw, 72px); }
.cover-note { max-width: var(--wide); margin: 24px auto 0; padding: 0 var(--gut); color: var(--faint); font-size: .82rem; }
.story .prose > p:first-child { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.5; color: var(--bone); letter-spacing: -.015em; }
.prose blockquote { font-weight: 200; transition: font-weight 1.4s var(--ease), opacity 1s var(--ease), transform 1s var(--ease); }
.prose blockquote.in { font-weight: 500; }
.prose h2 { transition: letter-spacing 1.2s var(--ease), opacity 1s var(--ease), transform 1s var(--ease); letter-spacing: .02em; }
.prose h2.in { letter-spacing: -.035em; }
.prose figure img { border-radius: var(--r); }

/* footer wordmark reacts to the pointer too */
.foot-mark { color: #202020; }
.foot-mark .ch { --w: 600; }

/* sign-in and account */
.btn-key { width: 100%; min-height: 54px; font-size: 1rem; }
.or { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: .82rem; margin: 10px 0 2px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule-2); }
.form-note.bad { color: #ffb9ae; }
.acct-sec { width: 100%; display: flex; flex-direction: column; gap: 14px; padding-top: 36px; border-top: 1px solid var(--rule); }
.acct-sec h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.04em; }
.acct-sec .btn { align-self: flex-start; }
.acct-form { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.keys { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.keys li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.keys li span { display: flex; flex-direction: column; }
.keys b { font-weight: 500; }
.keys small { color: var(--faint); font-size: .8rem; }
.linkbtn { background: none; border: 0; color: var(--dim); cursor: pointer; padding: 0; font-size: .88rem; }
.linkbtn:hover { color: var(--bone); }

/* =====================================================================
   Light mode, for readers who find dark text on white easier.
   Dark stays the default; the toggle in the header remembers the choice.
   ===================================================================== */
:root[data-theme="light"] {
  --ink: #fbfbfa;
  --bone: #121211;
  --dim: #5c5c59;
  --faint: #8e8e8a;
  --rule: #e9e9e6;
  --rule-2: #d7d7d3;
  --raise: #f1f1ee;
  --lamp: #121211;
  --lamp-glow: rgba(0, 0, 0, .1);
  color-scheme: light;
}
/* colours that sit on a filled (bone) surface follow the page colour */
.btn, .tag-m, .nav .nav-pill:hover, .meter a, .flash, .skip { color: var(--ink); }
.btn-ghost { color: var(--bone); }
::selection { color: var(--ink); }
[data-theme="light"] .top.solid { background: rgba(251, 251, 250, .82); }
[data-theme="light"] .hero::before { background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 30%), rgba(0, 0, 0, .05), transparent 70%); }
[data-theme="light"] .prose { color: #2b2b29; }
[data-theme="light"] .leak { color: #4a4a47; }
[data-theme="light"] .tk-o { -webkit-text-stroke-color: #a3a39f; }
[data-theme="light"] .foot-mark { color: #ececea; }
[data-theme="light"] .foot-mark .ch:hover { color: #cfcfcb; }
[data-theme="light"] input:focus, [data-theme="light"] textarea:focus, [data-theme="light"] .plan input:checked + span { background: #fff; }
[data-theme="light"] .adm-nav a[aria-current] { background: #ebebe8; }
[data-theme="light"] .meter { background: rgba(255, 255, 255, .88); }
[data-theme="light"] .form-err { background: #fff1ef; border-color: #f2c4bd; color: #8a2a1d; }
[data-theme="light"] .form-note.bad { color: #a3321f; }
[data-theme="light"] .prose figure img { box-shadow: 0 1px 0 var(--rule); }
/* editing chrome stays legible on white */
[data-theme="light"] .ed-bar { background: #121211; }
[data-theme="light"] .ed-bar button { color: #fbfbfa; }
[data-theme="light"] .ed-bar button:hover { background: rgba(255, 255, 255, .14); }
.ed-toast { color: var(--ink); }
.prose hr.paywall-break::after { background: var(--ink); }

/* theme toggle: sun and moon morph into each other */
.theme-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--rule-2); border-radius: 999px; background: none; cursor: pointer; color: var(--bone); transition: border-color .3s, transform .5s var(--ease); }
.theme-btn:hover { border-color: var(--bone); transform: rotate(-12deg); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; overflow: visible; }
.t-sun, .t-rays, .t-moon { transition: transform .7s var(--lift), opacity .45s var(--ease); transform-origin: 12px 12px; }
.t-moon { fill: currentColor; stroke: none; }
:root:not([data-theme="light"]) .t-sun, :root:not([data-theme="light"]) .t-rays { opacity: 0; transform: rotate(-90deg) scale(.4); }
[data-theme="light"] .t-moon { opacity: 0; transform: rotate(90deg) scale(.4); }

/* the switch itself: the new theme spreads out in a circle from the button */
html.theming::view-transition-old(root), html.theming::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theming::view-transition-new(root) { z-index: 2; }

/* social links in the footer */
.foot-social { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.foot-social a, .menu-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--dim); border: 1px solid var(--rule); transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), transform .4s var(--ease); }
.foot-social svg, .menu-social svg { width: 19px; height: 19px; display: block; }
.foot-social a:hover, .foot-social a:focus-visible, .menu-social a:hover { color: var(--ink); background: var(--bone); border-color: var(--bone); transform: translateY(-2px); }
.foot-social-empty { color: var(--faint); border: 1px dashed var(--rule-2); border-radius: 999px; padding: 6px 14px; }
.foot-social-empty:hover { color: var(--bone); }
.settings .form-note { margin-top: -4px; }

/* ---------- menu button + full-screen menu (small screens) */
.menu-btn { display: none; position: relative; width: 40px; height: 40px; border: 1px solid var(--rule-2); border-radius: 999px; background: none; cursor: pointer; color: var(--bone); }
.menu-btn i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .5s var(--lift), top .5s var(--lift); }
.menu-btn i:first-of-type { top: 15px; } .menu-btn i:last-of-type { top: 23px; }
.menu-open .menu-btn i:first-of-type { top: 19px; transform: rotate(45deg); }
.menu-open .menu-btn i:last-of-type { top: 19px; transform: rotate(-45deg); }
@media (max-width: 760px) {
  .nav .nav-link { display: none; }
  .menu-btn { display: block; }
  .nav { gap: 10px; }
}
.menu { position: fixed; inset: 0; z-index: 48; background: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; padding: 96px var(--gut) max(32px, env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--lift); }
.menu.on { clip-path: inset(0 0 0 0); }
.menu-open { overflow: hidden; }
.menu-open .top { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a, .menu-social, .menu-foot { opacity: 0; transform: translateY(40px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.menu.on .menu-links a, .menu.on .menu-social, .menu.on .menu-foot { opacity: 1; transform: none; transition-delay: calc(.18s + var(--i) * 60ms); }
.menu-links a { font-size: clamp(3rem, 15vw, 5.5rem); font-weight: 500; letter-spacing: -.06em; line-height: 1.02; padding: 4px 0; border-bottom: 1px solid var(--rule); }
.menu-links a:active { font-weight: 300; }
.menu-social { display: flex; flex-wrap: wrap; gap: 8px; }
.menu-foot { color: var(--faint); font-size: .85rem; }

/* ---------- listen */
.story-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
@media (max-width: 760px) { .story-side { align-items: flex-start; } }
.listen-btn { display: inline-flex; align-items: center; justify-content: center; gap: 11px; height: 44px; padding: 0 19px 0 18px; line-height: 1; border-radius: 999px; border: 1px solid var(--rule-2); background: none; color: var(--bone); cursor: pointer; font-size: .92rem; transition: border-color .3s, background .3s, color .3s; }
.listen-btn:hover { border-color: var(--bone); }
.listen-btn { position: relative; overflow: hidden; }
.listen-btn.is-recording { cursor: progress; color: var(--bone); opacity: .8; }
.listen-btn.is-recording::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: .09; transform-origin: left; transform: scaleX(var(--rec, 0)); transition: transform 1.2s var(--ease); }
.listen-btn.is-recording .eq i { animation: eq 1.6s var(--ease) infinite alternate; opacity: .7; }
.listen-btn:disabled > [data-roll] > b, .listen-btn:disabled > [data-roll]::after { transform: none !important; }
.listen-btn:disabled:hover { border-color: var(--rule-2); }
.listen-btn.playing { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: .72em; }   /* cap height: bars stand on the text baseline */
.eq i { width: 2.5px; height: 30%; background: currentColor; border-radius: 1px; }
.playing .eq i { animation: eq 1s var(--ease) infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s !important; } .eq i:nth-child(3) { animation-delay: -.6s !important; } .eq i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes eq { 0% { height: 20%; } 100% { height: 100%; } }
.player { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 46; display: flex; align-items: center; gap: 6px; width: min(640px, calc(100% - 24px));
  padding: 8px; border-radius: 999px; background: rgba(18, 18, 18, .9); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--rule-2);
  transform: translate(-50%, 160%); transition: transform .8s var(--ease); color: #f4f4f2; }
[data-theme="light"] .player { background: rgba(255, 255, 255, .92); color: #121211; }
.player.on { transform: translate(-50%, 0); }
.pl-btn { flex: none; height: 40px; min-width: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: inherit; cursor: pointer; font-size: .85rem; font-variant-numeric: tabular-nums; transition: background .25s; }
.pl-btn:hover { background: rgba(127, 127, 127, .16); }
.pl-play { width: 44px; height: 44px; background: currentColor; display: grid; place-items: center; padding: 0; }
.pl-play svg { width: 18px; height: 18px; fill: #111; }
[data-theme="light"] .pl-play svg { fill: #fff; }
.pl-play .i-pause { display: none; } .player.playing .pl-play .i-pause { display: block; } .player.playing .pl-play .i-play { display: none; }
.pl-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; padding: 0 8px; }
.pl-title { font-size: .85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-bar { height: 3px; border-radius: 3px; background: rgba(127, 127, 127, .3); cursor: pointer; overflow: hidden; }
.pl-bar i { display: block; height: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s linear; }
.pl-title { display: flex; align-items: baseline; gap: 10px; }
.pl-title span { overflow: hidden; text-overflow: ellipsis; }
.pl-note { flex: none; font-size: .72rem; font-weight: 400; opacity: .6; }
.pl-note:empty { display: none; }
.pl-voice { flex: none; display: flex; padding: 3px; border-radius: 999px; background: rgba(127, 127, 127, .14); }
.pl-voice[hidden] { display: none; }
.pl-voice button { height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: inherit; font: inherit; font-size: .78rem; cursor: pointer; opacity: .65; transition: background .25s, color .25s, opacity .25s; }
.pl-voice button[aria-pressed="true"] { opacity: 1; }
.player .pl-voice button[aria-pressed="true"] { background: #f4f4f2; color: #111; }
[data-theme="light"] .player .pl-voice button[aria-pressed="true"] { background: #121211; color: #fff; }
@media (max-width: 520px) { .pl-skip { display: none; } .pl-voice button { padding: 0 9px; } }
.prose .reading-now { color: var(--bone); background: linear-gradient(90deg, rgba(127,127,127,.14), transparent 80%); border-radius: 6px; box-shadow: -14px 0 0 rgba(127,127,127,.14); transition: background .5s, box-shadow .5s; }

/* ---------- galleries */
.prose figure.gallery { position: relative; margin-inline: clamp(-180px, -12vw, 0px); }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r); scrollbar-width: none; overscroll-behavior-x: contain; outline-offset: 4px; cursor: grab; }
.g-track::-webkit-scrollbar { display: none; }
.g-track.drag { scroll-snap-type: none; cursor: grabbing; }
.g-slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 3 / 2; background: var(--raise); overflow: hidden; }
.g-slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transform: scale(1.06); transition: transform 1.2s var(--ease); user-select: none; -webkit-user-drag: none; }
.g-slide.on img { transform: none; }
.g-bar { display: flex; align-items: center; gap: 16px; margin-top: 12px; font-size: .85rem; color: var(--faint); font-family: var(--display); }
.g-count b { color: var(--bone); font-weight: 500; font-variant-numeric: tabular-nums; }
.g-dots { display: flex; gap: 6px; flex: 1; }
.g-dots i { width: 6px; height: 6px; border-radius: 6px; background: var(--rule-2); transition: width .5s var(--ease), background .3s; }
.g-dots i.on { width: 22px; background: var(--bone); }
.g-nav { display: flex; gap: 6px; }
.g-nav button { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--rule-2); background: none; color: var(--bone); cursor: pointer; font-size: 1rem; transition: border-color .3s, background .3s, color .3s; }
.g-nav button:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.prose figure.gallery figcaption { margin-top: 8px; }

/* ---------- copyright line */
.rights { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--faint); font-size: .8rem; line-height: 1.6; }
.prose img { -webkit-user-drag: none; user-select: none; }

/* ---------- writing assistant drawer (admin) */
.ai-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 75; width: min(480px, 100%); display: flex; flex-direction: column; gap: 16px; padding: 24px; overflow-y: auto;
  background: var(--ink); border-left: 1px solid var(--rule-2); box-shadow: -30px 0 80px rgba(0,0,0,.45); transform: translateX(104%); transition: transform .6s var(--lift); }
.ai-drawer.on { transform: none; }
.ai-head { display: flex; justify-content: space-between; align-items: center; }
.ai-head h2 { font-size: 1.6rem; letter-spacing: -.045em; }
.ai-x { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--rule-2); background: none; color: var(--bone); cursor: pointer; font-size: 1.2rem; }
.ai-tasks { display: grid; gap: 6px; }
.ai-task { cursor: pointer; }
.ai-task input { position: absolute; opacity: 0; }
.ai-task span { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border: 1px solid var(--rule-2); border-radius: var(--r); transition: border-color .25s, background .25s; }
.ai-task b { color: var(--bone); font-weight: 500; font-size: .95rem; }
.ai-task small { color: var(--faint); font-size: .8rem; }
.ai-task input:checked + span { border-color: var(--bone); background: var(--raise); }
.ai-task input:focus-visible + span { outline: 2px solid var(--bone); outline-offset: 2px; }
.ai-go { align-self: flex-start; }
.busy .ai-go { opacity: .5; }
.ai-out { max-height: 46vh; overflow-y: auto; border: 1px solid var(--rule-2); border-radius: var(--r); padding: 16px 18px; background: var(--raise); }
.ai-preview { font-size: 1rem; }
.ai-preview > * { opacity: 1 !important; transform: none !important; }
.ai-preview.typing::after { content: ""; display: inline-block; width: .5em; height: 1.1em; margin-left: 2px; vertical-align: text-bottom; background: var(--bone); animation: caret .9s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ai-msg { font-size: .88rem; color: var(--dim); min-height: 1.2em; }
.ai-msg.bad { color: #ff9e90; }
[data-theme="light"] .ai-msg.bad { color: #a3321f; }
.ai-apply { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-foot { margin-top: auto; color: var(--faint); font-size: .78rem; }
.ed-btn.ed-ai { color: var(--bone); border-color: var(--rule-2); }
.inline-check { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin-left: 8px; }

/* never let decoration widen the page on phones */
html, body { overflow-x: clip; }
.hero { overflow-x: clip; }
.hero::before { inset: -20vh 0 0; }
.feature-title, .story-title, .row-title, .next-title, .hero-title, .join-band h2, .menu-links a { overflow-wrap: anywhere; hyphens: manual; }
@media (max-width: 480px) { .feature-title, .story-title { font-size: clamp(2.3rem, 11vw, 3.4rem); } .join-band h2 { font-size: clamp(2.6rem, 13vw, 4rem); } }
.ai-preview { font-size: .98rem; line-height: 1.65; color: var(--bone); }
.ai-preview > * + * { margin-top: .9em; }
.ai-preview h2 { font-size: 1.3rem; letter-spacing: -.03em; margin-top: 1.4em; }
.ai-preview h3 { font-size: 1.1rem; }
.ai-preview blockquote { margin: 0; padding-left: 16px; border-left: 1px solid var(--bone); }
.ai-preview ul, .ai-preview ol { padding-left: 1.2em; }
.ai-preview img { border-radius: 6px; }

/* ---------- photo tint: story photos sit in the page's graphite palette;
   pointing at one (or the photo in view in a gallery) brings back its own colour */
:root { --tint: grayscale(.74) contrast(1.06) brightness(.9); }
:root[data-theme="light"] { --tint: grayscale(.74) contrast(.97) brightness(1.03); }
.prose figure img, .prose > img, .g-slide img { filter: var(--tint); transition: filter .9s var(--ease), transform 1.2s var(--ease); }
@media (hover: hover) {
  .prose figure:not(.gallery):hover img, .prose > img:hover, .g-track:hover .g-slide.on img, .g-track:focus-visible .g-slide.on img { filter: none; }
}
@media (prefers-reduced-motion: reduce) { .prose figure img, .g-slide img { transition: none; } }

/* ---------- protected stories: readers can't select or copy; a blur covers the page when a screenshot is likely */
.protected .prose, .protected .leak { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.protected .prose img { pointer-events: none; -webkit-user-drag: none; }
.shield { position: fixed; inset: 0; z-index: 58; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px; text-align: center;
  background: color-mix(in srgb, var(--ink) 62%, transparent); backdrop-filter: blur(30px) saturate(.5); -webkit-backdrop-filter: blur(30px) saturate(.5); color: var(--bone); }
.shield[hidden] { display: none; }
.shield p { margin: 0; font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; }
.shield small { color: var(--dim); font-size: .9rem; }
html.shielded main > :not(.shield), html.shielded .top, html.shielded footer { filter: blur(22px); }
html.shielded .player { z-index: 59; }
@media print { main, .top, .player, .shield { display: none !important; } body::before { content: "Printing stories isn't allowed."; display: block; padding: 40px; font: 500 18px/1.4 sans-serif; } }

/* ---------- player: chapters and the current chapter's name */
.pl-title { flex-wrap: nowrap; }
.pl-chap { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: .72rem; font-weight: 400; opacity: .6; }
.pl-chap:empty { display: none; }
.pl-chap > * { font: inherit; }
.pl-ch { flex: none; display: flex; }
.pl-ch[hidden] { display: none; }
.pl-ch-btn svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.pl-ch-btn[aria-expanded="true"] { background: rgba(127, 127, 127, .18); }
.pl-chapters { position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); max-height: min(56vh, 440px); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px; border-radius: 22px; background: rgba(18, 18, 18, .96); color: #f4f4f2; border: 1px solid var(--rule-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); scrollbar-width: thin; }
[data-theme="light"] .pl-chapters { background: rgba(255, 255, 255, .97); color: #121211; box-shadow: 0 24px 60px rgba(0, 0, 0, .14); }
.pl-chapters[hidden] { display: none; }
.pl-ch-head { margin: 4px 12px 6px; font-size: .78rem; opacity: .55; }
.pl-chapters ol { list-style: none; margin: 0; padding: 0; }
.pl-chapters li button { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 10px 12px; border: 0; border-radius: 14px;
  background: none; color: inherit; font: inherit; font-size: .9rem; line-height: 1.3; text-align: left; cursor: pointer; transition: background .2s; }
.pl-chapters li button:hover, .pl-chapters li button:focus-visible { background: rgba(127, 127, 127, .14); }
.pl-chapters li button[aria-current] { background: rgba(127, 127, 127, .2); font-weight: 600; }
.pl-ch-name > * { font: inherit; }
.pl-ch-at { font-size: .78rem; opacity: .6; font-variant-numeric: tabular-nums; }
.pl-ch-more { padding: 10px 12px 6px; font-size: .8rem; opacity: .55; }
.pl-again { border: 0; padding: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* ---------- admin bar: readable in light mode, and the player sits above it */
/* while a chapter is playing, the player names the chapter (the story's title is on the page already) */
.pl-title:has(.pl-chap:not(:empty)) [data-pl-name] { display: none; }
.pl-title .pl-chap { font-size: .85rem; font-weight: 500; opacity: 1; }

/* Cloudflare Turnstile bot check on sign-in and sign-up */
.cf-turnstile { width: 100%; min-height: 65px; }
