/* VIP Auto Customs · the blog (blog/index.html, the four category pages, every post; generated by tools/blog/build.mjs)
   and the "From the blog" list on the service pages. Page rules on top of css/home.css, which is linked first.
   In this site's world (DESIGN.md): the work.html text hero on the ground (no picture, the headline the only large
   thing), the service pages' measures for the reading column (the what-we-do paragraph for the standfirst, 62ch for
   the body), the home page's journal tiles on the index's one light band, the calm close.
   Red: --red (#E3202A) for the hero's italic word; small red type uses --red-text (#EE2C35), the same red lifted a
   touch so 10px labels hold 4.5:1 on the ground. Post heroes dim their kicker so the italic word stays the one red;
   the close is the shared .e-close block, so its italic word is that screen's one red. */

:root{--red-text:#EE2C35}

/* ---------------------------------------------------------------- (1) hero on the ground, as .w-hero */
.b-hero{background:var(--ground);padding:calc(var(--nav-h) + clamp(80px,13.5vh,152px)) var(--gutter) clamp(58px,8vh,94px)}
.b-hero__inner{max-width:1440px;margin:0 auto}
.b-kicker{font:500 13px/1.5 var(--sans);letter-spacing:.02em;text-transform:none;color:var(--red-text)}
.b-kicker--dim{color:var(--label)}
.b-title{max-width:16ch;margin-top:22px;font:300 clamp(52px,min(5vw,8.4vh),92px)/1.02 var(--serif);font-variation-settings:'opsz' 72;
  letter-spacing:-.02em;color:var(--text)}
.b-title em{font-style:italic;color:var(--red)}
.b-stand{max-width:60ch;margin-top:28px;font:300 clamp(21px,1.62vw,28px)/1.45 var(--serif);font-variation-settings:'opsz' 24;
  letter-spacing:-.005em;color:rgba(242,241,237,.82)}

/* ---------------------------------------------------------------- (2) the cover: no parallax (the caption must not be
   clipped), so the shared .e-tile__media frame is undone and the picture sits static at 16:9 (4:5 on phones) */
.b-cover{aspect-ratio:auto;overflow:visible;max-width:1440px;margin:clamp(40px,6vh,64px) auto 0;padding:0 var(--gutter);background:none}
.b-cover img{position:static;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;transform:none;background:var(--panel)}
.b-cover figcaption{padding:14px 0 0;font:400 13px/1.4 var(--sans);letter-spacing:.02em;text-transform:none;color:var(--label)}

/* ---------------------------------------------------------------- (3) the reading column */
.b-body{max-width:62ch;margin:clamp(64px,9vh,104px) auto 0;padding:0 var(--gutter);box-sizing:content-box}
.b-body p,.b-body li{font:300 17px/1.75 var(--sans);color:rgba(242,241,237,.84)}
.b-body p+p{margin-top:20px}
.b-body h2{margin:56px 0 20px;font:300 clamp(32px,2.6vw,40px)/1.1 var(--serif);font-variation-settings:'opsz' 72;letter-spacing:-.02em;color:var(--text)}
.b-body h3{margin:40px 0 14px;font:500 24px/1.3 var(--sans);color:var(--text)}
.b-body > :first-child{margin-top:0}
.b-body a{color:var(--text);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;text-decoration-color:var(--box);
  transition:text-decoration-color .4s var(--ease)}
.b-body a:hover{text-decoration-color:var(--text)}
.b-body ul,.b-body ol{margin:20px 0;padding-left:1.2em}
.b-body ul{list-style:disc}
.b-body ol{list-style:decimal}
.b-body li+li{margin-top:8px}
.b-body li::marker{color:var(--dim)}
.b-body strong{font-weight:500;color:var(--text)}
.b-body blockquote{margin:32px 0;padding-left:24px;border-left:1px solid var(--hair)}
.b-body blockquote p{font:300 21px/1.5 var(--serif);font-variation-settings:'opsz' 24;color:var(--text)}
.b-body hr{margin:48px 0;border:0;border-top:1px solid var(--hair)}
.b-body table{width:100%;margin:32px 0;border-collapse:collapse}
.b-body th,.b-body td{padding:12px 16px 12px 0;border-bottom:1px solid var(--hair);text-align:left;vertical-align:top}
.b-body tr:first-child th,.b-body tr:first-child td{border-top:1px solid var(--hair)}
.b-body th{font:500 13px/1.4 var(--sans);color:var(--text)}
.b-body td{font:300 15px/1.6 var(--sans);color:rgba(242,241,237,.84)}
.b-body figure{margin:32px 0}
.b-body figure img{width:100%;background:var(--panel)}
.b-body figcaption{padding-top:14px;font:400 13px/1.4 var(--sans);letter-spacing:.02em;text-transform:none;color:var(--label)}
.b-body code{font:400 14px/1.5 var(--sans);color:var(--text)}
@media (min-width:1024px){.b-body figure{margin:40px calc(-1 * var(--gutter)) 40px}}

/* ---------------------------------------------------------------- (4) questions: the shared .e-faq, set closer to the body */
.b-post .e-faq{margin-top:clamp(88px,12.5vh,144px);padding-top:0}

/* ---------------------------------------------------------------- (5) the hairline post list (Keep reading on posts,
   From the blog on the service pages): date and tag in the counter voice, the title in Newsreader, nudged on hover */
.b-related{max-width:1440px;margin:clamp(88px,12.5vh,144px) auto 0;padding:0 var(--gutter)}
.b-related .e-label{margin-bottom:28px}
.b-list li{border-top:1px solid var(--hair)}
.b-list li:last-child{border-bottom:1px solid var(--hair)}
.b-list a{display:grid;grid-template-columns:9em minmax(0,1fr) auto;align-items:baseline;gap:24px;padding:22px 0;color:inherit;text-decoration:none}
.b-list time,.b-list__tag{font:400 13px/1.4 var(--sans);letter-spacing:.02em;text-transform:none;color:var(--label)}
.b-list__title{font:300 clamp(22px,1.8vw,30px)/1.2 var(--serif);font-variation-settings:'opsz' 72;letter-spacing:-.02em;color:var(--text);
  transition:transform .7s var(--ease)}
.b-list a:hover .b-list__title,.b-list a:focus-visible .b-list__title{transform:translateX(10px)}
.b-service{margin-top:56px;padding:0 var(--gutter);text-align:center;font:300 16px/1.6 var(--sans);color:var(--dim)}
.b-service .e-link{margin-left:4px}

/* ---------------------------------------------------------------- (6) the index: wide title, topic filters in the
   nav's social voice, the tiles on the light band (inherited from .e-journal), 4:5, three / two / one across */
.b-hero--index .b-title{max-width:none}
.b-filters{display:flex;flex-wrap:wrap;gap:8px 28px;margin-top:40px;padding-top:24px;border-top:1px solid var(--hair)}
.b-filters a{padding:8px 0;font:600 13px/1 var(--sans);letter-spacing:.02em;text-transform:none;color:var(--label);text-decoration:none;
  transition:color .4s var(--ease)}
.b-filters a:hover,.b-filters a[aria-current]{color:var(--text)}
.b-tiles .e-journal__tiles{gap:48px clamp(16px,2.2vw,36px)}
.b-tiles .e-tile__media{aspect-ratio:4/5}
.b-tiles .e-tile__link:focus-visible{outline:1px solid #0B0B0B;outline-offset:6px}
.b-empty{max-width:1440px;margin:0 auto;font:300 17px/1.6 var(--sans);color:rgba(11,11,11,.62)}
.b-empty .e-link{margin-left:12px;color:#0B0B0B}
@media (max-width:1023px){.b-tiles .e-journal__tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------------------------------------------------------------- (7) From the blog, on the service pages (hidden
   until the build writes posts into the marked block) */
.b-from-blog{max-width:1440px;margin:0 auto;padding:clamp(52px,6.5vh,72px) var(--gutter) 0}
.b-from-blog:not(:has(h2)){display:none}
/* the block's kicker stays dim (the page's FAQ kicker below is the red one); the font is set here because only tint.css defines .t-kicker */
.b-from-blog > p:first-child{font:500 13px/1.5 var(--sans);letter-spacing:.02em;text-transform:none;color:var(--label)}
.b-from-blog > .e-link{display:inline-block;margin-top:32px}
.b-from-blog h2{margin:22px 0 40px;font:300 clamp(42px,3.35vw,52px)/1.04 var(--serif);font-variation-settings:'opsz' 72;letter-spacing:-.02em;color:var(--text)}

/* ---------------------------------------------------------------- phone */
@media (max-width:767px){
  .b-hero{padding:calc(var(--nav-h) + 72px) 20px 56px}
  .b-title{font-size:clamp(40px,11vw,52px)}
  .b-stand{font-size:18px}
  .b-cover{padding:0 20px}
  .b-cover img{aspect-ratio:4/5}
  .b-body{padding:0 20px}
  .b-body p,.b-body li{font-size:16px;line-height:1.7}
  .b-body h2{font-size:32px}
  .b-post .e-faq{padding-left:20px;padding-right:20px}
  .b-related{padding:0 20px}
  .b-list a{grid-template-columns:1fr;gap:8px;padding:20px 0}
  .b-from-blog{padding:56px 16px 0}
  .b-from-blog h2{font-size:40px}
  .b-tiles .e-journal__tiles{display:grid;grid-template-columns:1fr;gap:40px;overflow:visible}
  .b-tiles .e-tile{flex:none}
  .b-empty{padding:0 20px}
  .b-empty .e-link{display:inline-block;margin:16px 0 0}
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion:reduce){
  .b-list__title,.b-filters a,.b-body a{transition:none}
  .b-list a:hover .b-list__title,.b-list a:focus-visible .b-list__title{transform:none}
}
