@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f3efe6;
  --sheet: #faf7f0;
  --ink: #302e28;
  --muted: #686256;
  --rule: #cec6b7;
  --rust: #9c442a;
  --rust-soft: #efe2d7;
  --focus: #1d615f;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button, summary, a { touch-action: manipulation; }
button { min-height: 44px; min-width: 44px; }
a { min-width: 44px; color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { color: var(--rust); }
button:disabled { cursor: not-allowed; }
button, a, summary { transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: #dec7b5; }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2, h3 { font-weight: 400; }
svg { display: block; }
.page { max-width: 1320px; margin: 0 auto; padding: 0 64px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 16px; min-height: 44px; padding: 12px 18px; background: var(--ink); color: var(--sheet); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { font-family: var(--mono); font-size: 11px; line-height: 1.5; letter-spacing: .105em; text-transform: uppercase; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .015em; }

.masthead { min-height: 88px; display: flex; align-items: center; gap: 26px; border-bottom: 1px solid var(--rule); }
.wordmark { display: flex; gap: 10px; align-items: center; font: 35px/.9 var(--serif); letter-spacing: -.055em; }
.brand-mark { width: 27px; height: 30px; fill: var(--rust); stroke: var(--rust); stroke-width: 1.4; }
.masthead-note { color: var(--muted); font-size: 12px; padding-left: 25px; border-left: 1px solid var(--rule); }
.header-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.header-links a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 12px; text-decoration: none; }
.header-links a:hover { text-decoration: underline; }
.header-links a span { color: var(--rust); }
.hero { padding: 48px 0 46px; display: grid; grid-template-columns: 1.75fr 1fr; gap: 58px; align-items: end; }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; color: var(--muted); margin-bottom: 22px; }
.small-rule { width: 28px; height: 1px; background: var(--rust); flex-shrink: 0; }
h1 { font-family: var(--serif); font-size: clamp(48px, 5.75vw, 79px); letter-spacing: -.055em; line-height: 1.04; }
h1 em { font-weight: 400; color: var(--rust); letter-spacing: -.06em; }
.hero-note { padding: 0 0 5px 25px; border-left: 1px solid var(--rule); max-width: 350px; }
.hero-refrain { font-family: var(--serif); font-size: 25px; line-height: 1.3; margin-bottom: 12px; letter-spacing: -.025em; }
.hero-note > p:not(.hero-refrain) { font-size: 13px; color: var(--muted); line-height: 1.75; }
.hero-note .simulation-note { margin-top: 17px; font-size: 11px !important; }
.simulation-note strong { font-weight: 500; color: var(--ink); }

.score { scroll-margin-top: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.section-number { color: var(--rust); padding-right: 12px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 12px; border: 1px solid transparent; background: transparent; font-size: 12px; }
.text-button:hover:not(:disabled) { color: var(--rust); background: var(--rust-soft); }
.text-button > span[aria-hidden] { font-size: 21px; line-height: 1; }
#random-scene { margin-right: -12px; }
.movements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.movement { position: relative; display: grid; grid-template-columns: 31px 1fr 16px; gap: 15px; align-items: center; text-align: left; background: transparent; padding: 22px 23px; border: 0; border-right: 1px solid var(--rule); }
.movement:last-child { border-right: 0; }
.movement[aria-pressed="true"] { background: var(--rust-soft); }
.movement[aria-pressed="true"]::after { content: ""; height: 2px; position: absolute; left: 0; right: 0; bottom: -1px; background: var(--rust); }
.movement:hover { background: #eae4d9; }
.movement:focus-visible { z-index: 1; outline-offset: -5px; }
.movement-number { font-family: var(--serif); font-style: italic; font-size: 29px; color: var(--muted); }
.movement[aria-pressed="true"] .movement-number, .movement[aria-pressed="true"] .movement-arrow { color: var(--rust); }
.movement-title { display: block; font-family: var(--serif); font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.movement-motifs { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 6px; }
.movement-arrow { font-size: 18px; color: var(--muted); }
.selection-note { font-size: 11px; text-align: right; color: var(--muted); margin: 8px 0 22px; }
.noscript-note { border: 1px solid var(--rust); padding: 20px; margin-bottom: 24px; }

.sheet { background: var(--sheet); border: 1px solid var(--rule); border-top: 2px solid var(--ink); }
.sheet-heading { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 26px 32px 16px; }
.sheet-heading .eyebrow { color: var(--rust); font-size: 10px; }
.sheet-heading h2 { font-family: var(--serif); font-size: 35px; line-height: 1.1; letter-spacing: -.04em; margin: 7px 0 6px; }
.scene-subtitle { font-size: 12px; color: var(--muted); }
.tempo { flex-shrink: 0; font-family: var(--serif); font-style: italic; font-size: 18px; text-align: right; }
.tempo span { display: block; margin-top: 2px; font-family: var(--mono); font-style: normal; font-size: 10px; color: var(--muted); }
.notation { padding: 8px 32px 0; }
.notation-topline { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); }
.notation-topline .eyebrow { font-size: 9px; }
.staff-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; min-height: 44px; }
.staff-scroll:focus-visible { outline-offset: -3px; }
.staff { width: 100%; min-width: 560px; height: auto; color: var(--ink); }
.staff-line { stroke: var(--rule); stroke-width: 1; }
.staff-bar { stroke: #a99f90; stroke-width: 1; }
.staff-phase { font: 11px var(--mono); fill: var(--muted); }
.staff-empty { font: italic 22px var(--serif); fill: var(--muted); }
.staff-number { font: 11px var(--mono); fill: var(--muted); text-anchor: middle; }
.staff-mark { fill: var(--ink); stroke: var(--ink); stroke-width: 1.5; }
.staff-mark.is-latest { fill: var(--rust); stroke: var(--rust); }
.staff-mark.is-refusal .note-head { fill: var(--sheet); stroke-width: 2; }
.staff-connector { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 3 5; fill: none; }
.notation figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 10px; line-height: 1.5; padding-bottom: 18px; }
.notation-key { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.notation-key i { width: 8px; height: 6px; display: inline-block; border: 1px solid var(--ink); background: var(--ink); border-radius: 50%; transform: rotate(-25deg); }
.notation-key i.refusal-key { background: var(--sheet); margin-left: 8px; }
.conductor { margin: 0 32px; padding: 19px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.next-control { display: flex; gap: 19px; align-items: center; min-width: 0; }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 35px; min-height: 48px; padding: 11px 19px; background: var(--rust); border: 1px solid var(--rust); border-radius: 2px; font-size: 13px; font-weight: 500; color: var(--sheet); }
.primary-button > span[aria-hidden] { font-size: 20px; line-height: 1; }
.primary-button:hover:not(:disabled) { background: #82351e; border-color: #82351e; }
.primary-button:disabled { background: #e8e2d7; border-color: #c4bbaa; color: var(--muted); }
.next-detail { color: var(--muted); font-size: 12px; line-height: 1.5; max-width: 245px; }
.utility-controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 16px; border: 1px solid #a99f90; border-radius: 2px; background: transparent; font-size: 12px; }
.secondary-button:hover:not(:disabled) { border-color: var(--ink); background: var(--paper); }
.secondary-button > span[aria-hidden] { font-size: 16px; }
.reading { display: grid; grid-template-columns: 1.1fr 1fr; gap: 42px; padding: 27px 32px 29px; }
.score-message .eyebrow { font-size: 9px; color: var(--muted); margin-bottom: 9px; }
.notice { font-family: var(--serif); font-size: 21px; line-height: 1.4; letter-spacing: -.015em; }
.phrase-help { font-size: 11px; color: var(--muted); margin-top: 9px; line-height: 1.6; }
.state-readout { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 26px; align-content: start; padding-left: 30px; border-left: 1px solid var(--rule); }
.state-readout dt { font-size: 10px; color: var(--muted); margin-bottom: 3px; }
.state-readout dd { font-family: var(--mono); font-size: 13px; margin: 0; }
#state-phase { color: var(--rust); }
.manual-panel { border-top: 1px solid var(--rule); }
.manual-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; padding: 14px 32px; min-height: 52px; font-size: 12px; }
.manual-panel summary::-webkit-details-marker { display: none; }
.manual-panel summary:hover { background: var(--paper); }
.manual-panel summary:focus-visible { outline-offset: -5px; }
.summary-aside { display: flex; align-items: center; gap: 22px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.disclosure-icon { font-family: var(--sans); font-size: 20px; line-height: 1; color: var(--rust); }
.manual-panel[open] .disclosure-icon { transform: rotate(45deg); }
.manual-content { padding: 2px 32px 24px; }
.manual-content > p { max-width: 640px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.manual-events { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.manual-events button { background: transparent; border: 1px solid var(--rule); border-radius: 2px; padding: 9px 13px; font-size: 12px; }
.manual-events button:hover { border-color: var(--rust); color: var(--rust); background: var(--rust-soft); }

.trace-section { margin: 34px 0 54px; }
.trace-heading { padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.trace-heading > div > p { font-family: var(--serif); font-style: italic; font-size: 16px; margin-top: 6px; color: var(--muted); }
.trace-heading > .mono { color: var(--muted); }
.empty-trace { min-height: 120px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--rule); padding: 22px 26px; }
.empty-trace > span { font: 33px var(--serif); color: var(--rust); }
.empty-trace p { font: 21px/1.5 var(--serif); }
.empty-trace small { display: block; font: 12px/1.6 var(--sans); color: var(--muted); margin-top: 4px; }
.trace-list { margin: 0; padding: 0; list-style: none; max-height: 370px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #a99f90 transparent; border-bottom: 1px solid var(--rule); }
.trace-list:focus-visible { outline-offset: -3px; }
.trace-row { display: grid; grid-template-columns: 40px 170px minmax(0, 1fr); align-items: start; gap: 16px; padding: 17px 20px 17px 12px; border-bottom: 1px solid var(--rule); }
.trace-row:last-child { border-bottom: 0; }
.trace-row:first-child { background: rgba(250, 247, 240, .75); }
.trace-beat { font-family: var(--mono); font-size: 11px; color: var(--muted); padding-top: 5px; }
.trace-action { font-family: var(--serif); font-size: 20px; letter-spacing: -.02em; line-height: 1.4; }
.trace-kind { display: block; font: 9px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 4px; }
.trace-row.is-refusal .trace-kind { color: var(--rust); }
.trace-notice { font-size: 12px; line-height: 1.6; }
.trace-state { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 6px; line-height: 1.7; }
.trace-footnote { font-size: 10px; color: var(--muted); margin-top: 12px; }
.coda { border-top: 1px solid var(--ink); padding: 30px 0 42px; display: grid; grid-template-columns: 1.08fr 1fr 1fr 1fr; gap: 32px; }
.coda-heading .eyebrow { color: var(--muted); font-size: 9px; margin-bottom: 14px; }
.coda h2 { font-family: var(--serif); font-size: 31px; line-height: 1.15; letter-spacing: -.04em; }
.coda h2 em { color: var(--rust); }
.note-number { font-family: var(--serif); font-size: 17px; font-style: italic; color: var(--rust); display: block; margin-bottom: 13px; }
.margin-note h3 { font-family: var(--serif); font-size: 20px; letter-spacing: -.02em; line-height: 1.3; margin-bottom: 10px; }
.margin-note p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.footer { border-top: 1px solid var(--rule); padding: 26px 0 33px; display: flex; justify-content: space-between; gap: 24px; align-items: center; color: var(--muted); }
.footer > p { display: flex; gap: 24px; align-items: center; font-size: 10px; line-height: 1.7; }
.footer-wordmark { color: var(--ink); font: 28px var(--serif); letter-spacing: -.05em; }
.footer a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 11px; text-decoration: none; white-space: nowrap; }
.footer a:hover { text-decoration: underline; }

@media (min-width: 1600px) { .page { padding-inline: 50px; } .hero { padding-block: 60px; } }
@media (max-width: 1100px) {
  .page { padding-inline: 40px; }
  .hero { gap: 32px; grid-template-columns: 1.55fr 1fr; }
  h1 { font-size: clamp(48px, 6vw, 65px); }
  .hero-refrain { font-size: 22px; }
  .movement { padding-inline: 17px; gap: 10px; grid-template-columns: 28px 1fr 12px; }
  .movement-title { font-size: 19px; }
  .conductor { gap: 16px; }
  .next-control { gap: 13px; }
  .next-detail { max-width: 165px; font-size: 11px; }
  .utility-controls { gap: 5px; }
  .coda { gap: 24px; }
}
@media (max-width: 800px) {
  .page { padding-inline: 25px; }
  .masthead { min-height: 76px; }
  .masthead-note { display: none; }
  .hero { gap: 24px; padding-block: 38px; grid-template-columns: 1.35fr 1fr; }
  h1 { font-size: 49px; }
  .hero .eyebrow { font-size: 9px; gap: 8px; }
  .small-rule { width: 15px; }
  .hero-note { padding-left: 19px; }
  .hero-note > p:not(.hero-refrain) { font-size: 12px; }
  .hero-refrain { font-size: 21px; }
  .movement { padding: 18px 13px; grid-template-columns: 20px 1fr; gap: 8px; }
  .movement-number { font-size: 24px; }
  .movement-title { font-size: 18px; }
  .movement-arrow { display: none; }
  .movement-motifs { font-size: 9px; }
  .sheet-heading { padding-inline: 23px; }
  .notation { padding-inline: 23px; }
  .conductor { margin-inline: 23px; align-items: start; }
  .next-control { align-items: start; flex-direction: column; gap: 8px; }
  .next-detail { max-width: 250px; }
  .primary-button { min-width: 174px; }
  .utility-controls { flex-wrap: wrap; justify-content: end; }
  .reading { padding-inline: 23px; gap: 25px; }
  .state-readout { padding-left: 22px; gap: 15px; }
  .manual-panel summary, .manual-content { padding-inline: 23px; }
  .coda { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
  .trace-row { grid-template-columns: 28px 145px minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 600px) {
  .page { padding-inline: 20px; }
  .masthead { min-height: 72px; gap: 12px; }
  .wordmark { font-size: 32px; gap: 7px; }
  .brand-mark { width: 23px; }
  .header-links { gap: 16px; }
  .header-links a { font-size: 11px; gap: 5px; }
  .hero { display: block; padding: 33px 0 30px; }
  .hero .eyebrow { margin-bottom: 20px; font-size: 9px; }
  h1 { font-size: clamp(43px, 10vw, 60px); letter-spacing: -.055em; }
  .hero-note { padding: 0; border: 0; max-width: 430px; margin-top: 24px; }
  .hero-refrain { display: none; }
  .hero-note > p:not(.hero-refrain) { font-size: 13px; line-height: 1.65; }
  .hero-note .simulation-note { margin-top: 12px; font-size: 10px !important; }
  .simulation-note br { display: none; }
  .simulation-note strong { margin-right: 4px; }
  .section-heading { gap: 12px; }
  .section-heading .eyebrow { font-size: 10px; letter-spacing: .065em; }
  .section-number { padding-right: 6px; }
  #random-scene { gap: 5px; font-size: 11px; padding-left: 6px; }
  .movements { grid-template-columns: 1fr; margin-top: 5px; }
  .movement { grid-template-columns: 30px 1fr 20px; padding: 15px 18px; border-right: 0; border-bottom: 1px solid var(--rule); gap: 12px; }
  .movement:last-child { border-bottom: 0; }
  .movement[aria-pressed="true"]::after { top: 0; bottom: 0; right: auto; width: 3px; height: auto; }
  .movement-title { font-size: 22px; }
  .movement-motifs { margin-top: 3px; font-size: 10px; }
  .movement-arrow { display: block; }
  .selection-note { text-align: left; font-size: 10px; margin-bottom: 18px; }
  .sheet-heading { padding: 22px 18px 12px; display: block; }
  .sheet-heading h2 { font-size: 32px; }
  .sheet-heading .eyebrow { font-size: 9px; }
  .scene-subtitle { line-height: 1.65; }
  .tempo { text-align: left; margin-top: 12px; font-size: 15px; }
  .tempo span { display: inline; margin-left: 8px; font-size: 9px; }
  .notation { padding: 8px 18px 0; }
  .notation-topline { gap: 8px; }
  .notation-topline .eyebrow { font-size: 8px; letter-spacing: .06em; }
  .notation-topline .mono { font-size: 9px; }
  .staff-scroll { margin-inline: -5px; }
  .notation figcaption { font-size: 10px; padding-top: 6px; padding-bottom: 16px; }
  .conductor { margin-inline: 18px; display: block; padding-block: 16px; }
  .next-control { flex-direction: row; align-items: center; gap: 14px; }
  .primary-button { gap: 20px; min-width: 144px; padding-inline: 15px; font-size: 12px; }
  .next-detail { font-size: 11px; }
  .utility-controls { justify-content: start; margin-top: 14px; gap: 14px; }
  .utility-controls .text-button { font-size: 12px; }
  .reading { grid-template-columns: 1fr; padding: 22px 18px; gap: 23px; }
  .notice { font-size: 22px; }
  .state-readout { border-left: 0; border-top: 1px solid var(--rule); padding: 18px 0 0; gap: 15px 20px; }
  .manual-panel summary { padding: 13px 18px; font-size: 12px; }
  .summary-aside { font-size: 0; gap: 0; }
  .manual-content { padding-inline: 18px; }
  .manual-events { flex-direction: column; align-items: stretch; }
  .manual-events button { text-align: left; }
  .trace-section { margin-top: 28px; margin-bottom: 36px; }
  .trace-heading { align-items: start; }
  .trace-heading > .mono { font-size: 9px; padding-top: 2px; }
  .trace-heading > div > p { font-size: 14px; }
  .empty-trace { gap: 18px; padding-inline: 10px; }
  .empty-trace p { font-size: 20px; }
  .empty-trace small { font-size: 11px; }
  .trace-row { grid-template-columns: 25px minmax(0, 1fr); gap: 8px 13px; padding: 16px 12px 16px 8px; }
  .trace-action { font-size: 21px; }
  .trace-kind { display: inline; margin-left: 12px; font-size: 8px; }
  .trace-record { grid-column: 2; }
  .trace-notice { font-size: 12px; }
  .trace-state { font-size: 9px; }
  .trace-footnote { font-size: 10px; }
  .coda { grid-template-columns: 1fr; gap: 22px; padding-block: 25px 32px; }
  .coda h2 br { display: none; }
  .coda h2 { font-size: 29px; }
  .coda-heading .eyebrow { margin-bottom: 10px; }
  .margin-note { position: relative; padding-left: 33px; }
  .note-number { position: absolute; left: 0; top: 0; }
  .margin-note h3 { font-size: 21px; margin-bottom: 5px; }
  .margin-note p { font-size: 12px; }
  .footer { display: block; padding-block: 24px; }
  .footer > p { gap: 22px; font-size: 9px; }
  .footer a { margin-top: 13px; }
}
@media (max-width: 360px) {
  .page { padding-inline: 14px; }
  .header-links { gap: 10px; }
  .header-links a { font-size: 10px; }
  .header-links a span { display: none; }
  h1 { font-size: 41px; }
  .hero .eyebrow { font-size: 8px; letter-spacing: .055em; }
  .hero .small-rule { width: 10px; }
  .next-control { flex-direction: column; align-items: stretch; }
  .primary-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .movement[aria-pressed="true"] { border: 2px solid Highlight; }
  .staff-line, .staff-bar, .staff-connector { stroke: CanvasText; }
  .staff-mark, .staff-mark.is-latest { stroke: CanvasText; fill: CanvasText; }
  .staff-mark.is-refusal .note-head { fill: Canvas; }
  .staff-phase, .staff-number, .staff-empty { fill: CanvasText; }
}
