
:root {
  --bg: #0b1020;
  --surface: #121938;
  --surface-alt: #151d42;
  --card: #ffffff;
  --card-border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --text-muted: #475569;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: rgba(248, 250, 252, 0.8);
  --brand: #00c8ff;
  --brand-dark: #0f172a;
  --brand-soft: rgba(0, 200, 255, 0.14);
  --border: rgba(148, 163, 184, 0.24);
  --shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(0, 200, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #0b1020 0%, #101833 100%);
  color: var(--text-on-dark);
}

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

img {
  max-width: 100%;
  height: auto;
}

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

.site-header-inner,
.site-footer-inner,
.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.site-logo {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-on-dark-muted);
  font-weight: 600;
}

.site-nav a:hover,
.site-footer a:hover,
.blog-card-title a:hover,
.primary-link:hover,
.article-back-link:hover {
  opacity: 0.82;
}

.page-shell {
  padding: 40px 0 80px;
}

.hero-section,
.article-shell,
.blog-filter-panel,
.blog-tag-cloud,
.related-section,
.blog-empty-state {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
}

.hero-section {
  margin-bottom: 28px;
}

.hero-eyebrow,
.blog-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-eyebrow,
.blog-chip-accent {
  background: var(--brand-soft);
  color: var(--brand);
  padding: 8px 14px;
}

.blog-chip-muted {
  padding: 7px 12px;
  color: var(--text-on-dark-muted);
  background: rgba(255, 255, 255, 0.06);
}

.hero-section h1,
.article-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.08;
}

.hero-section p,
.article-excerpt,
.blog-filter-note,
.site-footer p {
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.blog-filter-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.blog-filter-note {
  display: inline-flex;
  margin-left: 12px;
  font-size: 0.95rem;
}

.blog-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-tag-cloud {
  margin-bottom: 24px;
}

.blog-tag-cloud h2,
.related-section h2,
.article-tags h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 32px;
}

.blog-card {
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--card-border);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: var(--shadow);
}

.blog-card-header,
.blog-card-meta,
.article-meta,
.site-footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-card-reading-time,
.blog-card-meta,
.article-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.blog-card-title {
  margin: 18px 0 12px;
  font-size: 1.4rem;
  line-height: 1.25;
}

.blog-card-excerpt {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.blog-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pagination-pages {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-link {
  min-width: 42px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.pagination-link-wide {
  min-width: 112px;
}

.pagination-link.is-active {
  background: var(--brand);
  color: var(--brand-dark);
}

.pagination-link.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.article-back-link,
.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 700;
}

.article-hero {
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 26px;
}

.article-body {
  color: var(--text-on-dark);
}

.article-tags {
  margin-top: 32px;
}

.related-section {
  margin-top: 28px;
}

.prose {
  color: var(--text-on-dark);
}

.prose > *:first-child {
  margin-top: 0;
}

.prose p,
.prose li,
.prose blockquote {
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--text-on-dark);
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
  line-height: 1.25;
}

.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.prose code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.18em 0.4em;
  font-size: 0.95em;
}

.prose pre {
  background: rgba(2, 6, 23, 0.9);
  padding: 20px;
  border-radius: 18px;
  overflow-x: auto;
}

.prose pre code {
  background: transparent;
  padding: 0;
}

.prose blockquote {
  margin: 1.6rem 0;
  padding: 0 0 0 18px;
  border-left: 4px solid rgba(0, 200, 255, 0.6);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
}

.prose th,
.prose td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 14px;
  text-align: left;
}

.prose th {
  background: rgba(255, 255, 255, 0.06);
}

.blog-empty-state {
  text-align: center;
}

.site-footer {
  padding: 28px 0 42px;
}

.site-footer-inner {
  display: grid;
  gap: 16px;
  color: var(--text-on-dark-muted);
}

.site-footer-links {
  gap: 16px;
}

@media (max-width: 720px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-shell {
    width: min(100%, calc(100% - 20px));
  }

  .hero-section,
  .article-shell,
  .blog-filter-panel,
  .blog-tag-cloud,
  .related-section,
  .blog-empty-state {
    border-radius: 22px;
    padding: 22px;
  }

  .pagination {
    justify-content: stretch;
  }

  .pagination-link-wide {
    min-width: 0;
    flex: 1;
  }
}
