/* ===================================================================
   case-study.css — project write-ups
   sits on top of blog.css. same sheet, same palette, same fonts. this
   file only adds what a case study needs and a blog post doesn't:
   figures, a spec block, a pull quote, and a link row at the top.
=================================================================== */

/* ---------- header extras -------------------------------------------- */
.case__kicker{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:10px;
  font-size:11px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--faint);
}
.case__pill{
  padding:3px 8px;
  border:1px solid var(--rule);
  border-radius:999px;
  color:var(--muted);
  background:#fff;
}
.case__pill--live{
  border-color:var(--accent);
  color:var(--accent);
  background:var(--accent-soft);
}

.case__dek{
  margin:0 0 24px;
  font-size:17px;
  line-height:1.55;
  color:var(--muted);
  max-width:54ch;
}

.case__links{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  padding:14px 0;
  margin-bottom:8px;
  border-top:1px solid var(--rule);
  border-bottom:1px solid var(--rule);
  font-size:13px;
}
.case__links a{ font-weight:600; }

.post__footer p{
  margin:0 0 14px;
  font-size:12px;
  line-height:1.45;
  font-weight:400;
  letter-spacing:0;
  text-transform:none;
  max-width:42em;
}

/* ---------- figures --------------------------------------------------- */
/* figures break out past the text column to the sheet's own edges. app
   screenshots have small ui type in them and need every pixel. */
.figure{
  --bleed:clamp(28px,6vw,56px);
  margin:30px calc(-1 * var(--bleed));
  width:calc(100% + var(--bleed) * 2);
}
.figure figcaption{ padding:0 var(--bleed); }
.figure img{
  display:block;
  width:100%;
  height:auto;
  border-top:1px solid var(--rule);
  border-bottom:1px solid var(--rule);
  background:#fff;
}
.figure figcaption{
  margin-top:8px;
  font-size:12.5px;
  line-height:1.5;
  color:var(--faint);
  max-width:56ch;
}

/* ---------- pull quote ------------------------------------------------ */
.pull{
  margin:32px 0;
  padding:0 0 0 18px;
  border-left:3px solid var(--accent);
  font-family:var(--display);
  font-size:clamp(19px,3.4vw,24px);
  line-height:1.3;
  color:var(--ink);
}

/* ---------- spec block ------------------------------------------------ */
.spec{
  margin:28px 0;
  border-top:1px solid var(--rule);
}
.spec__row:last-child{ border-bottom:0; }
.spec__row{
  display:flex;
  gap:16px;
  padding:11px 0;
  border-bottom:1px solid var(--rule);
  font-size:14px;
  align-items:baseline;
}
.spec__key{
  flex:0 0 128px;
  font-size:11px;
  font-weight:600;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:var(--faint);
}
.spec__val{ color:var(--ink); margin:0; }

/* ---------- before / after -------------------------------------------- */
.ledger{
  width:100%;
  border-collapse:collapse;
  margin:24px 0;
  font-size:14px;
}
.ledger th,
.ledger td{
  text-align:left;
  padding:9px 12px 9px 0;
  border-bottom:1px solid var(--rule);
  vertical-align:top;
}
.ledger th{
  font-size:11px;
  font-weight:600;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:var(--faint);
}
.ledger td:last-child{ color:var(--accent); font-weight:600; }

@media (max-width:560px){
  .spec__row{ flex-direction:column; gap:2px; }
  .spec__key{ flex:none; }
  .ledger{ font-size:13px; }
}
