.casebook {
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.65;
}
.casebook [hidden] { display: none !important; }
.active-cases { margin-bottom: 24px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; }
.active-cases strong { color: var(--ink); }
.active-cases a { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.case-content { padding-top: 48px; padding-bottom: 60px; }
.case-content h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 600; }
.case-content h2 small { font-size: .5em; white-space: nowrap; color: #59585a; }
.case-jumps { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 15px; }
.case-jumps a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.case-year { scroll-margin-top: 88px; }
.case-entry .case-flow { width: 100%; }
.case-flow ol { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 0; margin: 6px 0 0; list-style: none; }
.case-flow li { background: var(--paper); padding: 4px 10px; font-size: 14px; }
.case-flow li + li::before { content: "→"; margin-right: 8px; color: var(--red); }
.case-content > p { max-width: 70ch; }
.case-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; padding: 18px 0; border-block: 1px solid #dedbd8; }
.case-filter label { font-weight: 600; margin: 0; }
.case-filter select { border: 1px solid #858386; padding: 7px 34px 7px 10px; background: white; color: var(--ink); }
.case-filter span, .case-entry figcaption { font-size: 14px; color: #59585a; }
.case-year { display: grid; grid-template-columns: minmax(100px, 16%) minmax(0, 1fr); padding-top: 36px; }
.case-year h3 { font-weight: 600; color: var(--ink); font-size: clamp(23px, 3vw, 34px); }
.case-entries { border-left: 2px solid #dedbd8; padding-left: clamp(18px, 3vw, 38px); }
.case-entry { position: relative; padding-bottom: 28px; scroll-margin-top: 100px; }
.case-entry + .case-entry { border-top: 1px solid #dedbd8; padding-top: 24px; }
.case-entry::before {
  content: ""; position: absolute; width: 12px; height: 12px; top: 5px;
  left: calc(-1 * clamp(18px, 3vw, 38px) - 7px);
  border-radius: 50%; border: 2px solid white; background: var(--red);
}
.case-entry + .case-entry::before { top: 29px; }
.case-client { color: var(--red); font-size: 14px; font-weight: 600; margin: 0; }
.case-entry h4 { font-size: clamp(21px, 3vw, 30px); font-weight: 600; margin: 3px 0 10px; }
.case-copy { max-width: 72ch; }
.case-tech { font-size: 14px; }
.case-tech strong { margin-right: .4em; }
.case-support { background: var(--paper); border-left: 3px solid var(--red); padding: 12px 16px; }
.case-entry figure { width: fit-content; max-width: 100%; margin: 16px 0 0; }
.case-entry img { display: block; max-width: 100%; max-height: 210px; width: auto; border: 1px solid #dedbd8; }
.case-entry figcaption { margin-top: 5px; }
.case-entry summary { color: var(--red); cursor: pointer; font-weight: 600; }
.case-entry dl { margin: 14px 0 0; }
.case-entry dd { margin-bottom: 10px; }
@media (max-width: 600px) {
  .case-year { display: block; }
  .case-entries { margin-left: 5px; }
  .case-filter label { flex-basis: 100%; }
}
