/* ===========================================================================
   Pulliam Plumbing — blog additions
   ---------------------------------------------------------------------------
   Loaded ONLY by the posts and the category archives, after main.css. Kept
   separate on purpose: the 48 hand-built pages must not be able to break
   because of something added for the blog.

   Everything here is built from the existing design tokens — the surface
   ladder, --navy / --brand-red / --steel, --radius-*, --lift-*, --font-display,
   --dur-* and --ease. No new colours, no new radii, no new easing. Anything the
   site already has a class for (chip-list, callout, faq, checklist, prose,
   answer-block, band, section-head) is reused rather than restyled.
   =========================================================================== */

/* --- the byline / date / read-time line under a post H1 ------------------- */
.post-meta{
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
  margin-top: 1.15rem;
  font-size: .85rem; font-weight: 500;
  color: var(--steel-soft);
  letter-spacing: .01em;
}
.post-meta i{ font-style: normal; color: rgba(255,255,255,.28); }
/* On the light archive heroes the same line sits on paper, not navy. */
.band--paper .post-meta,
.band--ice .post-meta{ color: var(--steel); }
.band--paper .post-meta i,
.band--ice .post-meta i{ color: rgba(11,37,89,.25); }

/* --- post body ------------------------------------------------------------
   .prose already sets the measure (42rem), paragraph colour, leading and h3.
   It has no h2 and no list treatment, because nothing else on the site needed
   them — a post does. h2 is the section rhythm, so it gets the display face at
   a size that sits clearly below .section-head h2 and above .prose h3.        */
.post-body{ margin-top: clamp(1.8rem, 3vw, 2.6rem); }

.post-section + .post-section{ margin-top: clamp(2.2rem, 4vw, 3.2rem); }

.post-body h2{
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: 'opsz' 40, 'wght' 600;
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  line-height: 1.16;
  letter-spacing: -.015em;
  color: var(--navy);
  text-wrap: balance;
  margin-bottom: .85rem;
}
.post-body h2 + p{ margin-top: 0; }

/* A hairline above each section heading, so the rhythm reads without adding
   another background rung to the surface ladder. */
.post-section + .post-section h2{
  padding-top: clamp(1.6rem, 3vw, 2.2rem);
  border-top: 1px solid var(--paper-line);
}

.post-body strong{ color: var(--navy); font-weight: 600; }
.post-body a:not(.btn){
  color: var(--brand-red-deep);
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(215,25,32,.35);
  transition: text-decoration-color var(--dur-s) var(--ease);
}
.post-body a:not(.btn):hover{ text-decoration-color: var(--brand-red); }

/* .checklist is the site's list treatment (red tick, no bullets). Inside prose
   it just needs its rhythm against surrounding paragraphs. */
.post-body .checklist{ margin-top: 1.15rem; margin-bottom: .35rem; }

/* --- callouts inside prose ------------------------------------------------
   .callout is a navy gradient block, so main.css sets .callout-body p to a
   near-white. But a callout dropped inside .post-body sits inside .prose, and
   ".prose p" has the SAME specificity (0,1,1) while appearing later in
   main.css (line ~4281 vs ~3600) — so it wins, and the copy renders dark grey
   on navy, which is unreadable.

   Both selectors below out-specify .prose p and this file loads after
   main.css, so the callout gets its own colours back wherever it is used. */
.post-body .callout{ margin-top: 1.5rem; }
.post-body .callout .callout-body p{ color: rgba(248,250,252,.8); }
.post-body .callout .callout-body h3{ color: var(--paper); }
.post-body .callout .callout-body strong{ color: var(--white); }
.post-body .callout a:not(.btn){
  color: var(--blueprint-light);
  text-decoration-color: rgba(220,234,248,.45);
}
.post-body .callout a:not(.btn):hover{ text-decoration-color: var(--blueprint-light); }

/* --- card grid: post lists, related posts, archives ----------------------- */
.post-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
}

/* Archives list every post in a category, so they get a denser column than the
   three-card "related" strip at the foot of a post. */
.post-grid--archive{
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}

.post-card{
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-m);
  padding: clamp(1.3rem, 2.2vw, 1.7rem);
  box-shadow: var(--lift-1);
  transition: transform var(--dur-m) var(--ease),
              box-shadow var(--dur-m) var(--ease),
              border-color var(--dur-m) var(--ease);
}
.post-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--lift-2);
  border-color: rgba(11,37,89,.18);
}

.post-card-cat{
  align-self: flex-start;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--steel);
}

.post-card h3{
  margin-top: .6rem;
  font-family: var(--font-display); font-weight: 600;
  font-variation-settings: 'opsz' 30, 'wght' 600;
  font-size: 1.16rem; line-height: 1.25;
  letter-spacing: -.01em; color: var(--navy);
  text-wrap: balance;
}

.post-card p{
  margin-top: .55rem;
  font-size: .92rem; line-height: 1.6;
  color: var(--ink-soft);
}

.post-card-meta,
.post-card-more{
  margin-top: auto; padding-top: 1rem;
  font-size: .82rem; font-weight: 500;
  color: var(--steel);
}
.post-card-more{ color: var(--brand-red-deep); }
.post-card-more::after{
  content: " \2192";           /* arrow, nudged on hover */
  display: inline-block;
  transition: transform var(--dur-s) var(--ease);
}
.post-card:hover .post-card-more::after{ transform: translateX(3px); }

/* --- category chip row ----------------------------------------------------
   .chip-list already styles both states: <a> for a link, <span> for the one
   you are on. The archive markup uses exactly that, so this only adds spacing
   and marks the current chip.                                                */
.post-cats{ margin-bottom: clamp(1.4rem, 2.6vw, 2rem); }
.post-cats li span{
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
  cursor: default;
}
.post-cats li span:hover{
  background: var(--navy);
  border-color: var(--navy);
  transform: none;
}

.post-empty{
  margin-top: 1.5rem;
  color: var(--ink-faint);
  font-size: .95rem;
}

/* --- motion ---------------------------------------------------------------
   main.js reveals [data-reveal] on scroll; anyone who has asked the OS for
   less motion gets none of the card lift either. */
@media (prefers-reduced-motion: reduce){
  .post-card,
  .post-card:hover,
  .post-card-more::after{ transition: none; transform: none; }
}
