/* WIZKARO blog: index and article pages. Builds on the tokens and components in styles.css. */

.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }
.footer { border-top: 1px solid #e3e3e8; }

/* ---------- Index ---------- */
.blog-hero {
  padding: 96px 0 56px; text-align: center;
  background: radial-gradient(1100px 460px at 50% -10%, var(--accent-soft) 0%, rgba(255, 255, 255, 0) 70%);
}
.blog-hero .eyebrow { margin-bottom: 16px; }
.blog-title {
  font-size: clamp(44px, 8.5vw, 104px); font-weight: 800; line-height: .98;
  letter-spacing: -0.045em; text-wrap: balance;
}
.blog-hero .lead { margin-top: 24px; }

.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 44px; }
.blog-filters button {
  border: 1px solid var(--line); background: #fff; color: var(--text);
  border-radius: 980px; padding: 9px 18px; font: 500 15px var(--font); cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.blog-filters button:hover { border-color: #c7c7cc; }
.blog-filters button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.blog-filters button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 5px var(--accent); }

.blog-band { background: var(--bg-alt); padding: 72px 0 120px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  padding: 32px; min-height: 360px;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease;
}
.post-card[hidden] { display: none; }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .25); }
.post-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.post-card:hover .link-arrow span { transform: translateX(3px); }
.post-cat { font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.post-card h2, .post-card h3 {
  font-size: 24px; line-height: 1.18; font-weight: 700; letter-spacing: -0.02em;
  margin-top: 14px; text-wrap: balance;
}
.post-meta { font-size: 14px; color: var(--muted); margin-top: 12px; }
.post-excerpt { color: var(--muted); font-size: 16px; line-height: 1.5; margin-top: 14px; }
.post-card .link-arrow { margin-top: auto; padding-top: 24px; font-size: 15px; }

/* ---------- Article ---------- */
.article { padding: 48px 0 0; }
.article-head { width: min(920px, 100% - 40px); margin-inline: auto; text-align: center; }
.article-col { width: min(720px, 100% - 40px); margin-inline: auto; }

.crumbs { font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 8px; }
.crumbs li { flex: none; white-space: nowrap; }
.crumbs li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.crumbs li + li::before { content: "\203A"; margin-right: 8px; color: #aeaeb2; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current="page"] { color: var(--text); }

.article-meta { margin-top: 44px; font-size: 15px; color: var(--muted); }
.article-meta .post-cat { font-size: 15px; }
.article-title {
  font-size: clamp(38px, 6.4vw, 72px); font-weight: 800; line-height: 1.02;
  letter-spacing: -0.04em; margin-top: 16px; text-wrap: balance;
}
.article-lede {
  font-size: clamp(19px, 2.2vw, 23px); color: var(--muted); line-height: 1.45;
  max-width: 720px; margin: 26px auto 0; text-wrap: pretty;
}

.toc { background: var(--bg-alt); border-radius: var(--radius); padding: 28px 32px; margin-top: 56px; }
.toc h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc ol { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; font-size: 16.5px; line-height: 1.4; }
.toc li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--accent-ink); }

.prose { font-size: 18px; line-height: 1.7; overflow-wrap: break-word; }
.prose > * + * { margin-top: 20px; }
.prose h2 {
  font-size: clamp(28px, 3.6vw, 36px); font-weight: 800; line-height: 1.12;
  letter-spacing: -0.03em; margin-top: 64px; scroll-margin-top: 80px; text-wrap: balance;
}
.prose h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; margin-top: 36px; }
.prose > h2 + *, .prose > h3 + * { margin-top: 14px; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 0; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 600; }

.callout { background: var(--accent-soft); border-radius: 20px; padding: 22px 26px; font-size: 17px; line-height: 1.6; }
.callout-title { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); margin-bottom: 6px; }
.callout p + p { margin-top: 10px; }
.disclaimer { border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.disclaimer strong { color: var(--text); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 20px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--bg-alt); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose .num td { white-space: nowrap; }

.prose .faq { margin-top: 8px; }

.post-cta {
  margin-top: 72px; background: var(--accent-soft); border-radius: var(--radius);
  padding: 40px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
}
.post-cta img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 12px 24px -12px rgba(84, 138, 254, .6); }
.post-cta h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.post-cta p { color: #424245; font-size: 16.5px; line-height: 1.55; margin-top: 8px; }
.post-cta .btn { margin-top: 22px; font-size: 16px; padding: 12px 22px; }

.more { padding: 112px 0 120px; }
.more-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.more h2 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.more .post-grid { margin-top: 36px; }
.more .post-card { background: var(--bg-alt); min-height: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .blog-hero { padding: 56px 0 40px; }
  .blog-filters { margin-top: 32px; gap: 8px; }
  .blog-filters button { padding: 8px 15px; font-size: 14.5px; }
  .blog-band { padding: 40px 0 84px; }
  .post-grid { grid-template-columns: 1fr; gap: 16px; }
  .post-card { padding: 26px; min-height: 0; }
  .post-card h2, .post-card h3 { font-size: 22px; }
  .article { padding-top: 32px; }
  .article-meta { margin-top: 32px; }
  .toc { padding: 22px 22px 24px; margin-top: 40px; border-radius: 22px; }
  .prose { font-size: 17px; }
  .prose h2 { margin-top: 52px; }
  .prose th, .prose td { padding: 10px 8px; font-size: 14.5px; }
  .prose th:first-child, .prose td:first-child { padding-left: 14px; }
  .callout { padding: 20px; }
  .post-cta { grid-template-columns: 1fr; padding: 28px 24px; margin-top: 56px; gap: 16px; }
  .more { padding: 84px 0 96px; }
}
