* { box-sizing: border-box; }
:root { color-scheme: dark; --bg:#050b1a; --surface:#0b1935; --ink:#f7f8ff; --muted:#aebbd4; --gold:#ffc650; --line:#2c3b56; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.65 Inter, system-ui, sans-serif; }
a { color:inherit; text-underline-offset:.25em; }
a:hover, [aria-current] { color:var(--gold); }
:focus-visible { outline:3px solid #39a9ff; outline-offset:4px; }
.top { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; padding:1rem max(5vw,1rem); border-bottom:1px solid var(--line); }
.brand { display:block; width:154px; height:auto; }
.top nav, .topics, .actions { display:flex; flex-wrap:wrap; align-items:center; gap:.65rem 1rem; }
.top nav a { font-size:.9rem; text-decoration:none; }
main { width:min(1120px, 90%); min-height:60vh; margin:clamp(2rem,6vw,5rem) auto; }
h1,h2 { line-height:1.15; margin:0 0 1rem; }
h1 { font-size:clamp(2.45rem,6vw,4.8rem); letter-spacing:-.045em; overflow-wrap:anywhere; }
h2 { font-size:1.35rem; }
.intro,.muted,small { color:var(--muted); }
.topics { margin:1.75rem 0; }
.topic,.button,button { display:inline-block; padding:.5rem .85rem; border:1px solid var(--line); border-radius:.5rem; text-decoration:none; }
button,.button { font:inherit; cursor:pointer; background:var(--gold); color:var(--bg); font-weight:650; }
.secondary { background:transparent; color:var(--ink); }
.topic[aria-current] { border-color:var(--gold); }
.cards,.admin-grid { display:grid; gap:1.2rem; }
.cards { grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr)); }
.card,.panel { background:var(--surface); border:1px solid var(--line); border-radius:.85rem; overflow:hidden; }
.card img,.hero-cover { display:block; width:100%; }
.card img { aspect-ratio:16/9; object-fit:cover; }
.card div,.panel { padding:1.15rem; }
.card p { margin:0 0 .6rem; }
.card a { overflow-wrap:anywhere; }
.reading { max-width:780px; }
.reading h1 { margin-top:1rem; }
.hero-cover { border-radius:.85rem; max-height:640px; object-fit:contain; }
.prose { margin:2rem 0; font-size:1.1rem; overflow-wrap:anywhere; }
.actions { margin:.75rem 0 1.25rem; }
.admin-grid { grid-template-columns:minmax(0,2fr) minmax(0,1fr); align-items:start; }
aside .panel + .panel { margin-top:1rem; }
label { display:block; margin:.8rem 0; font-weight:600; }
input,select,textarea { display:block; width:100%; margin-top:.35rem; padding:.65rem; border:1px solid var(--line); border-radius:.4rem; background:var(--bg); color:var(--ink); font:inherit; }
textarea { resize:vertical; }
.login { max-width:420px; }
.preview { width:150px; max-width:100%; border-radius:.45rem; }
.post-list { padding-left:1.2rem; overflow-wrap:anywhere; }
.post-list small { display:block; }
.notice { color:#ffc1c1; }
footer { border-top:1px solid var(--line); padding:1.5rem 5%; color:var(--muted); }
footer a { margin-inline-start:1em; }
@media(max-width:730px) { .top nav { order:3; width:100%; } .admin-grid { grid-template-columns:1fr; } }
