/* Blog-specific styles, layered on top of /styles.css */

.blog-hero {
  padding: clamp(100px, 14vw, 160px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(78, 158, 255, 0.12), transparent 60%),
    var(--bg-0);
  border-bottom: 1px solid var(--rule);
}

.blog-hero h1 {
  margin: 12px 0 24px;
  max-width: 18ch;
}

.blog-hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
  max-width: 620px;
}

/* ----------------------- Post list (index) ----------------------- */

.blog-list-section { padding: 56px 0 var(--pad-y); }

.post-card {
  border-top: 1px solid var(--rule);
  transition: background .2s ease;
}
.post-card:last-child { border-bottom: 1px solid var(--rule); }
.post-card:hover { background: rgba(78, 158, 255, 0.04); }

.post-card-link {
  display: block;
  padding: 36px 0;
  color: var(--ink-1) !important;
  text-decoration: none;
}
.post-card-link:hover { text-decoration: none; }

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 18px;
}
.post-card-category { color: var(--accent); }

.post-card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 100;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--ink-0);
  letter-spacing: -0.015em;
  transition: color .15s ease;
}
.post-card:hover .post-card-title { color: var(--accent-hot); }

.post-card-excerpt {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 18px;
  max-width: 620px;
}

.post-card-cta {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--accent);
}

/* ----------------------- Post page ----------------------- */

.post-page-hero {
  padding: clamp(80px, 12vw, 140px) 0 0;
  background: var(--bg-0);
}

.post-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 22px;
}
.post-meta-line .post-card-category { color: var(--accent); }

.post-title {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 24px;
  color: var(--ink-0);
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.post-deck {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 100;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0 0 56px;
  max-width: 660px;
}

.post-hero-image {
  margin: 40px 0 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--bg-2);
}

/* When the hero figure ends a .post-page-hero section, the next section
   doesn't need its full top padding. */
.post-page-hero + .section { padding-top: 48px; }
.post-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}
.post-hero-image figcaption {
  padding: 14px 22px;
  font-size: 0.85rem;
  color: var(--ink-3);
  border-top: 1px solid var(--rule);
  font-style: italic;
}

.post-body {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink-1);
}
.post-body p { margin-bottom: 22px; }
.post-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  font-variation-settings: "opsz" 100;
  margin: 56px 0 18px;
  color: var(--ink-0);
}
.post-body h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 36px 0 12px;
  color: var(--ink-0);
}
.post-body ul, .post-body ol {
  margin: 0 0 22px;
  padding-left: 24px;
}
.post-body li {
  margin-bottom: 10px;
  color: var(--ink-1);
}
.post-body blockquote {
  margin: 32px 0;
  padding: 0 0 0 28px;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-1);
  font-variation-settings: "opsz" 100;
}
.post-body strong { color: var(--ink-0); font-weight: 600; }
.post-body a { color: var(--accent); border-bottom: 1px solid rgba(78,158,255,0.3); }
.post-body a:hover { color: var(--accent-hot); border-bottom-color: var(--accent-hot); }

.post-callout {
  margin: 36px 0;
  padding: 24px 28px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}
.post-callout p:last-child { margin-bottom: 0; }

.post-footer {
  margin-top: 80px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}

.post-back {
  display: inline-block;
  font-size: 0.92rem;
  color: var(--accent);
  margin-bottom: 32px;
}

.post-related-heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 18px;
}
