/* ═══════════════════════════════════════════════════════════════════════════
   ConFacts — Articles and Information.

   The hub (/articles) and every article page (/articles/{slug}). The same
   publication as About and the guide: warm paper, ink, Hanken Grotesk and
   IBM Plex Mono, left-aligned. The hero type, eyebrows, the ink band and its
   button come from styles.css unchanged; this sheet adds the three things
   only these pages have: the guide card that leads the hub, the list of
   articles as a dated ledger, and the article's reading column.

   No semantic colour. An article states no finding about a contractor, so
   green, amber and red do not appear, and neither does cobalt.
   ═══════════════════════════════════════════════════════════════════════════ */

.ar-page { background: #fbf9f4; }
.ar-page .topbar { background: #fbf9f4; border-bottom-color: #e5e2da; }
.topbar .brand { text-decoration: none; color: inherit; }

/* ── Hub hero ───────────────────────────────────────────────────────────── */
.ar-hero { max-width: 1208px; margin: 0 auto; padding: 64px 24px 48px; }
.ar-hero .cf-eyebrow { margin-bottom: 16px; }
.ar-hero .cf-display2 { max-width: 22ch; }
.ar-hero .cf-lede2 { max-width: 58ch; margin: 0; }

/* ── Start here: the guide, lifted as the one card on the page ──────────── */
.ar-start { max-width: 1208px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; gap: 12px; }
.ar-card { display: flex; flex-direction: column; gap: 8px; max-width: 860px;
  padding: 22px 24px; background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--r-card); box-shadow: var(--shadow); color: inherit; text-decoration: none;
  transition: border-color .15s ease-out; }
.ar-card:hover { border-color: var(--dim); }
.ar-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ar-card-kicker { font: 500 10.5px/16px var(--mono); letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint); }
.ar-card-title { font-size: 21px; line-height: 28px; font-weight: 800; letter-spacing: -.012em;
  color: var(--ink); text-wrap: balance; }
.ar-card-desc { font-size: 15px; line-height: 23px; color: var(--ink-2); max-width: 62ch; }
.ar-card-cta { margin-top: 4px; font: 500 11px/16px var(--mono); letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink); }

/* ── The articles: one ruled row each, the date where a ledger's number goes.
   Newest first, so the date is the order, and the order is true. ───────── */
.ar-list { max-width: 1208px; margin: 0 auto; padding: 48px 24px 0;
  display: flex; flex-direction: column; gap: 16px; }
.ar-items { margin: 0; padding: 0; list-style: none; max-width: 860px; background: var(--card);
  border: 1px solid var(--rule); border-radius: var(--r-card); box-shadow: var(--shadow); }
.ar-item { border-bottom: 1px solid var(--rule-2); }
.ar-item:last-child { border-bottom: 0; }
.ar-item-link { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 18px;
  row-gap: 4px; padding: 18px 22px; color: inherit; text-decoration: none; }
.ar-item-link:hover { background: var(--wash); }
.ar-item-link:hover .ar-item-title { text-decoration: underline; text-underline-offset: 3px; }
.ar-item-link:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.ar-item:first-child .ar-item-link { border-radius: var(--r-card) var(--r-card) 0 0; }
.ar-item:last-child .ar-item-link { border-radius: 0 0 var(--r-card) var(--r-card); }
.ar-item-date { grid-row: span 2; font: 500 10.5px/23px var(--mono); letter-spacing: .06em;
  text-transform: uppercase; color: var(--faint); font-variant-numeric: tabular-nums; }
.ar-item-title { font-size: 17px; line-height: 24px; font-weight: 700; color: var(--ink); }
.ar-item-desc { font-size: 15px; line-height: 23px; color: var(--ink-2); max-width: 70ch; }

/* ── An article: one reading column ─────────────────────────────────────── */
.ar-article { max-width: 1208px; margin: 0 auto; padding: 48px 24px 0; }
.ar-crumbs { font: 500 11px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.ar-crumbs a { color: var(--muted); text-decoration: none; }
.ar-crumbs a::before { content: "\2039\00a0"; }
.ar-crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ar-crumbs a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.ar-title { margin: 18px 0 0; max-width: 24ch; font-size: 40px; line-height: 1.15;
  letter-spacing: -.024em; font-weight: 800; color: var(--ink); text-wrap: balance; }
.ar-lede { margin: 16px 0 0; max-width: 60ch; font-size: 17.5px; line-height: 29px; color: var(--ink-2); }
.ar-meta { margin: 18px 0 0; font: 500 10.5px/16px var(--mono); letter-spacing: .06em;
  text-transform: uppercase; color: var(--faint); font-variant-numeric: tabular-nums; }

.ar-body { max-width: 68ch; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 18px; }
.ar-body > * { margin: 0; }
.ar-body p, .ar-body li { font-size: 17px; line-height: 28px; color: var(--ink-2); }
.ar-body h2 { margin-top: 22px; font-size: 24px; line-height: 32px; font-weight: 700;
  letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.ar-body h3 { margin-top: 8px; font-size: 19px; line-height: 27px; font-weight: 700; color: var(--ink); }
.ar-body strong, .ar-body b { color: var(--ink); font-weight: 600; }
.ar-body a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.ar-body a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.ar-body ul, .ar-body ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.ar-body li::marker { color: var(--faint); }
.ar-body blockquote { padding: 2px 0 2px 18px; border-left: 3px solid var(--ink); }
.ar-body blockquote p, .ar-body li p { margin: 0; }
.ar-body blockquote p { font-size: 19px; line-height: 29px; font-weight: 500; color: var(--ink); }
/* A statistic or a quoted rule names its source on the line under it, in
   mono (DESIGN.md content rule 8). Pulled up against the line it sources. */
.ar-body .ar-source { margin-top: -10px; font: 500 10.5px/16px var(--mono); letter-spacing: .02em;
  color: var(--faint); font-variant-numeric: tabular-nums; }
/* A table scrolls inside its own box; the page never scrolls sideways. */
.ar-body .ar-table { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-box, 10px);
  background: var(--card); }
.ar-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.ar-body th { padding: 10px 14px; text-align: left; font: 500 10.5px/16px var(--mono);
  letter-spacing: .06em; text-transform: uppercase; color: var(--faint);
  border-bottom: 1px solid var(--rule); }
.ar-body td { padding: 10px 14px; color: var(--ink-2); border-bottom: 1px solid var(--rule-2);
  vertical-align: top; }
.ar-body tr:last-child td { border-bottom: 0; }

.ar-back { max-width: 68ch; margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--rule);
  font: 500 11px/18px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.ar-back a { color: var(--ink); text-underline-offset: 3px; }

/* ── The ink band, and the footer ───────────────────────────────────────── */
.ar-cta { padding: 64px 24px 0; }
.ar-foot { margin: 0 max(24px, calc((100% - 1160px) / 2)) 64px; padding: 32px 0 0; }
.ar-foot-links { margin-top: 12px !important; font-size: 13px; }
.ar-foot-links a { color: #717677; }

/* ── One column under 900px (DESIGN.md: everything collapses there) ────── */
@media (max-width: 900px) {
  .ar-item-link { grid-template-columns: 1fr; }
  .ar-item-date { grid-row: auto; }
}
@media (max-width: 560px) {
  .ar-hero { padding: 40px 24px 32px; }
  .ar-hero .cf-display2 { font-size: 31px; }
  .ar-card { padding: 18px 18px; }
  .ar-card-title { font-size: 19px; line-height: 26px; }
  .ar-list { padding-top: 40px; }
  .ar-item-link { padding: 16px 18px; }
  .ar-article { padding-top: 32px; }
  .ar-title { font-size: 30px; line-height: 37px; }
  .ar-lede { font-size: 16px; line-height: 26px; }
  .ar-body { margin-top: 24px; padding-top: 24px; }
  .ar-body p, .ar-body li { font-size: 16px; line-height: 27px; }
  .ar-body h2 { font-size: 21px; line-height: 29px; }
  .ar-cta { padding-top: 48px; }
  /* Full width with tighter sides, as on About: at 26px a side the label
     breaks onto two lines inside a 48px button. */
  .ar-cta .cf-run { align-self: stretch; justify-content: center; padding: 0 16px; }
  .ar-foot { margin-bottom: 48px; padding-top: 24px; }
}
