/* WeDoo blog (2026-11-23): /blog and /blog/<slug>. Loads after site.css and only adds to it: same face, same
   cream/ink/tomato palette, hairlines, 24px cards. Covers are flat-ground illustrations (Tab + Clix act out each post),
   so a cover box of any shape shows the art whole on its own ground colour. */
:root {
  /* cover grounds: match GROUND in design/mascots/covers.cjs */
  --g-mint: #CDEFE2;
  --g-cobalt: #DCE2FF;
  --g-tomato: #FFDDD2;
  --g-sand: #EFE6D5;
  --g-sun: #FFE7AE;
  --g-ink: #1B1F3B;
  /* category pills */
  --pill-sun: color-mix(in srgb, var(--sun) 42%, var(--paper));
  --pill-cobalt: color-mix(in srgb, var(--cobalt) 22%, var(--paper));
  --pill-mint: color-mix(in srgb, var(--mint) 30%, var(--paper));
  --pill-tomato: color-mix(in srgb, var(--tomato) 26%, var(--paper));
  --measure: 680px;
}
.g-mint { --g: var(--g-mint); } .g-cobalt { --g: var(--g-cobalt); } .g-tomato { --g: var(--g-tomato); }
.g-sand { --g: var(--g-sand); } .g-sun { --g: var(--g-sun); } .g-ink { --g: var(--g-ink); }
.hdr__nav a.lnk[aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- pills + meta ---------- */
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--pill, var(--raised)); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; }
.pill--sun { --pill: var(--pill-sun); } .pill--cobalt { --pill: var(--pill-cobalt); } .pill--mint { --pill: var(--pill-mint); } .pill--tomato { --pill: var(--pill-tomato); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 15px; color: var(--muted); }

/* ---------- index head ---------- */
.bl-head { padding: 24px 0 8px; }
.bl-head__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: center; }
.bl-head h1 { position: relative; font-size: clamp(44px, calc(5.2vw + 18px), 92px); line-height: .98; letter-spacing: -0.03em; }
.bl-head p { margin-top: 16px; max-width: 34ch; font-size: clamp(18px, calc(.4vw + 16px), 21px); color: var(--ink-2); }
.bl-head__art { width: min(100%, 420px); height: auto; justify-self: center; }
.bl-last { position: relative; white-space: nowrap; }
.dd-bl1 { right: -.46em; top: -.12em; width: .36em; }
@media (min-width: 900px) {
  .bl-head { padding: 40px 0 24px; }
  .bl-head__in { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 32px; }
  .bl-head__art { width: 100%; justify-self: end; }
  .bl-head h1 { max-width: 7ch; }
  .dd-bl1 { right: -.5em; top: -.08em; width: .34em; }
  /* the closing band's marks sit wider than on the homepage: this headline is longer */
  .blog .dd-enda { left: max(12px, calc(50% - 560px)); }
  .blog .dd-endb { right: max(12px, calc(50% - 560px)); }
}

/* ---------- post cards ---------- */
.pc { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; color: var(--ink); text-decoration: none; border-radius: var(--r); }
.pc__cv { display: block; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--r); background: var(--g, var(--sand)); transition: transform .3s var(--ease); }
.pc__cv img { width: 100%; height: 100%; object-fit: contain; }
.pc:active .pc__cv { transform: scale(.985); transition-duration: .1s; }
.pc__t { font-size: clamp(21px, calc(.6vw + 17px), 26px); line-height: 1.18; letter-spacing: -0.015em; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: transparent; transition: text-decoration-color .2s var(--ease); }
.pc__dek { color: var(--ink-2); font-size: 17px; max-width: 48ch; }
.pc:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 6px; }
@media (hover: hover) and (pointer: fine) {
  .pc:hover .pc__cv { transform: translateY(-4px); }
  .pc:hover .pc__t { text-decoration-line: underline; text-decoration-color: var(--tomato); }
}
.pc--lead .pc__t { font-size: clamp(30px, calc(2.2vw + 16px), 48px); line-height: 1.04; letter-spacing: -0.025em; }

.bl-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 24px; }
.bl-more { padding-top: 72px; }
main > .bl-more:last-child { padding-bottom: 96px; }
.bl-more > h2 { font-size: clamp(26px, calc(1vw + 20px), 34px); letter-spacing: -0.02em; padding-top: 24px; border-top: 1px solid var(--hair); margin-bottom: 28px; }
.bl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
/* tablets: everything but the lead card sits as a row, cover on the left */
@media (min-width: 600px) and (max-width: 899px) {
  .pc--row { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); column-gap: 24px; row-gap: 12px; align-content: start; }
  .pc--row .pc__cv { grid-row: 1 / 4; }
  .pc--row .meta { align-self: end; }
  .bl-top, .bl-grid { gap: 32px; }
}
@media (min-width: 900px) {
  .bl-top { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px 32px; }
  .bl-top .pc--lead { grid-row: 1 / 3; }
  /* the lead cover grows to match the two side cards; the art stays whole and the ground fills the rest */
  .pc--lead .pc__cv { flex: 1 1 auto; min-height: 0; }
  .bl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .bl-more { padding-top: 96px; }
}

/* ---------- article ---------- */
.post__head { max-width: calc(var(--measure) + 2 * var(--gut)); padding-top: 32px; }
.post__head h1 { position: relative; margin-top: 20px; font-size: clamp(36px, calc(3.4vw + 22px), 68px); line-height: 1.02; letter-spacing: -0.03em; }
.post__dek { margin-top: 16px; font-size: clamp(19px, calc(.5vw + 16px), 22px); line-height: 1.45; color: var(--ink-2); }
.post__cv { display: block; max-width: 1040px; margin: 32px auto 0; padding: 0 var(--gut); }
.post__cv img { width: 100%; height: auto; border-radius: var(--r); background: var(--g, var(--sand)); }
@media (min-width: 900px) { .post__head { padding-top: 56px; } .post__cv { margin-top: 48px; } }

.prose { max-width: var(--measure); margin: 40px auto 0; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
@media (min-width: 900px) { .prose { margin-top: 56px; font-size: 19px; } }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 56px; font-size: clamp(26px, calc(1vw + 20px), 34px); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.prose h3 { margin-top: 36px; font-size: 21px; line-height: 1.3; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration-line: underline; text-decoration-color: var(--tomato); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .prose a:hover { background: color-mix(in srgb, var(--tomato) 14%, transparent); } }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--tomato); }
.prose ol li::marker { color: var(--ink); font-weight: 600; }
.short { padding: 20px 24px; background: var(--paper); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); }
.short p { margin: 0; }
.short ul { margin: 8px 0 0; }
.tip { padding: 20px 24px; border-radius: 20px; background: color-mix(in srgb, var(--sun) 22%, var(--paper)); color: var(--ink); }
.tbl { overflow-x: auto; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); -webkit-overflow-scrolling: touch; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.tbl th, .tbl td { padding: 12px 16px; text-align: left; vertical-align: top; }
.tbl th { font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--hair-2); }
.tbl td { border-top: 1px solid var(--hair); }
.tbl tr:first-child td { border-top: 0; }
.tbl td:first-child { color: var(--ink); }
.tbl--cost td:last-child { min-width: 8.5em; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
/* comparison tables stack on phones: one block per row, each cell labelled with its column */
@media (max-width: 599px) {
  .tbl--stack thead { display: none; }
  .tbl--stack tr { display: block; padding: 16px 16px 12px; border-top: 1px solid var(--hair); }
  .tbl--stack tr:first-child { border-top: 0; }
  .tbl--stack td { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr); gap: 12px; padding: 4px 0; border: 0; }
  .tbl--stack td:first-child { display: block; padding-bottom: 8px; }
  .tbl--stack td[data-label]::before { content: attr(data-label); color: var(--muted); }
}
.tbl:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

/* the ask at the end of every post */
.post-cta { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: calc(var(--measure) + 120px); margin: 72px auto 0; padding: 28px 24px 32px; background: var(--paper); border-radius: 28px; box-shadow: inset 0 0 0 1px var(--hair); }
.post-cta__art { width: 112px; margin: -76px 0 0 -4px; }
.post-cta__art svg { width: 100%; height: auto; }
.post-cta h2 { font-size: clamp(28px, calc(1.6vw + 20px), 42px); line-height: 1.05; letter-spacing: -0.025em; }
.post-cta p { margin-top: 12px; max-width: 46ch; color: var(--ink-2); }
.post-cta__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (min-width: 720px) {
  .post-cta { grid-template-columns: 150px minmax(0, 1fr); gap: 28px; align-items: center; padding: 40px 44px 40px 32px; }
  .post-cta__art { width: 150px; margin: 0; }
}

/* the sticky phone bar on blog pages hides the header button while it shows (same as the homepage) */
@media (max-width: 899px) { body.bar-on .hdr__nav .btn { opacity: 0; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) { .pc__cv, .pc__t { transition: none; } .pc:hover .pc__cv, .pc:active .pc__cv { transform: none; } }
