/* =========================================
   THE BLOG — Main Stylesheet
   ========================================= */
:root {
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-light: #eef2ff;
  --tag-bg: #e0e7ff;
  --tag-color: #4338ca;
  --tag-prod-bg: #d1fae5;
  --tag-prod-color: #065f46;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --header-height: 64px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --bg: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: #1e1e32;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border: #2d2d4e;
  --accent: #818cf8;
  --accent-hover: #6366f1;
  --accent-light: #1e1b4b;
  --tag-bg: #1e1b4b;
  --tag-color: #818cf8;
  --tag-prod-bg: #064e3b;
  --tag-prod-color: #34d399;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow: 0 4px 16px rgba(0,0,0,.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.post-layout,
.about-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-height);
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.main-nav { display: flex; gap: 0.25rem; flex: 1; }

.main-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active { color: var(--text); background: var(--bg-secondary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.btn-icon:hover { background: var(--bg-secondary); color: var(--text); }
.nav-toggle { display: none; }

/* Search Bar */
.search-bar {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 0.75rem 0;
  position: relative;
}
.search-bar.open { display: block; }

.search-bar input {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}
.search-bar input:focus { border-color: var(--accent); }

.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 1.5rem;
  right: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 200;
}

.search-result-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  transition: background var(--transition);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-secondary); }
.search-result-item span { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  padding: calc(var(--header-height) + 2rem) 2rem 2rem;
  gap: 0.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg) 60%);
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 480px; }

.page-hero {
  background: var(--bg-secondary);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.page-hero p { color: var(--text-muted); font-size: 1.05rem; }

/* ── Featured Post ── */
.featured-section { padding: 3rem 0 0; }

.featured-post {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
}
.featured-post:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.featured-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }

.featured-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.featured-post h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.featured-post h2 a { color: var(--text); }
.featured-post h2 a:hover { color: var(--accent); }
.featured-post > p { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.5rem; max-width: 600px; }

/* ── Post Cards ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-content: start;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card.hidden { display: none; }

.post-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.post-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--accent); }
.post-card > p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.25rem; }

/* ── Post Meta ── */
.category-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  background: var(--tag-bg);
  color: var(--tag-color);
}
.cat-productivity { background: var(--tag-prod-bg) !important; color: var(--tag-prod-color) !important; }

.read-time { font-size: 0.78rem; color: var(--text-light); }

.post-footer { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }

.author-info { display: flex; align-items: center; gap: 0.6rem; }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.avatar.large { width: 48px; height: 48px; font-size: 1rem; }
.avatar-pink { background: #ec4899; }
.avatar-green { background: #10b981; }

.author-name { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); }
.post-date { display: block; font-size: 0.76rem; color: var(--text-light); }

/* ── Sidebar & Widgets ── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.widget h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.category-list { list-style: none; }

.filter-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-body);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filter-btn span {
  font-size: 0.78rem;
  background: var(--bg-secondary);
  padding: 0.1rem 0.45rem;
  border-radius: 100px;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent-light);
  color: var(--accent);
}

.newsletter-widget p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.75rem; }

.newsletter-form { display: flex; flex-direction: column; gap: 0.5rem; }

.newsletter-form input {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 0.88rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: var(--accent); }

.newsletter-form button {
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--accent-hover); }
.newsletter-success { color: #10b981; font-size: 0.88rem; }

.tags-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.tag:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 0 4rem;
}

.page-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: white; }

/* ── Article (Post Page) ── */
.post-article { min-width: 0; }

.post-article .breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.post-article .breadcrumb a { color: var(--text-muted); }
.post-article .breadcrumb a:hover { color: var(--accent); }

.article-header { margin-bottom: 2.5rem; }

.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.article-meta .author-info { flex: 1; }

.article-meta .share-btns { display: flex; gap: 0.5rem; }

.share-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-body);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }

.article-body {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}
.article-body h2 {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}
.article-body h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
}
.article-body p { margin-bottom: 1.5rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body code {
  font-family: 'Courier New', monospace;
  font-size: 0.88em;
  background: var(--bg-secondary);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--accent);
}
.article-body pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  line-height: 1.6;
}
.article-body pre code { background: none; padding: 0; color: var(--text); }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.article-tags {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.article-tags strong { font-size: 0.85rem; color: var(--text-muted); margin-right: 0.25rem; }

/* Reading progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 1000;
  width: 0%;
  transition: width 0.1s linear;
}

/* TOC */
.toc-widget nav a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  transition: all var(--transition);
}
.toc-widget nav a:hover,
.toc-widget nav a.active { color: var(--accent); border-left-color: var(--accent); }
.toc-widget nav a.toc-h3 { padding-left: 1.5rem; font-size: 0.8rem; }

/* Related posts */
#relatedPosts a {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
#relatedPosts a:last-child { border-bottom: none; }
#relatedPosts a:hover { color: var(--accent); }
#relatedPosts span { display: block; font-size: 0.76rem; color: var(--text-muted); font-weight: 400; }

/* ── Comments ── */
.comments-section { padding-bottom: 4rem; max-width: 780px; }
.comments-section h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; }

.comment { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.comment-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.comment-name { font-weight: 600; font-size: 0.9rem; }
.comment-date { font-size: 0.78rem; color: var(--text-muted); }
.comment p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; }

.comment-form-wrap { margin-top: 2.5rem; }
.comment-form-wrap h4 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.comment-form { display: flex; flex-direction: column; gap: 0.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.comment-form input,
.comment-form textarea {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  resize: vertical;
  transition: border-color var(--transition);
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--transition);
  align-self: flex-start;
}
.btn-primary:hover { background: var(--accent-hover); }
.inline-btn { margin-top: 0.5rem; }

/* ── About Page ── */
.about-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}
.about-content h2:first-child { margin-top: 0; }
.about-content p { color: var(--text-muted); line-height: 1.75; margin-bottom: 1rem; }
.about-content a[href^="mailto"] { color: var(--accent); }

.author-cards { display: flex; flex-direction: column; gap: 1.5rem; margin: 1.5rem 0; }
.author-card {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.author-detail h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.2rem; }
.author-role { font-size: 0.8rem; color: var(--accent); font-weight: 600; display: block; margin-bottom: 0.6rem; }
.author-detail p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.75rem; }
.author-detail .social-links { display: flex; gap: 1rem; }
.author-detail .social-links a { font-size: 0.82rem; color: var(--accent); font-weight: 500; }

.stats-list { list-style: none; }
.stats-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.stats-list li:last-child { border-bottom: none; }
.stats-list strong { color: var(--text); }

/* ── Categories Page ── */
.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 3rem 0 2rem;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  color: var(--text);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.category-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.cat-icon-pink { background: #fce7f3; color: #ec4899; }
.cat-icon-green { background: #d1fae5; color: #10b981; }

[data-theme="dark"] .cat-icon-pink { background: #831843; color: #f9a8d4; }
[data-theme="dark"] .cat-icon-green { background: #064e3b; color: #34d399; }

.category-card h3 { font-size: 1.15rem; font-weight: 700; }
.category-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.post-count { font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-top: 0.5rem; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  padding: 3rem 0 2rem;
  align-items: start;
}

.footer-brand .logo { margin-bottom: 0.5rem; display: inline-block; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); max-width: 240px; margin-top: 0.35rem; }

.social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-links a { color: var(--text-muted); display: flex; align-items: center; transition: color var(--transition); }
.social-links a:hover { color: var(--text); }

.footer-links { display: flex; gap: 3rem; }
.footer-links > div { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links h5 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.footer-links a { font-size: 0.88rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }

.footer-bottom { border-top: 1px solid var(--border); padding: 1.25rem 0; text-align: center; }
.footer-bottom p { font-size: 0.82rem; color: var(--text-light); }

/* ── Toast notification ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 3000;
  opacity: 0;
  transition: all var(--transition);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .main-layout,
  .post-layout,
  .about-layout { grid-template-columns: 1fr; }
  .post-layout .sidebar,
  .about-layout .sidebar { order: 1; }
  .posts-grid { grid-template-columns: 1fr; }
  .category-cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { gap: 2rem; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .article-meta .share-btns { display: none; }
  .hero { padding: 3rem 0 2.5rem; }
  .featured-post { padding: 1.5rem; }
  .footer-links { flex-direction: column; gap: 1.5rem; }
  .author-card { flex-direction: column; }
}
