/* =========================================================
   colophon.css — "How it's made"
   ========================================================= */
.col-hero { padding: calc(var(--header-h) + clamp(56px, 10vw, 128px)) 0 clamp(40px, 6vw, 72px); }
@media (max-width: 700px) { .col-hero { padding-top: calc(var(--header-h) + 32px); } }   /* one hero top offset on phones, site-wide */
.col-title { margin: 14px 0 0; font-size: clamp(52px, 9.4vw, 144px); }
.col-lede { margin: clamp(20px, 3vw, 36px) 0 0; max-width: 40ch; }
.col-sec { padding: clamp(48px, 7vw, 96px) 0; }
.col-last { padding-bottom: clamp(72px, 10vw, 140px); }
.sect-plain { font-size: 13px; color: var(--ink-3); }
.sect-head h2.title { margin: 0; font-weight: 400; }
@media (max-width: 700px) { .sect-plain { display: none; } }
.col-note { margin: 18px 0 0; max-width: 78ch; line-height: 1.6; }
.col-intro { margin: 0 0 28px; }
.col-inline { color: var(--accent); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.col-inline:hover { background-size: 100% 2px; }

/* § 5.1 */
.col-vitals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 clamp(28px, 4vw, 48px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.col-vitals > div { padding: 20px 20px 22px 0; border-left: 1px solid var(--rule); padding-left: 20px; }
.col-vitals > div:first-child { border-left: 0; padding-left: 0; }
.col-vitals dd { margin: 0; }
.col-vitals .figure { font-size: clamp(30px, 4.4vw, 60px); line-height: 1.05; margin-top: 10px; color: var(--ink); white-space: nowrap; }
.col-v-note { font-size: 13px; color: var(--ink-3); margin-top: 6px !important; }
@media (max-width: 760px) {
  .col-vitals { grid-template-columns: 1fr 1fr; }
  .col-vitals > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .col-vitals > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
/* Fixed height, own scroll: the list can grow (live) or shrink (filter) without moving the page. */
.col-files-wrap { height: 420px; overflow: auto; -webkit-overflow-scrolling: touch; border-bottom: 1px solid var(--rule); }
.col-files-wrap:focus-visible { outline-offset: 2px; }
.col-files { width: 100%; border-collapse: collapse; font-size: 14px; }
.col-files th, .col-files td { text-align: left; padding: 9px 16px 9px 0; border-bottom: 1px dotted var(--rule); vertical-align: baseline; white-space: nowrap; }
.col-files thead th { position: sticky; top: 0; z-index: 1; background: var(--paper); border-bottom: 0; box-shadow: inset 0 -1px 0 var(--ink); font-weight: 400; padding-bottom: 6px; }
.col-files tbody th { font-weight: 400; }
.col-fn { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.col-host { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-left: 10px; }
.col-files td { color: var(--ink-2); }
.col-r { text-align: right !important; }
.col-files td.figure { font-size: 13px; }
.col-bar, .col-bar-h { width: 30%; padding-right: 0 !important; }
.col-bar i { display: block; height: 6px; border-radius: 3px; background: var(--ink-2); width: 100%; transform-origin: 0 50%; transform: scaleX(var(--w, 0)); min-width: 1px; }
@media (max-width: 700px) { .col-bar, .col-bar-h { display: none; } .col-files th, .col-files td { padding-right: 12px; } .col-host { display: none; } }

/* § 5.2 */
.col-commit { padding: clamp(20px, 2.6vw, 30px); max-width: 760px; }
.col-commit .label { margin: 0; }
.col-commit-m { margin: 10px 0 0; font-variation-settings: "SOFT" 40, "WONK" 0; min-height: 1.2em; }
.col-commit-meta { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.col-commit-acts { margin: 14px 0 0; font-size: 15px; font-weight: 500; }
.col-commit-acts a { color: var(--accent); }
.col-stack { list-style: none; margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; max-width: 760px; }
.col-stack li { display: grid; grid-template-columns: 190px 1fr; gap: 6px 20px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); align-items: baseline; }
.col-stack li:last-child { border-bottom: 1px solid var(--rule); }
.col-stack li > span:last-child { overflow-wrap: anywhere; }
@media (max-width: 600px) { .col-stack li { grid-template-columns: 1fr; } }

/* § 5.3 */
.col-swatches { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.col-sw { display: grid; grid-template-columns: 44px 190px 1fr auto; align-items: center; gap: 6px 20px; width: 100%; padding: 12px 0; text-align: left; transition: padding .5s var(--spring); }
.col-sw:hover, .col-sw:focus-visible { padding-left: 10px; }
.col-chip { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); transition: transform .8s var(--spring-bounce); }
.col-sw:hover .col-chip { transform: scale(1.12); }
.col-sw:active .col-chip { transform: scale(.94); transition-duration: .09s; }
.col-sw-t { display: flex; flex-direction: column; }
.col-sw-n { font-family: var(--serif); font-size: 20px; line-height: 1.2; font-variation-settings: "SOFT" 40, "WONK" 0; }
.col-sw-v { font-size: 12px; color: var(--ink-3); letter-spacing: 0; }
.col-sw:hover .col-sw-v { color: var(--accent); }
.col-sw-role { font-size: 15px; color: var(--ink-2); }
.col-sw-c { font-size: 12px; color: var(--ink-2); text-align: right; white-space: nowrap; letter-spacing: 0; }
.col-sw-c .up, .col-sw-c .down { margin-left: 8px; }
.col-sw-var { color: var(--ink-3); }
@media (max-width: 760px) {
  .col-sw { grid-template-columns: 36px 1fr auto; }
  .col-chip { width: 36px; height: 36px; grid-row: 1 / span 2; align-self: start; margin-top: 4px; }
  .col-sw-role { grid-column: 2 / -1; font-size: 14px; }
  .col-sw-c { grid-row: 1; grid-column: 3; }
  .col-sw-c .up, .col-sw-c .down { display: block; margin: 0; }
}

/* § 5.4 */
.col-type { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.col-face { border-top: 1px solid var(--rule); padding-top: 16px; display: flex; flex-direction: column; }
.col-face .label { margin: 0; }
.col-spec { margin: 22px 0 18px; color: var(--ink); min-height: 2.2em; display: flex; align-items: flex-end; }
.col-spec--serif { font-family: var(--serif); font-size: clamp(34px, 3.8vw, 54px); line-height: 1; letter-spacing: -.015em; font-style: italic; font-variation-settings: "SOFT" 40, "WONK" 0; min-height: 0; height: clamp(76px, 8vw, 110px); }
.col-spec--sans { font-family: var(--sans); font-size: clamp(24px, 2.5vw, 34px); line-height: 1.15; font-weight: 500; letter-spacing: -.01em; min-height: 0; height: clamp(76px, 8vw, 110px); }
.col-spec--mono { font-family: var(--mono); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.02em; min-height: 0; height: clamp(76px, 8vw, 110px); }
.col-face-n { margin: 0; font-size: 15px; color: var(--ink-2); max-width: 40ch; }
@media (max-width: 860px) { .col-type { grid-template-columns: 1fr; } .col-spec { height: auto !important; margin: 16px 0 12px; } }

/* § 5.5 */
.col-motion { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.col-motion-copy .body { margin: 0 0 14px; }
.col-ctl { margin-top: 26px; max-width: 360px; }
.col-ctl-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.col-ctl output { font-size: 13px; color: var(--ink); }
.col-ctl input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: none; cursor: pointer; display: block; }
.col-ctl input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--rule); border-radius: 2px; }
.col-ctl input[type="range"]::-moz-range-track { height: 2px; background: var(--rule); border-radius: 2px; }
.col-ctl input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%; background: var(--accent); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--accent); transition: transform .5s var(--spring); }
.col-ctl input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--accent); }
.col-ctl input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
.col-ctl input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.col-ctl .note { margin: 12px 0 0; line-height: 1.5; min-height: 3em; }
.col-spring { margin: 0; padding: clamp(16px, 2vw, 24px); }
.col-trace-wrap { position: relative; border-bottom: 1px solid var(--rule); }
.col-trace { width: 100%; height: clamp(140px, 16vw, 200px); overflow: visible; }
.col-trace-0 { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.col-trace-p { fill: none; stroke: var(--play); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.col-trace-l, .col-trace-r { position: absolute; top: 0; left: 0; }
.col-trace-r { left: auto; right: 0; color: var(--ink-2); }
.col-track { position: relative; height: 76px; touch-action: pan-y; }
.col-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--rule); }
.col-track-0 { position: absolute; left: 50%; top: 50%; width: 1px; height: 18px; margin-top: -9px; background: var(--ink-3); }
.col-knob { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; cursor: grab; touch-action: none; display: grid; place-items: center; will-change: transform; }
.col-knob::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--paper-2), 0 0 0 5px var(--accent); transition: transform .5s var(--spring); }
.col-knob:hover::before { transform: scale(1.1); }
.col-knob.is-held { cursor: grabbing; }
.col-knob.is-held::before { transform: scale(.9); }
.col-spring figcaption { margin-top: 4px; }
@media (max-width: 860px) { .col-motion { grid-template-columns: 1fr; } .col-ctl { max-width: none; } }

/* § 5.6 */
.col-keys .body { margin: 0; }
.col-keys-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 28px; }
.col-keys-acts .btn kbd { background: transparent; color: inherit; border-color: currentColor; opacity: .7; }
.col-ask a { color: var(--accent); }

@media print {
  .col-tools, .col-wf-fig, .col-cmp-live, .col-cmp-how, .col-sw-cmp, .col-cmp, .col-tt, .col-now { display: none !important; }
  .col-files-wrap { height: auto !important; overflow: visible !important; }
  .col-files thead th { position: static; }
  .col-hero { padding: 0 !important; }
  .col-title { font-size: 26pt; }
  .col-ctl, .col-keys-acts, .col-spring, .col-screen { display: none !important; }
  .col-vitals .figure { font-size: 18pt; }
  .col-files { font-size: 8pt; }
  .col-files th, .col-files td { padding: 2pt 8pt 2pt 0; }
  .col-sw { display: grid !important; padding: 4pt 0; grid-template-columns: 22pt 110pt 1fr auto; }
  .col-chip { width: 16pt; height: 16pt; }
  .col-sw-n { font-size: 11pt; }
  .col-type, .col-motion { grid-template-columns: 1fr 1fr 1fr; }
  .col-spec { height: auto !important; margin: 4pt 0; font-size: 16pt !important; }
}

/* =========================================================
   v2: sortable table, waterfall, colour comparison, type tester, live loop view
   ========================================================= */

/* Shared small controls */
.col-kind, .col-tt-face, .col-tt-btn, .col-cmp-swap, .col-sw-cmp {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 999px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; background: transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.col-kind:hover, .col-tt-face:hover, .col-tt-btn:hover, .col-cmp-swap:hover, .col-sw-cmp:hover { border-color: var(--accent); color: var(--accent); }
.col-kind[aria-pressed="true"], .col-tt-face[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.col-ctl input[type="range"]:disabled { cursor: not-allowed; opacity: .35; }

/* § 5.1 tools */
.col-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 12px; }
.col-filter { display: inline-flex; align-items: center; gap: 10px; }
.col-filter input { font: inherit; font-size: 14px; width: 14em; max-width: calc(100vw - 2 * var(--gutter) - 70px); height: 34px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper-2); color: var(--ink); }
.col-filter input::placeholder { color: var(--ink-3); }
.col-filter input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.col-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.col-kind .figure { font-size: 11px; color: var(--ink-3); letter-spacing: 0; }
.col-kind[aria-pressed="true"] .figure { color: inherit; opacity: .8; }
.col-kind.is-empty:not([aria-pressed="true"]) { opacity: .55; }
.col-count { flex: 1 1 100%; margin: 0; min-height: 1.5em; }
.col-sort { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; padding: 4px 0; border-radius: 3px; }
.col-sort:hover { color: var(--accent); }
.col-files th[aria-sort] .col-sort { color: var(--ink); }
.col-sort i { font-style: normal; }
.col-files tbody tr > * { transition: background-color .25s var(--ease); }
.col-files tbody tr.is-hot > * { background: var(--accent-soft); }
.col-files tbody tr:focus { outline: none; }
.col-files tbody tr:focus-visible > * { box-shadow: inset 0 1px 0 var(--accent), inset 0 -1px 0 var(--accent); }
.col-files tbody tr.is-found > * { animation: col-found 1.4s var(--ease); }
@keyframes col-found { 0%, 30% { background: color-mix(in srgb, var(--accent) 22%, transparent); } 100% { background: transparent; } }
.col-hid { color: var(--ink-3); }
.col-cache { font-size: 10.5px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; margin-left: 4px; }
.col-none { padding: 18px 0 !important; white-space: normal !important; }

/* § 5.1 waterfall */
.col-wf-fig { margin: clamp(32px, 4vw, 52px) 0 0; }
.col-wf-cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 10px; }
.col-wf-key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.col-wf-key span { display: inline-flex; align-items: center; gap: 6px; }
.col-wf-key i { display: inline-block; width: 14px; height: 8px; border-radius: 2px; }
.col-wf { height: 380px; overflow: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.col-wf-in { position: relative; min-width: 620px; --nm: 170px; padding-bottom: 6px; }
.col-wf-axis { position: sticky; top: 0; z-index: 2; height: 24px; margin-left: var(--nm); background: var(--paper); font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.col-wf-axis span { position: absolute; top: 4px; transform: translateX(-50%); white-space: nowrap; }
.col-wf-axis span:first-child { transform: none; }
.col-wf-row { display: grid; grid-template-columns: var(--nm) 1fr; align-items: center; width: 100%; height: 22px; text-align: left; border-radius: 3px; }
.col-wf-row:hover, .col-wf-row.is-hot { background: var(--accent-soft); }
.col-wf-row:focus-visible { outline-offset: -2px; }
.col-wf-n { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 12px 0 4px; }
.col-wf-row.is-hot .col-wf-n { color: var(--accent); }
.col-wf-tr { position: relative; height: 100%; }
.col-wf-bar { position: absolute; top: 6px; height: 10px; min-width: 2px; display: block; border-radius: 1px; background: color-mix(in srgb, var(--ink-3) 30%, transparent); overflow: hidden; transition: opacity .2s var(--ease); }
.col-wf-bar i { position: absolute; top: 0; bottom: 0; }
.col-wf-bar.is-hid { background: none; }
.p-wait { background: var(--rule); }
.p-dns { background: color-mix(in srgb, var(--ink-3) 45%, var(--paper)); }
.p-con { background: var(--ink-3); }
.p-req { background: var(--ink-2); }
.p-res { background: var(--ink); }
.p-hid { background: repeating-linear-gradient(135deg, var(--ink-3) 0 1.5px, transparent 1.5px 4px); box-shadow: inset 0 0 0 1px var(--ink-3); }
.col-wf-bar .p-hid { left: 0 !important; width: 100% !important; }
.col-wf-in.has-x .col-wf-row:not(.is-flying) .col-wf-bar { opacity: .4; }
.col-wf-in.has-x .col-wf-row.is-flying .col-wf-n { color: var(--ink); }
.col-wf-plot { position: absolute; left: var(--nm); right: 0; top: 0; bottom: 0; z-index: 3; pointer-events: none; }
.col-wf-x { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--accent); opacity: 0; }
.col-wf-in.has-x .col-wf-x { opacity: 1; }
.col-wf-none { margin: 16px 0 0 var(--nm); }
.col-wf-scrub.col-ctl { display: grid; grid-template-columns: auto minmax(120px, 1fr) minmax(30ch, auto); align-items: center; gap: 6px 16px; max-width: none; margin: 12px 0 0; }
.col-wf-scrub output { font-size: 12.5px; color: var(--ink); }
.col-wf-read { margin: 10px 0 0; max-width: 90ch; line-height: 1.6; min-height: 4.9em; }
/* Touch: rows and sort headers at least 36px tall (the waterfall scrolls inside its own box, so taller rows only scroll). */
@media (pointer: coarse) {
  .col-wf-row { height: 36px; }
  .col-wf-bar { top: 13px; }
  .col-sort { min-height: 40px; padding: 0 2px; display: inline-flex; align-items: center; }
}
@media (max-width: 700px) {
  .col-wf-scrub.col-ctl { grid-template-columns: 1fr; }
  .col-wf-read { min-height: 9.7em; }
  .col-wf-in { --nm: 132px; }
}

/* § 5.3 swatches you can compare */
.col-sw-li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 16px; border-bottom: 1px solid var(--rule); transition: background-color .2s var(--ease), box-shadow .2s var(--ease); }
.col-sw-cmp { justify-content: center; min-width: 10ch; letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
.col-sw-li[data-role="text"] .col-sw-cmp, .col-sw-li[data-role="ground"] .col-sw-cmp { border-color: var(--ink-3); color: var(--ink); }
.col-sw-li[data-role="picked"] .col-sw-cmp { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.col-sw-li[data-role="picked"] { box-shadow: inset 3px 0 0 var(--accent); }
.col-sw-li.is-drop { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.col-chip { cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.col-swatches.is-dragging, .col-swatches.is-dragging * { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.col-ghost { position: fixed; left: 0; top: 0; z-index: 90; width: 36px; height: 36px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 3px var(--paper-2), 0 0 0 4px var(--accent), 0 10px 24px rgb(0 0 0 / .2); transition: opacity .2s var(--ease); }
.col-ghost.is-gone { opacity: 0; }
.col-cmp-how { margin: -12px 0 18px; max-width: 78ch; line-height: 1.6; }
.col-cmp-how b { font-weight: 500; color: var(--ink-2); }
.col-cmp-live { margin: 12px 0 0; min-height: 1.6em; color: var(--ink-2); }
@media (max-width: 760px) {
  .col-sw-li { gap: 0 10px; }
  .col-sw-cmp { align-self: start; margin-top: 14px; min-width: 0; padding: 0 9px; }
  .col-sw { gap: 6px 12px; }
}

/* § 5.3 contrast checker */
.col-cmp { margin-top: 10px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper-2); padding: clamp(16px, 2.4vw, 26px); }
.col-cmp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin-bottom: 18px; }
.col-cmp-head h3 { margin: 0; }
.col-cmp-pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.col-cmp-pick label { display: flex; flex-direction: column; gap: 4px; }
.col-cmp-pick select { font: inherit; font-size: 14px; height: 34px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); }
.col-cmp-pick select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.col-cmp-swap { height: 34px; color: var(--accent); }
.col-cmp-body { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(16px, 3vw, 36px); align-items: stretch; }
.col-cmp-sample { border-radius: 10px; padding: clamp(16px, 2.4vw, 28px); min-height: 200px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent); transition: background-color .3s var(--ease), color .3s var(--ease); }
.col-cmp-s1 { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; letter-spacing: -.01em; font-variation-settings: "SOFT" 40, "WONK" 0; }
.col-cmp-s2 { margin: 0 0 12px; font-size: 17px; line-height: 1.5; }
.col-cmp-s3 { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.col-cmp-ratio { margin: 0 0 14px; font-size: clamp(36px, 4.6vw, 60px); line-height: 1; color: var(--ink); }
.col-cmp-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.col-cmp-t th, .col-cmp-t td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px dotted var(--rule); font-weight: 400; vertical-align: top; }
.col-cmp-t thead th { border-bottom: 1px solid var(--ink); }
.col-cmp-t tbody th { color: var(--ink-2); }
.col-cmp-sub { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.col-cmp-t td { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.col-cmp-t td b { font-weight: 400; margin-right: 2px; }
.col-cmp-na { color: var(--ink-3); }
@media (max-width: 760px) { .col-cmp-body { grid-template-columns: 1fr; } }

/* § 5.4 type tester */
.col-tt { margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--ink); padding-top: 16px; }
.col-tt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; margin-bottom: 16px; }
.col-tt-head h3 { margin: 0; }
.col-tt-faces { display: flex; flex-wrap: wrap; gap: 6px; }
.col-tt-face { font-family: var(--sans); font-size: 13px; }
.col-tt-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(20px, 3vw, 44px); align-items: start; }
.col-tt-stage { min-width: 0; }
.col-tt-sample { height: clamp(240px, 26vw, 320px); overflow: auto; overflow-wrap: anywhere; line-height: 1.08; color: var(--ink); white-space: pre-wrap;
  border: 1px dashed var(--rule); border-radius: 10px; padding: 16px 18px; cursor: text; transition: border-color .2s var(--ease); }
.col-tt-sample:hover { border-color: var(--ink-3); }
.col-tt-sample:focus { outline: none; border-style: solid; border-color: var(--accent); }
.col-tt-edit { margin: 8px 0 0; }
.col-tt-ctl.col-ctl { margin: 0; max-width: none; min-height: 262px; } /* five rows, drawn by the script */
.col-tt-ctl .col-ctl-row:first-child { margin-top: 0; }
.col-tt-row.is-off label.label, .col-tt-row.is-off output { color: var(--ink-3); }
.col-tt-row.is-off output { font-size: 11.5px; }
.col-tt-follow { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); margin-top: 2px; cursor: pointer; }
.col-tt-follow input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.col-tt-follow.is-off { opacity: .45; cursor: not-allowed; }
.col-tt-foot { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px dotted var(--rule); }
.col-tt-css { flex: 1 1 320px; min-height: 2.8em; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.col-tt-acts { display: flex; gap: 8px; }
.col-tt-btn { color: var(--accent); }
.col-tt-n { margin: 12px 0 0; max-width: 78ch; min-height: 3.2em; line-height: 1.6; }
@media (max-width: 860px) { .col-tt-body { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .col-tt-sample { height: 220px; } .col-tt-n { min-height: 6.4em; } }

/* § 5.5 moving right now */
.col-now { margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--ink); padding-top: 16px; }
.col-now-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; }
.col-now-head h3, .col-now-src { margin: 0; }
.col-now-intro { margin: 12px 0 22px; max-width: 70ch; }
.col-now-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: start; }
.col-now-list-wrap { min-height: 300px; }
.col-now-state { margin: 0 0 12px; min-height: 2.6em; font-family: var(--serif); font-size: 20px; line-height: 1.3; font-variation-settings: "SOFT" 40, "WONK" 0; }
.col-now-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.col-now-t th, .col-now-t td { text-align: left; padding: 6px 12px 6px 0; border-bottom: 1px dotted var(--rule); font-weight: 400; white-space: nowrap; }
.col-now-t thead th { border-bottom: 1px solid var(--ink); }
.col-now-t tbody th { font-family: var(--mono); font-size: 12.5px; color: var(--accent); white-space: normal; overflow-wrap: anywhere; }
.col-now-t td { color: var(--ink-2); }
.col-now-spark { margin: 0; }
.col-now-spark svg { width: 100%; height: 120px; overflow: visible; background: linear-gradient(var(--rule), var(--rule)) 0 100% / 100% 1px no-repeat; }
#col-now-bars rect { fill: var(--accent); opacity: .35; }
#col-now-fps { stroke: var(--ink-2); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.col-now-ax { display: flex; justify-content: space-between; margin-top: 4px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.col-now-spark figcaption { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.col-now-k1 i, .col-now-k2 i { display: inline-block; width: 12px; height: 8px; margin-right: 6px; vertical-align: middle; }
.col-now-k1 i { background: var(--accent); opacity: .35; }
.col-now-k2 i { height: 2px; background: var(--ink-2); }
@media (max-width: 760px) { .col-now-grid { grid-template-columns: 1fr; } .col-now-list-wrap { min-height: 270px; } }

@media (prefers-reduced-motion: reduce) {
  .col-files tbody tr > *, .col-wf-bar, .col-sw-li, .col-ghost, .col-cmp-sample, .col-tt-sample, .col-kind, .col-tt-face, .col-tt-btn, .col-cmp-swap, .col-sw-cmp { transition: none; }
  .col-files tbody tr.is-found > * { animation: none; background: color-mix(in srgb, var(--accent) 16%, transparent); }
}

/* ---------- § 5.1 tiles answer: each one shows its files in the table ---------- */
.col-vitals > div[data-vt] { position: relative; cursor: pointer; transition: background-color .25s var(--ease); }
.col-vitals > div[data-vt]:hover { background: color-mix(in oklab, var(--accent) 5%, transparent); }
.col-vitals > div[data-vt].is-on { box-shadow: inset 0 -2px 0 var(--accent); }
.col-vitals > div[data-vt] .figure { position: relative; z-index: 1; }
.col-v-act { margin-top: 8px !important; }
.col-v-go { display: inline-flex; align-items: center; min-height: 32px; margin-left: -8px; padding: 0 8px; border-radius: 999px; font-size: 12.5px; color: var(--accent);
  text-align: left; transition: background-color .2s; }
.col-v-go:hover, .col-vitals > div[data-vt]:hover .col-v-go { background: var(--accent-soft); }
@media (pointer: coarse) { .col-v-go { min-height: 38px; } }
.col-files-frame { position: relative; }
.col-files-frame.is-flash .col-files-wrap { animation: col-flash 1.2s var(--ease); }
@keyframes col-flash { 0% { box-shadow: 0 0 0 2px var(--accent); } 100% { box-shadow: 0 0 0 2px transparent; } }

/* ---------- § 5.1 on a narrow screen: a clear edge, and "swipe →" the first time ---------- */
.col-files-frame::before, .col-files-frame::after { content: ""; position: absolute; top: 0; bottom: 1px; width: 56px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .25s var(--ease); }
.col-files-frame::after { right: 0; background: linear-gradient(to right, color-mix(in srgb, var(--paper) 0%, transparent), var(--paper) 78%); }
.col-files-frame::before { left: 0; width: 28px; background: linear-gradient(to left, color-mix(in srgb, var(--paper) 0%, transparent), var(--paper)); }
.col-files-frame.has-more::after, .col-files-frame.has-less::before { opacity: 1; }
.col-swipe { position: absolute; right: 8px; bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; pointer-events: none;
  opacity: 0; translate: 8px 0; transition: opacity .3s var(--ease), translate .5s var(--spring); }
.col-files-frame.is-telling .col-swipe { opacity: 1; translate: 0 0; }
.col-files-frame.is-telling .col-swipe-a { animation: col-swipe 1.1s var(--ease) infinite; display: inline-block; }
@keyframes col-swipe { 0%, 100% { translate: 0 0; } 50% { translate: 5px 0; } }
.col-k-s { display: none; }
@media (max-width: 700px) {
  .col-k-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .col-k-s { display: inline; }
  .col-files .col-fn { display: inline-block; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
}

/* ---------- § 5.6 every shortcut, as a key that does what it says ---------- */
.col-keylist { margin: 0 0 28px; }
.col-keylist-k { margin: 0 0 12px; }
.col-keygroups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 28px; border-top: 1px solid var(--ink); padding-top: 14px; }
.col-keygroups h3 { margin: 0 0 6px; font-weight: 400; }
.col-keygroups ul { list-style: none; margin: 0; padding: 0; }
.col-key { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 4px 8px; margin: 0 -8px; border-radius: 8px; text-align: left;
  font-size: 14px; color: var(--ink-2); transition: background-color .2s, color .2s; }
.col-key:hover { background: var(--accent-soft); color: var(--ink); }
.col-key-k { flex: none; display: inline-flex; align-items: center; gap: 3px; min-width: 92px; }
.col-key-k kbd { transition: translate .12s var(--ease), border-bottom-width .12s, border-color .2s, color .2s; }
.col-key:hover kbd { border-color: var(--accent); color: var(--accent); }
.col-key:active kbd, .col-key.is-hit kbd { translate: 0 1px; border-bottom-width: 1px; }
.col-key.is-hit kbd { animation: col-key-hit .3s var(--ease); }
@keyframes col-key-hit { 0% { background: var(--accent); color: var(--paper); } 100% { background: var(--paper-2); } }
.col-key .ak-then { margin: 0 2px; }
@media (max-width: 760px) { .col-keygroups { grid-template-columns: 1fr; gap: 16px; } }
@media (prefers-reduced-motion: reduce) { .col-files-frame.is-telling .col-swipe-a, .col-key.is-hit kbd, .col-files-frame.is-flash .col-files-wrap { animation: none; } .col-swipe { transition: none; } }
/* =========================================================
   Phones (≤700px): keep the facts, drop the desk instruments.
   - File table: File, Kind, Size only, so it fits without a sideways swipe.
   - The request waterfall (a 620px plot in its own scroll box) and the live loop monitor are hidden; the table
     and the vitals above carry the same numbers.
   - Type tester keeps Size and Weight; the three expert axes stay on larger screens.
   - The shortcut sheet is for a keyboard, so it is not shown on a phone.
   ========================================================= */
@media (max-width: 700px) {
  .col-sec { padding: 56px 0; }
  .col-filter { flex: 1 1 100%; }
  .col-filter input { flex: 1; width: auto; max-width: none; height: 40px; }
  .col-kinds { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); scroll-padding-inline: var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
  .col-kinds::-webkit-scrollbar { display: none; }
  .col-kind { flex: none; height: 40px; scroll-snap-align: start; }
  .col-kind:last-child { margin-right: 24px; }

  .col-files thead th[data-k="start"], .col-files thead th[data-k="took"],
  .col-files tbody td:nth-child(4), .col-files tbody td:nth-child(5) { display: none; }
  .col-files th:last-child, .col-files td:last-child { padding-right: 0; }
  .col-cache, .col-cmp-sub { font-size: 11px; }
  .col-files .col-fn { max-width: calc(100vw - 2 * var(--gutter) - 200px); }   /* Kind + Size take about 180px; the name gets the rest, so nothing is cut */
  .col-files-wrap { height: 360px; }
  .col-swipe, .col-files-frame::before, .col-files-frame::after { display: none; }

  .col-wf-fig, .col-now, .col-keylist, .col-keys-acts .col-kbd-mod { display: none; }

  .col-tt-row[data-k="opsz"], .col-tt-row[data-k="soft"], .col-tt-row[data-k="wonk"] { display: none; }
  .col-tt-ctl.col-ctl { min-height: 0; }
  .col-tt-n { display: none; }   /* it describes the axes hidden above */
  .col-tt-faces { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .col-tt-face { justify-content: center; }
  .col-tt-sample { height: 180px; }
  .col-tt-face, .col-tt-btn, .col-cmp-swap { height: 40px; }
  .col-cmp-pick select { height: 40px; }
}

@media print { .col-swipe, .col-v-act, .col-keylist { display: none !important; } .col-files-frame::before, .col-files-frame::after { display: none; } }
