.flow {
  --flow-ink: #211e20;
  --flow-muted: #5d5853;
  --flow-rule: #cfc9be;
  --flow-accent: #b9412c;
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  scroll-margin-top: 4.5rem;
  background: #f6f3ed;
  color: var(--flow-ink);
}
.flow .flow-heading { margin: 0 0 clamp(1.7rem, 3.6vw, 3rem); }
.flow .flow-kicker {
  margin: 0 0 .8rem;
  color: var(--flow-accent);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .14em;
}
.flow .flow-heading h2 {
  margin: 0;
  font-size: clamp(2.05rem, 4.2vw, 4.25rem);
  line-height: 1.18;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.flow .flow-switcher { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; }
.flow .flow-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.flow .flow-layout {
  display: grid;
  grid-template-columns: minmax(15.5rem, .78fr) minmax(0, 1.55fr);
  column-gap: clamp(2rem, 5.4vw, 6rem);
  align-items: start;
}
.flow .flow-steps { border-top: 1px solid var(--flow-ink); }
.flow .flow-steps label {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  align-items: baseline;
  gap: .4rem;
  padding: clamp(1.25rem, 2vw, 1.85rem) .25rem;
  border-bottom: 1px solid var(--flow-rule);
  color: var(--flow-muted);
  cursor: pointer;
}
.flow .flow-number, .flow .flow-script time {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
}
.flow .flow-steps strong {
  display: block;
  font-size: clamp(1.2rem, 1.8vw, 1.64rem);
  line-height: 1.4;
  letter-spacing: -.04em;
}
.flow .flow-steps small { display: block; margin-top: .4rem; font-size: .875rem; line-height: 1.65; }
.flow .flow-steps label:hover strong { text-decoration: underline; text-underline-offset: .22em; }
.flow #flow-choose-topic:checked ~ .flow-layout label[for="flow-choose-topic"],
.flow #flow-choose-edit:checked ~ .flow-layout label[for="flow-choose-edit"],
.flow #flow-choose-release:checked ~ .flow-layout label[for="flow-choose-release"] {
  border-bottom: 2px solid var(--flow-accent);
  color: var(--flow-accent);
}
.flow #flow-choose-topic:focus-visible ~ .flow-layout label[for="flow-choose-topic"],
.flow #flow-choose-edit:focus-visible ~ .flow-layout label[for="flow-choose-edit"],
.flow #flow-choose-release:focus-visible ~ .flow-layout label[for="flow-choose-release"],
.flow .flow-notes a:focus-visible { outline: 2px solid var(--flow-accent); outline-offset: 3px; }
.flow .flow-desk {
  min-width: 0;
  padding: clamp(1.1rem, 2.8vw, 2.75rem);
  border: 1px solid var(--flow-rule);
  background: #fffcf6;
}
.flow .flow-sheet { display: none; }
.flow #flow-choose-topic:checked ~ .flow-layout #flow-topic,
.flow #flow-choose-edit:checked ~ .flow-layout #flow-edit,
.flow #flow-choose-release:checked ~ .flow-layout #flow-release { display: block; }
.flow .flow-folio {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem 1rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--flow-ink);
  color: var(--flow-muted);
  font-size: .875rem;
}
.flow .flow-folio span:first-child { color: var(--flow-accent); font-weight: 700; }
.flow .flow-sheet h3 {
  margin: clamp(1.35rem, 2vw, 1.85rem) 0 .8rem;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", serif;
  font-size: clamp(1.85rem, 3.1vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: -.055em;
}
.flow .flow-lede {
  margin: 0 0 1.4rem;
  color: var(--flow-muted);
  max-width: 39em;
  font-size: 1rem;
  line-height: 1.75;
}
.flow .flow-quote { margin-inline-start: .5em; color: var(--flow-ink); }
.flow .flow-notes, .flow .flow-script { margin: 0; padding: 0; list-style: none; }
.flow .flow-notes > div, .flow .flow-script li {
  display: grid;
  grid-template-columns: 5.1rem minmax(0, 1fr);
  align-items: baseline;
  gap: .5rem;
  padding: .62rem 0;
  border-top: 1px solid var(--flow-rule);
  font-size: 1rem;
  line-height: 1.6;
}
.flow .flow-notes dt, .flow .flow-script time { color: var(--flow-muted); font-size: .875rem; }
.flow .flow-notes dd { margin: 0; }
.flow .flow-notes a { color: inherit; text-decoration: underline; text-underline-offset: .22em; }
.flow .flow-notes a:hover { color: var(--flow-accent); }
.flow .flow-script b { margin-right: .4em; }
@media (max-width: 740px) {
  .flow .flow-layout { grid-template-columns: 1fr; gap: 1.1rem; }
  .flow .flow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow .flow-steps label { display: block; padding: .65rem .25rem .75rem; }
  .flow .flow-steps strong { margin-top: .3rem; font-size: clamp(.875rem, 3.3vw, 1.15rem); }
  .flow .flow-steps small { display: none; }
  .flow .flow-notes > div, .flow .flow-script li { grid-template-columns: 4.1rem minmax(0, 1fr); }
}
