@font-face {font-family:Editorial;src:url(../kitchen/instrument-serif.ttf) format("truetype");font-style:normal;font-weight:400;font-display:swap}
@font-face {font-family:Editorial;src:url(../kitchen/instrument-serif-italic.ttf) format("truetype");font-style:italic;font-weight:400;font-display:swap}

.edition {
  --display:Editorial,Georgia,serif;
  --display-weight:400;
  --display-spacing:-.03em;
  --rule:color-mix(in srgb,var(--ink) 28%,var(--paper));
  --width:min(88%,71rem);
  background:var(--paper);color:var(--ink);
}
.theme-time-zones {--paper:#f5edda;--ink:#222c39;--muted:#515359;--surface:#e9ddbf;--accent:#814426;color-scheme:light}
.theme-attention {--paper:#101f1c;--ink:#f6f2dd;--muted:#bfcec3;--surface:#203831;--accent:#eac780;color-scheme:dark}
.theme-recall {--paper:#f9f4e6;--ink:#222f56;--muted:#464d62;--surface:#e9e5d7;--accent:#283e98;color-scheme:light}
.theme-chords {--paper:#171526;--ink:#fbf5ef;--muted:#d1c9d9;--surface:#29243d;--accent:#dcc3ff;--display:inherit;--display-weight:800;--display-spacing:-.055em;color-scheme:dark}
.theme-comedy {--paper:#ffdfcd;--ink:#311b1c;--muted:#644344;--surface:#f5c19f;--accent:#812b3b;--display:inherit;--display-weight:800;--display-spacing:-.065em;color-scheme:light}
.edition .site-nav,.edition .site-footer {background:var(--paper);border-color:var(--rule)}
.edition .logo,.edition .nav-link,.edition .footer-links a,.edition .footer-legal {color:var(--ink)}
.edition .site-nav .btn-cta,.edition .cta .btn-cta {background:var(--ink);color:var(--paper)}
.edition .cta .btn-line {border-color:var(--muted);color:var(--ink)}
.edition main {overflow:visible}
.edition main h1,.edition main h2,.edition .story-beat h3,.edition .index-card h3 {
  font-family:var(--display);font-weight:var(--display-weight);letter-spacing:var(--display-spacing);line-height:1.02;color:inherit;
}
.edition main h1 {font-size:clamp(3.1rem,5.9vw,6.15rem);margin:.21em 0 .27em;text-wrap:balance}
.edition main h2 {font-size:clamp(2.4rem,4.3vw,4.3rem);max-width:23ch}
.edition-copy>p,.spread p,.edition .project-section>p,.listen>div>p {
  max-width:48ch;font-size:clamp(1.02rem,1.32vw,1.2rem);line-height:1.55;color:var(--muted)
}
.edition-cover {
  width:min(92%,86rem);margin:auto;display:grid;grid-template-columns:1fr 1.08fr;
  align-items:center;gap:clamp(1.5rem,4vw,4rem);padding:clamp(1.5rem,4vw,3.8rem) 0;
}
.edition-cover figure {margin:0}
.edition-cover img {width:100%;height:auto;display:block}
.edition-topic,.edition summary,.edition .project-link,.edition .project-source-links a {color:var(--accent);text-underline-offset:.24em}
.edition-topic {font-size:.9rem}.edition-action {display:inline-block;margin-top:1.25rem;background:var(--ink);color:var(--paper);padding:.67em 1.1em;border-radius:99rem;text-decoration:none;font-weight:800;font-size:.95rem}
.edition :is(#try,#practice,#second-look,#timetable,#explain) {scroll-margin-top:6rem}
.spread,.edition .listen {width:var(--width);margin:0 auto;display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(1.3rem,6vw,6rem);align-items:center;padding:clamp(2.7rem,6vw,5.5rem) 0}
.spread p,.edition .project-section p {margin-top:.65em}
.edition details {margin-top:1rem}
.edition summary {cursor:pointer;text-decoration:underline;padding:.4em 0}
.edition details p {max-width:52ch;line-height:1.55;margin:.4em 0}
.edition .project-section,.edition .collection-return,.edition .cta {width:var(--width);margin:clamp(2.5rem,5vw,4.5rem) auto}
.edition .project-section {border-top:1px solid var(--rule);padding-top:2rem}
.edition .project-section:has(.project-source-links) h2 {font:800 1rem/1.35 system-ui;letter-spacing:0}
.edition .cta {border-radius:0;padding:clamp(1.35rem,4vw,3rem);background:var(--surface);color:var(--ink)}
.edition .cta h2 {font-size:clamp(2rem,3.4vw,3rem)}
.edition .scroll-story {color:var(--ink);width:var(--width);margin:clamp(3rem,6vw,6rem) auto!important;padding:0!important}
.edition .story-beat h3 {font-size:clamp(1.9rem,3.35vw,3.25rem);margin-bottom:.4em}
.edition .story-beat p {color:var(--muted);max-width:43ch}
.edition .story-intro {margin-bottom:clamp(1.5rem,3vw,2.8rem)}
.edition .story-canvas {background:none;border-radius:0;max-height:none}
.edition .scroll-story.is-scrolling {min-height:calc(155svh + 240px)}

/* The railroad poster opens into a passenger's ticket. */
.theme-time-zones .edition-cover {width:100%;max-width:100rem;gap:0;background:#202e42;color:#fff1d1}
.theme-time-zones .edition-copy {padding-inline:clamp(1.25rem,6vw,6rem);align-self:center}
.theme-time-zones .edition-copy p {color:#e4dfcf}
.theme-time-zones .edition-cover {padding:0;grid-template-columns:.88fr 1.12fr}
.theme-time-zones .edition-cover figure,.theme-time-zones .edition-cover img {height:100%}
.theme-time-zones .edition-cover img {object-fit:cover;min-height:30rem}
.theme-time-zones .edition-topic,.theme-time-zones h1 em {color:#efc887}
.theme-time-zones .edition-action {color:#242e3b;background:#f4dfad}
.ticket,.rail-board {font-family:ui-monospace,monospace}
.ticket {padding:clamp(1.2rem,3vw,2rem);background:#fff9e9;outline:1px solid #c6b693;outline-offset:-.45rem;box-shadow:0 5px 18px #34290712}
.ticket table {border-collapse:collapse;width:100%;text-align:left}
.ticket caption {text-align:left;font:bold 1.45rem/1.1 Georgia,serif;padding:.4rem 0 1rem}
.ticket caption small {display:block;font:normal .78rem/1.7 ui-monospace,monospace}
.ticket th,.ticket td {padding:.65rem 0;border-bottom:1px dotted #b8a988;font-weight:400}
.ticket td,.ticket thead th:last-child {text-align:right}.ticket td {font-weight:800}
.rail-board {background:#263448;padding:1.2rem;color:#fff4d8}
.rail-state {padding:.7rem}.rail-state+.rail-state {border-top:1px solid #65717d}
.rail-state>span,.rail-state small {font-size:.86rem}.rail-state>div {display:flex;align-items:center;gap:.5em;font-size:clamp(1.9rem,4.1vw,4rem);font-variant-numeric:tabular-nums;color:#ffdc91}
.rail-state i {font-style:normal;font-size:.45em}
.is-scrolling .rail-state {display:none;border:0}
[data-scroll-step="0"].is-scrolling .rail-state:first-child,[data-scroll-step="1"].is-scrolling .rail-state:nth-child(2),[data-scroll-step="2"].is-scrolling .rail-state:last-child {display:block}

/* The shelf is the exercise. Keep every handle in frame. */
.theme-attention .edition-cover {grid-template-columns:1.19fr .81fr}
.theme-attention .edition-cover figure {grid-row:1;grid-column:1}
.theme-attention .edition-cover h1 {font-size:clamp(3rem,5.45vw,5.75rem)}
.theme-attention .edition-copy em,.theme-attention .spread em {color:#e8d199}
.second-look {border-block:1px solid var(--rule)}
.lens {overflow:hidden;aspect-ratio:1.5}
.lens img {width:100%;height:auto;display:block;transform-origin:57% 77%}
.is-scrolling .lens img {transition:transform .36s ease}
[data-scroll-step="1"].is-scrolling .lens img {transform:scale(2.65)}

/* A notebook and a ruled recall card. */
.theme-recall .edition-cover {width:min(94%,85rem);grid-template-columns:1fr .94fr;background:#f6dc91;padding:0}
.theme-recall .edition-copy {padding:clamp(1.4rem,3.7vw,3.6rem)}
.theme-recall h1 em,.theme-recall h2 em {color:var(--accent)}
.theme-recall .edition-cover figure,.theme-recall .edition-cover img {height:100%}
.theme-recall .edition-cover img {object-fit:cover}
.notebook blockquote {font:italic clamp(1.35rem,2.3vw,1.9rem)/1.25 Editorial,Georgia,serif;margin:.8em 0 0;color:#263e84}
.index-card {padding:clamp(1.6rem,4vw,3rem);background:repeating-linear-gradient(0deg,#fffdf5 0 1.85rem,#d9e1ee 1.85rem 1.9rem);box-shadow:2px 5px 0 #c9c5b3;transform:rotate(-1deg)}
.edition .index-card h3 {font-size:clamp(1.7rem,3.2vw,2.8rem);line-height:1.12}
.sequence {display:flex}
.sequence-frame {flex:1;aspect-ratio:1;background-size:300% 100%;background-repeat:no-repeat}
.sequence-recall .sequence-frame {background-image:url(recall.webp)}
.sequence-comedy .sequence-frame {background-image:url(comedy.webp)}
.sequence-frame:nth-child(2) {background-position:50% 50%}
.sequence-frame:nth-child(3) {background-position:100% 50%}
.is-scrolling .sequence {display:grid;width:min(100%,48svh)}
.is-scrolling .sequence-frame {grid-area:1/1;opacity:0;transition:opacity .18s ease}
.is-scrolling[data-scroll-step="0"] .sequence-frame:first-child,.is-scrolling[data-scroll-step="1"] .sequence-frame:nth-child(2),.is-scrolling[data-scroll-step="2"] .sequence-frame:last-child {opacity:1}

/* Light falls on the keyboard; note labels remain actual text. */
.theme-chords .edition-cover {display:block;position:relative;isolation:isolate;overflow:hidden;width:100%;max-width:100rem;background:#141321;padding:clamp(2.3rem,5vw,5rem) max(5%,calc((100% - 75rem)/2))}
.theme-chords .edition-copy {max-width:41rem;width:60%}
.theme-chords .edition-cover h1 {font-size:clamp(2.7rem,4.9vw,4.9rem);text-wrap:initial}
.theme-chords h1 em,.theme-chords h1 i {font-style:normal}.theme-chords h1 em {color:#f9cc80}.theme-chords h1 i {color:#d7b8ff}
.theme-chords .edition-cover figure {position:absolute;z-index:-1;inset:0 0 0 38%;mask-image:linear-gradient(to right,transparent,#000 45%)}
.theme-chords .edition-cover img {height:100%;object-fit:cover}
.audio-pair {display:grid;gap:.65rem}
.audio-pair figure {margin:0;background:#29243a;padding:1rem 1.3rem}
.audio-pair figcaption {display:flex;align-items:baseline;justify-content:space-between;gap:.5rem}
.audio-pair strong {font-size:1.3rem;color:#f6d690}.audio-pair figure+figure strong {color:#dbc1fb}
.audio-pair figcaption span {font-family:ui-monospace,monospace}
.audio-pair audio {width:100%;height:38px;margin-top:.6rem}
.piano {position:relative;padding:.6rem;background:#302736;border-radius:.55rem}
.white-keys {display:grid;grid-template-columns:repeat(5,1fr);gap:2px}
.white-keys span,.black-keys i {display:flex;justify-content:center;align-items:flex-end;font:800 1.05rem/1.5 system-ui;padding-bottom:.5rem;border-radius:0 0 .3rem .3rem}
.white-keys span {height:clamp(7rem,13vw,12rem);color:#312b33;background:#f6f0e4}
.black-keys {position:absolute;inset:.6rem .6rem auto;height:52%}
.black-keys i {position:absolute;width:12%;height:100%;background:#231e2a;color:#eee;font-size:.78rem}
.black-keys i:nth-child(1){left:14%}.black-keys i:nth-child(2){left:34%}.black-keys i:nth-child(3){left:74%}
.white-keys span:first-child,.white-keys span:last-child {background:#cfc7da}
[data-scroll-step="1"] .white-keys span:nth-child(3) {background:#ffd58b}
[data-scroll-step="2"] .black-keys i:nth-child(2) {background:#c798fa;color:#261532}

/* The composition starts with a sight gag and ends on the last word. */
.theme-comedy .edition-cover {grid-template-columns:.95fr 1.05fr;gap:0;background:#f5baa9;padding:0;width:min(96%,84rem)}
.theme-comedy .edition-copy {padding:clamp(1.3rem,3.7vw,3.6rem)}
.theme-comedy .edition-cover h1 {font-size:clamp(3rem,5.4vw,5.7rem)}
.theme-comedy h1 em,.theme-comedy h2 em {color:#862e39;font-family:Editorial,Georgia,serif;letter-spacing:-.028em;font-weight:400}
.theme-comedy .edition-cover img {object-fit:contain}
.theme-comedy .story-beat h3 {font:italic clamp(2rem,4.4vw,4.5rem)/1.04 Editorial,Georgia,serif;letter-spacing:-.035em}
.cutting-room {border-block:1px solid var(--rule)}
.cutting-room blockquote {font:400 clamp(1.45rem,2.65vw,2.4rem)/1.15 Editorial,Georgia,serif;margin:.7em 0;color:var(--ink)}
.cutting-room blockquote strong {color:#862e39}
@media(max-width:760px) {
 .edition {--width:min(90%,34rem)}
 .edition main h1,.theme-chords .edition-cover h1,.theme-attention .edition-cover h1,.theme-comedy .edition-cover h1 {font-size:clamp(2.65rem,10.6vw,4rem)}
 .edition main h2 {font-size:clamp(2.1rem,8.2vw,3rem)}
 .edition .edition-cover {grid-template-columns:1fr;gap:1.2rem}
 .edition .edition-cover .edition-copy {width:auto;padding:0}
 .edition .edition-cover figure {grid-row:auto;grid-column:auto}
 .theme-time-zones .edition-cover,.theme-recall .edition-cover,.theme-comedy .edition-cover {padding:1.4rem 5%}
 .theme-time-zones .edition-cover img {min-height:0;aspect-ratio:1.9;height:auto}
 .theme-recall .edition-cover img,.theme-comedy .edition-cover img {height:auto;max-height:37svh;object-fit:contain}
 .theme-chords .edition-cover {display:grid;padding:1.5rem 5% 0}
 .theme-chords .edition-cover figure {position:static;mask-image:none;z-index:auto}
 .theme-chords .edition-cover img {height:auto;aspect-ratio:2.7;object-fit:cover}
 .edition .spread,.edition .listen {grid-template-columns:1fr;gap:1.25rem}
 .edition .story-visual {background:none!important}
 .is-scrolling .sequence {width:min(100%,27svh);margin-inline:auto}
 .edition .lens {max-height:27svh;width:min(100%,40svh);margin:auto}
 .edition .story-beat h3 {font-size:clamp(1.7rem,7.2vw,2.4rem)}
}
