:root {
  --bg: #081020;
  --bg-soft: #0f1a2f;
  --text: #eaf2ff;
  --muted: #a7b4c8;
  --primary: #15b8ab;
  --accent: #f68b3a;
  --border: #24344d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 8% -10%, rgba(21, 184, 171, 0.2), transparent 60%),
    radial-gradient(900px 500px at 88% 0%, rgba(246, 139, 58, 0.16), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(8, 16, 32, 0.82);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 9;
}

.header-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-wrap .nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-wrap .nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-wrap .nav a {
  color: var(--text);
  opacity: 0.9;
  font-weight: 500;
  text-decoration: none;
}

.nav-wrap .nav a:hover,
.nav-wrap .nav .nav-current a {
  color: var(--primary);
  opacity: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #081020;
}

.app-link,
.hero-cta,
.post-cta a {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #081020;
  font-weight: 700;
}

.site-main {
  padding: 48px 0 64px;
}

.hero {
  width: min(1120px, 92vw);
  margin: 0 auto 28px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 26, 47, 0.9), rgba(8, 16, 32, 0.92));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  font-size: 12px;
  margin: 0 0 8px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1.08;
}

.hero-copy {
  max-width: 760px;
  color: var(--muted);
  margin: 14px 0 22px;
}

.post-grid {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(21, 184, 171, 0.7);
}

.card-link {
  display: block;
  padding: 18px;
}

.card h2 {
  margin: 8px 0 10px;
  font-size: 22px;
  line-height: 1.22;
}

.card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.card-excerpt {
  color: var(--muted);
  margin: 0;
}

.card-readmore {
  margin-top: 12px;
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
}

.post {
  width: min(820px, 92vw);
  margin: 0 auto;
}

.post-header h1 {
  margin: 0;
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.1;
}

.post-meta,
.post-excerpt {
  color: var(--muted);
}

.post-content {
  margin-top: 24px;
  font-size: 18px;
}

.post-content h2,
.post-content h3 {
  line-height: 1.2;
}

.post-content a {
  color: var(--primary);
  text-decoration: underline;
}

.post-content code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9em;
}

.post-content pre {
  padding: 14px;
  border-radius: 10px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.28);
}

.post-feature-image {
  margin: 14px 0 0;
}

.post-feature-image img {
  width: 100%;
  border-radius: 12px;
}

.post-feature-image figcaption {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

.post-content .kg-width-wide,
.post-content .kg-width-full {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.post-content .kg-width-wide img,
.post-content .kg-width-full img {
  width: 100%;
  border-radius: 12px;
}

.post-cta {
  margin-top: 34px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  background: rgba(15, 26, 47, 0.82);
}

.post-cta h2 {
  margin: 0 0 8px;
}

.post-cta p {
  margin: 0 0 14px;
  color: var(--muted);
}

.pagination-wrap {
  width: min(1120px, 92vw);
  margin: 24px auto 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 24px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .nav-wrap {
    display: none;
  }
}
