/* Copyright (c) 2026 Simon and Bella.
   Made with love by Simon and Bella. */

:root {
    --bg: #0a0a0a;
    --card: #111111;
    --card-2: #171717;
    --input: #0d0d0d;
    --line: #232323;
    --line-2: #333333;
    --text: #f2f1ec;
    --mid: #c4c3bd;
    --dim: #8a8984;
    --faint: #5c5b57;
    --accent: #3d9bff;
    --ok: #4cd07d;
    --bad: #ff5a4e;
    --warn: #ffb020;
    --beta: #ffb020;
    --r: 3px;
    --head: "Bahnschrift", "DIN Alternate", "Arial Narrow", Arial, sans-serif;
    --body: "Segoe UI", system-ui, Arial, sans-serif;
    --mono: "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 14px/1.55 var(--body);
    min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); color: #fff; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: .01em; }
h1 { font-size: 30px; line-height: 1.05; margin: 0 0 6px; text-transform: uppercase; }
h2 { font-size: 13px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); display: flex; align-items: center; gap: 10px; }
h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
p { margin: 0 0 10px; }
code, pre { font-family: var(--mono); font-size: 12.5px; }
code { background: var(--card-2); padding: 1px 5px; border: 1px solid var(--line); border-radius: 2px; }
pre { background: var(--input); border: 1px solid var(--line); padding: 10px 12px; overflow-x: auto; margin: 8px 0; border-radius: var(--r); }
blockquote { margin: 8px 0; padding: 4px 12px; border-left: 2px solid var(--line-2); color: var(--mid); }
.dim { color: var(--dim); font-size: 13px; }
.faint { color: var(--faint); font-size: 12px; }
.mono { font-family: var(--mono); }
.eyebrow { font: 600 11px var(--head); color: var(--faint); text-transform: uppercase; letter-spacing: .16em; }
::selection { background: var(--accent); color: #000; }


.top { background: var(--bg); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; height: 58px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 2px; object-fit: cover; border: 1px solid var(--line-2); }
.brand b { font: 700 19px var(--head); text-transform: uppercase; letter-spacing: .04em; }
.brand b span { color: var(--accent); }
.tabs { display: flex; gap: 2px; flex: 1; align-self: stretch; }
.tab { display: flex; align-items: center; padding: 0 12px; color: var(--dim); text-decoration: none; font: 600 12.5px var(--head); text-transform: uppercase; letter-spacing: .12em; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); border-bottom-color: var(--text); }
.user { display: flex; gap: 6px; align-items: center; }
.user a { color: var(--mid); text-decoration: none; font: 600 12px var(--head); text-transform: uppercase; letter-spacing: .1em; padding: 6px 10px; border: 1px solid transparent; border-radius: var(--r); }
.user a:hover { color: var(--text); border-color: var(--line-2); }
.user a.on { color: var(--text); }
.user a:last-child:not(:first-child) { border-color: var(--line-2); }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 32px 20px 48px; flex: 1; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer-inner { max-width: 1080px; margin: 0 auto; padding: 14px 20px; display: flex; justify-content: space-between; color: var(--faint); font: 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; }

.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.actions { display: flex; gap: 8px; }
.crumbs { font: 11.5px var(--mono); color: var(--faint); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .06em; }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: var(--text); }


.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 14px; }
.card.flush { padding: 0; overflow: hidden; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: 1.6fr 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.halves { grid-template-columns: 1fr 1fr; }
.grid .card { margin-bottom: 0; }


.hero { display: grid; grid-template-columns: 1fr 230px; gap: 28px; align-items: end; padding: 8px 0 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 88px; line-height: .86; margin: 14px 0 18px; letter-spacing: -.01em; font-weight: 700; }
.hero h1 span { color: var(--accent); }
.hero p { color: var(--mid); font-size: 15px; max-width: 520px; margin-bottom: 22px; }
.hero .art { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; aspect-ratio: 1; background: var(--card); }
.hero .art img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9); }
.hero .actions { gap: 10px; }
.statusbar { display: flex; flex-wrap: wrap; gap: 0; font: 12px var(--mono); text-transform: uppercase; letter-spacing: .05em; border: 1px solid var(--line); border-radius: var(--r); width: fit-content; }
.statusbar > span { padding: 6px 12px; color: var(--dim); border-right: 1px solid var(--line); display: flex; align-items: center; }
.statusbar > span:last-child { border-right: 0; }
.statusbar b { color: var(--text); font-weight: 500; margin-left: 6px; }


.chan { position: relative; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 18px; background: var(--card); }
.chan::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--text); border-radius: var(--r) 0 0 var(--r); }
.chan.beta::before { background: var(--beta); }
.chan .name { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.chan .name b { font: 600 13px var(--head); text-transform: uppercase; letter-spacing: .16em; color: var(--dim); }
.chan .ver { font: 600 30px/1 var(--mono); letter-spacing: -.02em; }
.chan.beta .ver { color: var(--beta); }
.chan .when { color: var(--faint); font: 11.5px var(--mono); margin-top: 6px; text-transform: uppercase; letter-spacing: .04em; }
.chan .notes { color: var(--mid); font-size: 13px; white-space: pre-line; margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line-2); max-height: 110px; overflow: auto; }
.chan.empty-chan .ver { color: var(--faint); }


button, .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 38px; padding: 0 18px; border: 1px solid var(--text); border-radius: var(--r); cursor: pointer;
    font: 600 13px var(--head); text-transform: uppercase; letter-spacing: .1em;
    color: #0a0a0a; background: var(--text); text-decoration: none;
}
button:hover, .btn:hover { background: #fff; border-color: #fff; color: #000; }
button:active, .btn:active { transform: translateY(1px); }
button.secondary, .btn.secondary, button.ghost, .btn.ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
button.secondary:hover, .btn.secondary:hover, button.ghost:hover, .btn.ghost:hover { border-color: var(--text); background: transparent; color: var(--text); }
button.danger, .btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); }
button.danger:hover, .btn.danger:hover { background: var(--bad); color: #000; }
button.small, .btn.small { height: 28px; padding: 0 11px; font-size: 11.5px; }
button.link { background: none; border: 0; color: var(--dim); height: auto; padding: 0; font: 12px var(--body); text-transform: none; letter-spacing: 0; }
button.link:hover { color: var(--text); background: none; text-decoration: underline; }
button.link.danger { color: var(--dim); }
button.link.danger:hover { color: var(--bad); background: none; }


input[type=text], input[type=password], input[type=search], input[type=file], select, textarea {
    width: 100%; background: var(--input); color: var(--text);
    border: 1px solid var(--line-2); border-radius: var(--r); padding: 9px 11px;
    font: 14px var(--body); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--text); }
textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
form > input, form > textarea, form > select { margin-bottom: 10px; }
label { color: var(--dim); font-size: 13px; }
select { width: auto; min-width: 160px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); margin-bottom: 10px; }
.seg label { padding: 7px 18px; cursor: pointer; color: var(--dim); font: 600 12px var(--head); text-transform: uppercase; letter-spacing: .1em; }
.seg label + label { border-left: 1px solid var(--line-2); }
.seg input { display: none; }
.seg label:has(input:checked) { background: var(--text); color: #000; }
.seg label:has(input[value=beta]:checked) { background: var(--beta); color: #000; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--faint); font: 600 11px var(--head); text-transform: uppercase; letter-spacing: .12em; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--mid); }

.notice { padding: 10px 14px; border-radius: var(--r); margin-bottom: 16px; border: 1px solid var(--line-2); border-left-width: 3px; background: var(--card); }
.notice-error { border-left-color: var(--bad); color: #ffb3ad; }
.notice-success { border-left-color: var(--ok); color: #a8edc2; }

.pill { display: inline-block; padding: 1px 7px; border-radius: 2px; font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--line-2); color: var(--dim); vertical-align: middle; }
.pill.active, .pill.ok { color: var(--ok); border-color: var(--ok); }
.pill.revoked, .pill.banned, .pill.bad { color: var(--bad); border-color: var(--bad); }
.pill.accent, .pill.cyan { color: var(--accent); border-color: var(--accent); }
.pill.warn, .pill.beta { color: var(--beta); border-color: var(--beta); }
.pill.none { color: var(--faint); }

.dot { display: inline-block; width: 7px; height: 7px; background: var(--ok); margin-right: 7px; }
.dot.updating { background: var(--warn); }
.dot.down { background: var(--bad); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r); }
.stat { padding: 12px 14px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .n { font: 600 26px/1.1 var(--mono); color: var(--text); }
.stat .label { font: 600 11px var(--head); color: var(--faint); margin-top: 6px; text-transform: uppercase; letter-spacing: .12em; }

.user-row, .invite-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.user-row:last-child, .invite-row:last-child { border-bottom: 0; }
.user-row form { margin: 0; }

.avatar { flex: none; width: 34px; height: 34px; border-radius: var(--r); display: grid; place-items: center; font: 700 15px var(--head); color: #000; text-transform: uppercase; background: hsl(var(--h, 210) 35% 70%); }
.avatar.big { width: 64px; height: 64px; font-size: 30px; }
.avatar.small { width: 24px; height: 24px; font-size: 12px; }

.news-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-item:first-of-type { padding-top: 0; }
.news-item .t { color: var(--text); font-weight: 600; text-decoration: none; }
.news-item .t:hover { text-decoration: underline; }
.news-item p { margin: 3px 0 0; color: var(--dim); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--dim); }
.kv span:last-child { font-family: var(--mono); font-size: 13px; }


.gate-wrap { max-width: 400px; margin: 6vh auto 0; }
.gate-logo { display: none; }
.gate-tagline { color: var(--dim); margin: 0 0 14px; font-size: 13px; }
.gate-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 28px; }
.gate-card h1 { margin-bottom: 18px; }
.gate-row { margin-bottom: 14px; }
.gate-row-label { display: block; font: 600 11px var(--head); color: var(--dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .14em; }
.gate-row-submit { margin: 20px 0 0; }
.gate-row-submit button { width: 100%; height: 42px; }
.gate-check { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--dim); cursor: pointer; }
.gate-foot { text-align: center; color: var(--dim); font-size: 13px; margin-top: 16px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 66px; }
.pw-toggle { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); height: 26px; padding: 0 9px; font-size: 10.5px; background: transparent; border: 1px solid var(--line-2); color: var(--dim); }
.pw-toggle:hover { color: var(--text); background: transparent; border-color: var(--text); }
.field-note { margin-top: 6px; }


.cat, .thr { display: grid; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.cat { grid-template-columns: 1fr 110px 250px; }
.thr { grid-template-columns: 1fr 90px 180px; }
.cat:last-child, .thr:last-child { border-bottom: 0; }
.cat:hover, .thr:hover { background: var(--card-2); }
.cat .name, .thr .name { color: var(--text); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.cat .name:hover, .thr .name:hover { text-decoration: underline; }
.cat .nums, .thr .nums { text-align: right; font: 12.5px var(--mono); color: var(--dim); line-height: 1.4; }
.cat .nums b, .thr .nums b { color: var(--text); font-weight: 500; }
.last { font-size: 13px; color: var(--dim); min-width: 0; }
.last a { display: block; color: var(--mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.last a:hover { color: var(--text); text-decoration: underline; }
.list-head { display: grid; gap: 14px; padding: 8px 18px; border-bottom: 1px solid var(--line-2); font: 600 11px var(--head); color: var(--faint); text-transform: uppercase; letter-spacing: .12em; }
.list-head.c { grid-template-columns: 1fr 110px 250px; }
.list-head.t { grid-template-columns: 1fr 90px 180px; }
.list-head span:nth-child(2) { text-align: right; }
.empty { padding: 30px 16px; text-align: center; color: var(--dim); }

.post { display: grid; grid-template-columns: 170px 1fr; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post .author { padding: 16px; border-right: 1px solid var(--line); text-align: center; }
.post .author .avatar { margin: 0 auto 8px; }
.post .author .name { color: var(--text); font-weight: 600; word-break: break-word; }
.post .author .pill { margin-top: 6px; }
.post .author .faint { margin-top: 8px; line-height: 1.5; }
.post .main { padding: 14px 18px 16px; min-width: 0; }
.post .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 11.5px var(--mono); color: var(--faint); margin-bottom: 8px; }
.post .meta form { display: inline; margin: 0; }
.post .meta .tools { display: flex; gap: 12px; align-items: center; }
.post .body { color: var(--text); word-wrap: break-word; overflow-wrap: anywhere; }
.pager { display: flex; gap: 4px; align-items: center; margin: 4px 0 14px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 32px; height: 32px; padding: 0 9px; display: grid; place-items: center; border-radius: var(--r); font: 12.5px var(--mono); border: 1px solid var(--line); color: var(--mid); text-decoration: none; }
.pager a:hover { border-color: var(--text); color: var(--text); }
.pager .on { background: var(--text); border-color: var(--text); color: #000; }
.modbar { display: flex; gap: 8px; flex-wrap: wrap; }
.modbar form { margin: 0; }
.reply textarea { min-height: 120px; }
.hint { font-size: 12px; color: var(--faint); margin: -4px 0 10px; }


@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes letter { 0% { opacity: 0; transform: translateY(.45em) skewY(6deg); filter: blur(4px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes sweep { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.wordmark i { display: inline-block; font-style: normal; opacity: 0; animation: letter .7s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 55ms + 120ms); }
@keyframes glint { 0%, 12%, 100% { color: var(--accent); } 6% { color: #c8e4ff; } }
.wordmark span i { color: var(--accent); animation: letter .7s cubic-bezier(.2, .8, .2, 1) forwards, glint 5s linear infinite;
    animation-delay: calc(var(--i) * 55ms + 120ms), calc(var(--i) * 90ms + 1.2s); }
.brand-word span { display: inline-block; transition: transform .25s; }
.brand:hover .brand-word span { transform: translateY(-2px); }
.statusbar .dot { animation: blink 2.4s ease-in-out infinite; }
.hero > div > *:not(.wordmark), .hero .art { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.hero .art { animation-delay: .25s; }
.hero .actions { animation-delay: .5s; }
.chan, .card, .news-item, .kv { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; }
.grid > :nth-child(2) { animation-delay: .08s; }
h2::after { transform-origin: left; animation: grow .8s cubic-bezier(.2, .8, .2, 1) both; }
.chan { transition: border-color .2s, transform .2s; }
.chan:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tab { transition: color .2s, border-color .2s; }
button, .btn { transition: background .2s, border-color .2s, color .2s, transform .1s; }
.cat, .thr { transition: background .15s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .wordmark i { opacity: 1; } }

@media (max-width: 760px) {
    .top-inner { height: auto; flex-wrap: wrap; padding: 10px 14px; gap: 6px 16px; }
    .tabs { order: 3; flex-basis: 100%; flex-wrap: wrap; }
    .tab { padding: 8px 9px; }
    .user { margin-left: auto; }
    .container { padding: 20px 14px 28px; }
    .hero { grid-template-columns: 1fr; }
    .hero .art { display: none; }
    .hero h1 { font-size: 58px; }
    .grid.two, .grid.three, .grid.halves { grid-template-columns: 1fr; }
    .cat, .list-head.c { grid-template-columns: 1fr 70px; }
    .thr, .list-head.t { grid-template-columns: 1fr 60px; }
    .cat .last, .thr .last, .list-head span:nth-child(3) { display: none; }
    .post { grid-template-columns: 1fr; }
    .post .author { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
    .post .author .avatar { margin: 0; width: 28px; height: 28px; font-size: 13px; }
    .post .author .faint { display: none; }
    .post .author .pill { margin: 0; }
}
