:root {
  --bg: #f7f3ed;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #1f2937;
  --muted: #667085;
  --line: rgba(148, 163, 184, 0.28);
  --brand: #b45309;
  --brand-dark: #7c2d12;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 28rem),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 26rem),
    var(--bg);
}

a {
  color: inherit;
}

.blog-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topnav {
  display: flex;
  gap: 14px;
}

.topnav a,
.cta-link,
.post-footer a {
  text-decoration: none;
  font-weight: 700;
  color: var(--brand-dark);
}

.index-shell,
.article-shell {
  display: grid;
  gap: 24px;
}

.hero-card,
.post-card,
.article-card,
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-card,
.article-card,
.sidebar-card {
  padding: 32px;
}

.hero-card h1,
.article-card h1 {
  margin: 0 0 14px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-card p,
.lede,
.post-card p,
.article-body p,
.sidebar-card p,
.article-body li,
.article-body blockquote {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}

.eyebrow,
.post-date {
  margin: 0 0 12px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.post-card {
  padding: 24px;
}

.post-card h2 {
  margin: 0 0 10px;
  font-size: 1.65rem;
  line-height: 1.08;
}

.post-card h2 a {
  text-decoration: none;
}

.post-footer,
.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.post-footer,
.meta-row {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-shell {
  grid-template-columns: minmax(0, 2.2fr) minmax(280px, 0.9fr);
  align-items: start;
}

.tag-row {
  margin-top: 18px;
}

.tag-row span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(180, 83, 9, 0.08);
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

.article-body {
  margin-top: 28px;
}

.article-body h1,
.article-body h2,
.article-body h3 {
  margin: 32px 0 12px;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  line-height: 1.1;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
}

.article-body code {
  padding: 0.15rem 0.4rem;
  border-radius: 0.45rem;
  background: rgba(15, 23, 42, 0.06);
  font-size: 0.92em;
}

.article-body blockquote {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--brand);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 18px;
}

.sidebar-card {
  position: sticky;
  top: 24px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  margin: 0;
  text-align: center;
  font-family: ui-sans-serif, system-ui, sans-serif;
  color: var(--muted);
}

@media (max-width: 900px) {
  .article-shell {
    grid-template-columns: 1fr;
  }

  .sidebar-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .blog-shell {
    padding: 20px 14px 48px;
  }

  .topbar {
    border-radius: 24px;
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    flex-wrap: wrap;
  }

  .hero-card,
  .article-card,
  .sidebar-card,
  .post-card {
    padding: 22px;
    border-radius: 22px;
  }
}
