@import url("/site-shell.css");

.blog-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--line);
}
.blog-hero h1,
.article-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.12;
}
.blog-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.8rem);
}
.blog-hero h1 em {
  color: var(--sage-dark);
  font-weight: 500;
}
.blog-lead {
  max-width: 60ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}
.blog-section {
  padding: 70px 0 120px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 26px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  transition: border-color .2s ease;
}
.blog-card:first-child { grid-column: span 2; }
.blog-card:first-child h2 { font-size: clamp(2.3rem, 3.6vw, 3.2rem); max-width: 28ch; }
.blog-card:first-child p { max-width: 58ch; }
.blog-card:hover {
  border-color: var(--sage-dark);
}
.blog-card span {
  color: var(--sage-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.blog-card h2 {
  margin: 24px 0 12px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
}
.blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.blog-card .read {
  margin-top: auto;
  padding-top: 28px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.85rem;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 34px;
  color: var(--muted);
  font-size: 0.875rem;
}
.breadcrumbs a {
  text-underline-offset: 3px;
}
.article {
  padding-bottom: 120px;
}
.article-shell {
  max-width: 1120px;
}
.article-header {
  max-width: 900px;
  padding: 80px 0 58px;
}
.article-header h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
}
.article-lead {
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.78rem;
}
.article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 660px);
  gap: 70px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 110px;
  padding: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.toc > p {
  margin: 0 0 14px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.toc ol {
  margin: 0;
  padding-left: 18px;
}
.toc li {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.35;
}
.toc a {
  text-decoration: none;
}
.toc a:hover {
  text-decoration: underline;
}
.article-content {
  min-width: 0;
}
.article-content section {
  scroll-margin-top: 110px;
  margin-bottom: 58px;
}
.article-content h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.article-content h3 {
  margin: 30px 0 10px;
  font-size: 1.05rem;
}
.article-content p,
.article-content li {
  color: #515d54;
  font-size: 1rem;
  line-height: 1.82;
}
.article-content p {
  margin: 0 0 18px;
}
.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin: 20px 0 24px;
}
.article-content li {
  margin-bottom: 8px;
}
.checklist {
  list-style: none;
  padding-left: 0 !important;
}
.checklist li {
  position: relative;
  padding-left: 28px;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage-dark);
  font-weight: 600;
}
.callout {
  margin: 28px 0;
  padding: 22px 24px;
  border-left: 3px solid var(--sage-dark);
  background: rgba(183, 199, 181, 0.2);
  color: #465148;
  line-height: 1.7;
}
.examples {
  margin: 24px 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.55);
}
.examples p:last-child {
  margin-bottom: 0;
}
.timeline {
  margin: 28px 0;
  border-left: 1px solid var(--sage);
}
.timeline > div {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 0 0 26px 24px;
}
.timeline > div::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sage-dark);
}
.timeline time {
  font-weight: 600;
}
.article-cta {
  margin-top: 75px !important;
  padding: 42px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--bg);
}
.article-cta .eyebrow {
  color: #c3cfb7;
}
.article-cta h2 {
  color: var(--bg);
}
.article-cta p {
  color: #cdd5cf;
}
.article-cta .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.article-cta .btn-primary:hover { background: var(--sage-pale); border-color: var(--sage-pale); }
.article-cta .btn-secondary { color: var(--paper); border-color: #899d8b; }
.article-cta .btn-secondary:hover { color: var(--ink); background: var(--paper); }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.related {
  margin-top: 90px;
  padding-top: 54px;
  border-top: 1px solid var(--line);
}
.related h2 {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 500;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-card {
  display: block;
  padding: 22px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  text-decoration: none;
  background: transparent;
}
.related-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--sage-dark);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.related-card strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.18;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 54px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}
.site-footer p {
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
  font-size: 0.82rem;
}
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .toc {
    position: static;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .blog-hero {
    padding: 72px 0 52px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-card:first-child { grid-column: auto; }
  .blog-card:first-child h2 { font-size: 2.2rem; }
  .blog-card {
    min-height: auto;
  }
  .article-header {
    padding: 58px 0 42px;
  }
  .article-cta {
    padding: 28px 22px;
  }
  .footer-grid {
    flex-direction: column;
  }
  .timeline > div {
    grid-template-columns: 70px 1fr;
  }
}

.blog-hero h1, .article-header h1 { text-wrap: pretty; }
.related-card:hover { border-color: var(--sage-dark); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 680px) {
  .blog-hero h1 { font-size: clamp(2.8rem, 10.5vw, 4.5rem); }
  .article-header h1 { font-size: clamp(2.4rem, 9.2vw, 3.8rem); }
  .article-meta { font-size: .85rem; }
  .blog-hero { padding-top: 48px; }
  .blog-section { padding-top: 36px; padding-bottom: 64px; }
  .blog-card { padding-block: 24px; }
  .blog-card h2 { margin-top: 18px; line-height: 1.2; }
  .related { margin-top: 56px; }
  .article { padding-bottom: 64px; }
}
