:root {
  color-scheme: light;
  --paper: #f3f7fa;
  --ink: #162f3a;
  --muted: #506571;
  --accent: #25606a;
  --line: #bfd0d8;
  --soft: #e3eff0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 17px; line-height: 1.7; }
a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
p, h1, h2, h3 { margin-top: 0; }
p { margin-bottom: 1.2em; }
h1, h2, h3 { line-height: 1.15; font-weight: 650; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5vw, 4.3rem); margin-bottom: 26px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 22px; }
h3 { font-size: 1.2rem; letter-spacing: -.02em; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: .5em; }
code { font-size: .88em; overflow-wrap: anywhere; }
.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 24px; padding: 12px; background: white; z-index: 5; }
.skip:focus { top: 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; text-decoration: none; color: var(--ink); font-size: 20px; font-weight: 650; white-space: nowrap; }
.brand img { width: 31px; height: 31px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }
.hero { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 64px; padding-block: 72px 76px; }
.hero-copy p:not(.eyebrow) { color: var(--muted); max-width: 580px; }
.lead { font-size: 20px; line-height: 1.6; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; gap: 14px; }
.route { margin: 0; padding: 30px; border: 1px solid var(--line); background: white; }
.route figcaption { font-size: 12px; color: var(--muted); letter-spacing: .09em; text-transform: uppercase; margin-bottom: 24px; }
.exchange-visual { position: relative; width: 100%; aspect-ratio: 1; margin-block: 18px; }
.exchange-lines { display: block; width: 100%; height: 100%; fill: none; stroke: var(--line); stroke-width: 1; }
.exchange-lines path { stroke: #6e9ba2; }
.exchange-lines .exchange-dash { stroke-dasharray: 3 7; stroke: var(--line); }
.exchange-lines .exchange-point { fill: var(--accent); stroke: white; stroke-width: 2; }
.exchange-label { position: absolute; font-size: 11px; letter-spacing: .03em; color: var(--muted); background: white; padding: 5px 8px; border: 1px solid var(--line); }
.label-publish { top: 7%; left: 0; }
.label-state { top: 7%; right: 0; }
.label-process { bottom: 7%; left: 0; }
.label-sync { bottom: 7%; right: 0; }
.exchange-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 17px 15px; border: 1px solid var(--accent); background: var(--soft); text-align: center; line-height: 1.5; }
.exchange-center span { display: block; font-size: 12px; color: var(--muted); }
.exchange-center strong { font-size: 16px; font-weight: 600; }
.exchange-caption { margin: 0; text-align: center; color: var(--muted); font-size: 11px; }
.section { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; border-top: 1px solid var(--line); padding-block: 48px; }
.section .eyebrow { margin-top: 6px; }
.section-body { max-width: 700px; }
.section-body > :last-child { margin-bottom: 0; }
.scope { display: inline-block; padding: 4px 10px; background: var(--soft); border: 1px solid var(--line); color: var(--ink); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: steps; }
.steps li { position: relative; counter-increment: steps; padding-left: 48px; }
.steps li + li { margin-top: 26px; }
.steps li::before { content: "0" counter(steps); position: absolute; left: 0; color: var(--accent); font: 13px/2 ui-monospace, monospace; }
.steps strong { display: block; font-weight: 600; margin-bottom: 4px; }
.steps p { color: var(--muted); margin: 0; }
.site-footer { border-top: 1px solid var(--line); padding-block: 30px 40px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; font-size: 13px; color: var(--muted); }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.document { max-width: 760px; padding-block: 64px; }
.document h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); overflow-wrap: anywhere; }
.document .intro { font-size: 20px; color: var(--muted); }
.document .updated { color: var(--muted); font-size: 14px; padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 38px; }
.document section { margin-top: 36px; }
.document section h2 { font-size: 24px; margin-bottom: 15px; }
.document a { overflow-wrap: anywhere; }
.note { background: var(--soft); border-left: 3px solid var(--accent); padding: 20px 24px; }
.note p:last-child { margin-bottom: 0; }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 48px); }
  .site-header { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 20px; }
  .site-nav { gap: 4px 22px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 42px; }
  .hero-copy p:not(.eyebrow) { max-width: 650px; }
  .route { max-width: 500px; width: 100%; }
  .section { grid-template-columns: 1fr; gap: 0; padding-block: 32px; }
  .section .eyebrow { margin-bottom: 14px; }
  .site-footer { flex-direction: column; gap: 14px; }
  .document { padding-block: 42px; }
}
@media (max-width: 400px) {
  .wrap { width: calc(100% - 36px); }
  body { font-size: 16px; }
  .site-nav { column-gap: 16px; }
  .site-nav a { font-size: 13px; }
  .route { padding: 22px; }
  .lead, .document .intro { font-size: 18px; }
  .document h1 { font-size: clamp(1.8rem, 9vw, 2.2rem); }
}
@media print {
  :root { background: white; color: black; }
  .wrap { width: 100%; }
  .site-nav, .skip { display: none; }
  .document { max-width: none; padding-block: 24px; }
  a { color: inherit; }
}
