/* NovaFound blog — extends the root styles.css, adds blog-specific layout */

/* ---------- Blog container ---------- */
.blog-main {
  padding: 140px 0 120px;
}

@media (max-width: 720px) {
  .blog-main {
    padding: 110px 0 80px;
  }
}

/* ---------- Blog index hero ---------- */
.blog-hero {
  padding: 140px 0 60px;
  border-bottom: 1px solid var(--hair);
}
.blog-hero .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  margin-bottom: 16px;
}
.blog-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-bottom: 20px;
}
.blog-hero h1 em {
  font-style: italic;
  font-family: var(--display);
}
.blog-hero p.lede {
  font-size: 19px;
  max-width: 56ch;
  color: color-mix(in oklab, var(--ink) 75%, transparent);
  line-height: 1.5;
}

/* ---------- Post grid ---------- */
.post-grid {
  padding: 80px 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}
@media (max-width: 960px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; gap: 40px; }
}

.post-card {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
  padding-top: 24px;
  transition: transform 0.25s ease;
}
.post-card:hover { transform: translateY(-2px); }

.post-card .meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  margin-bottom: 14px;
}
.post-card .tag {
  color: var(--ink);
  font-weight: 500;
}

.post-card h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  transition: opacity 0.2s ease;
}
.post-card h2 em {
  font-style: italic;
  font-family: var(--display);
}
.post-card:hover h2 { opacity: 0.7; }

.post-card p.excerpt {
  color: color-mix(in oklab, var(--ink) 72%, transparent);
  margin-bottom: 18px;
  line-height: 1.5;
  font-size: 15px;
}

.post-card .read-more {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 500;
}
.post-card .read-more .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.post-card:hover .read-more .arrow {
  transform: translateX(4px);
}

/* ---------- Individual post ---------- */
.post-head {
  padding: 140px 0 60px;
  border-bottom: 1px solid var(--hair);
}
@media (max-width: 720px) {
  .post-head { padding: 110px 0 40px; }
}
.post-head .crumbs {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  margin-bottom: 24px;
}
.post-head .crumbs a { color: var(--mid); }
.post-head .crumbs a:hover { color: var(--ink); }
.post-head .crumbs .sep { margin: 0 10px; opacity: 0.5; }

.post-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  max-width: 22ch;
}
.post-head h1 em {
  font-style: italic;
  font-family: var(--display);
}

.post-head .byline {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
}
.post-head .byline strong { color: var(--ink); font-weight: 500; }

.post-body {
  padding: 60px 0 40px;
  max-width: 72ch;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
}
.post-body p { margin-bottom: 22px; }
.post-body p.lede {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 34px;
}
.post-body h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 56px 0 20px;
}
.post-body h2 em { font-style: italic; font-family: var(--display); }
.post-body h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 20px;
  margin: 34px 0 14px;
  letter-spacing: -0.01em;
}
.post-body ul, .post-body ol {
  padding-left: 24px;
  margin-bottom: 22px;
}
.post-body li { margin-bottom: 10px; }
.post-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.post-body a:hover { opacity: 0.7; }
.post-body blockquote {
  border-left: 2px solid var(--ink);
  padding: 6px 0 6px 24px;
  margin: 30px 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
}
.post-body strong { font-weight: 600; }
.post-body hr {
  border: none;
  border-top: 1px solid var(--hair);
  margin: 50px 0;
}

/* Callout */
.post-callout {
  background: var(--ink);
  color: var(--bg);
  padding: 40px 36px;
  margin: 48px 0;
  border-radius: 4px;
}
.post-callout .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-bottom: 12px;
}
.post-callout h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--bg);
}
.post-callout p {
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.85;
  margin-bottom: 20px;
}
.post-callout .btn-primary {
  background: var(--bg);
  color: var(--ink);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}
.post-callout .btn-primary:hover { transform: translateY(-1px); }

/* FAQ inside post */
.post-faq {
  padding: 40px 0;
  max-width: 72ch;
  margin: 40px auto 0;
  border-top: 1px solid var(--hair);
}
.post-faq h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 24px;
}
.post-faq details {
  border-bottom: 1px solid var(--hair);
  padding: 18px 0;
}
.post-faq summary {
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.2s;
}
.post-faq details[open] summary::after {
  content: '–';
}
.post-faq details p {
  margin-top: 14px;
  color: color-mix(in oklab, var(--ink) 80%, transparent);
  font-size: 16px;
  line-height: 1.6;
}

/* Related posts strip */
.related {
  padding: 80px 0 120px;
  border-top: 1px solid var(--hair);
}
.related .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  margin-bottom: 30px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 860px) {
  .related-grid { grid-template-columns: 1fr; }
}
.related-card {
  display: block;
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}
.related-card .tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  margin-bottom: 12px;
}
.related-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  transition: opacity 0.2s;
}
.related-card:hover h3 { opacity: 0.65; }

/* Back link */
.back-link {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
}
.back-link:hover { color: var(--ink); }
