:root{
  --bg:#0b0f14;
  --panel:#121826;
  --panel2:#0f1521;
  --text:#e7eefc;
  --muted:#a7b3c9;
  --border:rgba(231,238,252,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 14px;
  --max: 1100px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font:16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color:var(--text);
  position: relative;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background: radial-gradient(1200px 800px at 20% -10%, rgba(81,140,255,.20), transparent 60%),
              radial-gradient(900px 700px at 110% 10%, rgba(255,120,200,.18), transparent 55%),
              var(--bg);
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width: min(var(--max), calc(100% - 32px));
  margin-inline:auto;
}

.site-header{
  position: sticky;
  top:0;
  z-index:10;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  background: rgba(11,15,20,.70);
  border-bottom: 1px solid var(--border);

  isolation: isolate;
  transform: translateZ(0);
  will-change: transform;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}
.brand{ font-weight:700; letter-spacing:.2px; }

.nav{ display:flex; gap:14px; align-items:center; }
.nav-link{
  padding:8px 10px;
  border-radius:10px;
  color:var(--muted);
}
.nav-link:hover{ background: rgba(255,255,255,.06); color:var(--text); }
.nav-cta{
  background: rgba(81,140,255,.18);
  border: 1px solid rgba(81,140,255,.30);
  color: var(--text);
}

.site-main{ padding: 26px 0 44px; }

.site-footer{
  /* IMPORTANT: only one border here to avoid “double line” with other borders */
  border-top: 1px solid var(--border);
  padding: 18px 0;
  background: rgba(11,15,20,.55);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

h1{ font-size: 42px; line-height:1.1; margin:0 0 8px; }
h2{ font-size: 22px; margin:0 0 10px; }
h3{ font-size: 16px; margin:0 0 10px; }
.lead{ color:var(--muted); font-size:18px; margin:0 0 18px; }
.muted{ color:var(--muted); }

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 16px;
}

.stack{ display:flex; flex-direction:column; gap:14px; }

.grid-2{
  display:grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  align-items:start;
}

.grid-cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hero{
  display:grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  align-items:stretch;
  margin-bottom: 18px;
}
.hero-card{ display:flex; gap:14px; align-items:center; }
.avatar{
  width:72px; height:72px;
  border-radius: 18px;
  background: rgba(255,255,255,.10);
  border: 1px solid var(--border);
}

.hero-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(81,140,255,.35);
  background: rgba(81,140,255,.20);
  text-decoration:none;
}
.btn:hover{ text-decoration:none; background: rgba(81,140,255,.26); }
.btn-ghost{
  background: rgba(255,255,255,.06);
  border-color: var(--border);
}

.page-head{ margin: 6px 0 16px; }

.toolbar{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  margin: 0 0 16px;
}
.input, .select{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.15);
  color: var(--text);
}
.select{ max-width: 220px; }

.tags{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.tags > *{
  font-size: 13px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--muted);
}

.thumb{
  width: 100%;
  aspect-ratio: 16 / 9;      /* or 4 / 3 if you prefer */
  border-radius: 12px;
  overflow: hidden;          /* THIS is the leash */
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
}

.thumb img{
  width: 100%;
  height: 100%;
  display: block;            /* removes baseline gap */
  object-fit: cover;         /* crop instead of overflow */
  object-position: center;
}

.post-meta{ font-size: 13px; margin-bottom: 8px; }

/* Responsive */
@media (max-width: 900px){
  h1{ font-size: 34px; }
  .grid-2, .hero{ grid-template-columns: 1fr; }
  .grid-cards{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .toolbar{ flex-direction:column; align-items:stretch; }
  .select{ max-width: none; }
}
@media (max-width: 520px){
  .grid-cards{ grid-template-columns: 1fr; }
}
.hero-profile .hero-card{
  display:flex;
  gap:16px;
  align-items:center;
}

.profile-photo{
  width:96px;
  height:96px;
  border-radius: 22px;
  overflow:hidden;
  flex-shrink:0;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
}

.profile-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.list{ list-style:none; padding:0; margin:0; }
.list li{ padding:8px 0; border-top:1px solid var(--border); }
.list li:first-child{ border-top:0; }
