:root {
  color-scheme: light;
  --page: #fbfaf7;
  --surface: #fff;
  --ink: #242829;
  --sub: #50575a;
  --line: #c7c8c3;
  --blue: #24578a;
  --pale: #edf3f8;
  --rule: #3c4447;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font:
    1rem/1.55 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
main {
  max-width: 63rem;
  margin: auto;
  padding: 1.7rem clamp(1.1rem, 5vw, 4.5rem) 4rem;
}
p,
h1,
h2,
h3,
dl,
dd,
ul,
ol {
  margin: 0;
}
a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}
a:hover,
summary:hover {
  text-decoration-thickness: 0.13em;
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.25rem, 5.3vw, 4.4rem);
  max-width: 20ch;
  margin: 1.4rem 0 0.9rem;
}
h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  margin-bottom: 0.6rem;
}
h3 {
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
header .lead {
  font-size: clamp(1.06rem, 2vw, 1.18rem);
  max-width: 44rem;
}
header .question {
  font-weight: 650;
}
header > a,
footer > a {
  font-size: 0.94rem;
}
nav {
  border-block: 1px solid var(--line);
  margin: 1.4rem 0 1.8rem;
  padding: 0.65rem 0;
}
nav ul {
  display: flex;
  gap: 0.3rem 1.25rem;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}
nav a {
  display: inline-block;
  padding: 0.24rem 0;
}
section + section {
  margin-top: 3.1rem;
}
.section-intro {
  color: var(--sub);
  max-width: 46rem;
  margin-bottom: 1rem;
}
.flow {
  list-style: none;
  padding: 0;
  counter-reset: run;
}
.event {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0 0 1.15rem;
  scroll-margin-top: 0.5rem;
  counter-increment: run;
}
.event:before {
  content: "";
  position: absolute;
  left: 1.18rem;
  top: 2.3rem;
  bottom: 0.08rem;
  border-left: 1.5px solid var(--rule);
}
.event:after {
  content: "";
  position: absolute;
  left: 0.99rem;
  bottom: 0.22rem;
  width: 0.4rem;
  height: 0.4rem;
  border: solid var(--rule);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.event:nth-last-child(-n + 2):after,
.event:nth-last-child(-n + 2):before {
  display: none;
}
.n {
  display: grid;
  place-items: center;
  align-self: start;
  width: 2.4rem;
  height: 2.4rem;
  font-weight: 700;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--surface);
  font-variant-numeric: tabular-nums;
}
.event.model .n {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--pale);
}
.content {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  padding: 1rem 1.2rem;
  min-width: 0;
}
.path {
  font-size: 0.85rem;
  color: var(--sub);
  font-weight: 650;
  line-height: 1.4;
  margin-bottom: 0.35rem;
  overflow-wrap: anywhere;
}
.model-hop {
  color: var(--blue);
}
.content > p:not(.path) {
  margin-top: 0.38rem;
}
.branch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 0.7rem;
  font-size: 0.94rem;
}
.branch a {
  padding: 0.08rem 0;
  color: var(--blue);
  font-weight: 650;
}
.sample {
  margin: 0.3rem 0 0 3.5rem;
  padding: 0.7rem 0 0.7rem 0.85rem;
  border-left: 3px solid var(--blue);
  max-width: 44rem;
}
.arc {
  margin-top: 1rem;
}
.arc > div {
  display: grid;
  grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
dt {
  font-weight: 680;
}
.arc dd {
  max-width: 43rem;
}
details {
  border-top: 1px solid var(--line);
}
details:last-child {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-size: 1.04rem;
  font-weight: 650;
  padding: 0.8rem 0.12rem;
}
summary:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.terms {
  margin: 0.15rem 0 1.1rem 0.95rem;
  border-left: 2px solid var(--line);
  padding-left: 1rem;
}
.terms > div + div {
  margin-top: 0.85rem;
}
.terms dd {
  max-width: 46rem;
}
footer {
  margin-top: 2.6rem;
  border-top: 1px solid var(--line);
  padding-top: 1.05rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
}
@media (max-width: 36rem) {
  .event {
    grid-template-columns: 1.9rem minmax(0, 1fr);
    gap: 0.55rem;
  }
  .n {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.92rem;
  }
  .event:before {
    left: 0.88rem;
    top: 1.75rem;
  }
  .event:after {
    left: 0.68rem;
  }
  .content {
    padding: 0.84rem 0.9rem;
  }
  .sample {
    margin-left: 2.45rem;
  }
  .arc > div {
    display: block;
  }
  .arc dd {
    margin-top: 0.25rem;
  }
  main {
    padding-top: 1rem;
  }
}
@media print {
  body {
    background: white;
  }
  main {
    max-width: none;
    padding: 0;
  }
  header > a,
  nav,
  footer {
    display: none;
  }
  .event,
  details,
  .arc > div {
    break-inside: avoid;
  }
  details::details-content {
    display: contents;
  }
}

.diagram {
  margin: 0.25rem 0 1.35rem;
}
.diagram img {
  display: block;
  max-width: 100%;
  height: auto;
  width: 30rem;
}
.diagram figcaption {
  margin-top: 0.55rem;
}
