/* Trending Formats — client: blog index, single post, pages, 404. Loads last. */

/* Blog index / archives / 404 */
.tf-listpage { padding-block: clamp(28px, 6vw, 72px) clamp(64px, 9vw, 120px); }
.tf-pagehead .tf-lead { margin-top: 18px; }
.tf-h1--page { font-size: clamp(38px, 6vw, 72px); max-width: 18ch; }
.tf-listpage .tf-posts { margin-top: clamp(32px, 5vw, 56px); }
.tf-empty { margin-top: 36px; color: var(--dim); }
.tf-404-links { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Single post + pages */
.tf-article { padding-block: clamp(28px, 6vw, 72px) clamp(64px, 9vw, 110px); }
.tf-article-head, .tf-prose, .tf-endcap, .tf-postnav { max-width: 720px; margin-inline: auto; }
.tf-meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--faint); font-size: 15.5px; font-weight: 500; }
.tf-cat { color: var(--yellow); font-weight: 700; }
.tf-cat:hover { text-decoration: underline; text-underline-offset: 3px; }
.tf-h1--post { margin-top: 16px; font-size: clamp(34px, 5.2vw, 58px); line-height: 1.04; max-width: 20ch; }
.tf-lead--post { margin-top: 20px; font-size: clamp(18px, 2vw, 21px); }

.tf-prose {
  margin-top: clamp(32px, 5vw, 48px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line);
  font-size: clamp(18px, 1.6vw, 19px); line-height: 1.7; color: #e3e6e9;
}
.tf-prose > * { max-width: 68ch; }
.tf-prose > * + * { margin-top: 1.1em; }
.tf-prose h2 {
  margin-top: 2em; font: 800 clamp(25px, 3vw, 32px)/1.15 var(--display); letter-spacing: -.025em; color: var(--text);
}
.tf-prose h3 { margin-top: 1.7em; font: 700 clamp(21px, 2.2vw, 24px)/1.25 var(--display); letter-spacing: -.02em; color: var(--text); }
.tf-prose h2 + *, .tf-prose h3 + * { margin-top: .6em; }
.tf-prose > :first-child { margin-top: 0; }
.tf-prose a {
  color: var(--text); text-decoration: underline; text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.tf-prose a:hover { color: var(--yellow); }
.tf-prose strong, .tf-prose b { color: var(--text); font-weight: 700; }
.tf-prose ul, .tf-prose ol { padding-left: 1.3em; }
.tf-prose ul { list-style: disc; }
.tf-prose ol { list-style: decimal; }
.tf-prose li + li { margin-top: .45em; }
.tf-prose li::marker { color: var(--yellow); }
.tf-prose blockquote { border-left: 3px solid var(--yellow); padding-left: 20px; color: var(--dim); }
.tf-prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.tf-prose code { font-size: .9em; background: var(--raised); padding: .1em .35em; border-radius: 5px; }
.tf-prose img { border-radius: 12px; }
.tf-prose table { width: 100%; border-collapse: collapse; font-size: .92em; display: block; overflow-x: auto; }
.tf-prose th, .tf-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tf-prose th { color: var(--text); font-weight: 700; }

/* Closing email capture */
.tf-endcap {
  margin-top: clamp(48px, 7vw, 72px); background: var(--gun); border-radius: 20px; padding: clamp(24px, 4vw, 40px);
}
.tf-endcap-title { font: 800 clamp(26px, 3.4vw, 36px)/1.1 var(--display); letter-spacing: -.03em; }
.tf-endcap-sub { margin-top: 12px; color: var(--dim); font-size: 17.5px; max-width: 52ch; }
.tf-endcap .tf-capture { margin-top: 22px; }
.tf-endcap .tf-capture { background: var(--black); border-color: var(--gun-hi); }

/* Previous / next */
.tf-postnav { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tf-postnav-link {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 14px; transition: border-color .12s;
}
.tf-postnav-link:hover { border-color: var(--gun-hi); }
.tf-postnav-link:hover .tf-postnav-title { color: var(--yellow); }
.tf-postnav-link--prev { grid-column: 1; }
.tf-postnav-link--next { grid-column: 2; text-align: right; }
.tf-postnav-dir { color: var(--faint); font-size: 14.5px; font-weight: 600; }
.tf-postnav-title { font: 700 19px/1.3 var(--display); letter-spacing: -.02em; }

@media (max-width: 560px) {
  .tf-postnav { grid-template-columns: 1fr; }
  .tf-postnav-link--next { grid-column: 1; text-align: left; }
}
