:root{
  --bg:#0b0b10;
  --card:#141420;
  --text:#f5f5f7;
  --muted:#b7b7c7;
  --brand:#f20ac0;
  --line:rgba(255,255,255,.10);
  --radius:16px;
  --max:980px;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1000px 600px at 20% 0%, rgba(242,10,192,.18), transparent 55%),
              radial-gradient(900px 500px at 80% 20%, rgba(255,215,0,.12), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height:1.6;
}

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.95; }

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

.topbar{
  position:sticky;
  top:0;
  backdrop-filter: blur(10px);
  background: rgba(11,11,16,.65);
  border-bottom:1px solid var(--line);
  z-index:10;
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.2px;
}
.badge{
  width:12px; height:12px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--brand), gold);
  box-shadow: 0 0 0 6px rgba(242,10,192,.10);
}

.search{
  display:flex;
  gap:10px;
  align-items:center;
}
.search input{
  width:min(360px, 52vw);
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  outline:none;
}
.search input::placeholder{ color: rgba(245,245,247,.55); }

.hero{
  padding:34px 0 16px;
}
.hero h1{
  margin:0;
  font-size: clamp(28px, 4vw, 44px);
  line-height:1.15;
}
.hero p{
  margin:10px 0 0;
  color: var(--muted);
  max-width: 70ch;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:16px;
  padding: 18px 0 60px;
}

.card{
  grid-column: span 6;
  background: rgba(20,20,32,.78);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  transition: transform .15s ease;
}
.card:hover{ transform: translateY(-2px); }

.card-cover{
  width:100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(242,10,192,.18), rgba(255,215,0,.12));
  border-bottom:1px solid var(--line);
}

.card-body{
  padding:16px;
}
.kicker{
  color: var(--muted);
  font-size: 13px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.kicker span{
  padding:4px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background: rgba(255,255,255,.03);
}

.card h2{
  margin:10px 0 6px;
  font-size: 20px;
  line-height:1.25;
}
.card p{
  margin:0;
  color: var(--muted);
}

.footer{
  border-top:1px solid var(--line);
  padding:22px 0;
  color: var(--muted);
  font-size: 14px;
}

.post{
  padding: 26px 0 60px;
}
.post header{
  padding: 10px 0 18px;
  border-bottom:1px solid var(--line);
}
.post h1{
  margin:0;
  font-size: clamp(28px, 4vw, 46px);
  line-height:1.12;
}
.meta{
  margin-top:10px;
  color: var(--muted);
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  font-size: 14px;
}
.prose{
  max-width: 75ch;
  padding-top: 18px;
}
.prose h2{ margin-top:26px; }
.prose p{ margin: 14px 0; }
.prose ul{ margin: 10px 0 16px 18px; }

.cta{
  margin-top:28px;
  padding:16px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
}
.cta a{
  display:inline-block;
  margin-top:10px;
  padding:10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), gold);
  color:#111;
  font-weight:800;
}

@media (max-width: 860px){
  .card{ grid-column: span 12; }
}

.navlinks{
  display:flex;
  gap:14px;
  color: var(--muted);
}
.navlinks a{ color: var(--muted); }
.navlinks a.active{
  color: var(--text);
  font-weight: 800;
}

.filters{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.filters input, .filters select{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  outline:none;
}
.filters input::placeholder{ color: rgba(245,245,247,.55); }

.card-cover{
  background-size: cover;
  background-position: center;
}

.empty{
  color: var(--muted);
  padding: 10px 0 60px;
}

/* small polish + compatibility */
.topbar{
  -webkit-backdrop-filter: blur(10px);
  background: rgba(11,11,16,.80);
}

.card{
  display:flex;
  flex-direction:column;
}
.card-body{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.card p{ flex:1; }

.card-cover{
  background-repeat:no-repeat;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible{
  outline: 2px solid rgba(242,10,192,.75);
  outline-offset: 2px;
  border-radius: 12px;
}

.navlinks{
  flex-wrap: wrap;
  justify-content: flex-end;
}