:root {
  --bg: #0d0b14;
  --panel: #171320;
  --panel-2: #1e1829;
  --border: rgba(168, 85, 247, 0.18);
  --text: #f5f3f7;
  --muted: #a39db3;
  --accent-start: #a855f7;
  --accent-end: #ec4899;
  --accent: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  --accent-solid: #c084fc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent-solid); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.site-header .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text); }
.site-header .brand img { width: 30px; height: 30px; border-radius: 8px; }
.site-header nav { display: flex; align-items: center; gap: 20px; }
.site-header nav a.muted-link { color: var(--muted); font-size: 14px; text-decoration: none; }
.site-header nav a.muted-link:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: white !important;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 10px;
  text-decoration: none !important;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.9; }

.page-title {
  font-size: 34px;
  font-weight: 800;
  margin: 44px 0 6px;
  letter-spacing: -0.02em;
}
.page-subtitle { color: var(--muted); margin: 0 0 8px; font-size: 16px; max-width: 600px; }
.page-byline { color: var(--muted); font-size: 13px; margin: 0 0 32px; }
.page-byline a { color: var(--muted); text-decoration: underline; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--accent-solid); text-decoration: none; transform: translateY(-2px); }
.card-cover { width: 100%; height: 160px; object-fit: cover; display: block; background: var(--panel-2); }
.card-body { padding: 16px; }
.card-body time { color: var(--muted); font-size: 12px; }
.card-body h2 { font-size: 18px; margin: 8px 0; font-weight: 700; }
.card-body p { color: var(--muted); font-size: 14px; margin: 0; }

article { padding: 32px 0 20px; }
article .breadcrumb { margin-bottom: 20px; font-size: 14px; }
article .cover { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 24px; }
article h1 { font-size: 36px; font-weight: 800; margin: 0 0 8px; line-height: 1.2; letter-spacing: -0.02em; }
article .meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }

.content h2 { font-size: 24px; font-weight: 700; margin: 36px 0 12px; }
.content h3 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; }
.content p { margin: 0 0 18px; font-size: 17px; }
.content ul, .content ol { margin: 0 0 18px; padding-left: 24px; font-size: 17px; }
.content li { margin-bottom: 6px; }
.content code { background: var(--panel); padding: 2px 6px; border-radius: 4px; font-size: 15px; }
.content pre { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 16px; overflow-x: auto; }
.content blockquote { border-left: 3px solid var(--accent-solid); margin: 0 0 18px; padding: 4px 0 4px 16px; color: var(--muted); }

.tags { margin-top: 32px; }
.tag { display: inline-block; background: var(--panel); border: 1px solid var(--border); border-radius: 100px; padding: 4px 12px; font-size: 13px; color: var(--muted); margin-right: 8px; }

.post-cta {
  margin: 40px 0;
  padding: 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(236,72,153,0.12));
  border: 1px solid var(--border);
  text-align: center;
}
.post-cta h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.post-cta p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.post-cta .nav-cta { padding: 12px 26px; font-size: 15px; display: inline-block; }

.related { border-top: 1px solid var(--border); padding-top: 24px; margin-bottom: 40px; }
.related h2 { font-size: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.related ul { padding-left: 20px; }
.related li { margin-bottom: 8px; font-size: 15px; }

.site-footer { border-top: 1px solid var(--border); padding: 40px 0 28px; background: var(--panel); }
.site-footer .footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 24px; }
.site-footer .footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; margin-bottom: 10px; }
.site-footer .footer-brand img { width: 26px; height: 26px; border-radius: 7px; }
.site-footer .footer-blurb { color: var(--muted); font-size: 14px; max-width: 420px; }
.site-footer .footer-cta { flex-shrink: 0; }
.site-footer .footer-bottom { color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); padding-top: 18px; }
.site-footer .footer-bottom a { color: var(--muted); }

@media (max-width: 600px) {
  .page-title { font-size: 26px; }
  article h1 { font-size: 26px; }
  .site-footer .footer-top { flex-direction: column; }
}
