.os-story {
  --os-blue: #1a43b7;
  --os-ink: #142345;
  --os-muted: #475575;
  --os-rule: #c9c8bd;
  margin-block-end: clamp(56px, 7vw, 108px);
  color: var(--os-ink);
}
.os-scene {
  box-sizing: border-box;
  min-inline-size: 0;
  margin: 0;
  border: 0;
  padding: clamp(24px, 4.4vw, 64px);
  background: #dbe4fa;
}
.os-sr, .os-radio {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.os-desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .97fr);
  align-items: center;
  gap: clamp(24px, 4.5vw, 66px);
}
.os-intro h2 {
  max-inline-size: 12ch;
  margin: 0;
  font-size: clamp(2.55rem, 1.3rem + 4vw, 5.2rem);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-display);
  line-height: 1.06;
  text-wrap: balance;
}
.os-intro > p {
  max-inline-size: 34ch;
  margin-block: 20px 0;
  font-size: clamp(1rem, .9rem + .25vw, 1.15rem);
  line-height: 1.48;
  color: var(--os-muted);
}
.os-switch { display: none; }
.os-choice {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  min-block-size: 44px;
  border: 1px solid #8190ad;
  border-radius: 100px;
  padding: 5px clamp(10px, 1.1vw, 17px);
  color: var(--os-ink);
  font-size: .9375rem;
  line-height: 1.4;
  font-weight: var(--weight-semibold);
  cursor: pointer;
}
.os-radio:checked + .os-choice {
  border-color: var(--os-blue);
  background: var(--os-blue);
  color: white;
}
.os-radio:focus-visible + .os-choice {
  outline: 3px solid var(--os-blue);
  outline-offset: 3px;
}
.os-sheet {
  box-sizing: border-box;
  min-inline-size: 0;
  border-block-start: 5px solid var(--os-blue);
  padding: clamp(18px, 2.3vw, 36px);
  background: #fffdf7;
  color: #232b36;
  box-shadow: 5px 6px 0 #a8bbdf;
  transform: rotate(1deg);
}
.os-paper-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  border-block-end: 1px dashed #93999e;
  padding-block-end: 12px;
  font-size: .8125rem;
  line-height: 1.4;
}
.os-paper-head strong { font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.os-product {
  border-block-end: 1px solid var(--os-rule);
  padding-block: clamp(18px, 2.2vw, 32px);
}
.os-product h3 {
  margin: 0;
  font-size: clamp(1.6rem, 1rem + 1.9vw, 2.6rem);
  font-weight: var(--weight-semibold);
  line-height: 1.12;
  letter-spacing: var(--tracking-title);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.os-product p {
  margin-block-start: 8px;
  color: #555e66;
  font-size: .95rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.os-perspective { min-inline-size: 0; padding-block-start: 20px; }
.os-task .os-role-caption {
  margin: 0;
  color: var(--os-blue);
  font-size: .8125rem;
  font-weight: var(--weight-semibold);
  line-height: 1.4;
}
.os-task h4 {
  margin: 6px 0;
  font-size: clamp(1.2rem, .94rem + .8vw, 1.7rem);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-title);
  line-height: 1.22;
  overflow-wrap: anywhere;
}
.os-task > p:last-child { font-size: .95rem; line-height: 1.48; }
.os-facts { margin: 16px 0 0; }
.os-facts > div {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.45fr);
  gap: 10px;
  border-block-start: 1px solid var(--os-rule);
  padding-block: 6px;
  font-size: .875rem;
  line-height: 1.43;
  overflow-wrap: anywhere;
}
.os-facts dt { color: #565d65; }
.os-facts dd { margin: 0; }

/* Without :has(), the printed sheets remain readable one after another. */
@supports selector(:has(*)) {
  .os-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block-start: 26px;
  }
  .os-views { display: grid; }
  .os-perspective {
    grid-area: 1 / 1;
    visibility: hidden;
  }
  .os-desk:has(.os-radio--client:checked) .os-perspective--client,
  .os-desk:has(.os-radio--manager:checked) .os-perspective--manager,
  .os-desk:has(.os-radio--workshop:checked) .os-perspective--workshop {
    visibility: visible;
    animation: var(--os-arrival, none);
  }
}
@media (hover: hover) {
  .os-radio:not(:checked) + .os-choice:hover { background: #c7d6f7; }
}
@media (prefers-reduced-motion: no-preference) {
  .os-story { --os-arrival: os-arrive 190ms ease-out both; }
  .os-choice { transition: background-color 150ms, color 150ms, border-color 150ms; }
}
@keyframes os-arrive {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 690px) {
  .os-scene { padding: clamp(16px, 5vw, 32px); padding-block-end: clamp(25px, 6vw, 40px); }
  .os-desk { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .os-intro h2 { max-inline-size: 16ch; }
  .os-intro > p { margin-block-start: 14px; }
  .os-switch { margin-block-start: 18px; gap: 6px; }
  .os-sheet { justify-self: start; inline-size: min(100%, 33rem); }
}
@media (forced-colors: active) {
  .os-sheet { border: 1px solid CanvasText; border-block-start-width: 4px; }
  .os-radio:checked + .os-choice { border: 3px solid Highlight; }
  .os-radio:focus-visible + .os-choice { outline-color: Highlight; }
}
