/* Blog styles — layered on top of tokens.css + landing.css.
   Reuses the landing nav/footer; adds article typography on the warm
   cream surface so long-form reads comfortably. */

@import url("/css/tokens.css");

.blog-wrap {
  background: var(--surface);
  color: var(--ink);
  min-height: 100vh;
}

.blog-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* ---- Blog index ---- */
.blog-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 20px 24px;
  text-align: center;
}
.blog-hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  margin: 8px 0 10px;
  color: var(--ink);
}
.blog-hero p {
  color: var(--ink-muted);
  max-width: 620px;
  margin: 0 auto;
  font-size: 18px;
}

.post-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 20px 72px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--off);
  border-radius: var(--radius-card);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}
.post-card .tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.post-card h2 {
  font-size: 20px;
  margin: 12px 0 8px;
  line-height: 1.25;
}
.post-card p {
  color: var(--ink-muted);
  margin: 0;
  font-size: 15px;
}
.post-card .read {
  margin-top: 14px;
  font-weight: 800;
  color: var(--gold-deep);
  font-size: 14px;
}

/* ---- Article ---- */
.article-head {
  text-align: center;
  padding-top: 12px;
}
.article-head .eyebrow {
  color: var(--gold-deep);
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-size: 12px;
}
.article-head h1 {
  font-size: clamp(26px, 4.6vw, 40px);
  line-height: 1.18;
  margin: 10px 0 12px;
}
.article-meta {
  color: var(--ink-muted);
  font-size: 14px;
  margin-bottom: 28px;
}
.article-body {
  font-size: 18px;
  line-height: 1.72;
}
.article-body h2 {
  font-size: 26px;
  margin: 38px 0 12px;
  line-height: 1.25;
}
.article-body h3 {
  font-size: 20px;
  margin: 28px 0 8px;
}
.article-body p {
  margin: 0 0 18px;
}
.article-body ul,
.article-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.article-body li {
  margin: 6px 0;
}
.article-body a {
  color: var(--gold-deep);
  font-weight: 700;
}
.article-body strong {
  color: var(--ink);
}
.article-body blockquote {
  margin: 24px 0;
  padding: 12px 20px;
  border-left: 4px solid var(--gold);
  background: var(--surface-2);
  border-radius: 8px;
  color: var(--ink);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 16px;
}
.article-body th,
.article-body td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--off);
}
.article-body th {
  font-weight: 800;
  background: var(--surface-2);
}
.callout {
  background: var(--gold-soft);
  border: 1px solid rgba(244, 160, 32, 0.35);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 26px 0;
}
.callout p:last-child {
  margin-bottom: 0;
}
.article-cta {
  text-align: center;
  margin: 44px 0 8px;
}

/* ---- Related ---- */
.related {
  margin-top: 56px;
  border-top: 1px solid var(--off);
  padding-top: 24px;
}
.related h2 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink-muted);
}
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.related-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--off);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
}
.related-links a:hover {
  border-color: var(--gold);
}
.breadcrumb {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.breadcrumb a {
  color: var(--gold-deep);
  font-weight: 700;
  text-decoration: none;
}
