:root {
  color-scheme: light dark;
  --paper: #f2ecde; --panel: #e7dfcd; --rule: #cfc3ac;
  --ink: #1c2629; --dim: #4c565a;
  --water: #a9d3cf; --shore: #1c6a71;
  --alarm: #a52714; --ok: #17603f;
  --testing: #a86900; --building: #1c2629; --editing: #1c855a;
  --reading: #2c68b0; --thinking: #8566bd; --tool: #7d7361;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, P052, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #231f1a; --panel: #2e2922; --rule: #4d4438;
    --ink: #f1e8d8; --dim: #b9ad98;
    --water: #1f4f56; --shore: #72c5c4;
    --alarm: #ff9a80; --ok: #86d3a9;
    --testing: #e0a030; --building: #f1e8d8; --editing: #4fb985;
    --reading: #74abec; --thinking: #b9a1e8; --tool: #a89e8b;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.55 var(--sans); font-variant-numeric: tabular-nums;
}
a { color: inherit; text-decoration-color: var(--shore); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--shore); outline-offset: 2px; border-radius: 4px; }
h1, h2, .fig, .mark, caption { font-family: var(--serif); }
h1, h2, p, figure { margin: 0; }

.bar, main, .foot { width: min(1240px, 100% - 48px); margin-inline: auto; }

.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; border-bottom: 1px solid var(--rule);
}
.mark { font-size: 21px; font-weight: 700; text-decoration: none; }
.bar nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.bar nav a:not(.btn) { text-decoration: none; padding: 12px 0; }
.bar nav a:not(.btn):hover { text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px; border: 1px solid var(--dim); border-radius: 8px;
  background: transparent; color: var(--ink); font: 600 15px/1 var(--sans);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--panel); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--shore); border-color: var(--shore); }
.btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .6; cursor: default; }

.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px;
  padding: 56px 0 64px; align-items: start;
}
h1 { font-size: clamp(36px, 4.3vw, 58px); line-height: 1.04; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
.lede { margin-top: 24px; font-size: 18px; line-height: 1.5; max-width: 34em; }
.acts { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.more { font-size: 15px; padding: 12px 0; }

figcaption, .week .readout, caption + thead th { color: var(--dim); }
figcaption { font-size: 14px; line-height: 1.45; margin-top: 12px; max-width: 46em; }

.week .lanes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.lane {
  appearance: none; border: 0; border-right: 1px solid var(--rule); background: none; color: var(--ink);
  font: 14px/1.3 var(--sans); text-align: left; padding: 8px 6px 8px 8px; min-height: 52px; cursor: pointer;
}
.lane:last-child { border-right: 0; }
.lane:hover { background: var(--panel); }
.lane i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; }
.lane span { display: block; color: var(--dim); font-size: 13px; white-space: nowrap; }
.lane[aria-pressed="false"] { color: var(--dim); }
.lane[aria-pressed="false"] i { background: none !important; box-shadow: inset 0 0 0 1.5px var(--dim); }
.lane[aria-pressed="false"] b { text-decoration: line-through; }
.lane b { font-weight: 500; }

.plot { position: relative; }
.plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.week .plot { min-height: 500px; margin-top: 4px; }
.plot text { font: 13px var(--sans); fill: var(--dim); font-variant-numeric: tabular-nums; }
.plot text.strong { fill: var(--ink); font-weight: 700; }
.plot .hair { stroke: var(--rule); stroke-width: 1; }
.plot .axis { stroke: var(--ink); stroke-width: 1.5; }
.plot .dots { stroke: var(--dim); stroke-width: 1.5; stroke-dasharray: 1.5 4; stroke-linecap: round; }
.plot .water { fill: var(--water); }
.plot .water.pale { opacity: .5; }
.plot .shore { fill: none; stroke: var(--shore); stroke-width: 1.5; stroke-linejoin: round; }
.plot .shore.proj { stroke-dasharray: 2 4; stroke-linecap: round; }
.plot .land { fill: var(--paper); stroke: var(--shore); stroke-width: 1.5; }
.plot .dry { fill: var(--alarm); stroke: none; }
.plot .pick { fill: var(--panel); }
.plot .day { fill: transparent; cursor: pointer; outline: none; }
.plot .day:focus-visible { stroke: var(--shore); stroke-width: 2; }
.plot .sel { fill: none; stroke: var(--ink); stroke-width: 2; pointer-events: none; }
.l0 { fill: var(--testing); } .l1 { fill: var(--building); } .l2 { fill: var(--editing); }
.l3 { fill: var(--reading); } .l4 { fill: var(--thinking); } .l5 { fill: var(--tool); }
.week .readout { min-height: 3em; margin-top: 10px; font-size: 15px; line-height: 1.45; }
.week .readout b { font: 700 17px var(--serif); color: var(--ink); margin-right: 6px; }

@media (prefers-reduced-motion: no-preference) {
  .plot .play { animation: play 1.5s cubic-bezier(.3, .1, .2, 1) both; }
  @keyframes play { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
}

.q {
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 56px;
  padding: 56px 0; border-top: 1px solid var(--rule); align-items: start;
}
.q h2 { font-size: 30px; line-height: 1.15; font-weight: 700; text-wrap: balance; }
.say p { margin-top: 16px; max-width: 36em; }
@media (min-width: 901px) {
  .q:not(.show) .say { position: sticky; top: 24px; }
  .q.show { gap: 32px 56px; }
  .q.show .say { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
  .q.show .say p { margin-top: 6px; max-width: 44em; }
  .q.show .clip { grid-column: 1 / -1; }
}

.pace { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 8px 40px; align-items: start; }
.pace .plot { grid-row: span 2; min-height: 270px; }
.pace figcaption { grid-column: 1 / -1; }
.qhead .left { line-height: 1; }
.qhead .fig { font-size: 56px; font-weight: 700; letter-spacing: -0.01em; }
.qhead .unit { font: italic 21px var(--serif); }
.qhead .land { font: 700 17px/1.3 var(--serif); margin-top: 10px; min-height: 2.6em; }
.qhead .land.out { color: var(--alarm); }
.qhead .sub { color: var(--dim); font-size: 14px; }
.ctl label { display: block; font-size: 15px; font-weight: 600; }
.ctl output { font-weight: 400; color: var(--dim); margin-left: 6px; }
.ctl input[type="range"] { width: 100%; height: 44px; margin: 0; accent-color: var(--shore); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets .btn { font-weight: 500; font-size: 14px; }

.clipbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.seg { display: inline-flex; }
.seg .btn { border-radius: 0; margin-left: -1px; font-weight: 500; min-width: 84px; }
.seg .btn:first-child { border-radius: 8px 0 0 8px; margin-left: 0; }
.seg .btn:last-child { border-radius: 0 8px 8px 0; }
.screen {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden;
  display: grid; place-items: center;
}
.screen video { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 900; background: var(--panel); }
.clip[data-size="phone"] .screen { padding: 24px 0; }
.clip[data-size="phone"] .screen video { width: min(390px, 100%); aspect-ratio: 390 / 780; border-radius: 8px; border: 1px solid var(--rule); }

.tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
caption { text-align: left; font-size: 17px; font-weight: 700; padding-bottom: 8px; }
thead th { font-weight: 400; font-size: 14px; color: var(--dim); }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--rule); }
tbody th { font-weight: 600; width: 44%; }

#join { display: grid; gap: 8px; max-width: 460px; }
#join label { font-size: 15px; font-weight: 600; margin-top: 8px; }
#join .opt { font-weight: 400; color: var(--dim); margin-left: 6px; }
#join input[type="email"], #join textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--dim); border-radius: 8px;
  background: var(--paper); color: var(--ink); font: 16px/1.4 var(--sans);
}
#join textarea { resize: vertical; }
#join .check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 500; cursor: pointer; }
#join .check input { width: 20px; height: 20px; margin: 0; accent-color: var(--shore); flex: none; }
#join [aria-invalid="true"] { border-color: var(--alarm); outline-color: var(--alarm); }
#join button { justify-self: start; margin-top: 8px; min-width: 160px; }
.status { min-height: 1.6em; font-size: 15px; }
.status.err { color: var(--alarm); }
.status.done { font: 700 19px/1.35 var(--serif); }

.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 24px 0 40px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--dim);
}
.foot a { padding: 12px 0; margin: -12px 0; display: inline-block; }

@media (max-width: 900px) {
  .hero, .q { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 40px 0; }
  .hero { padding-top: 32px; }
  .tables { gap: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .bar, main, .foot { width: calc(100% - 32px); }
  .bar nav a:not(.btn) { display: none; }
  .lede { font-size: 17px; }
  .q h2 { font-size: 26px; }
  .week .lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lane:nth-child(3) { border-right: 0; }
  .lane:nth-child(-n+3) { border-bottom: 1px solid var(--rule); }
  .week .plot { min-height: 420px; }
  .pace { grid-template-columns: minmax(0, 1fr); }
  .pace .plot { grid-row: auto; }
  .qhead .fig { font-size: 44px; }
  .tables { grid-template-columns: minmax(0, 1fr); }
  .clip[data-size="phone"] .screen { padding: 0; border: 0; background: none; }
}

.raw { display: inline-block; padding: 12px 0; }
