/* Move One Thing. One column, three tied colours, nothing else. */
:root {
  --bg: #fbfbf8;
  --ink: #1b1b19;
  --muted: #5d5b55;
  --hair: #dcd9d0;
  --rule: #8f8c84;
  --blue: #0b5c99;   /* the part that is yours */
  --verm: #b3440b;   /* the rule */
  --green: #116b4b;  /* what it comes to */
  --serif: "STIX Two Text", "STIX Two", Cambria, "Times New Roman", serif;
  --sans: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
  --col: 640px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 20px/1.58 var(--serif);
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
main, .top, .foot { max-width: calc(var(--col) + 40px); margin: 0 auto; padding: 0 20px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; font: 500 16px var(--sans); z-index: 5; }
.skip:focus { left: 8px; }

/* masthead: a line, not a banner */
.top { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; justify-content: space-between; padding-top: 26px; padding-bottom: 0; font: 500 15px/1.4 var(--sans); }
.top::after { content: ""; flex-basis: 100%; border-bottom: 1px solid var(--hair); margin-top: 12px; }
.mark { margin: 0; font-weight: 650; letter-spacing: 0.01em; }
.mark a { text-decoration: none; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0; padding: 0; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule); }

h1 { font: 600 clamp(36px, 6.2vw, 50px)/1.08 var(--serif); letter-spacing: -0.012em; margin: 72px 0 18px; text-wrap: balance; }
.stand { font: italic 400 clamp(21px, 3vw, 25px)/1.42 var(--serif); margin: 0 0 26px; color: var(--ink); text-wrap: pretty; }
p { margin: 0 0 1.05em; text-wrap: pretty; }
.dateline { font: 400 15px/1.5 var(--sans); color: var(--muted); margin-top: 1.6em; }

b.b, b.r, b.g { font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.b { color: var(--blue); } .r { color: var(--verm); } .g { color: var(--green); }

/* the twelve, by short name */
.toc { margin: 30px 0 0; padding: 6px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); font: 400 16px/1.3 var(--sans); }
.toc summary { font: 500 16px/1.3 var(--sans); padding: 10px 0; min-height: 44px; display: flex; align-items: center; gap: 10px; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::before { content: "+"; display: inline-block; width: 1.4em; text-align: right; color: var(--muted); font-size: 19px; }
.toc details[open] summary::before { content: "\2212"; }
.toc details[open] summary { margin-bottom: 4px; }
.toc ol { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: t; columns: 3; column-gap: 28px; }
.toc li { counter-increment: t; break-inside: avoid; }
.toc li a { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; min-height: 32px; text-decoration: none; }
.toc li a::before { content: counter(t); min-width: 1.4em; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.toc li a:hover { text-decoration: underline; }
.toc p { margin: 0 0 12px; color: var(--muted); }

section { margin-top: 104px; }
section[id] { scroll-margin-top: 24px; }
h2 { position: relative; font: 600 clamp(25px, 4.2vw, 31px)/1.2 var(--serif); letter-spacing: -0.006em; margin: 0 0 20px; text-wrap: balance; }
h2 .num { display: block; font: 500 15px/1 var(--sans); color: var(--muted); margin-bottom: 12px; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
h2 .num::after { content: " of 12"; }
@media (min-width: 880px) {
  h2 .num { position: absolute; right: calc(100% + 28px); top: 0.12em; margin: 0; font: 400 31px/1.2 var(--serif); color: var(--muted); white-space: nowrap; }
  h2 .num::after { content: none; }
}

/* the sentence the drawing proves */
.eq { font: 400 clamp(22px, 3.6vw, 26px)/1.4 var(--serif); margin: 30px 0 6px; text-wrap: balance; }

/* drawings */
.fig { margin: 0; }
.draw { margin-top: 8px; }
svg.d { display: block; width: 100%; height: auto; overflow: visible; }
svg text { font-family: var(--sans); }
svg .t { font: 500 13.5px/1 var(--sans); }
svg .bold { font-weight: 650; }
svg .n { font: 600 23px/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
svg .n .t { font: 500 13.5px/1 var(--sans); }
svg .v { font: 600 18px/1 var(--serif); font-variant-numeric: lining-nums; }
.fb { fill: var(--blue); } .fr { fill: var(--verm); } .fg { fill: var(--green); } .fk { fill: var(--ink); } .fm { fill: var(--muted); }
.sb { stroke: var(--blue); } .sr { stroke: var(--verm); } .sg { stroke: var(--green); } .sk { stroke: var(--ink); } .sm { stroke: var(--rule); }
.ag { fill: var(--green); fill-opacity: 0.15; } .ag2 { fill: var(--green); fill-opacity: 0.07; }
.ar { fill: var(--verm); fill-opacity: 0.17; } .ab { fill: var(--blue); fill-opacity: 0.09; } .am { fill: var(--muted); fill-opacity: 0.16; }
.bg, .bgf { fill: var(--bg); }
.cb { fill: var(--blue); } .cr { fill: var(--verm); } .cm { fill: #b4b1a8; }
.co { fill: var(--bg); stroke: var(--verm); stroke-width: 2; }

/* the one control: a large knob on a thin track, sitting under the part it moves */
.ctl { --c: var(--blue); margin-top: 0; }
.ctl.tone-r { --c: var(--verm); }
.ctl input {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; padding: 0;
  background: transparent; cursor: grab; touch-action: pan-y; --p: 50%;
}
.ctl input:active { cursor: grabbing; }
.ctl input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--c) var(--p), var(--rule) var(--p)); }
.ctl input::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--c) var(--p), var(--rule) var(--p)); }
.ctl input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 30px; height: 30px; margin-top: -13px; border-radius: 50%; background: var(--c); border: 3px solid var(--bg); box-shadow: 0 0 0 1.5px var(--c); }
.ctl input::-moz-range-thumb { box-sizing: border-box; width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 3px solid var(--bg); box-shadow: 0 0 0 1.5px var(--c); }
.ctl input:focus-visible { outline: none; }
.ctl input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1.5px var(--c), 0 0 0 5px var(--bg), 0 0 0 8px var(--c); }
.ctl input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1.5px var(--c), 0 0 0 5px var(--bg), 0 0 0 8px var(--c); }
.ctl label { display: block; text-align: center; font: 500 15px/1.3 var(--sans); color: var(--c); margin-top: 2px; }
.still { display: none; font: 400 15px/1.4 var(--sans); color: var(--muted); margin: 10px 0 0; }
html:not(.js) .ctl { display: none; }
html:not(.js) .still { display: block; }

/* a number travels with its definition and source */
.src { font: 400 14.5px/1.55 var(--sans); color: var(--muted); margin: 22px 0 30px; padding-top: 12px; border-top: 1px solid var(--hair); }
.src b { font-weight: 650; color: var(--ink); }
.copy { font: 500 14.5px/1.2 var(--sans); color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--ink); padding: 5px 0 2px; margin-left: 2px; min-height: 26px; cursor: pointer; border-radius: 0; }
.copy:hover { border-bottom-width: 2px; padding-bottom: 1px; }

blockquote { margin: 34px 0 0; padding: 2px 0 2px 22px; border-left: 3px solid var(--ink); }
blockquote p { font: italic 400 26px/1.3 var(--serif); margin: 0 0 8px; }
blockquote footer { font: 400 14.5px/1.4 var(--sans); color: var(--muted); }

/* a slim, deliberate line that marks where her note will go */
.note-slot { margin: 26px 0 0; padding: 4px 0 4px 14px; border-left: 3px solid var(--rule); font: 400 15.5px/1.5 var(--sans); color: var(--muted); }
.note-slot p { display: inline; margin: 0; }
.note-slot .slot-label { font-weight: 650; color: var(--ink); }
.note-slot .slot-label::after { content: ": "; }

/* the watch */
.watch { margin-top: 96px; padding: 34px 0 36px; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }
h2.plain { margin-bottom: 18px; }
form { margin-top: 26px; font-family: var(--sans); }
.field { margin-bottom: 18px; }
.field label, .check label { font: 500 16px/1.4 var(--sans); }
.field label { display: block; margin-bottom: 6px; }
.opt { color: var(--muted); font-weight: 400; }
input[type=email], input[type=text] { width: 100%; height: 50px; padding: 0 14px; font: 400 18px var(--sans); color: var(--ink); background: #fff; border: 1.5px solid #6b6963; border-radius: 2px; }
input[type=email]::placeholder { color: #77746d; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 22px; }
.check input { width: 24px; height: 24px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
form button, #proto-x { font: 650 17px/1 var(--sans); color: var(--bg); background: var(--ink); border: 0; border-radius: 2px; min-height: 50px; padding: 0 24px; cursor: pointer; }
form button:hover { background: #000; }
.err { color: var(--verm); font: 500 15px/1.4 var(--sans); margin: 8px 0 0; }
.done { margin-top: 26px; }
.small { font: 400 14.5px/1.5 var(--sans); color: var(--muted); }
details summary { font: 500 15px/1.4 var(--sans); cursor: pointer; padding: 6px 0; min-height: 30px; }
pre { font: 400 14px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: #f1f0ea; padding: 14px 16px; margin: 6px 0 0; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }

.video { margin: 56px 0 0; }
.video svg { display: block; width: 100%; height: auto; border: 1px dashed var(--rule); }
.vbg { fill: #f3f2ec; }
.video figcaption { font: 400 15px/1.55 var(--sans); color: var(--muted); margin-top: 12px; }
.video figcaption b { color: var(--ink); font-weight: 650; }

.limits { margin: 0; padding: 0; list-style: none; }
.limits li { padding: 14px 0; border-top: 1px solid var(--hair); }
.limits li:last-child { border-bottom: 1px solid var(--hair); }
.limits b { font-weight: 600; }

.ask { margin: 0; }
.ask > div { padding: 16px 0 14px; border-top: 1px solid var(--hair); }
.ask dt { font-weight: 600; margin-bottom: 4px; }
.ask dd { margin: 0; }
.agent { margin-top: 10px; padding: 26px 0 6px; border-top: 3px solid var(--ink); }
.reach { display: flex; flex-wrap: wrap; gap: 6px 28px; font: 650 19px/1.4 var(--sans); font-variant-numeric: lining-nums tabular-nums; }
.reach a { padding: 8px 0; }

.sources { font: 400 15px/1.55 var(--sans); padding-left: 1.6em; color: var(--ink); }
.sources li { margin-bottom: 9px; padding-left: 4px; overflow-wrap: anywhere; }
.sources li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }

.foot { margin-top: 96px; padding-bottom: 28px; font: 400 15px/1.6 var(--sans); color: var(--muted); }
.foot > p:first-child { border-top: 1px solid var(--ink); padding-top: 22px; }
.foot b { color: var(--ink); font-weight: 650; }
.proto { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-top: 26px; padding: 12px 0 0; border-top: 1px dashed var(--rule); font-size: 14px; }
.proto p { margin: 0; }
#proto-x { font: 500 14px/1 var(--sans); min-height: 34px; padding: 0 14px; background: none; color: var(--ink); border: 1px solid var(--rule); flex: none; }
.copied { color: var(--green); border-bottom-color: var(--green); }

/* the first drawing sits straight under the title; its caption carries the colour key */
.lead-eq { margin-top: 0; }
.lead-fig { margin-bottom: 40px; }
.key { font: 400 15.5px/1.55 var(--sans); color: var(--muted); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair); text-wrap: pretty; }
/* on a wide screen the drawings break out of the text column */
@media (min-width: 1000px) {
  .fig, .video { --wide: min(900px, 100vw - 120px); width: var(--wide); margin-left: calc((var(--col) - var(--wide)) / 2); }
  .key { max-width: var(--col); margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .stand { margin-bottom: 18px; }
  .lead-eq { font-size: 20px; }
  body { font-size: 18px; line-height: 1.56; }
  main, .top, .foot { padding: 0 20px; }
  .top { padding-top: 18px; }
  h1 { margin-top: 44px; }
  section { margin-top: 76px; }
  .toc ol { columns: 2; }
  blockquote p { font-size: 23px; }
  .proto { flex-direction: column; align-items: flex-start; }
}
@media print { .ctl, .copy, .proto, form { display: none; } }

[hidden] { display: none !important; }
.nw { white-space: nowrap; }
