:root {
  color-scheme: light;
  --paper: #f5f1ea;
  --ink: #211f1d;
  --red: #a92c20;
  --rule: #c9c2b7;
  --page-pad: clamp(18px, 4vw, 74px);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 1720px; }
a { color: inherit; text-underline-offset: .18em; }
button, summary { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #8e261b; outline-offset: 4px; }
.mast, .controls {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px var(--page-pad);
}
.mast { justify-content: space-between; position: relative; z-index: 2; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 780; text-decoration: none; font-size: 21px; letter-spacing: -.06em; }
.brand img { width: 42px; height: auto; }
.sources summary { padding: 12px 0 12px 8px; font-size: 15px; font-weight: 600; }
.source-list {
  position: absolute; right: var(--page-pad); top: calc(100% - 5px);
  width: min(420px, calc(100% - 2 * var(--page-pad))); max-height: 70vh;
  overflow: auto; padding: 20px 24px; background: #fffdf9;
  border: 1px solid var(--rule); box-shadow: 0 10px 40px #251b151c;
}
.source-list h2 { margin: 0 0 12px; font-size: 21px; }
.source-list ul { list-style: none; padding: 0; margin: 0; }
.source-list li + li { margin-top: 12px; }
.source-list a { font-weight: 680; }
.source-list small { display: block; font-size: 14px; line-height: 1.45; }
.slide {
  display: grid; grid-template-columns: 1.07fr 1fr; gap: clamp(24px, 4.8vw, 84px);
  align-items: center; padding: clamp(24px, 4vh, 56px) var(--page-pad);
  border-bottom: 1px solid var(--rule);
}
.copy { min-width: 0; }
.chapter {
  display: flex; align-items: baseline; gap: .8em; margin-bottom: clamp(16px, 4vh, 42px);
  font-size: clamp(14px, 1.3vw, 21px); color: #575048; font-weight: 600;
}
.chapter span { font-variant-numeric: tabular-nums; color: var(--red); }
.copy h1, .copy h2 {
  margin: 0; font-size: clamp(44px, 5.7vw, 94px); line-height: 1.01; letter-spacing: -.057em;
  text-wrap: balance; font-weight: 720;
}
.copy p, dd {
  font-size: clamp(21px, 2.05vw, 35px); line-height: 1.32; letter-spacing: -.025em;
}
.copy p { max-width: 35ch; margin: clamp(15px, 2.4vh, 32px) 0 0; }
dl { margin: 20px 0 0; }
dl div { margin-top: 12px; }
dt { color: var(--red); font-weight: 680; font-size: clamp(16px, 1.4vw, 23px); }
dd { margin: 2px 0 0; }
.art { min-width: 0; }
.art img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.action, .text-link { display: inline-block; margin-top: 19px; padding-block: 8px; font-weight: 650; }
.action { color: #fff; background: #302b25; text-decoration: none; padding: 14px 19px; }
.action span { margin-left: 9px; }
.text-link { color: var(--red); }
.controls { border-top: 1px solid var(--rule); justify-content: center; }
.controls button { width: 46px; height: 44px; border: 1px solid #8c8275; border-radius: 50%; color: var(--ink); background: transparent; font-size: 23px; }
.controls button:disabled { opacity: .32; cursor: default; }
.controls button:enabled:hover { background: var(--ink); color: var(--paper); }
.progress { flex: 1; max-width: 940px; position: relative; margin-left: 3px; margin-right: 34px; height: 28px; }
.trail { position: absolute; top: 83%; left: 0; right: -32px; height: 1px; background: var(--rule); }
#traveler { position: absolute; bottom: 16%; left: var(--position,0%); width: 32px; height: auto; transform: scaleX(-1); transition: left .28s ease; }
#counter { min-width: 5ch; font-size: 15px; font-variant-numeric: tabular-nums; text-align: center; }
[hidden] { display: none !important; }
body.presenting { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.presenting main { flex: 1; display: grid; align-items: center; }
.presenting .slide { border: 0; }
.presenting .art img { max-height: 70vh; max-height: 70svh; width: auto; max-width: 100%; margin-inline: auto; }
@media (max-width: 700px) {
  .slide { grid-template-columns: 1fr; gap: 18px; padding-block: 20px; }
  .chapter { margin-bottom: 12px; }
  .copy h1, .copy h2 { font-size: clamp(38px, 9vw, 57px); }
  .copy p, dd { font-size: clamp(19px, 4.9vw, 26px); }
  .art img, .presenting .art img { width: 100%; height: clamp(150px, 30vh, 340px); max-height: none; object-position: center; }
  .mast, .controls { padding-block: 5px; }
  .controls { gap: 10px; }
}
@media (max-height: 540px) and (min-aspect-ratio: 4/3) {
  .slide { grid-template-columns: 1.25fr 1fr; padding-block: 10px; gap: 18px; }
  .copy h1, .copy h2 { font-size: clamp(29px, 4vw, 50px); }
  .chapter { margin: 0 0 7px; font-size: 13px; }
  .copy p, dd { font-size: clamp(16px, 2vw, 22px); margin-top: 6px; }
  dl, dl div { margin-top: 6px; }
  .presenting .art img { width: auto; max-height: 59svh; height: auto; }
  .controls, .mast { padding-block: 2px; }
}
@media (prefers-reduced-motion: reduce) { #traveler { transition: none; } }
@page { size: 12.8in 7.2in; margin: 0; }
@media print {
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body, body.presenting, .presenting main { display: block; min-height: 0; }
  .mast, .controls { display: none !important; }
  main .slide, .presenting .slide[hidden] {
    display: grid !important; border: 0; grid-template-columns: 1fr 1fr; gap: .45in;
    padding: .5in; height: 7.2in; break-inside: avoid; break-after: page; background: var(--paper);
  }
  main .slide:last-child { break-after: auto; }
  .chapter { font-size: 16pt; margin-bottom: .22in; }
  .copy h1, .copy h2 { font-size: 46pt; }
  .copy p, dd { font-size: 22pt; }
  .art img, .presenting .art img { width: 100%; height: auto; max-height: none; }
}
#slide-1 h1, #slide-10 .copy h2 { color: #8b261b; }
@media print {
  .chapter::before { content: ""; width: 36pt; height: 22pt; align-self: center; background: url("/logo-dog.png") center / contain no-repeat; }
}
