/* Before you call: the margin marker that keeps pace. Pieces are named Notes-*. */

.Notes-open{ padding-block:clamp(1rem,3vh,2rem) var(--measure-band); }
.Notes-openfield{ align-items:center; }
.Notes-title{ grid-column:1 / span 4; grid-row:1; font-size:clamp(2.375rem,1.5rem + 2.6vw,4.5rem); line-height:1.03; margin:0; }
.Notes-sentence{ grid-column:1 / span 3; grid-row:2; font-size:var(--step-1); max-width:30ch; margin:0; }
.Notes-figure{ grid-column:5 / -1; grid-row:1 / span 2; }
.Notes-figure .Drawn-picture{ aspect-ratio:4 / 3; border-radius:58% 42% 46% 54% / 52% 50% 50% 48%; }
.Notes-figure .Drawn-caption{ color:var(--tone-ink); }

.Notes-head{ margin-block-end:clamp(1.2rem,4vh,2.4rem); align-items:end; }
.Notes-ledgertitle{ grid-column:1 / span 5; font-size:var(--step-4); line-height:1.04; margin:0; }
.Notes-ledgerlead{ grid-column:6 / -1; margin:0; font-size:var(--step-0); }

.Notes-ledger{ list-style:none; margin:0; max-width:none; row-gap:clamp(1.4rem,5vh,3rem); }
.Notes-item{ grid-column:1 / -1; display:grid; grid-template-columns:repeat(7,minmax(0,1fr));
  column-gap:var(--measure-seam); align-items:center; margin:0; }
.Notes-marker{ grid-column:1; justify-self:start; width:1.25rem; height:1.25rem; border-radius:50%;
  border:.14rem solid var(--tone-ink); background:var(--tone-ink); transition:background-color .4s var(--measure-ease); }
.Notes-number{ grid-column:2 / span 2; display:grid; place-items:center; aspect-ratio:1.15; max-width:15rem; width:100%;
  font-family:var(--face-display); font-weight:200; font-size:clamp(5rem,12vw,9.5rem); line-height:1;
  transform-origin:left center; transition:transform .5s var(--measure-ease); }
.Notes-item:nth-child(2) .Notes-number{ border-radius:44% 56% 52% 48% / 58% 44% 56% 42%; }
.Notes-item:nth-child(3) .Notes-number{ border-radius:52% 48% 40% 60% / 46% 56% 44% 54%; }
.Notes-text{ grid-column:4 / -1; }
.Notes-text h3{ font-size:var(--step-3); }
.Notes-say{ font-size:var(--step-0); color:var(--tone-ink-soft); max-width:var(--measure-read); }

/* with script and motion allowed, markers start empty and fill as the item passes the middle */
.js .Notes-marker{ background:transparent; }
.js .Notes-item.picked .Notes-marker{ background:var(--tone-ink); }
.js .Notes-item.picked .Notes-number{ transform:scale(1.06); }

.Notes-worry{ align-items:center; }
.Notes-worrytext{ grid-column:1 / span 4; }
.Notes-worrytext h2{ font-size:var(--step-4); line-height:1.04; }
.Notes-fold{ grid-column:5 / -1; }
.Notes-foldpool{ padding:clamp(.8rem,2vw,1.6rem); border-radius:46% 54% 58% 42% / 54% 42% 58% 46%; }
.Notes-foldpool img{ aspect-ratio:4 / 3; object-fit:cover; border-radius:50% 50% 46% 54% / 50% 52% 48% 50%; }

.Notes-strip{ padding-block:clamp(1.6rem,5vh,3rem); }
.Notes-stripline{ grid-column:2 / -1; font-size:var(--step-2); line-height:1.3; max-width:34ch; margin:0; }

.Notes-close{ align-items:center; }
.Notes-keys{ grid-column:1 / span 3; }
.Notes-keys .Drawn-picture{ aspect-ratio:1; border-radius:52% 48% 44% 56% / 48% 54% 46% 52%; }
.Notes-closetext{ grid-column:5 / -1; }
.Notes-closetext h2{ font-size:var(--step-4); line-height:1.04; }
.Notes-dial{ display:inline-block; font-size:var(--step-3); margin-block-start:.6rem; padding-block:.4rem; }

@media (max-width:48rem){
  .Notes-title, .Notes-sentence, .Notes-figure, .Notes-ledgertitle, .Notes-ledgerlead,
  .Notes-worrytext, .Notes-fold, .Notes-stripline, .Notes-keys, .Notes-closetext{ grid-column:1 / -1; grid-row:auto; }
  .Notes-title{ font-size:clamp(2.2rem,10.5vw,3.4rem); }
  .Notes-sentence{ max-width:none; }
  .Notes-ledgertitle, .Notes-worrytext h2, .Notes-closetext h2{ font-size:var(--step-3); }
  .Notes-stripline{ font-size:var(--step-1); }
  .Notes-item{ grid-template-columns:1.6rem 5.5rem minmax(0,1fr); column-gap:.8rem; align-items:start; }
  .Notes-marker{ grid-column:1; margin-top:.5rem; }
  .Notes-number{ grid-column:2; font-size:3.4rem; }
  .Notes-text{ grid-column:3; }
  .Notes-text h3{ font-size:var(--step-2); }
  .Notes-keys{ max-width:18rem; }
}

@media (prefers-reduced-motion:reduce){
  .js .Notes-marker{ background:var(--tone-ink); }
  .js .Notes-item.picked .Notes-number{ transform:none; }
}
