/* ============================================
   Quietwork — blog
   Loaded alongside site.css by the blog index and the six articles.
   Replaces six near-identical inline copies of the old dark-theme rules
   (roughly 19KB duplicated) that the audit flagged.
   ============================================ */

/* ---- Index --------------------------------------------------------- */

.post-list { border-top: 1px solid var(--text); }
/* Three columns since 2026-08-26: date, then the writing, then the picture.
   Every post already carried a featured image and the index showed none, so the
   list was the only place on the site where existing artwork went unused.
   The image is a THIRD COLUMN, not a card: the row keeps its hairline, its
   full-width hover tint and its reading order, so the post list stays the same
   primitive as the doors, services and tiers. The doors already put a 60x45
   thumbnail inside a ruled row; this is that idea at reading scale.
   It sits last so a screen reader hears date, headline, excerpt, then the
   picture, rather than meeting a decorative image before the words. */
.post-item {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr) 200px;
  align-items: start;
  gap: 4px clamp(24px, 4vw, 48px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color .15s ease;
}
.post-item:hover { background: rgba(74, 94, 218, 0.035); }
.post-item__meta { color: var(--text-muted); font-size: 0.9375rem; }
.post-item h2 { font-size: 1.15rem; letter-spacing: -0.012em; }
.post-item:hover h2 { color: var(--accent); }
.post-item p { color: var(--text); margin: 8px 0 0; max-width: 56ch; }
.post-item__shot { display: block; }
.post-item__shot img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-alt);
  transition: border-color .15s ease;
}
.post-item:hover .post-item__shot img { border-color: var(--accent); }
/* Below the three-column layout the thumbnail would be a full-width band above
   the headline, which is a card by another name. It goes instead. The article
   itself still opens on the same image. */
@media (max-width: 860px) {
  .post-item { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
  .post-item__shot { display: none; }
}

/* ---- Article ------------------------------------------------------- */

.post-header { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 36px); }
.post-header .wrap { max-width: 760px; }
.post-meta {
  font-size: 0.9375rem; color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  margin-bottom: 18px;
}
.post-header h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.post-intro { font-size: clamp(1.1rem, 1.9vw, 1.3rem); line-height: 1.55; color: var(--text-muted); margin-top: 18px; }

/* Deliberately full bleed: it is the one place the page leaves its measure,
   so it carries no frame. */
.post-featured-img {
  width: 100%; max-height: 460px; object-fit: cover;
  display: block;
}

/* ---- In-article figures ----------------------------------------------- */
/* .post-stat-row has been in y-bark-automated-booking.html since it was
   written and has NEVER had a rule: not here, and not in the old dark
   stylesheet either, which the live-site backup confirms. It rendered as three
   unstyled stacked divs. This is the .evidence primitive from site.css said in
   the article's own markup: a rule over each column, the figure at display
   scale, the label beneath at caption size. Same shape, same tokens, so an
   in-article figure row reads as the site's figures rather than as a
   third way of showing a number. */
.post-stat-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
  margin: clamp(26px, 4vw, 40px) 0;
}
.post-stat { border-top: 1px solid var(--text); padding-top: 14px; }
.post-stat-num {
  display: block;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700; line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--text);
}
.post-stat-label {
  display: block; margin-top: 8px;
  font-size: 0.9375rem; line-height: 1.4; color: var(--text-muted);
}
@media (max-width: 620px) {
  .post-stat-row { grid-template-columns: 1fr; gap: 0; }
  .post-stat { padding-top: 12px; margin-top: 12px; }
}

.post-body { padding: clamp(36px, 5vw, 56px) 0 clamp(48px, 7vw, 88px); }
.post-body .wrap { max-width: 720px; }
.post-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 44px 0 0; }
.post-body h2:first-child { margin-top: 0; }
.post-body p { font-size: 1.0625rem; line-height: 1.75; margin: 18px 0 0; max-width: none; }
.post-body ul { margin: 18px 0 0; padding: 0; list-style: none; }
.post-body ul li {
  position: relative; padding: 6px 0 6px 22px;
  line-height: 1.7;
}
.post-body ul li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.post-pullquote {
  margin: 32px 0 0;
  padding: 0 0 0 22px;
  border-left: 1px solid var(--accent);
  font-size: 1.2rem; line-height: 1.45; font-weight: 500;
  letter-spacing: -0.012em; color: var(--text);
}

.post-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0 0; }
.post-two-col-card { padding-top: 16px; border-top: 1px solid var(--line); }
.post-two-col-card h3 { font-size: 0.9375rem; margin-bottom: 8px; }
.post-two-col-card.good h3 { color: var(--ok); }
.post-two-col-card.less h3 { color: var(--warn); }
.post-two-col-card ul { margin-top: 0; }
.post-two-col-card ul li { font-size: 0.9375rem; padding: 4px 0 4px 20px; }
.post-two-col-card ul li::before { top: 13px; width: 5px; height: 5px; }

.post-cta {
  margin-top: 44px; padding-top: 26px;
  border-top: 1px solid var(--text);
}
.post-cta h3 { margin-bottom: 8px; }
.post-cta p { margin-bottom: 18px; }

.post-back { padding: 26px 0; border-top: 1px solid var(--line); }
.post-back .wrap { max-width: 720px; }

@media (max-width: 760px) {
  .post-item { grid-template-columns: 1fr; }
  .post-two-col { grid-template-columns: 1fr; }
}
