:root{
  --bg: #0a1a13;
  --panel: rgba(16,43,31,.78);
  --panel-2: rgba(20,58,40,.88);
  --text: rgba(241,253,247,.95);
  --muted: rgba(194,230,210,.82);
  --muted-2: rgba(166,214,189,.70);
  --border: rgba(189,248,214,.18);
  --shadow: 0 14px 40px rgba(2,13,9,.52);
  --accent: #16a34a;
  --accent-2: #22c55e;
  --warn: #f59e0b;
  --link: #86efac;
  --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(880px 520px at 0% -10%, rgba(34,197,94,.24), transparent 58%),
    radial-gradient(900px 660px at 100% 15%, rgba(16,185,129,.18), transparent 60%),
    radial-gradient(1100px 680px at 50% 110%, rgba(110,231,183,.12), transparent 58%),
    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(10,26,19,.78);
  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(22,163,74,.94), rgba(34,197,94,.90));
  box-shadow: 0 10px 24px rgba(22,163,74,.30);
  color:#fff;
  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(15,75,185,.08);
  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,.08);
  padding:9px 12px;
  border-radius:12px;
  cursor:pointer;
}
.btn:hover{background:rgba(255,255,255,.14)}
.btn--primary{
  border-color: rgba(34,197,94,.55);
  background: rgba(34,197,94,.20);
}
.btn--primary:hover{background: rgba(34,197,94,.30)}
.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,.50);
  background: rgba(34,197,94,.18);
  color: rgba(220,252,231,.98);
}
.pill--neutral{
  background: rgba(255,255,255,.08);
  color: var(--muted);
}

.post{
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  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,.08);
}
.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,.10);
  border:1px solid rgba(255,255,255,.20);
  color:rgba(255,255,255,.90);
  font-weight:800;
  flex:0 0 auto;
}
.avatar--accent{
  background: rgba(22,163,74,.24);
  border-color: rgba(34,197,94,.45);
}
.badge{
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  padding:3px 8px;
  border-radius:999px;
  background: rgba(187,247,208,.20);
  border:1px solid rgba(134,239,172,.40);
  font-size:11px;
  color: #dcfce7;
  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,.08);
}
.vote{
  font:inherit;
  background: rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.20);
  width:34px;height:34px;
  border-radius:12px;
  cursor:pointer;
  color:var(--muted);
}
.vote:hover{background: rgba(255,255,255,.14); color:var(--text)}
.score{font-weight:700; color:var(--text); 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(52,211,153,.40);
}
.post--accepted{
  border-color: rgba(34,197,94,.45);
}
.accepted{
  margin-left:auto;
  width:34px;height:34px;border-radius:12px;
  display:grid;place-items:center;
  background: rgba(34,197,94,.20);
  border: 1px solid rgba(34,197,94,.45);
  color: rgba(220,252,231,.98);
  font-weight:900;
}

.thread__closed{
  margin-top:18px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255,255,255,.26);
  background: rgba(255,255,255,.05);
}
.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(34,197,94,.30);
  background: rgba(34,197,94,.12);
  font-size:12px;
}
.reply-quote__meta{
  color:var(--muted-2);
  margin-bottom:4px;
}
.reply-quote__author{
  font-weight:600;
  color:#86efac;
}
.reply-quote__text{
  color:rgba(245,253,255,.96);
}

.site-footer{
  margin:34px 0 28px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.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}
}

