:root {
  --paper: #f9faf9;
  --ink: #10304f;
  --ink-soft: #3f5870;
  --teal: #1f6f78;
  --line: #dfe5e4;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: var(--teal); }
img { max-width: 100%; }
header.site { background: rgba(249, 250, 249, .92); border-bottom: 1px solid var(--line); }
.bar { max-width: 760px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; mix-blend-mode: multiply; display: block; }
nav.links { margin-left: auto; font-size: 15px; }
nav.links a { color: var(--ink-soft); text-decoration: none; }
nav.links a:hover { color: var(--ink); }
main { max-width: 760px; margin: 0 auto; padding: 48px 16px 64px; }
footer.site { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.tag { font: 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.tag a { color: var(--teal); text-decoration: none; }
h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; }
h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.01em; margin: 36px 0 12px; }
h3 { font-size: 19px; margin: 28px 0 8px; }
p { margin: 0 0 14px; }
.lede { font-size: 19px; color: var(--ink-soft); }
.meta, .small { font-size: 14px; color: var(--ink-soft); }
pre, code { font-family: var(--mono); font-size: 14px; }
pre { background: #f0f3f2; border: 1px solid var(--line); border-radius: 8px; padding: 14px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 0 0 18px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.list { list-style: none; margin: 32px 0 0; padding: 0; }
.list li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.list a { font-size: 20px; font-weight: 600; }
.list time { font: 12px var(--mono); color: var(--teal); }
.list span { color: var(--ink-soft); }
/* "At a glance" infographic inside an article (figure.hw-glance). */
.hw-glance { --on: var(--teal); --off: #c8dedf; margin: 32px 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; line-height: 1.4; }
.hw-glance h3 { margin: 0 0 16px; font-size: 17px; }
.hw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.hw-tile { border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.hw-big { font-size: 42px; font-weight: 650; line-height: 1; }
.hw-mid { font-size: 26px; font-weight: 650; line-height: 1.1; }
.hw-lbl { color: var(--ink-soft); margin: 6px 0 0; }
.hw-note { color: var(--ink-soft); font-size: 13px; margin: 8px 0 0; }
.hw-tile ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hw-tile li span { display: block; }
.hw-glance svg { display: block; width: 100%; height: auto; margin-top: 10px; }
.hw-glance .on { fill: var(--on); }
.hw-glance .off { fill: var(--off); }
.hw-glance .ring { stroke: #fff; stroke-width: 2; }
.hw-glance .tick { stroke: var(--ink-soft); }
.hw-glance .base { stroke: var(--line); stroke-width: 2; }
.hw-glance .ax { fill: var(--ink-soft); font-size: 11px; text-anchor: middle; }
.hw-glance .lab { fill: var(--ink); font-size: 13px; font-weight: 600; text-anchor: middle; }
.hw-glance details { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.hw-glance summary { cursor: pointer; }
.hw-glance table { margin: 8px 0 0; font-size: 14px; }
.hw-glance th, .hw-glance td { border: 0; border-bottom: 1px solid var(--line); padding: 4px 12px 4px 0; }
.hw-glance figcaption { color: var(--ink-soft); font-size: 13px; margin-top: 16px; }

/* Piece 1.5 figures: waffle key, tools-by-access matrix, data-flow diagram. */
.hw-of { font-size: 20px; font-weight: 500; color: var(--ink-soft); }
.hw-glance .hollow { fill: #fff; stroke: var(--ink-soft); stroke-width: 1; }
.hw-key { color: var(--ink-soft); font-size: 13px; margin: 8px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hw-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.hw-sw.on { background: var(--teal); }
.hw-sw.hollow { background: #fff; border: 1px solid var(--ink-soft); margin-left: 8px; }
.hw-scroll { overflow-x: auto; }
.hw-glance table.hw-matrix { width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; }
.hw-matrix thead th { border: 0; padding: 0 2px 8px; vertical-align: bottom; font-weight: 600; font-size: 12px; line-height: 1.2; color: var(--ink-soft); text-align: center; width: 13%; }
.hw-matrix tbody th { border: 0; border-top: 1px solid var(--line); padding: 8px 8px 8px 0; text-align: left; font-weight: 500; color: var(--ink); }
.hw-matrix td { border: 0; border-top: 1px solid var(--line); padding: 8px 2px; text-align: center; }
.hw-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); vertical-align: middle; }
.hw-none { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--line); vertical-align: middle; }
.hw-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hw-glance svg .hw-zone { fill: #f3f7f7; stroke: var(--teal); stroke-width: 1.5; stroke-dasharray: 5 4; }
.hw-glance svg .hw-zlab { fill: var(--teal); font-size: 12px; font-weight: 600; }
.hw-glance svg .hw-box { fill: #fff; stroke: var(--ink-soft); stroke-width: 1; }
.hw-glance svg .hw-hi { stroke: var(--teal); stroke-width: 2; }
.hw-glance svg .hw-blab { fill: var(--ink); font-size: 13px; font-weight: 600; text-anchor: middle; }
.hw-glance svg .hw-sub { fill: var(--ink-soft); font-size: 11px; text-anchor: middle; }
.hw-glance svg .hw-arrow { stroke: var(--ink-soft); stroke-width: 1.5; }
.hw-glance svg .hw-out { stroke: var(--teal); stroke-width: 2; }
.hw-glance svg .hw-arrowhead { fill: var(--ink-soft); }
.hw-glance svg .hw-olab { fill: var(--teal); font-size: 11px; font-weight: 600; }
.hw-glance svg.hw-flow { max-width: 380px; margin: 10px auto 0; }
@media (max-width: 560px) {
  .hw-glance { padding: 14px; }
  .hw-glance table.hw-matrix { font-size: 13px; }
  .hw-matrix thead th { width: auto; padding: 0 0 8px; }
  .hw-matrix thead th span { writing-mode: vertical-rl; transform: rotate(180deg); display: inline-block; white-space: nowrap; text-align: left; }
  .hw-matrix tbody th { padding-right: 6px; }
  .hw-matrix td { padding: 8px 0; }
  .hw-dot { width: 12px; height: 12px; }
}
