/* ============================================================
   THE FOUNDATION — blog styles
   Extends design-system/site.css. Uses existing tokens only.
   ============================================================ */

/* ---------- Blog index ---------- */
.tf-blog-hero { padding: 96px 0 40px; }
.tf-blog-hero h1 { font-family: var(--font-tagline, var(--font-sans)); font-weight: 900; font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.08; color: var(--fg); margin: 0 0 .75rem; }
.tf-blog-hero p { max-width: 56ch; color: var(--fg-muted); font-size: 1.125rem; line-height: 1.6; margin: 0; }

.tf-postgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; padding: 24px 0 72px; }
.tf-postcard { display: flex; flex-direction: column; gap: .6rem; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 26px 24px; text-decoration: none; transition: transform var(--d-hover, .18s) var(--ease-out, ease-out), box-shadow var(--d-hover, .18s) var(--ease-out, ease-out); }
.tf-postcard:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(43, 47, 54, .10); }
.tf-postcard__eyebrow { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-tertiary); }
.tf-postcard__title { font-weight: 800; font-size: 1.22rem; line-height: 1.3; color: var(--fg); margin: 0; }
.tf-postcard__desc { color: var(--fg-muted); font-size: .95rem; line-height: 1.55; margin: 0; }
.tf-postcard__meta { margin-top: auto; padding-top: .5rem; font-size: .82rem; color: var(--fg-tertiary); }
.tf-postcard--feature { grid-column: 1 / -1; background: var(--bg-aubergine, #4A154B); border-color: transparent; }
.tf-postcard--feature .tf-postcard__title { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.tf-postcard--feature .tf-postcard__desc { color: rgba(255, 255, 255, .82); }
.tf-postcard--feature .tf-postcard__eyebrow { color: var(--accent, #F5A623); }
.tf-postcard--feature .tf-postcard__meta { color: rgba(255, 255, 255, .6); }

/* ---------- Article ---------- */
.tf-article { padding: 88px 0 24px; }
.tf-article__wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--container-pad, 20px); }
.tf-article__eyebrow { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-tertiary); display: block; margin-bottom: .8rem; }
.tf-article h1 { font-weight: 900; font-size: clamp(1.85rem, 4vw, 2.7rem); line-height: 1.12; color: var(--fg); margin: 0 0 1rem; }
.tf-article__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; color: var(--fg-tertiary); font-size: .88rem; margin-bottom: 2.2rem; }
.tf-article__meta img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

.tf-prose { font-size: 1.06rem; line-height: 1.72; color: var(--fg); }
.tf-prose p { margin: 0 0 1.15rem; }
.tf-prose h2 { font-weight: 800; font-size: 1.5rem; line-height: 1.25; margin: 2.4rem 0 .9rem; }
.tf-prose h3 { font-weight: 700; font-size: 1.18rem; margin: 1.8rem 0 .6rem; }
.tf-prose ul, .tf-prose ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
.tf-prose li { margin-bottom: .45rem; }
.tf-prose a { color: var(--foundation-aubergine, #4A154B); text-decoration: underline; text-underline-offset: 2px; }
.tf-prose a:hover { color: var(--accent, #F5A623); }
.tf-prose strong { font-weight: 700; }
.tf-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.3rem; font-size: .95rem; }
.tf-prose th, .tf-prose td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.tf-prose th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-tertiary); }

/* Definition block: the 40-60 word extractable answer */
.tf-defbox { background: var(--bg-sky-soft, #EAF7FC); border: 1px solid var(--border); border-left: 4px solid var(--sky, #36C5F0); border-radius: 10px; padding: 18px 20px; margin: 0 0 1.5rem; }
.tf-defbox p { margin: 0; font-size: 1.02rem; }

/* Key stats block */
.tf-statbox { background: var(--bg-alt, #F7F6F3); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; margin: 1.4rem 0; }
.tf-statbox h3 { margin: 0 0 .7rem; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-tertiary); font-weight: 600; }
.tf-statbox ul { margin: 0; padding-left: 1.2rem; }
.tf-statbox li { margin-bottom: .5rem; font-size: .98rem; }

/* Founder pull quote */
.tf-pullquote { border-left: 4px solid var(--accent, #F5A623); margin: 1.6rem 0; padding: .4rem 0 .4rem 1.2rem; }
.tf-pullquote p { font-size: 1.18rem; font-weight: 600; line-height: 1.5; margin: 0 0 .5rem; }
.tf-pullquote cite { font-style: normal; font-size: .88rem; color: var(--fg-muted); }

/* In-article FAQ reuses .tf-faq from site.css */
.tf-article .tf-faq { margin-top: .5rem; }

/* Sources */
.tf-sources { margin: 2.4rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--border); font-size: .88rem; color: var(--fg-muted); }
.tf-sources h2 { font-size: .78rem; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-tertiary); margin: 0 0 .6rem; }
.tf-sources ol { margin: 0; padding-left: 1.2rem; }
.tf-sources li { margin-bottom: .35rem; }

/* Author box */
.tf-authorbox { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-alt, #F7F6F3); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin: 2.2rem 0 0; }
.tf-authorbox img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.tf-authorbox strong { display: block; margin-bottom: .25rem; }
.tf-authorbox p { margin: 0; font-size: .92rem; color: var(--fg-muted); line-height: 1.55; }

/* Next-post nav */
.tf-nextposts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 2.2rem 0 3.5rem; }

@media (max-width: 640px) {
  .tf-blog-hero { padding: 72px 0 24px; }
  .tf-article { padding: 72px 0 16px; }
}
