/* Blog article layout. Loaded only by blog.html and blog/*.html. */
.tf-back{display:inline-block;padding:6px 0;font-family:var(--font-sans);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink);text-decoration:none;opacity:.8;}
.tf-back:hover{opacity:1;text-decoration:underline;text-underline-offset:4px;}
/* Site-wide .tf-meta is 10px; on the blog it is the date / read-time line people actually read. */
.tf-meta{font-size:12px;}
.tf-article-hero{padding:0 44px;}
.tf-article-hero .tf-frame{overflow:hidden;max-height:560px;}
.tf-article-hero img{display:block;width:100%;height:100%;max-height:560px;object-fit:cover;}

/* Blog index: every post sits in one grid straight under the heading. The columns come from the space
   available (3 on a wide screen, 2 on a tablet, 1 on a phone), so the count never needs a breakpoint.
   Each card is one link around an <article>; the link stretches so cards in a row share a height. */
.tf-blog-index{padding:34px 44px 88px;}
.tf-grid-posts{grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));}
.tf-post-link{display:flex;color:inherit;text-decoration:none;}
.tf-post-link .tf-post-card{flex:1;min-width:0;}
.tf-post-card .tf-post-title{text-wrap:balance;}
.tf-post-card .tf-body{margin:0;}
.tf-post-link:hover .tf-post-card .tf-frame img,.tf-post-link:focus-visible .tf-post-card .tf-frame img{scale:1.03;}
@media (max-width:900px){
  .tf-blog-index{padding:24px 20px 64px;}
}
@media (prefers-reduced-motion:reduce){
  .tf-post-link:hover .tf-post-card .tf-frame img,.tf-post-link:focus-visible .tf-post-card .tf-frame img{scale:1;}
}

/* Reading surface. The text starts on the same 44px edge as the headline and the photo (a centred strip
   under a left-aligned headline looked thin), is set larger, and on desktop sits beside a sticky enquiry card. */
.tf-article-wrap{display:grid;grid-template-columns:minmax(0,1fr);gap:56px;padding:56px 44px 88px;font-size:18px;}
.tf-article-body{max-width:70ch;font-family:var(--font-body);line-height:1.72;}
.tf-article-body p{margin:0 0 1.15em;text-wrap:pretty;}
.tf-article-body h2{font-family:var(--font-serif);font-weight:400;font-size:2.05em;line-height:1.12;margin:1.6em 0 .5em;text-wrap:balance;}
.tf-article-body h2:first-child{margin-top:0;}
.tf-article-body h3,.tf-article-body h4{font-family:var(--font-serif);font-weight:500;font-size:1.45em;line-height:1.2;margin:1.5em 0 .5em;}
.tf-article-body ul{margin:0 0 1.2em;padding-left:1.2em;}
.tf-article-body li{margin:0 0 .45em;}
.tf-article-body a{color:var(--ink);text-decoration:underline;text-underline-offset:3px;}
.tf-article-body a:hover{opacity:.7;}
.tf-article-body strong{font-weight:600;}

.tf-article-aside{max-width:70ch;}
.tf-aside-card{display:flex;flex-direction:column;gap:20px;padding:32px 30px;background:var(--cream);border:1px solid var(--line);}
.tf-aside-text{margin:0;font-family:var(--font-serif);font-size:26px;line-height:1.32;text-wrap:balance;}
.tf-aside-card .tf-btn{width:100%;}
.tf-aside-phone{align-self:center;font-family:var(--font-sans);font-size:13px;letter-spacing:.14em;color:var(--ink);text-decoration:none;padding:6px 0;}
.tf-aside-phone:hover{text-decoration:underline;text-underline-offset:4px;}

@media (min-width:1100px){
  .tf-article-wrap{grid-template-columns:minmax(0,70ch) minmax(280px,340px);justify-content:space-between;column-gap:64px;align-items:start;padding:72px 44px 104px;font-size:20px;}
  .tf-article-aside{position:sticky;top:150px;max-width:none;}
}
@media (max-width:900px){
  .tf-article-hero{padding:0 20px;}
  .tf-article-wrap{padding:40px 20px 64px;gap:40px;font-size:17px;}
  .tf-aside-card{padding:26px 22px;}
  .tf-aside-text{font-size:23px;}
}
