:root{
  --bg:#0b1020;
  --panel:rgba(18,26,51,0.72);
  --text:#e9edff;
  --muted:#b7c0ff;
  --border:rgba(255,255,255,0.12);

  /* AWS-ish accent */
  --aws:#ff9900;
  --aws-soft:rgba(255,153,0,0.14);

  --blue:#6aa5ff;
  --shadow: 0 12px 30px rgba(0,0,0,0.35);
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(900px 520px at 15% 0%, rgba(106,165,255,0.22), transparent 55%),
    radial-gradient(900px 520px at 80% 25%, rgba(255,153,0,0.16), transparent 55%),
    var(--bg);
}

/* Top nav */
.topbar{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  text-decoration:none;
  font-weight:650;
  letter-spacing:0.2px;
}

.brand-dot{
  width:10px;height:10px;border-radius:50%;
  background: var(--aws);
  box-shadow: 0 0 0 6px var(--aws-soft);
}

.nav{display:flex; gap:10px; flex-wrap:wrap}
.nav-link{
  color: var(--muted);
  text-decoration:none;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.nav-link:hover{
  border-color: var(--border);
  background: rgba(255,255,255,0.04);
}
.nav-link.is-active{
  color: var(--text);
  border-color: rgba(255,153,0,0.35);
  background: rgba(255,153,0,0.10);
}

/* Layout */
.container{
  max-width:1100px;
  margin: 0 auto;
  padding: 26px 20px 54px;
}

.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

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

.kicker{
  display:inline-block;
  margin: 0 0 10px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.3px;
}

/* Hero */
.hero{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 6px;
}

.hero-left{
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(18,26,51,0.55);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero-title{
  margin: 0 0 10px;
  font-size: 44px;
  line-height: 1.05;
}

.hero-subtitle{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions{display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 14px;}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,153,0,0.35);
  background: rgba(255,153,0,0.12);
  color: var(--text);
  text-decoration:none;
  font-weight: 600;
  font-size: 14px;
}
.btn:hover{background: rgba(255,153,0,0.18)}
.btn-ghost{
  border-color: var(--border);
  background: rgba(255,255,255,0.04);
}
.btn-ghost:hover{background: rgba(255,255,255,0.07)}

.social{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 10px;
}

.icon-link{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}
.icon-link:hover{
  border-color: rgba(255,153,0,0.35);
  background: rgba(255,153,0,0.10);
}
.icon-link svg{
  width: 20px;
  height: 20px;
  fill: var(--text);
  opacity: 0.95;
}

.counter-pill{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
}
.counter-label{color: var(--muted); font-size: 13px}

#view-count{
  display:inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,153,0,0.35);
  background: rgba(255,153,0,0.10);
  font-weight: 700;
  color: var(--text);
}

/* Right side */
.hero-right{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.avatar{
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.badge-card{
  display:flex;
  gap:12px;
  align-items:center;
  text-decoration:none;
  color: var(--text);
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,153,0,0.35);
  background: rgba(255,153,0,0.08);
  box-shadow: var(--shadow);
}
.badge-card:hover{
  background: rgba(255,153,0,0.12);
}

.badge-img{
  width: 78px;
  height: 78px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 6px;
}

.badge-title{font-weight: 750}
.badge-subtitle{color: var(--muted); font-size: 12px; margin-top: 4px}
.badge-cta{color: var(--text); font-size: 12px; margin-top: 8px; opacity: 0.9}

/* Grid */
.grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

h2{margin: 0 0 10px; font-size: 18px}
.muted{color: var(--muted); margin: 0}
.list{margin: 10px 0 0 18px; color: var(--muted)}
.page-head{margin: 10px 0 14px}
.page-head h1{margin: 0 0 8px; font-size: 34px}

/* Blog spacing: keep posts visually separated but compact */
.post.card{
  margin-bottom: 12px;   /* adjust to 8px if you want tighter */
}
.post.card:last-child{
  margin-bottom: 0;
}

/* Footer */
.footer{
  margin-top: 18px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.footer-link{
  color: var(--muted);
  text-decoration:none;
  margin-left: 10px;
}
.footer-link:hover{color: var(--text)}

@media (max-width: 980px){
  .hero{grid-template-columns: 1fr}
  .grid{grid-template-columns: 1fr}
}
