/* quikk.com/blog. The pages are rendered by apps/blog from Draftlane's blocks
   inside the shell in blog-shell.html; the reading styles build on legal.css. */

/* Index ------------------------------------------------------------------ */
.blog-index {
  max-width: 1080px;
  margin: 0 auto;
}
.blog-index > header {
  max-width: 680px;
  margin: 0 0 40px;
}
.blog-index h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 12px 0 10px;
}
.blog-index > header p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
}
.blog-card a:hover,
.blog-card a:focus-visible {
  border-color: #c9c9c7;
  transform: translateY(-2px);
}
.blog-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--line);
}
.blog-card-body {
  padding: 18px 20px 22px;
}
.blog-card h2 {
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.blog-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
}
.blog-card time,
.blog-meta {
  color: var(--muted);
  font-size: 0.875rem;
}
.blog-card time {
  display: block;
  margin-top: 12px;
}
.blog-empty {
  color: var(--muted);
}

/* Post ------------------------------------------------------------------- */
.blog-post .feature-breadcrumb {
  margin-bottom: 8px;
}
.blog-post .legal-meta {
  margin-bottom: 28px;
}
.blog-summary {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #3d3b4a;
  margin: 0 0 28px;
}
.blog-cover {
  margin: 0 0 36px;
}
.blog-cover img,
.blog-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: var(--line);
}
.blog-figure {
  margin: 28px 0;
}
.blog-figure figcaption {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 8px;
}
.blog-toc {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 18px 22px;
  margin: 0 0 40px;
}
.blog-toc h2 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 8px;
}
.blog-toc ol {
  margin: 0;
  padding-left: 20px;
  font-size: 0.9375rem;
}
.blog-toc li + li {
  margin-top: 4px;
}
.blog-callout {
  border-radius: 14px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  background: #fff;
  padding: 14px 18px;
  margin: 24px 0;
}
.blog-callout p {
  margin: 0;
}
.blog-callout .blog-callout-title {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.blog-callout-tip {
  border-left-color: #3f9f7a;
}
.blog-callout-warning {
  border-left-color: #d9822b;
}
.blog-callout-note {
  border-left-color: #4a90e2;
}
.blog-callout-takeaway {
  border-left-color: #8a6fd1;
}
.blog-related {
  max-width: 680px;
  margin: 72px auto 0;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.blog-related h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 16px;
}
.blog-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-related li + li {
  margin-top: 12px;
}
.blog-related a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.blog-pager a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
