/* The blog: long reading on the same ground, type and colours as the landing page.
   Loaded after style.css, which brings the navigation, buttons and footer. */

.post-head {
  padding: 132px 0 44px;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(122, 124, 245, .16), transparent 70%),
    linear-gradient(180deg, #fcfcfd, var(--ground));
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink3); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.post-head h1 { margin: 18px 0 0; max-width: 18em; font-size: clamp(36px, 5.4vw, 60px); text-align: left; }
.post-head .lead { margin: 20px 0 0; max-width: 38em; text-align: left; }
.byline { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink3); }

.post-body { padding: 8px 0 96px; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 64px; align-items: start; }
.toc { position: sticky; top: 96px; font-size: 14px; }
.toc p { font-weight: 650; color: var(--ink); margin-bottom: 10px; }
.toc ol { display: grid; gap: 8px; counter-reset: toc; }
.toc a { color: var(--ink3); transition: color .2s; }
.toc a:hover { color: var(--indigo); }

.prose { max-width: 700px; font-size: 18px; line-height: 1.7; color: #26272e; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.2em; max-width: none; font-size: clamp(26px, 3vw, 32px); line-height: 1.15; letter-spacing: -.028em; color: var(--ink); scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.8em; font-size: 21px; color: var(--ink); }
.prose a { color: var(--indigo); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--ink3); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose code, .prose kbd { font: 500 .86em ui-monospace, "SF Mono", Menlo, monospace; padding: .12em .4em; border-radius: 6px; background: var(--ground2); color: var(--ink); }
.prose .path { font-weight: 600; color: var(--ink); white-space: nowrap; }

.answer {
  padding: 24px 26px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow);
  border-left: 4px solid var(--indigo);
}
.answer p { margin: 0; }
.answer p + p, .answer ul { margin-top: .7em; }
.answer .label { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--indigo); }

.table-wrap { overflow-x: auto; border-radius: 18px; box-shadow: var(--shadow); background: var(--card); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.prose th, .prose td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-size: 13px; font-weight: 650; letter-spacing: .02em; color: var(--ink3); background: #fafbfd; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 650; color: var(--ink); white-space: nowrap; }

.note { padding: 18px 22px; border-radius: 18px; background: var(--ground2); font-size: 16px; }
.note strong:first-child { display: block; margin-bottom: 4px; }

.cta-box {
  margin-top: 2.4em !important; padding: 34px 32px; border-radius: 28px; color: #fff;
  background: radial-gradient(70% 90% at 10% 0%, #9fa0ff, transparent 60%), linear-gradient(160deg, #6466ea, #3536b8);
  box-shadow: 0 24px 60px rgba(60, 62, 200, .28);
}
.cta-box h2 { margin: 0; color: #fff; font-size: 26px; }
.cta-box p { margin-top: 10px; color: rgba(255, 255, 255, .86); font-size: 17px; }
.cta-box .btn { margin-top: 20px; text-decoration: none; }

.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 16px 0; font-weight: 650; color: var(--ink); cursor: pointer; }
.faq-list details p { margin: 0 0 18px; }

/* The blog's front page. */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding-bottom: 96px; }
.post-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); transition: transform .3s var(--spring), box-shadow .3s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(14, 14, 19, .05), 0 18px 48px rgba(30, 32, 80, .12); }
.post-card .tag { font-size: 13px; font-weight: 650; color: var(--indigo); }
.post-card h2 { margin: 0; font-size: 23px; line-height: 1.2; letter-spacing: -.02em; }
.post-card p { color: var(--ink2); font-size: 16px; }
.post-card .more { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--ink); }

@media (max-width: 980px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
}
@media (max-width: 680px) {
  .post-head { padding-top: 104px; }
  .prose { font-size: 17px; }
  .answer, .cta-box { padding: 22px 20px; }
  .prose .path { white-space: normal; }
  .prose td:first-child { white-space: normal; min-width: 8em; }
  .prose th, .prose td { padding: 12px 12px; }
  .prose table { min-width: 560px; }
}
