:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,.06);
  --panel-2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted-2: rgba(255,255,255,.55);
  --border: rgba(255,255,255,.10);
  --shadow: 0 12px 40px rgba(0,0,0,.38);
  --accent: #7c3aed;
  --accent-2: #22c55e;
  --warn: #f59e0b;
  --link: #93c5fd;
  --radius: 16px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1000px 600px at 15% 0%, rgba(124,58,237,.24), transparent 60%),
    radial-gradient(900px 700px at 85% 10%, rgba(34,197,94,.16), transparent 62%),
    radial-gradient(1200px 800px at 50% 100%, rgba(147,197,253,.12), transparent 60%),
    var(--bg);
  line-height:1.55;
}

a{color:var(--link); text-decoration:none}
a:hover{text-decoration:underline}

.container{
  width:min(1000px, calc(100% - 32px));
  margin:0 auto;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:10px 12px;
  border-radius:10px;
  background:rgba(0,0,0,.65);
  border:1px solid var(--border);
  z-index:999;
}

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter: blur(14px);
  background: rgba(11,18,32,.72);
  border-bottom: 1px solid var(--border);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.brand{display:flex; align-items:center; gap:12px; min-width: 220px;}
.brand__logo{
  width:36px;height:36px;border-radius:12px;
  display:grid;place-items:center;
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(59,130,246,.9));
  box-shadow: 0 10px 22px rgba(124,58,237,.28);
  font-weight:800;
}
.brand__name{font-weight:700; letter-spacing:.2px;}
.brand__tagline{font-size:12px; color:var(--muted-2); margin-top:1px;}

.topnav{display:flex; gap:12px; align-items:center; flex:1; justify-content:center;}
.topnav__link{
  color:var(--muted);
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
}
.topnav__link[aria-current="page"]{
  color:var(--text);
  background:rgba(255,255,255,.06);
  border-color: var(--border);
}
.topbar__actions{display:flex; gap:10px; align-items:center;}
.btn{
  font:inherit;
  color:var(--text);
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  padding:9px 12px;
  border-radius:12px;
  cursor:pointer;
}
.btn:hover{background:rgba(255,255,255,.10)}
.btn--primary{
  border-color: rgba(124,58,237,.55);
  background: rgba(124,58,237,.22);
}
.btn--primary:hover{background: rgba(124,58,237,.32)}
.btn--ghost{
  background:transparent;
}

.thread{padding:28px 0 44px;}
.thread__meta{
  display:flex; align-items:center; gap:10px;
  color:var(--muted-2);
  margin-top:8px;
  flex-wrap:wrap;
}
.thread__meta__sep{opacity:.7}
.thread__meta__text{font-size:13px}

.thread__title{
  margin:10px 0 18px;
  font-size: clamp(17px, 2.1vw, 22px);
  line-height:1.18;
  letter-spacing: -.2px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  font-size:12px;
  font-weight:600;
}
.pill--solved{
  border-color: rgba(34,197,94,.45);
  background: rgba(34,197,94,.16);
  color: rgba(220,252,231,.95);
}
.pill--neutral{
  background: rgba(255,255,255,.06);
  color: var(--muted);
}

.post{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.05));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  scroll-margin-top: 92px;
}
.post + .post{margin-top:14px}
.post__header{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.post__who{min-width:0}
.post__author{font-weight:700}
.post__sub{
  font-size:12px;
  color:var(--muted-2);
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.dot{opacity:.7}

.avatar{
  width:40px;height:40px;border-radius:14px;
  display:grid;place-items:center;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  color:rgba(255,255,255,.86);
  font-weight:800;
  flex:0 0 auto;
}
.avatar--accent{
  background: rgba(124,58,237,.20);
  border-color: rgba(124,58,237,.35);
}
.badge{
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  padding:3px 8px;
  border-radius:999px;
  background: rgba(245,158,11,.14);
  border:1px solid rgba(245,158,11,.32);
  font-size:11px;
  color: rgba(255,237,213,.92);
  font-weight:700;
}

.post__body{padding:12px 14px 14px}
.post__body p{margin:0}
.post__body p + p{margin-top:10px}
.post__hint{color:var(--muted); font-size:13px}

.post__footer{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px 14px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.vote{
  font:inherit;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  width:34px;height:34px;
  border-radius:12px;
  cursor:pointer;
  color:var(--muted);
}
.vote:hover{background: rgba(255,255,255,.08); color:var(--text)}
.score{font-weight:700; color:rgba(255,255,255,.88); min-width: 22px; text-align:center}
.spacer{flex:1}
.chip{
  font:inherit;
  color:var(--text);
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  padding:8px 10px;
  border-radius:999px;
  cursor:pointer;
}
.chip:hover{background: rgba(255,255,255,.10)}

.answers__header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin:18px 0 10px;
}
.answers__title{margin:0; font-size:18px}
.answers__sort{display:flex; align-items:center; gap:8px}
.answers__sort__label{color:var(--muted-2); font-size:12px}

.post--question{
  border-color: rgba(147,197,253,.22);
}
.post--accepted{
  border-color: rgba(34,197,94,.42);
}
.accepted{
  margin-left:auto;
  width:34px;height:34px;border-radius:12px;
  display:grid;place-items:center;
  background: rgba(34,197,94,.18);
  border: 1px solid rgba(34,197,94,.38);
  color: rgba(220,252,231,.96);
  font-weight:900;
}

.thread__closed{
  margin-top:18px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255,255,255,.22);
  background: rgba(0,0,0,.18);
}
.thread__closed__inner{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.lock{font-size:20px; line-height:1}
.thread__closed__title{font-weight:800; letter-spacing:.2px}
.thread__closed__text{color:var(--muted); margin-top:2px; font-size:13px}

.reply-quote{
  margin-bottom:10px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(147,197,253,.30);
  background: rgba(15,23,42,.85);
  font-size:12px;
}
.reply-quote__meta{
  color:var(--muted-2);
  margin-bottom:4px;
}
.reply-quote__author{
  font-weight:600;
  color:rgba(191,219,254,.95);
}
.reply-quote__text{
  color:rgba(226,232,240,.96);
}

.site-footer{
  margin:34px 0 28px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.site-footer__inner{padding:18px 0}
.site-footer__cols{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:16px;
  padding: 4px 0 14px;
}
.site-footer__title{font-weight:800; margin-bottom:8px}
.site-footer__text{color:var(--muted); margin:0}
.site-footer__list{
  margin:0;
  padding-left:18px;
  color: var(--muted);
}
.site-footer__bottom{
  color: var(--muted-2);
  font-size:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

@media (max-width: 860px){
  .topnav{display:none}
  .brand{min-width:auto}
  .site-footer__cols{grid-template-columns:1fr}
}

