@font-face { font-family: 'Hanken'; src: url(/fonts/hanken-latin.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken'; src: url(/fonts/hanken-latin-ext.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Hanken'; src: url(/fonts/hanken-latin-italic.woff2) format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: 'Literata'; src: url(/fonts/literata-latin.woff2) format('woff2'); font-weight: 200 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; src: url(/fonts/literata-latin-ext.woff2) format('woff2'); font-weight: 200 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF; }
@font-face { font-family: 'Literata'; src: url(/fonts/literata-latin-italic.woff2) format('woff2'); font-weight: 200 900; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }

:root {
  --bg: #FFFFFF; --con: #EDEDEA; --ink: #1A1A18; --sec: #5C5C57; --hair: #E0E0DC; --tick: #7A7A74;
  --acc: #B3245A; --acc-h: #8F1C48; --acc-t: #F7E6ED; --black: #0B0B0A;
  --sans: 'Hanken', 'Segoe UI', Roboto, sans-serif; --serif: 'Literata', Georgia, serif;
  --top: 56px; --r: 8px; --ease: cubic-bezier(.2, .7, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--sans); font-feature-settings: 'kern'; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r); z-index: 100; text-decoration: none; }
.skip:focus { top: 8px; }
.i { flex: none; }
.h { color: var(--sec); }
.num { font-variant-numeric: tabular-nums; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .14s var(--ease), color .14s var(--ease), border-color .14s var(--ease); white-space: nowrap; }
.btn-1 { background: var(--ink); color: #fff; }
.btn-1:hover { background: #3a3a37; border-color: #3a3a37; }
.btn-2 { background: transparent; color: var(--ink); }
.btn-2:hover { background: var(--con); }
.btn-s { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: default; }
.btn-danger { border-color: var(--acc); color: var(--acc); background: transparent; }
.btn-danger:hover { background: var(--acc-t); }
.lnk { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; font-size: 14px; }
.lnk:hover { color: var(--acc); }
@media (pointer: coarse) { .btn-s { min-height: 44px; } }

/* top bar */
.top { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--hair); height: var(--top); }
.top-in { max-width: 1240px; margin: 0 auto; height: 100%; padding: 0 20px; display: flex; align-items: center; gap: 28px; }
.wordmark { font-weight: 700; font-size: 23px; letter-spacing: -.03em; text-decoration: none; line-height: 1; padding: 8px 0; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--sec); padding: 8px 10px; border-radius: var(--r); position: relative; }
.nav a:hover { color: var(--ink); background: var(--con); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -9px; height: 2px; background: var(--acc); }
.search { flex: 1; max-width: 300px; margin-left: auto; position: relative; }
.search .i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--sec); width: 18px; height: 18px; }
.search input { width: 100%; height: 38px; border: 1px solid var(--hair); background: var(--bg); border-radius: var(--r); padding: 0 12px 0 36px; font-size: 15px; }
.search input:focus { border-color: var(--tick); outline: none; box-shadow: 0 0 0 2px var(--acc-t); }
.acct { display: flex; align-items: center; gap: 12px; }
.top-me { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); color: var(--ink); }
.top-me:hover { background: var(--con); }
.dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background: var(--acc); border-radius: 50%; border: 2px solid var(--bg); box-sizing: content-box; }
.top-av { display: block; border-radius: var(--r); }

/* avatars */
.av { width: 40px; height: 40px; border-radius: var(--r); background: var(--con); color: var(--ink); display: inline-grid; place-items: center; font-weight: 600; font-size: 14px; letter-spacing: .02em; flex: none; object-fit: cover; }
.av-s { width: 28px; height: 28px; font-size: 11px; border-radius: 6px; }
.av-l { width: 72px; height: 72px; font-size: 24px; border-radius: 12px; }

/* frame */
.frame { max-width: 1240px; margin: 0 auto; padding: 24px 20px 64px; display: grid; grid-template-columns: minmax(0, 640px); justify-content: center; gap: 40px; }
.has-console .frame { grid-template-columns: 300px minmax(0, 600px); justify-content: center; }
.console { display: none; }
.has-console .console { display: block; }
.rail { display: none; }
main { min-width: 0; outline: none; }
@media (min-width: 1280px) {
  .has-console .frame { grid-template-columns: 300px minmax(0, 600px) 240px; }
  .has-console .rail { display: block; }
}
.v-page .frame, .v-write .frame, .v-article .frame { grid-template-columns: minmax(0, 680px); }
.v-page .frame .console, .v-write .frame .console, .v-article .frame .console { display: none; }

/* console */
.console { position: sticky; top: calc(var(--top) + 24px); align-self: start; max-height: calc(100vh - var(--top) - 48px); overflow: auto; }
.con { background: var(--con); border-radius: var(--r); padding: 18px 20px 20px; }
.con-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.con-t { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.dial { padding: 10px 0 6px; }
.dial-top { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.dial-top label { font-weight: 600; }
.dial-right { color: var(--sec); margin-left: auto; }
.dial-v { min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; margin-left: auto; }
.dial-right + .dial-v { margin-left: 10px; }
.dial-scale { position: relative; height: 34px; }
.ticks { position: absolute; left: 7px; right: 7px; bottom: 4px; width: calc(100% - 14px); height: 14px; stroke: var(--tick); stroke-width: 1; }
.ticks line { vector-effect: non-scaling-stroke; }
.dial-scale input { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; height: 34px; margin: 0; background: transparent; cursor: pointer; }
.dial-scale input::-webkit-slider-runnable-track { height: 34px; background: transparent; }
.dial-scale input::-moz-range-track { height: 34px; background: transparent; }
.dial-scale input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 34px; border: 0; border-radius: 0; background: linear-gradient(var(--acc), var(--acc)) 50% 2px / 9px 9px no-repeat, linear-gradient(var(--acc), var(--acc)) 50% 2px / 2px 30px no-repeat; transition: transform .14s var(--ease); }
.dial-scale input::-moz-range-thumb { width: 14px; height: 34px; border: 0; border-radius: 0; background: linear-gradient(var(--acc), var(--acc)) 50% 2px / 9px 9px no-repeat, linear-gradient(var(--acc), var(--acc)) 50% 2px / 2px 30px no-repeat; }
.dial-scale input:focus-visible { outline: none; }
.dial-scale input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--con), 0 0 0 4px var(--acc); }
.dial-scale input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--con), 0 0 0 4px var(--acc); }
.sws { border-top: 1px solid #D6D6D1; margin-top: 10px; padding-top: 6px; }
.sw { border: 0; margin: 0; padding: 10px 0 4px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.sw-l { font-size: 14px; font-weight: 600; padding: 0; float: left; }
.seg { display: inline-flex; border: 1px solid var(--tick); border-radius: var(--r); overflow: hidden; flex: none; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 6px 11px; font-size: 13px; font-weight: 500; min-height: 32px; line-height: 20px; transition: background-color .14s var(--ease), color .14s var(--ease); }
.seg label + label span { border-left: 1px solid var(--tick); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: -3px; }
.sel { height: 34px; border: 1px solid var(--tick); border-radius: var(--r); background: var(--bg); padding: 0 28px 0 10px; font-size: 13px; font-weight: 500; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.con-sum { font-size: 13px; color: var(--sec); margin: 14px 0 12px; }
.con-acts { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.con-acts .lnk { font-size: 13px; }
.readout { display: none; }

/* page heads, tabs */
.page-head { padding: 4px 0 18px; }
.page-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.page-head .sub { color: var(--sec); margin-top: 6px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sec); margin-bottom: 6px; }
.kicker a { color: inherit; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--hair); overflow-x: auto; scrollbar-width: none; }
.tabs:empty { display: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex: none; background: none; border: 0; padding: 12px 12px 13px; font-size: 15px; font-weight: 500; color: var(--sec); text-decoration: none; cursor: pointer; position: relative; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { color: var(--ink); font-weight: 600; }
.tabs [aria-selected="true"]::after, .tabs [aria-current="page"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--acc); }
.intro { padding: 4px 0 22px; border-bottom: 1px solid var(--hair); margin-bottom: 4px; }
.intro h1 { font-size: 30px; font-weight: 700; letter-spacing: -.025em; max-width: 18em; }
.intro p { margin-top: 10px; color: var(--sec); font-size: 17px; max-width: 34em; }
.intro .intro-l { font-size: 15px; }

/* posts */
.feed { transition: opacity .18s var(--ease); }
.feed.dim { opacity: .35; }
.post { padding: 16px 0 6px; border-bottom: 1px solid var(--hair); }
.p-rp, .p-re { font-size: 13px; color: var(--sec); display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.p-rp { margin-left: 52px; }
.p-rp .i { width: 16px; height: 16px; }
.p-rp a, .p-re a { color: var(--ink); text-decoration: none; font-weight: 500; }
.p-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; column-gap: 12px; align-items: center; }
.p-av { grid-row: span 1; }
.p-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.p-name { font-weight: 600; text-decoration: none; }
.p-name:hover { text-decoration: underline; }
.p-who .h { font-size: 14px; }
.p-time { font-size: 14px; color: var(--sec); text-decoration: none; font-variant-numeric: tabular-nums; }
.p-time:hover { text-decoration: underline; }
.p-more { background: none; border: 0; width: 36px; height: 36px; display: grid; place-items: center; color: var(--sec); border-radius: var(--r); cursor: pointer; margin-right: -8px; }
.p-more:hover { background: var(--con); color: var(--ink); }
.p-body { margin-left: 52px; margin-top: -14px; }
.p-text { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.p-text a, .art-body a { color: var(--ink); text-decoration-color: var(--tick); text-underline-offset: 2px; }
.p-text a:hover { text-decoration-color: var(--acc); }
.p-big { font-size: 19px; line-height: 1.45; margin-top: 4px; }
.post-full .p-body { margin-left: 0; margin-top: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-size: 13px; font-weight: 500; border: 1px solid var(--hair); border-radius: 4px; padding: 1px 8px; text-decoration: none; color: var(--ink); }
a.tag:hover { border-color: var(--tick); }
.tag-ai { background: var(--con); border-color: var(--con); }
.why { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--sec); }
.why .i { width: 16px; height: 16px; color: var(--tick); }
.i-needle { stroke: var(--acc); }
.p-acts { display: flex; gap: 12px; margin: 4px 0 0 -10px; }
.p-acts button { display: inline-flex; align-items: center; gap: 4px; min-width: 44px; height: 40px; padding: 0 10px; background: none; border: 0; border-radius: var(--r); color: var(--sec); cursor: pointer; font-size: 14px; font-variant-numeric: tabular-nums; transition: color .14s var(--ease), background-color .14s var(--ease); }
.p-acts button:hover { background: var(--con); color: var(--ink); }
.p-acts button[aria-pressed="true"] { color: var(--acc); }
.p-acts button[aria-pressed="true"] .i { fill: currentColor; fill-opacity: .14; }
.p-acts button:last-child { margin-left: auto; }
.post.muted-post .p-body > :not(.p-acts) { display: none; }
.post.anc { border-bottom: 0; position: relative; padding-bottom: 0; }
.post.anc::before { content: ''; position: absolute; left: 19.5px; top: 62px; bottom: -8px; width: 1px; background: var(--hair); }
.gone { color: var(--sec); font-size: 14px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.post-full { padding-top: 18px; }
.held { background: var(--acc-t); color: var(--acc-h); font-size: 13px; padding: 6px 10px; border-radius: 4px; margin-top: 10px; }

.art-card { display: block; margin-top: 8px; border: 1px solid var(--hair); border-radius: var(--r); padding: 14px 16px; text-decoration: none; transition: border-color .14s var(--ease); }
.art-card:hover { border-color: var(--tick); }
.art-t { display: block; font: 600 21px/1.25 var(--serif); letter-spacing: -.01em; }
.art-x { display: block; margin-top: 6px; color: var(--sec); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art-m { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--sec); }
.art-m .i { width: 16px; height: 16px; }

.quote { display: block; margin-top: 10px; border: 1px solid var(--hair); border-radius: var(--r); padding: 10px 12px; text-decoration: none; font-size: 15px; }
.quote:hover { border-color: var(--tick); }
.quote-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.quote-head .h { font-size: 13px; }
.quote-title { display: block; font: 600 17px/1.3 var(--serif); margin-top: 6px; }
.quote-text { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.quote-media { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sec); margin-top: 6px; }
.quote-media .i { width: 16px; height: 16px; }
.quote-gone { color: var(--sec); font-size: 14px; }

.ph { display: grid; gap: 2px; margin-top: 10px; }
.ph-cell { padding: 0; border: 0; background: var(--con); cursor: zoom-in; position: relative; overflow: hidden; }
.ph-cell img { width: 100%; height: 100%; object-fit: cover; }
.ph-1 .ph-cell { max-height: 560px; }
.ph-1 .ph-cell img { height: auto; max-height: 560px; }
.ph-2 { grid-template-columns: 1fr 1fr; }
.ph-2 .ph-cell, .ph-4 .ph-cell { aspect-ratio: 1; }
.ph-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 3 / 2; }
.ph-3 .ph-cell:first-child { grid-row: span 2; }
.ph-4 { grid-template-columns: 1fr 1fr; }
.ph-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11, 11, 10, .55); color: #fff; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.clip { display: block; position: relative; margin-top: 10px; padding: 0; border: 0; background: var(--black); width: min(100%, 300px); aspect-ratio: 9 / 16; cursor: pointer; overflow: hidden; }
.clip img { width: 100%; height: 100%; object-fit: cover; }
.clip-play { position: absolute; left: 10px; bottom: 10px; width: 36px; height: 36px; background: var(--black); color: #fff; display: grid; place-items: center; }
.clip-play .i { fill: #fff; stroke: none; }
.clip-dur { position: absolute; right: 10px; bottom: 10px; background: var(--black); color: #fff; font-size: 13px; padding: 2px 6px; font-variant-numeric: tabular-nums; }

/* feed states */
.loading, .empty { color: var(--sec); padding: 28px 0; }
.caught { padding: 28px 0 8px; }
.caught-rule { display: flex; align-items: center; gap: 10px; color: var(--sec); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.caught-rule::before, .caught-rule::after { content: ''; flex: 1; height: 1px; background: var(--hair); }
.caught h2 { font-size: 20px; font-weight: 700; margin-top: 18px; }
.caught p { color: var(--sec); margin-top: 6px; max-width: 34em; }
.caught .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.more-row { padding: 20px 0; display: flex; justify-content: center; }
.stop { padding: 40px 0; }
.stop h2 { font-size: 24px; font-weight: 700; }
.stop p { color: var(--sec); margin-top: 8px; max-width: 32em; }
.stop .row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* thread */
.thread .replies { margin-top: 0; }
.reply-box { border-bottom: 1px solid var(--hair); padding: 14px 0; }
.reply-box textarea { width: 100%; min-height: 80px; resize: vertical; border: 1px solid var(--hair); border-radius: var(--r); padding: 10px 12px; font-size: 16px; line-height: 1.45; }
.reply-box textarea:focus { outline: none; border-color: var(--tick); box-shadow: 0 0 0 2px var(--acc-t); }
.reply-box .row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 10px; }
.count { font-size: 13px; color: var(--sec); font-variant-numeric: tabular-nums; }
.count.over { color: var(--acc); font-weight: 600; }
.closed { color: var(--sec); font-size: 14px; padding: 14px 0; border-bottom: 1px solid var(--hair); }

/* article */
.article { padding-top: 8px; }
.art-head { padding-bottom: 20px; border-bottom: 1px solid var(--hair); margin-bottom: 28px; }
.art-title { font: 650 clamp(30px, 5vw, 42px)/1.12 var(--serif); letter-spacing: -.015em; font-variation-settings: 'opsz' 60; }
.art-by { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; color: var(--sec); }
.art-by a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.art-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 8px; font-size: 14px; color: var(--sec); font-variant-numeric: tabular-nums; }
.art-meta > * + *::before { content: '·'; margin: 0 8px; color: var(--tick); }
.art-meta a { color: var(--ink); }
.art-body { font: 400 19px/1.65 var(--serif); font-variation-settings: 'opsz' 14; max-width: 38em; }
.art-body > * + * { margin-top: 1.1em; }
.art-body h2 { font: 650 25px/1.25 var(--serif); margin-top: 1.7em; }
.art-body h3 { font: 650 21px/1.3 var(--serif); margin-top: 1.5em; }
.art-body blockquote { margin-left: 0; padding-left: 18px; border-left: 2px solid var(--ink); font-style: italic; }
.art-body ul, .art-body ol { padding-left: 1.3em; }
.art-body li + li { margin-top: .4em; }
.art-body hr { border: 0; border-top: 1px solid var(--hair); margin: 2em 0; }
.art-body code { font-size: .88em; background: var(--con); padding: 1px 5px; border-radius: 3px; }
.art-img { margin: 1.6em 0; }
.art-img img { width: 100%; height: auto; }
.art-img figcaption { font: 400 14px/1.4 var(--sans); color: var(--sec); margin-top: 8px; }
.art-foot { margin-top: 32px; border-top: 1px solid var(--hair); }
.art-foot .p-head { display: none; }

/* profile */
.prof { padding-bottom: 0; }
.prof-top { display: flex; align-items: center; gap: 16px; }
.prof-id { min-width: 0; flex: 1; }
.prof-id h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.prof-acts { display: flex; gap: 8px; align-items: center; }
.prof-bio { margin-top: 14px; max-width: 36em; overflow-wrap: anywhere; }
.prof-counts { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 14px; color: var(--sec); }
.prof-counts a { text-decoration: none; }
.prof-counts a:hover { text-decoration: underline; }
.prof-counts b { color: var(--ink); font-variant-numeric: tabular-nums; }
.prof .tabs { margin-top: 18px; }
.urow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.urow-id { flex: 1; min-width: 0; }
.urow-id a { text-decoration: none; font-weight: 600; }
.urow-id p { font-size: 14px; color: var(--sec); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* feeds */
.fcard { padding: 18px 0; border-bottom: 1px solid var(--hair); }
.fcard-a { text-decoration: none; display: block; }
.fcard-t { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.fcard-a:hover .fcard-t { text-decoration: underline; }
.fcard-d { margin-top: 4px; color: var(--sec); }
.fcard .scales { margin-top: 14px; }
.fcard-m { font-size: 13px; color: var(--sec); margin-top: 10px; }
.fcard-by { font-size: 13px; color: var(--sec); margin-top: 4px; }
.fcard-by a { color: var(--ink); }
.scales { overflow: visible; height: auto; }
.scales .sl { font: 600 12px var(--sans); fill: var(--ink); }
.scales .st { stroke: var(--tick); stroke-width: 1; }
.scales .sk line { stroke: var(--tick); stroke-width: 1; }
.scales .sn { stroke: var(--acc); stroke-width: 2; }
.scales .sh { fill: var(--acc); }
.scales .sv { font: 600 13px var(--sans); fill: var(--ink); font-variant-numeric: tabular-nums; }
.fhead-sc { background: var(--con); border-radius: var(--r); padding: 16px 18px; margin-top: 16px; max-width: 360px; }
.fhead-acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* explore */
.ex-sec { margin-bottom: 34px; }
.ex-sec > h2 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sec); padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.trend { list-style: none; margin: 0; padding: 0; }
.trend li { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.trend .n { width: 2ch; color: var(--sec); font-size: 14px; font-variant-numeric: tabular-nums; }
.trend a { font-weight: 600; text-decoration: none; flex: 1; }
.trend a:hover { text-decoration: underline; }
.trend .c { font-size: 13px; color: var(--sec); font-variant-numeric: tabular-nums; }
.comms { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--hair); }
.comms a { display: block; padding: 14px 16px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); text-decoration: none; }
.comms a:hover { background: var(--con); }
.comms b { display: block; font-size: 16px; }
.comms span { display: block; font-size: 13px; color: var(--sec); margin-top: 4px; }
.comms .c { font-variant-numeric: tabular-nums; margin-top: 8px; }

/* rail */
.rail { position: sticky; top: calc(var(--top) + 24px); align-self: start; }
.rail-box + .rail-box { margin-top: 28px; }
.rail-box h2 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sec); padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.rail-list { list-style: none; margin: 0; padding: 0; }
.rail-list li { border-bottom: 1px solid var(--hair); }
.rail-list a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; font-size: 14px; text-decoration: none; }
.rail-list a:hover { text-decoration: underline; }
.rail-list .c { color: var(--sec); font-variant-numeric: tabular-nums; }

/* forms, pages */
.page { padding-top: 4px; }
.page h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.page > p, .page .sub { margin-top: 12px; }
.narrow { max-width: 480px; }
.prose { max-width: 40em; }
.prose h1 { margin-bottom: 16px; }
.prose h2 { font-size: 20px; font-weight: 700; margin-top: 36px; }
.prose h3 { font-size: 17px; font-weight: 700; margin-top: 24px; }
.prose p, .prose ul, .prose ol, .prose table, .prose pre { margin-top: 12px; }
.prose li + li { margin-top: 6px; }
.prose a { text-underline-offset: 3px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.prose th { font-weight: 600; border-bottom-color: var(--ink); }
.prose code { font-size: .9em; background: var(--con); padding: 1px 5px; border-radius: 3px; }
.prose pre { background: var(--con); padding: 14px 16px; border-radius: var(--r); overflow-x: auto; font-size: 14px; line-height: 1.45; }
.prose pre code { background: none; padding: 0; }
.field { margin-top: 18px; }
.field > label, .field > .lab { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--sec); margin-top: 6px; }
.inp { width: 100%; min-height: 44px; border: 1px solid var(--tick); border-radius: var(--r); padding: 9px 12px; font-size: 16px; background: var(--bg); }
.inp:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 2px var(--acc-t); }
textarea.inp { resize: vertical; line-height: 1.5; }
.inp-pre { display: flex; align-items: stretch; }
.inp-pre span { display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--tick); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: var(--con); color: var(--sec); }
.inp-pre .inp { border-radius: 0 var(--r) var(--r) 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.err { color: var(--acc-h); background: var(--acc-t); border-left: 2px solid var(--acc); padding: 8px 12px; font-size: 14px; margin-top: 12px; }
.ok-msg { font-size: 14px; color: var(--sec); margin-top: 6px; }
.set-sec { padding: 22px 0; border-bottom: 1px solid var(--hair); }
.set-sec h2 { font-size: 18px; font-weight: 700; }
.set-sec > p { color: var(--sec); font-size: 15px; margin-top: 6px; }
.set-list { list-style: none; padding: 0; margin: 12px 0 0; }
.set-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 15px; }
.set-list li:last-child { border-bottom: 1px solid var(--hair); }
.set-list code { font-size: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* write */
.w-kinds { display: inline-flex; border: 1px solid var(--tick); border-radius: var(--r); overflow: hidden; margin-top: 16px; }
.w-kinds button { background: none; border: 0; padding: 9px 16px; font-size: 14px; font-weight: 500; cursor: pointer; min-height: 40px; }
.w-kinds button + button { border-left: 1px solid var(--tick); }
.w-kinds button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.w-kinds button[disabled] { color: var(--sec); cursor: not-allowed; }
.w-title { font: 650 28px/1.2 var(--serif); border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; padding: 12px 0; width: 100%; }
.w-title:focus { outline: none; border-bottom-color: var(--ink); }
.w-body { font: 400 18px/1.6 var(--serif); min-height: 360px; }
.w-note { font-size: 18px; min-height: 150px; }
.w-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.w-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hair); }
.md-hint { font-size: 13px; color: var(--sec); margin-top: 8px; }
.md-hint code { font-size: 12px; background: var(--con); padding: 1px 4px; border-radius: 3px; }
.preview { border: 1px solid var(--hair); border-radius: var(--r); padding: 20px; margin-top: 16px; }
.qprev { margin-top: 12px; }

/* alerts */
.al { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.al.unread { box-shadow: inset 2px 0 0 var(--acc); padding-left: 12px; }
.al-i { color: var(--sec); padding-top: 3px; }
.al-t { font-size: 15px; }
.al-t a { font-weight: 600; text-decoration: none; }
.al-t a:hover { text-decoration: underline; }
.al-t time { color: var(--sec); font-size: 14px; }
.al-p { margin-top: 6px; color: var(--sec); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-decoration: none; overflow-wrap: anywhere; }

/* dialogs, menus, toasts */
dialog { border: 0; padding: 0; border-radius: var(--r); background: var(--bg); color: var(--ink); max-width: min(440px, calc(100vw - 32px)); width: 100%; box-shadow: 0 10px 40px rgba(26, 26, 24, .18); }
dialog::backdrop { background: rgba(26, 26, 24, .4); }
dialog[open] { animation: dlg .18s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: translateY(8px); } }
.dlg { padding: 20px; }
.dlg h2 { font-size: 18px; font-weight: 700; }
.dlg p { color: var(--sec); margin-top: 6px; font-size: 15px; }
.dlg .row { margin-top: 18px; justify-content: flex-end; }
.menu { list-style: none; margin: 0; padding: 6px 0; }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 20px; background: none; border: 0; text-align: left; font-size: 15px; text-decoration: none; cursor: pointer; }
.menu button:hover, .menu a:hover { background: var(--con); }
.menu .danger { color: var(--acc); }
.menu-h { padding: 14px 20px 6px; font-size: 13px; color: var(--sec); }
.radio-list label { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 15px; cursor: pointer; }
.radio-list input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .18s var(--ease), transform .18s var(--ease); z-index: 90; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.scrim { position: fixed; inset: 0; background: rgba(26, 26, 24, .4); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); }
.scrim.on { opacity: 1; pointer-events: auto; }

/* full-screen viewer */
.viewer { position: fixed; inset: 0; z-index: 80; background: var(--black); color: #fff; display: none; }
.viewer.on { display: block; }
.vw-track { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
.vw-track::-webkit-scrollbar { display: none; }
.vw-item { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; display: grid; place-items: center; }
.vw-media { width: 100%; height: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.vw-media::-webkit-scrollbar { display: none; }
.vw-media > * { flex: none; width: 100%; height: 100%; scroll-snap-align: center; object-fit: contain; }
.vw-media video { background: #000; }
.vw-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 72px calc(20px + env(safe-area-inset-bottom)) 16px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); font-size: 15px; pointer-events: none; }
.vw-cap a { pointer-events: auto; color: #fff; font-weight: 600; text-decoration: none; }
.vw-cap p { margin-top: 4px; max-width: 36em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vw-n { position: absolute; top: calc(16px + env(safe-area-inset-top)); left: 16px; font-size: 13px; font-variant-numeric: tabular-nums; background: rgba(0, 0, 0, .5); padding: 3px 8px; }
.vw-close { position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 10px; width: 44px; height: 44px; display: grid; place-items: center; background: rgba(0, 0, 0, .5); color: #fff; border: 0; border-radius: var(--r); z-index: 2; cursor: pointer; }
.vw-acts { position: absolute; right: 10px; bottom: calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.vw-acts button { width: 48px; height: 48px; display: grid; place-items: center; background: rgba(0, 0, 0, .5); color: #fff; border: 0; border-radius: var(--r); cursor: pointer; }
.vw-acts button[aria-pressed="true"] { color: #F3A9C4; }
.vw-why { position: absolute; top: calc(16px + env(safe-area-inset-top)); left: 16px; right: 70px; font-size: 13px; display: flex; gap: 6px; align-items: center; color: #D9D9D4; }

/* footer, tab bar */
.foot { max-width: 1240px; margin: 0 auto; padding: 0 20px 40px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.foot a { color: var(--sec); }
.has-console .foot { display: none; }
.rail-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; margin-top: 28px; }
.rail-foot a { color: var(--sec); }
.tabbar { display: none; }

@media (max-width: 1023px) {
  :root { --top: 52px; }
  .top-in { gap: 12px; padding: 0 14px; }
  .nav, .top-write, .top-me { display: none; }
  .search { max-width: none; }
  .search input { height: 36px; }
  .frame, .has-console .frame { grid-template-columns: minmax(0, 1fr); padding: 0 16px 96px; gap: 0; }
  .v-page .frame, .v-write .frame, .v-article .frame { padding-top: 20px; }
  .has-console .readout { display: flex; position: sticky; top: var(--top); z-index: 20; width: 100%; align-items: center; gap: 10px; height: 44px; padding: 0 16px; background: var(--con); border: 0; border-bottom: 1px solid #D6D6D1; text-align: left; cursor: pointer; font-size: 13px; }
  .ro-name { font-weight: 600; flex: none; max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ro-vals { flex: 1; min-width: 0; display: flex; gap: 10px; overflow: hidden; white-space: nowrap; color: var(--sec); font-variant-numeric: tabular-nums; mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .ro-adj { flex: none; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
  .has-console .console { display: block; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 50; max-height: 86vh; overflow: auto; transform: translateY(105%); transition: transform .2s var(--ease); border-radius: 12px 12px 0 0; background: var(--con); visibility: hidden; }
  .has-console .console.open { transform: none; visibility: visible; }
  .con { border-radius: 12px 12px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .con-head { position: relative; }
  .rail { display: none !important; }
  .page-head, .prof, .thread { padding-top: 18px; }
  .intro { padding-top: 18px; }
  .intro h1 { font-size: 25px; }
  .intro p { font-size: 16px; }
  .post { padding-top: 14px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--bg); border-top: 1px solid var(--hair); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; min-height: 56px; font-size: 11px; font-weight: 500; text-decoration: none; color: var(--sec); position: relative; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar a[aria-current="page"]::before { content: ''; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; background: var(--acc); }
  .tabbar .dot { top: 6px; right: calc(50% - 16px); }
  .foot { padding-bottom: 96px; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .w-opts { grid-template-columns: 1fr; }
  .comms { grid-template-columns: 1fr; }
  dialog.sheet { margin: auto 0 0; max-width: 100vw; border-radius: 12px 12px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 480px) {
  .wordmark { font-size: 21px; }
  .p-body { margin-left: 0; margin-top: 8px; }
  .p-rp { margin-left: 0; }
  .p-acts { justify-content: space-between; gap: 0; }
  .p-acts button:last-child { margin-left: 0; }
  .art-body { font-size: 18px; }
  .prof-top { flex-wrap: wrap; }
  .prof-acts { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}

/* uploads */
.up { margin-top: 14px; }
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.up-grid:empty { display: none; }
.up-img { position: relative; aspect-ratio: 1; background: var(--con); overflow: hidden; }
.up-img img { width: 100%; height: 100%; object-fit: cover; }
.up-st { position: absolute; left: 6px; bottom: 6px; background: rgba(11, 11, 10, .7); color: #fff; font-size: 12px; padding: 2px 6px; font-variant-numeric: tabular-nums; }
.up-tile.ok .up-st { background: var(--ink); }
.up-tile.bad .up-st { background: var(--acc); }
.up-x { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; display: grid; place-items: center; background: rgba(11, 11, 10, .7); color: #fff; border: 0; border-radius: var(--r); cursor: pointer; }
.up-alt { margin-top: 6px; font-size: 14px; min-height: 0; }
.up-add { cursor: pointer; }
.up-add:focus-within { outline: 2px solid var(--acc); outline-offset: 2px; }
.up-vid { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: start; }
.up-vid video { width: 150px; aspect-ratio: 9 / 16; object-fit: cover; background: var(--black); }
.up-vid .up-st { position: static; background: none; color: var(--ink); padding: 0; font-size: 14px; }
.up-vid progress { width: 100%; height: 6px; margin: 8px 0 4px; appearance: none; border: 0; background: var(--con); }
.up-vid progress::-webkit-progress-bar { background: var(--con); }
.up-vid progress::-webkit-progress-value { background: var(--ink); }
.up-vid progress::-moz-progress-bar { background: var(--ink); }
.clip.clip-wide { width: 100%; }
