/*! © 2026 Christian Sika | O'tra by SikaHaus LLC | otra-score-option-3 */
/* One header on every page (DESIGN.md): the logo, the free trial and the menu. The menu opens as a
   full-screen staff at every width, one page to a line, the current page marked by a violet note head. */
:root{--edge:3rem;--nav-accent:var(--k-accent,#5F06EA);--nav-ink:var(--k-ink,#050505);--nav-paper:var(--k-paper,#F5F6F1);--nav-ease:var(--k-ease,cubic-bezier(.16,1,.3,1));
  --nav-line:clamp(4rem,10.5vh,7rem);--nav-word:clamp(2rem,min(7.4vw,8.6vh),5.6rem);--nav-head:clamp(1.35rem,2.3vw,2.3rem)}
@media (max-width:1100px){:root{--edge:2rem}}
@media (max-width:860px){:root{--edge:1.25rem}}

/* the page turns on five lines (after Annnimate's Rows Transition): five bands, one per staff line, sweep in from the left one
   after another, cover the page, then carry on out to the right with the next page behind them. Header, staff and page swap together
   under the cover, so nothing animates on top of it; the new page's own intro waits for the bands to clear (html.vt-in, theme-score.css). */
@view-transition{navigation:auto}
.vt-bands{position:fixed;top:0;left:-100vw;width:100vw;height:100vh;pointer-events:none}
/* each band is paper with one staff line through it and a violet leading edge: the cover reads as the page, and a staff writes across it */
.vt-bands i{position:absolute;left:0;width:100%;height:calc(20% + 1px);background:linear-gradient(to left,var(--nav-accent) 0 3px,transparent 3px),linear-gradient(transparent calc(50% - 1px),var(--nav-ink) calc(50% - 1px) calc(50% + 1px),transparent calc(50% + 1px)),var(--nav-paper)}
.vt-bands i:nth-child(1){top:0;view-transition-name:band-1}
.vt-bands i:nth-child(2){top:20%;view-transition-name:band-2}
.vt-bands i:nth-child(3){top:40%;view-transition-name:band-3}
.vt-bands i:nth-child(4){top:60%;view-transition-name:band-4}
.vt-bands i:nth-child(5){top:80%;view-transition-name:band-5}
/* the old page shows until every band has covered it (0.54 s), the new one from then on; the first band leaves at 0.61 s */
::view-transition-old(root){animation:1.15s linear both vt-out}
::view-transition-new(root){animation:1.15s linear both vt-in}
@keyframes vt-out{0%,49.9%{opacity:1}50%,100%{opacity:0}}
@keyframes vt-in{0%,49.9%{opacity:0}50%,100%{opacity:1}}
/* listed one by one: :is() cannot hold pseudo-elements, and an invalid list drops the whole rule */
::view-transition-old(band-1),::view-transition-old(band-2),::view-transition-old(band-3),::view-transition-old(band-4),::view-transition-old(band-5){display:none}
::view-transition-new(band-1),::view-transition-new(band-2),::view-transition-new(band-3),::view-transition-new(band-4),::view-transition-new(band-5){animation:none}
::view-transition-group(band-1){animation:.95s cubic-bezier(.7,0,.16,1) both vt-band}
::view-transition-group(band-2){animation:.95s cubic-bezier(.7,0,.16,1) .05s both vt-band}
::view-transition-group(band-3){animation:.95s cubic-bezier(.7,0,.16,1) .1s both vt-band}
::view-transition-group(band-4){animation:.95s cubic-bezier(.7,0,.16,1) .15s both vt-band}
::view-transition-group(band-5){animation:.95s cubic-bezier(.7,0,.16,1) .2s both vt-band}
/* `left`, on top of the position the browser gives each band: in to cover, a held beat, out the other side */
@keyframes vt-band{0%{left:0}36%,64%{left:100vw}100%{left:200vw}}
@media (prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}

.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:is(header.top,nav.nav){display:flex;flex-wrap:nowrap;align-items:center;gap:.8rem;padding-inline:var(--edge)}
:is(header.top,nav.nav) > a:first-child{position:relative;z-index:42;margin-right:auto}
:is(header.top,nav.nav) ul{display:flex;gap:0}
:is(header.top,nav.nav) ul > li:not(.trial){display:none}
:is(header.top,nav.nav) ul > li.trial{display:block}
/* at 1024 px and wider the four main pages sit in the header as text links (owner, 2026-12-01); Menu keeps every page */
@media (min-width:1024px){
  :is(header.top,nav.nav):not([data-open]) ul{align-items:center;gap:.15rem}
  :is(header.top,nav.nav):not([data-open]) ul > li:nth-child(-n+4){display:block}
  :is(header.top,nav.nav):not([data-open]) ul > li:nth-child(-n+4) a{display:inline-flex;align-items:center;min-height:2.75rem;padding:0 .85rem;border-radius:99px;font:600 .95rem/1 inherit;color:var(--nav-ink);text-decoration:none;transition:background .3s var(--nav-ease),color .3s var(--nav-ease)}
  :is(header.top,nav.nav):not([data-open]) ul > li:nth-child(-n+4) a{position:relative}
  :is(header.top,nav.nav):not([data-open]) ul > li:nth-child(-n+4) a:hover{color:var(--nav-accent)}
  /* a notehead slides in under the page you point at; on the current page it takes the underline's place */
  :is(header.top,nav.nav):not([data-open]) ul > li:nth-child(-n+4) a[aria-current]:hover{text-decoration-color:transparent}
  :is(header.top,nav.nav):not([data-open]) ul > li:nth-child(-n+4) a::after{content:"";position:absolute;left:50%;bottom:.22rem;width:.62rem;height:.44rem;border-radius:50%;background:var(--nav-accent);transform:translateX(-120%) rotate(-20deg) scale(0);transition:transform .35s var(--nav-ease)}
  :is(header.top,nav.nav):not([data-open]) ul > li:nth-child(-n+4) a:hover::after{transform:translateX(-50%) rotate(-20deg) scale(1)}
  :is(header.top,nav.nav):not([data-open]) ul > li:nth-child(-n+4) a[aria-current]{color:var(--nav-accent);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.4em}
  :is(header.top,nav.nav):not([data-open]) ul > li.trial{margin-left:.6rem}
}

/* the button: five short lines, the menu is a staff too; on a wide screen it says so */
.menu{position:relative;z-index:42;display:inline-flex;align-items:center;justify-content:center;gap:.6rem;flex:none;min-width:2.75rem;height:2.75rem;padding:0 1.1rem;border:1.5px solid var(--nav-ink);border-radius:99px;background:var(--nav-paper);color:var(--nav-ink);font:600 .95rem/1 inherit;cursor:pointer;transition:background .3s var(--nav-ease),color .3s var(--nav-ease)}
.menu:hover{background:var(--nav-ink);color:var(--nav-paper)}
:focus-visible{outline:2px solid var(--nav-accent);outline-offset:3px}
.foot :focus-visible{outline-color:var(--nav-paper)}
.menu .word{font:inherit}
.menu i{display:block;width:1.15rem;height:.72rem;background:repeating-linear-gradient(currentColor 0 1.5px,transparent 1.5px .18rem);transition:transform .35s var(--nav-ease)}
.menu:hover i{transform:scaleX(1.25)}
:is(header.top,nav.nav)[data-open] .menu i{height:1.15rem;background:linear-gradient(45deg,transparent calc(50% - .75px),currentColor calc(50% - .75px) calc(50% + .75px),transparent calc(50% + .75px)),linear-gradient(-45deg,transparent calc(50% - .75px),currentColor calc(50% - .75px) calc(50% + .75px),transparent calc(50% + .75px))}
@media (max-width:860px){.menu{width:2.75rem;padding:0}.menu .word{display:none}}

/* the open menu: a staff across the whole screen, one page to a line */
:is(header.top,nav.nav)[data-open] ul{position:fixed;inset:0;z-index:41;display:flex;flex-wrap:wrap;align-content:flex-start;column-gap:1.8rem;overflow:auto;padding:calc(var(--nav-line)*.9 + 4rem) var(--edge) 2.5rem;background:var(--nav-paper)}
:is(header.top,nav.nav)[data-open] ul > li:not(.trial){display:block}
/* each line crops its note head at the line, so the heads rise from the staff as half notes (owner, 2026-11-30) */
:is(header.top,nav.nav)[data-open] ul > li:not(.trial,.cart-link){flex-basis:calc(100% + var(--edge)*2);clip-path:inset(0);position:relative;height:var(--nav-line);border-bottom:1.5px solid var(--nav-ink);margin-inline:calc(var(--edge)*-1);padding-inline:calc(var(--edge) + var(--nav-head)*1.9) var(--edge)}
:is(header.top,nav.nav)[data-open] ul > li:not(.trial,.cart-link) a{position:absolute;bottom:calc(var(--nav-word)*.2);display:block;font:800 var(--nav-word)/1 "Jost","Futura",sans-serif;letter-spacing:-.025em;text-transform:lowercase;text-decoration:none;color:var(--nav-ink);transition:translate .45s var(--nav-ease),color .3s var(--nav-ease)}
:is(header.top,nav.nav)[data-open] ul > li:not(.trial,.cart-link) a:hover{translate:.6rem 0;color:var(--nav-accent)}
/* every line has a note head on it; the current page's is filled; the pointer fills the one it reaches */
:is(header.top,nav.nav)[data-open] ul > li:not(.trial,.cart-link) a::after{content:"";position:absolute;left:calc(var(--nav-head)*-1.65);bottom:calc(var(--nav-word)*-.2 - var(--nav-head)*.36);width:var(--nav-head);height:calc(var(--nav-head)*.7);border:1.5px solid var(--nav-ink);border-radius:50%;transform:rotate(-20deg);transition:background .3s var(--nav-ease),border-color .3s var(--nav-ease)}
:is(header.top,nav.nav)[data-open] ul > li:not(.trial,.cart-link) a:is([aria-current],:hover,:focus-visible)::after{background:var(--nav-accent);border-color:var(--nav-accent)}
:is(header.top,nav.nav)[data-open] ul > li.cart-link{order:1;display:block;align-self:center;margin-top:2.2rem}
:is(header.top,nav.nav)[data-open] ul > li.cart-link a{font-weight:600;text-decoration:underline;text-underline-offset:.22em;text-decoration-thickness:1.5px}
:is(header.top,nav.nav)[data-open] ul > li.trial{order:2;display:block;margin-top:2.2rem}
@media (max-width:860px){
  :is(header.top,nav.nav)[data-open] ul > li.trial{flex-basis:100%;margin-top:2rem}
  :is(header.top,nav.nav)[data-open] ul > li.trial a{display:flex;justify-content:center;width:100%;min-height:3.25rem}
}
html:has([data-open]){overflow:hidden}
@media (prefers-reduced-motion:no-preference){
  :is(header.top,nav.nav)[data-open] ul > li:not(.trial,.cart-link){animation:nav-line .5s var(--nav-ease) both}
  :is(header.top,nav.nav)[data-open] ul > li:nth-child(3){animation-delay:.04s}:is(header.top,nav.nav)[data-open] ul > li:nth-child(4){animation-delay:.08s}:is(header.top,nav.nav)[data-open] ul > li:nth-child(5){animation-delay:.12s}:is(header.top,nav.nav)[data-open] ul > li:nth-child(6){animation-delay:.16s}
  @keyframes nav-line{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}
}

/* text links carry on along the line: the arrow travels, the underline darkens into the accent */
:is(.go,.pager a,.hub a) svg{transition:transform .35s var(--nav-ease)}
:is(.go,.btn,.pager a,.hub a):hover svg{transform:translateX(8px)}
/* a text link draws a violet line under its words, left to right, while the arrow travels */
.go{position:relative;text-decoration-thickness:1.5px;transition:color .3s var(--nav-ease),text-decoration-color .3s var(--nav-ease)}
.acts a:not([class]){position:relative;font-weight:600;text-decoration:underline;text-underline-offset:.22em;text-decoration-thickness:1.5px}
:is(.go,.acts a:not([class]))::after{content:"";position:absolute;left:0;right:1.6em;bottom:-.2em;height:3px;border-radius:2px;background:var(--nav-accent);transform:scaleX(0);transform-origin:left;transition:transform .38s var(--nav-ease)}
.go:hover{color:var(--nav-accent);text-decoration-color:transparent}
:is(.go,.acts a:not([class])):hover::after{transform:scaleX(1)}
.acts a:not([class])::after{right:0}
/* a text link with an arrow floods a lilac pill behind its words; the arrow travels inside it */
/* action links: a tint pill opens evenly round the words. Its padding is cancelled at rest by an equal negative margin, so the words stay on the
   column; the right side is wider by the arrow's 8 px slide (owner, 2026-12-01) */
:is(.go,.acts a:not([class])){display:inline-flex;align-items:center;gap:.5em;padding:.55rem 1.8rem .55rem 1.3rem;margin:-.55rem -1.8rem -.55rem -1.3rem;border-radius:99px;transition:color .3s var(--nav-ease),text-decoration-color .3s var(--nav-ease),background-color .3s var(--nav-ease)}
.go:hover{background:var(--k-tint,#E7DFFF)}
/* the plan cards' links are buttons already (theme-score.css): they keep their own place in the card */
.t-score .plans .go{margin:.6rem 0 0}
/* a phone's edge is 20 px away: the pill stays inside it */
@media (max-width:600px){:is(.go,.acts a:not([class])){padding:.5rem 1.15rem .5rem .9rem;margin:-.5rem -1.15rem -.5rem -.9rem}.t-score .plans .go{margin:.6rem 0 0}}
.go::after{display:none}
/* the action links take a tint pill under the pointer */
:is(.acts a:not([class])):hover{background:var(--k-tint,#E7DFFF);text-decoration-color:transparent}
.acts a:not([class])::after{display:none}
.acts a:not([class]):hover{color:var(--nav-accent);text-decoration-color:transparent}
.chapters a{position:relative;display:block;padding-block:.2rem;isolation:isolate}
.chapters a::before{content:"";position:absolute;inset:0 -.5rem;z-index:-1;border-radius:.4rem;background:var(--k-tint,#E7DFFF);transform:scaleX(0);transform-origin:left;transition:transform .4s var(--nav-ease)}
.chapters a:hover::before{transform:scaleX(1)}
.chapters a:hover{text-decoration:none}
/* in the footer the line takes the footer's own colour, so the link never vanishes into it */
/* the pill reaches further on the right, so the travelling arrow stays inside it */
.foot .go:hover{background:var(--nav-paper);color:var(--nav-accent);text-decoration-color:transparent}
.foot .go::after{display:none}
/* body and footer links draw a line under their words, left to right; heading links and whole-row links (.hub, .chapters) keep their own treatment */
main :is(p,li,td) a:not([class],:is(h2,h3,h4) a,.hub a,.chapters a){padding-block:.2rem;background:linear-gradient(var(--nav-accent),var(--nav-accent)) 0 100%/0 3px no-repeat;transition:color .3s var(--nav-ease),background-size .4s var(--nav-ease)}
a[href="#top"]{display:inline-block;padding-block:.25rem}
main :is(p,li,td) a:not([class],:is(h2,h3,h4) a,.hub a,.chapters a):hover{color:var(--nav-accent);background-size:100% 3px;text-decoration-color:transparent}
.foot :is(.foot-cols li a,.foot-base a:last-child){background:linear-gradient(currentColor,currentColor) 0 100%/0 2px no-repeat;transition:background-size .4s var(--nav-ease)}
.foot :is(.foot-cols li a,.foot-base a:last-child):hover{text-decoration-color:transparent;background-size:100% 2px}
/* a features row floods with the tint from the left, like a bar being played */
.hub{isolation:isolate}
.hub a{position:relative}
.hub a::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--k-tint,#E7DFFF);transform:scaleX(0);transform-origin:left;transition:transform .5s var(--nav-ease)}
.hub a:hover::before{transform:scaleX(1)}
@media (prefers-reduced-motion:reduce){:is(header.top,nav.nav)[data-open] ul a,:is(header.top,nav.nav)[data-open] ul a::after,.hub a::before,.go,.menu,.menu i{transition:none}}

/* every other pointer target answers too */
:is(header.top,nav.nav) > a:first-child img{transition:translate .35s var(--nav-ease),rotate .35s var(--nav-ease)}
:is(header.top,nav.nav) > a:first-child:hover img{translate:0 -3px;rotate:-4deg}
.foot-base > a:first-child img{transition:translate .35s var(--nav-ease),rotate .35s var(--nav-ease)}
.foot-base > a:first-child:hover img{translate:0 -3px;rotate:-4deg}
.foot-cols li a{display:inline-block;min-width:1.5rem;padding-block:.25rem}
.foot-base a:last-child{display:inline-block;padding-block:.2rem}
main :is(figure a,a:has(> img):not(.hub a)){cursor:zoom-in}
main :is(figure a,a:has(> img):not(.hub a)) img{transition:scale .3s var(--nav-ease),outline-color .2s var(--nav-ease);outline:2px solid transparent;outline-offset:3px}
main :is(figure a,a:has(> img):not(.hub a)):hover img{scale:1.02;outline-color:var(--nav-accent)}
/* a table wider than the phone scrolls in its own frame, with a shadow at the edge that hides columns */
.table-scroll{background:linear-gradient(to right,var(--nav-paper) 30%,rgb(245 246 241/0)) left center/1.6rem 100% no-repeat local,linear-gradient(to left,var(--nav-paper) 30%,rgb(245 246 241/0)) right center/1.6rem 100% no-repeat local,radial-gradient(farthest-side at 0 50%,rgb(5 5 5/.2),transparent) left center/.8rem 100% no-repeat scroll,radial-gradient(farthest-side at 100% 50%,rgb(5 5 5/.2),transparent) right center/.8rem 100% no-repeat scroll}
/* the pager: each link a pill around its own words, padded like the feature rows, Before on the left edge and Next on the right */
.pager a{width:fit-content;padding:1rem clamp(1.25rem,2.2vw,2rem);border-radius:2rem;transition:color .3s var(--nav-ease),background-color .3s var(--nav-ease)}
.pager a + a{justify-self:end}
.pager a{grid-template-columns:auto auto;align-items:center;column-gap:.45em}.pager a small{grid-column:1/-1}  /* the title and its arrow share a line */
.pager a:hover{color:var(--nav-accent);background:var(--k-tint,#E7DFFF)}
@media (prefers-reduced-motion:reduce){:is(header.top,nav.nav) > a:first-child img,main figure a img,.pager a,.go::after{transition:none}}

@media (max-width:600px){
  .prose .table-scroll{background:none}
  .prose table:not(:has(th:nth-child(3))) :is(tbody,tr,td,th),.prose table:not(:has(th:nth-child(3))){display:block;min-width:0}
  .prose table:not(:has(th:nth-child(3))) thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .prose table:not(:has(th:nth-child(3))) tr{padding:.75rem 0;border-bottom:1px solid var(--rule,rgb(5 5 5/.2))}
  .prose table:not(:has(th:nth-child(3))) :is(td,th){padding:.1rem 0;border:0}
  .prose table:not(:has(th:nth-child(3))) td:first-child{font-weight:600}
}

/* the page itself never glides: scripts and focus land at once; a clicked in-page link glides (site.js) */
html:root{scroll-behavior:auto}

/* the manual's chapter list marks the chapter being read */
.chapters a[aria-current]{color:var(--nav-accent);font-weight:600}
.chapters a[aria-current]::before{transform:scaleX(1)}
/* on the account pages the form is the action; the footer keeps its links, not a second call to action */
body.commerce :is(.foot-top,.foot-cols){display:none}
body.commerce .foot{padding-top:1.6rem}
body.commerce .foot-base{border-top:0;padding-top:0}

.pager a:first-child small::before{content:"";display:inline-block;width:1em;height:1em;margin-right:.4em;vertical-align:-.15em;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center/contain no-repeat}

/* the account form is the page's one action: the field and the button on one line, as big as the home call to action */
body.commerce #auth-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.75rem}
body.commerce #auth-form .field{flex:1 1 100%;max-width:30rem}
body.commerce #auth-form .field input{min-height:3.5rem;font-size:1.1rem}
body.commerce #auth-form .btn{display:inline-flex;align-items:center;justify-content:center;min-height:3.5rem;padding-inline:1.9rem;font-size:1.05rem}
@media (max-width:600px){body.commerce #auth-form .btn{flex:1 1 100%}}

@media (max-width:600px){
  /* on a phone the page's drawing is the hero; the clef stays, its notes would run into the drawing */
  .head:has(.cn) .staff > .cl{clip-path:inset(0 75% 0 0)}
  /* the footer keeps every link in a tighter score: shorter rows, the last group on one line */
  .foot-cols{gap:1.4rem 1rem}
  .foot-cols li{padding:0}
  .foot-cols li a{padding-block:.3rem}
  .foot-cols .fh{margin-bottom:.35rem}
  .foot-cols > :last-child{grid-column:1/-1}
  .foot-cols > :last-child ul{display:flex;flex-wrap:wrap;gap:0 1.4rem}
}

/* buttons answer in the site's own motion: a playhead crosses the button and writes the violet in behind it */
.btn{position:relative;isolation:isolate;overflow:hidden}
.btn.btn:hover{background:var(--btn)}
.btn::before,.btn::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;transform:translateX(-101%)}
.btn::before{background:var(--btn-hover);transition:transform .55s cubic-bezier(.45,0,.25,1)}
.btn::after{background:linear-gradient(to left,currentColor 0 2px,transparent 2px);opacity:0}
.btn:hover::before{transform:none}
.btn:hover::after{animation:btn-play .55s cubic-bezier(.45,0,.25,1) both}
@keyframes btn-play{0%{transform:translateX(-101%);opacity:1}85%{opacity:1}100%{transform:none;opacity:0}}
@media (prefers-reduced-motion:reduce){.btn::before{transition:none}.btn:hover::after{animation:none}}
/* the footer is the page's last system: its link columns are bars on one staff, closed by the final barline */
.foot.t-score{--foot-staff:color-mix(in srgb,currentColor 45%,transparent)}
@media (min-width:861px){
.foot.t-score .foot-cols{position:relative;border-top:0;padding-top:calc(28px + 1.6rem)}
.foot.t-score .foot-cols::before{content:"";position:absolute;left:0;right:0;top:0;height:29px;background:repeating-linear-gradient(to bottom,var(--foot-staff) 0 1px,transparent 1px 7px);pointer-events:none}
.foot.t-score .foot-cols > div{position:relative}
.foot.t-score .foot-cols > div + div::before{content:"";position:absolute;top:calc(-28px - 1.6rem);left:calc(clamp(1rem,2.4vw,2.4rem) / -2);width:1px;height:29px;background:var(--foot-staff)}
.foot.t-score .foot-cols::after{content:"";position:absolute;right:0;top:0;width:7px;height:29px;background:linear-gradient(to right,var(--foot-staff) 0 1px,transparent 1px 3px,currentColor 3px)}
}
/* the footer button keeps its own answer, a solid ink fill: a violet wipe would vanish into the violet footer */
.foot .btn::before,.foot .btn::after{content:none}
.foot .btn:hover{text-decoration:none}
