:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #172126;
  --line: #cbd5d5;
  --teal: #006a70;
}
* { box-sizing: border-box; }
body { max-width: 1240px; margin: auto; padding: 0 clamp(20px, 5vw, 70px); }
a { color: inherit; text-underline-offset: .32em; }
a:hover { color: var(--teal); }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.skip { position: absolute; top: -5rem; background: white; padding: 12px; }
.skip:focus { top: 0; }
header, footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; }
.brand { font-weight: 700; font-size: 1.35rem; letter-spacing: -.06em; text-decoration: none; }
section { padding: clamp(44px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.opening { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 78px); align-items: center; }
h1, h2 { margin: 0; letter-spacing: -.055em; line-height: 1.03; text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 5.2vw, 4.8rem); }
h2 { max-width: 22ch; font-size: clamp(2.1rem, 4.6vw, 3.7rem); margin-bottom: 32px; }
p { font-size: 1.07rem; line-height: 1.58; margin: 1.2em 0 0; }
.label, small { color: var(--teal); font-weight: 600; }
.label { font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; margin: 0 0 22px; }
figure { margin: 0; }
.example, .profile, .research { padding: clamp(16px, 3vw, 40px); background: #eef3f3; }
.excerpt, .question { background: white; padding: 16px 20px; border-left: 2px solid var(--line); }
.example b { font-size: .8rem; }
.example p { margin: 5px 0 0; }
.excerpt + .excerpt { margin: 8px 0 16px; }
mark { color: inherit; background: #ccede6; }
.question { background: #15383d; color: white; }
.question { border-color: #28b7ab; }
.question p { font-size: 1.25rem; line-height: 1.35; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 24px; }
.flow li { position: relative; padding: 20px; background: white; }
.flow li + li::before { content: '→'; position: absolute; left: -22px; top: 45%; color: var(--teal); }
.flow b, small { display: block; }
.flow b { font-size: 1.2rem; letter-spacing: -.035em; }
.flow small { font-size: .8rem; line-height: 1.35; }
.profile small { margin-top: 8px; }
.flow p { font-size: .98rem; line-height: 1.45; }
.system {
  --wire: #558079;
  background-color: #eff4f2;
  background-image: radial-gradient(#c8d6d0 1px, transparent 1px);
  background-size: 16px 16px;
  padding: clamp(16px, 4vw, 48px);
}
.inputs, .destinations, .history { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5%; }
.map-caption { margin-bottom: 24px; font-size: 1.2rem; font-weight: 700; }
.history .node { position: relative; background: #f6faf8; }
.history .node h3 { font-size: clamp(1.25rem, 2.4vw, 1.65rem); }
.history .node + .node::before { content: '→'; position: absolute; left: -7%; top: 45%; color: var(--wire); }
.handoff { padding: 16px 0 26px; color: #365e57; font-size: .9rem; }
.system h3, .system h4 { margin: 8px 0; letter-spacing: -.035em; line-height: 1.13; }
.system h3 { font-size: clamp(1.35rem, 2.6vw, 2rem); }
.system h4 { font-size: 1.25rem; }
.system p, .stations span { margin: 0; font-size: 1rem; line-height: 1.48; }
.node, .trigger, .store, .engine, .owner { padding: clamp(16px, 2.5vw, 28px); }
.node, .trigger, .store { background: #fff; border: 1px solid #a9bfb8; }
.trigger { border-style: dashed; }
.port { display: block; margin-top: 15px; color: var(--teal); font: 600 .8rem/1.4 Arial,sans-serif; }
.merge, .split { position: relative; margin: 0 auto; width: 52.5%; height: 36px; }
.merge::before, .split::before { position: absolute; content: ''; inset: 0 0 50%; border: solid var(--wire); border-width: 0 1px 1px; }
.merge::after, .split::after { position: absolute; content: ''; top: 50%; bottom: 0; left: 50%; border-left: 1px solid var(--wire); }
.split { transform: rotate(180deg); }
.engine { background: #14373c; color: white; }
.engine small { color: #a8ded5; }
.engine > p { max-width: 65ch; }
.stations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: step; }
.stations li { counter-increment: step; border-top: 1px solid #638384; padding-top: 10px; }
.stations li::before { content: counter(step, decimal-leading-zero); color: #a8ded5; font: .8rem monospace; }
.stations b { margin-left: 5px; }
.screening { margin-top: 12px; padding-left: 10px; border-left: 1px solid #85aaa6; }
.screening span { font-size: .85rem; }
.stations span { display: block; margin-top: 6px; color: #dfebea; }
.stations small { margin-top: 12px; font-weight: 400; }
.stations code { overflow-wrap: anywhere; }
.feedback { margin: 0 auto; padding: 16px 20px; border: 1px dashed var(--wire); background: #edf5ec; }
.feedback b { display: block; margin-bottom: 5px; color: #244d48; font-size: .9rem; }
.proposal { margin-left: 52.5%; padding: 14px; border-left: 1px solid var(--wire); color: #244d48; font-size: .8rem; font-weight: 600; }
.owner { background: #d4eee6; border-left: 4px solid var(--teal); }
.research-intro { max-width: 66ch; margin: 0 0 28px; }
.review-trial { margin-top: 20px; padding: 0 20px; border: 1px dashed var(--wire); background: #fff; }
.review-trial summary { padding: 16px 0; cursor: pointer; font-weight: 700; }
.review-trial summary::marker { color: var(--teal); }
.review-trial summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.review-trial dl { margin: 20px 0; line-height: 1.5; }
.review-trial dt { margin-top: 12px; font-weight: 700; }
.review-trial dd { margin: 2px 0 0; }
.caption, footer p { max-width: 66ch; }
footer { border-top: 1px solid var(--line); padding-block: 38px; }
footer p { margin: 0; font-size: .95rem; }
footer a { white-space: nowrap; }
@media (max-width: 680px) {
  .stations { grid-template-columns: 1fr; gap: 14px; }
  .inputs, .destinations, .history { grid-template-columns: 1fr; gap: 10px; }
  .history { gap: 24px; }
  .history .node + .node::before { content: '↓'; top: -23px; left: 20px; }
  .merge, .split { width: 1px; height: 24px; background: var(--wire); }
  .merge::before, .merge::after, .split::before, .split::after { display: none; }
  .proposal { margin-left: 20px; }
  .opening, .flow { grid-template-columns: 1fr; grid-auto-flow: row; }
  .flow li + li::before { content: '↓'; top: -23px; left: 20px; }
  footer { align-items: flex-start; flex-direction: column; }
}
