/* home.html: text sections inside a case read like the case intro (.pj-head), not like grey Terms cards.
   Loads last. Overrides .card / .text from style-layout.css and the card links from style-shuttle.css.

   Type scale on the case page:
     title    .pj-title       28 → 36px  (home.css)
     section  .card.text h2   20 → 22px  (here; ~midway between body and title)
     body     .pj-intro / p   15px, line-height 1.55, max 68ch  (style.css / home.css) */

:root {
  --fs-section: clamp(1.25rem, 1.15rem + 0.25vw, 1.375rem);   /* 20px at 375, 22px from ~1000 */
  --text-pause: clamp(40px, 5vw, 72px);                         /* room above and below; adds to the 8px grid gap */
}

/* the same column as the intro: 720px wide (the .col already sits 16px from each edge on a phone), centred */
.case .col > .card.text {
  justify-self: center;
  width: min(720px, 100%);
  margin-block: var(--text-pause);
  padding: 0;
  background: none;
  border: 0;           /* style.css .card hairline */
  border-radius: 0;
  overflow: visible;   /* style.css .card clips; link focus rings need room */
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
}

.case .card.text h2 {
  margin: 0 0 16px;
  max-width: 68ch;
  font-size: var(--fs-section);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--ink);
  text-wrap: balance;
}

.case .card.text p {
  max-width: 68ch;   /* same measure as .pj-intro */
  color: var(--ink);
  text-wrap: wrap;   /* greedy, fills the measure: typography.css */
}

/* Shuttle "The archive": the figures follow the intro's meta table rhythm */
.case .card.text .figures { margin: 0 0 1em; max-width: 68ch; row-gap: 6px; }
.case .card.text .figures > div { grid-template-columns: 6.5em minmax(0, 1fr); column-gap: 16px; }
.case .card.text .figures dt,
.case .card.text .figures dd { color: var(--ink); }

/* links in section text match the intro's meta links */
.case .card.text a {
  color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: #b3b3b3; overflow-wrap: anywhere;
  transition: text-decoration-color .15s ease;
}
@media (hover: hover) { .case .card.text a:hover { text-decoration-color: currentColor; } }
.case .card.text a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }

@media (max-width: 640px) {
  .case .card.text .figures > div { grid-template-columns: 5.5em minmax(0, 1fr); column-gap: 12px; }
}
