/* Vestigia blog: editorial layout shared by /blog pages.
   Same tokens as the rest of the site; no cards, no shadows, hairline only. */

html {
  background: var(--bg-dark);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: hidden;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

.blog-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 24px 72px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.42);
}

.breadcrumb a:hover {
  color: var(--primary-light);
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.14);
}

.breadcrumb .current {
  color: var(--primary-light);
}

.blog-eyebrow,
.blog-meta,
.blog-tldr-label,
.blog-sources-title,
.blog-related-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.blog-eyebrow {
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.blog-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.blog-dek {
  font-size: 1.14rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.blog-meta .sep {
  color: rgba(255, 255, 255, 0.18);
}

.blog-tldr {
  margin: 2rem 0 0.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}

.blog-tldr-label {
  display: block;
  color: var(--primary-light);
  margin-bottom: 0.6rem;
}

.blog-tldr p {
  font-size: 1.04rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.blog-figure {
  margin: 2.4rem 0;
}

.blog-figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
}

.blog-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.blog-body {
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.blog-body > p {
  margin-bottom: 1.4rem;
}

.blog-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin: 2.8rem 0 0.9rem;
}

.blog-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2rem 0 0.7rem;
}

.blog-body a {
  color: var(--primary-light);
  text-decoration: underline;
  text-decoration-color: rgba(214, 138, 102, 0.35);
  text-underline-offset: 3px;
}

.blog-body a:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

.blog-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.blog-body ul,
.blog-body ol {
  margin: 0 0 1.5rem 1.25rem;
}

.blog-body li {
  margin-bottom: 0.55rem;
}

.blog-body li::marker {
  color: var(--primary);
}

.blog-callout {
  margin: 2.2rem 0;
  padding: 1.3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.blog-callout .blog-tldr-label {
  margin-bottom: 0.5rem;
}

.blog-callout p:last-child {
  margin-bottom: 0;
}

.blog-sources {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.42);
}

.blog-sources-title {
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.blog-sources ol {
  margin: 0 0 0 1.1rem;
}

.blog-sources li {
  margin-bottom: 0.35rem;
}

.blog-sources a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-sources a:hover {
  color: var(--primary-light);
}

.blog-byline {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 2.6rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.blog-byline strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.blog-related {
  margin-top: 3rem;
}

.blog-related-title {
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.blog-related-list {
  list-style: none;
  margin: 0;
}

.blog-related-list li {
  border-bottom: 1px solid var(--border);
}

.blog-related-list a {
  display: block;
  padding: 1rem 0;
  color: var(--text-primary);
}

.blog-related-list a:hover {
  color: var(--primary-light);
}

.blog-related-list .hover-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.blog-cta {
  margin-top: 2.2rem;
  font-size: 1.02rem;
  line-height: 1.8;
}

/* Blog index */

.blog-index-intro {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 620px;
  margin-top: 0.5rem;
}

.post-list {
  list-style: none;
  margin: 3rem 0 0;
}

.post-list li {
  border-top: 1px solid var(--border);
}

.post-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.post-link {
  display: block;
  padding: 1.8rem 0;
}

.post-link .blog-eyebrow {
  margin-bottom: 0.5rem;
}

.post-link h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.post-link p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.post-link .post-meta {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.post-link:hover h2 {
  color: var(--primary-light);
}

@media (max-width: 640px) {
  .blog-shell {
    padding: 104px 20px 56px;
  }

  .blog-title {
    font-size: 1.9rem;
  }

  .blog-body {
    font-size: 1.02rem;
  }

  .blog-figure figcaption {
    display: block;
  }
}
