[hidden] { display: none !important; }
:root { --bg: #f6f3ee; --card: #fffdf9; --ink: #1d2433; --dim: #6b7280; --line: #e6e0d6; --accent: #2f6f6a; --accent2: #c2552d; }
@media (prefers-color-scheme: dark) { :root { --bg: #11151c; --card: #171c25; --ink: #e7e9ee; --dim: #9aa3b2; --line: #273041; --accent: #5fb3aa; --accent2: #e48a63; color-scheme: dark; } }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 16px/1.55 Inter, system-ui, sans-serif; }
button { font: inherit; cursor: pointer; border: 0; border-radius: 999px; padding: 9px 16px; background: var(--accent); color: #fff; }
button.ghost { background: none; color: var(--accent); border: 1px solid var(--accent); }
button.link { background: none; color: var(--accent); padding: 0; text-decoration: underline; }
input, select, textarea { font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code { font-size: .9em; background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 0 4px; border-radius: 4px; }

#start { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px;
         background: radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 50%),
                     radial-gradient(circle at 85% 90%, color-mix(in srgb, var(--accent2) 16%, transparent), transparent 45%); }
.hero { max-width: 36rem; }
h1 { font: 600 clamp(56px, 12vw, 104px)/.9 Fraunces, Georgia, serif; margin: 0; letter-spacing: -.03em; }
.tag { font: 400 22px/1.3 Fraunces, Georgia, serif; color: var(--accent); margin: .3em 0 1em; }
.hero form { display: grid; gap: 8px; margin: 26px 0 16px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row input { flex: 1; min-width: 220px; }
.depth { color: var(--dim); font-size: 14px; }
.or { display: flex; gap: 10px; flex-wrap: wrap; }

.top { position: sticky; top: 0; z-index: 5; display: flex; gap: 16px; align-items: center; padding: 10px 20px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { background: none; color: var(--ink); font: 600 26px Fraunces, Georgia, serif; padding: 0; }
#me { display: grid; line-height: 1.2; } #me span, #status { color: var(--dim); font-size: 13px; }
#status { margin-left: auto; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; max-width: 1080px; margin: 0 auto; padding: 22px 16px 60px; }
#composer { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 20px; display: grid; gap: 10px; }
#composer textarea { width: 100%; resize: vertical; border: 0; background: none; padding: 4px; }
#replying { margin: 0; color: var(--dim); font-size: 14px; }
#publish { display: flex; gap: 8px; align-items: center; margin-left: auto; font-size: 14px; color: var(--accent2); }
.thread { margin-bottom: 18px; }
.post { --d: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-left: calc(var(--d) * 26px); position: relative; }
.post + .post { margin-top: 8px; }
.post[style*="--d:1"]::before, .post[style*="--d:2"]::before, .post[style*="--d:3"]::before { content: ""; position: absolute; left: -14px; top: -8px; bottom: 50%; width: 12px; border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); border-bottom-left-radius: 10px; }
.post header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.who { font-weight: 600; color: var(--ink); text-decoration: none; }
.who:hover { color: var(--accent); }
time { color: var(--dim); font-size: 13px; }
.post .tag { font-size: 12px; color: var(--accent2); }
.post.unpublished { border-style: dashed; border-color: var(--accent2); }
.body { margin: 6px 0 4px; overflow-wrap: anywhere; }
.body p { margin: 0 0 .5em; } .body img { max-width: 100%; border-radius: 8px; }
.reply { background: none; color: var(--dim); padding: 2px 0; font-size: 13px; }
.reply:hover { color: var(--accent); }
.empty { color: var(--dim); }
aside h2 { font: 600 20px Fraunces, Georgia, serif; margin: 0 0 8px; }
#people { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#people li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
#people li > span { grid-column: 1; color: var(--dim); font-size: 12px; }
#people a { color: var(--ink); text-decoration: none; font-weight: 500; }
#people .follow { grid-row: 1 / 3; grid-column: 2; padding: 4px 12px; font-size: 13px; }
#people .errs { display: block; font-size: 12px; color: var(--dim); }
.fine { color: var(--dim); font-size: 13px; }
dialog { max-width: 30rem; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); padding: 22px; }
dialog::backdrop { background: #0007; }
dialog label { display: grid; gap: 4px; margin: 10px 0; color: var(--dim); font-size: 14px; }
dialog h2 { font: 600 26px Fraunces, Georgia, serif; margin: 0 0 6px; }
.close { margin-top: 12px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: 520px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; opacity: 0; transition: opacity .3s; pointer-events: none; }
#toast.on { opacity: 1; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } .post { margin-left: calc(var(--d) * 14px); } }
