:root {
  --bg: #f3f6fb;
  --panel: rgba(255, 255, 255, 0.8);
  --panel-solid: #ffffff;
  --text: #1f2937;
  --muted: #5b6b7d;
  --border: rgba(148, 163, 184, 0.28);
  --primary: #4f46e5;
  --primary-soft: #eef2ff;
  --accent: #0ea5e9;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

body {
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.12), transparent 28%),
    radial-gradient(circle at right, rgba(14, 165, 233, 0.1), transparent 25%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.site-header {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03);
}

.site-title {
  font-weight: 700;
  letter-spacing: -0.04em;
}

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

.site-nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

.page-content {
  padding-top: 2rem;
}

.wrapper {
  max-width: 1100px;
}

.home .page-content {
  padding-top: 0;
}

.hero {
  background: linear-gradient(135deg, #ffffff 0%, #eef2ff 50%, #f0fdfa 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 3rem 2.5rem;
  margin: 1.5rem 0 2rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  letter-spacing: -0.06em;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 680px;
}

.hero .tag {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.14);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.card {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
  padding: 1.5rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

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

.post-list {
  margin-top: 2.5rem;
}

.post-list > li {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem 1.3rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.02);
}

.post-list h2 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.post-list .post-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.post-list a {
  color: var(--text);
}

.post-list a:hover {
  color: var(--primary);
  text-decoration: none;
}

article.post {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 2rem 2.25rem;
}

article.post h1,
article.post h2,
article.post h3 {
  color: var(--text);
  letter-spacing: -0.03em;
}

article.post p,
article.post li {
  line-height: 1.75;
}

article.post code {
  background: #f8fafc;
  border-radius: 6px;
  padding: 0.12rem 0.38rem;
}

article.post pre {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 14px;
  padding: 1rem;
}

@media (max-width: 768px) {
  .hero {
    padding: 2rem 1.2rem;
  }

  article.post {
    padding: 1.25rem 1rem;
  }
}
