/* ── MindSurge Design System ── */
:root {
  --serif: "Georgia", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ink: #0f0e0d;
  --ink2: #2d2c2a;
  --ink3: #6b6860;
  --accent: #c84b31;
  --accent-light: #fdf3f0;
  --accent-hover: #a83a23;
  --paper: #ffffff;
  --paper2: #faf9f7;
  --paper3: #f3f1ee;
  --border: #e8e5e0;
  --site-max: 1140px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink2);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
.site-nav {
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink3);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent) !important; color: #fff !important; }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--ink3); }

/* ── POST CARDS ── */
.post-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
  box-shadow: 0 8px 32px rgba(15,14,13,0.08);
  transform: translateY(-2px);
}
.post-card-img { background: var(--paper2); display: flex; align-items: center; justify-content: center; }
.post-card-img-inner { font-size: 3rem; }
.post-card-body { padding: 20px; }
.post-card-cat { margin-bottom: 10px; }
.post-card-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.post-card-excerpt {
  font-size: 14px;
  color: var(--ink3);
  line-height: 1.55;
  margin-bottom: 12px;
}
.post-card-meta {
  font-size: 12px;
  color: var(--ink3);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── CATEGORY BADGES ── */
.cat-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.cat-badge.green { background: #e8f5e9; color: #2e7d32; }
.cat-badge.blue { background: #e3f2fd; color: #1565c0; }
.cat-badge.gray { background: var(--paper3); color: var(--ink3); }
.cat-badge.orange { background: #fff3e0; color: #e65100; }
.cat-badge.purple { background: #f3e5f5; color: #6a1b9a; }
.cat-badge.teal { background: #e0f2f1; color: #00695c; }
.cat-badge.red { background: #ffebee; color: #c62828; }

/* ── FEATURED GRID ── */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .featured-grid { grid-template-columns: 1fr; }
}
.featured-post { position: relative; }
.featured-post .post-card-img { height: 280px; }
.featured-post .post-card-title { font-size: 1.45rem; }

/* ── SMALL GRID ── */
.small-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .small-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .small-grid { grid-template-columns: 1fr; }
}

/* ── SECTION ── */
.section { max-width: var(--site-max); margin: 0 auto; padding: 60px 28px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.section-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.section-link {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }

/* ── STATS ── */
.stats-row {
  background: var(--ink);
  color: #fff;
  padding: 0 28px;
}
.stats-inner {
  max-width: var(--site-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 640px) { .stats-inner { grid-template-columns: 1fr 1fr; } }
.stat-item {
  padding: 36px 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 4px;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,0.55); }

/* ── WHY SECTION ── */
.why-section { background: var(--paper2); padding: 0 28px; }
.why-inner {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 72px 0;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 40px;
}
@media (max-width: 720px) { .why-grid { grid-template-columns: 1fr; } }
.why-item h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 10px;
  margin-top: 14px;
}
.why-item p { font-size: 15px; color: var(--ink3); line-height: 1.7; }
.why-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── BIG CTA ── */
.big-cta {
  background: var(--accent);
  padding: 0 28px;
}
.big-cta-inner {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 72px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 52px;
}
@media (max-width: 860px) {
  .big-cta-inner { flex-direction: column; align-items: flex-start; }
}
.big-cta h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.big-cta p { color: rgba(255,255,255,0.8); font-size: 16px; max-width: 440px; }
.big-cta-form {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.big-cta-input {
  padding: 13px 18px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  min-width: 240px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.big-cta-submit {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.big-cta-submit:hover { background: #333; }

/* ── FOOTER ── */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.55); padding: 0 28px; }
.footer-inner { max-width: var(--site-max); margin: 0 auto; padding: 60px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 52px;
  margin-bottom: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-logo span { color: var(--accent); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 240px; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 14px; transition: color 0.2s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 13px; }
.footer-social { display: flex; gap: 20px; }
.footer-social a { font-size: 13px; transition: color 0.2s; }
.footer-social a:hover { color: #fff; }

/* ── BLOG POST ARTICLE ── */
.article-hero {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 52px 28px 36px;
}
.article-breadcrumb {
  font-size: 13px;
  color: var(--ink3);
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.article-breadcrumb a { color: var(--accent); }
.article-breadcrumb span { color: var(--ink3); }
.article-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 780px;
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink3);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.article-meta strong { color: var(--ink2); }
.article-excerpt {
  font-size: 18px;
  color: var(--ink3);
  line-height: 1.65;
  max-width: 680px;
  font-weight: 300;
  margin-top: 16px;
}

.article-layout {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 28px 80px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } }

.article-body {
  max-width: 720px;
}
.article-body h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 44px 0 16px;
  line-height: 1.2;
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  margin: 32px 0 12px;
  line-height: 1.3;
}
.article-body p {
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink2);
  margin-bottom: 20px;
}
.article-body ul, .article-body ol {
  margin: 0 0 20px 20px;
}
.article-body li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink2);
  margin-bottom: 8px;
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--accent-light);
  border-radius: 0 8px 8px 0;
}
.article-body blockquote p {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  font-style: italic;
  margin: 0;
}
.article-body .callout {
  background: var(--paper2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}
.article-body .callout strong { display: block; margin-bottom: 6px; color: var(--ink); }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { color: var(--ink); font-weight: 600; }

.article-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ── ARTICLE SIDEBAR ── */
.article-sidebar { position: sticky; top: 80px; }
.sidebar-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-box h4 {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 16px;
}
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 8px; }
.toc-list a {
  font-size: 13px;
  color: var(--ink3);
  transition: color 0.2s;
}
.toc-list a:hover { color: var(--accent); }
.related-post {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.related-post:last-child { border-bottom: none; padding-bottom: 0; }
.related-post-emoji { font-size: 1.4rem; flex-shrink: 0; }
.related-post-title { font-size: 13px; color: var(--ink2); line-height: 1.4; }
.related-post-title:hover { color: var(--accent); }

/* ── TAGS ── */
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.tag {
  font-size: 12px;
  padding: 5px 14px;
  background: var(--paper2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink3);
  transition: all 0.2s;
}
.tag:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }

/* ── AUTHOR BOX ── */
.author-box {
  display: flex;
  gap: 20px;
  background: var(--paper2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 40px 0;
  align-items: flex-start;
}
.author-avatar {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  font-family: var(--serif);
  font-weight: 700;
  flex-shrink: 0;
}
.author-name { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.author-bio { font-size: 14px; color: var(--ink3); line-height: 1.6; }

/* ── ANIMATION ── */
.anim-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-section.visible {
  opacity: 1;
  transform: none;
}

/* ── BLOG LIST PAGE ── */
.post-list { display: flex; flex-direction: column; gap: 24px; }
.post-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s;
}
.post-list-item:hover { box-shadow: 0 4px 20px rgba(15,14,13,0.06); }
.post-list-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.post-list-title:hover { color: var(--accent); }
.post-list-excerpt { font-size: 14px; color: var(--ink3); line-height: 1.6; margin-bottom: 12px; }
.post-list-emoji { font-size: 2.5rem; flex-shrink: 0; }
