/*! © 2026 Christian Sika | O'tra by SikaHaus LLC | otra-score-option-3 */
/* The score itself: shared page and staff styles. */
@font-face{font-family:"Instrument Sans";src:url("assets/InstrumentSans.ttf") format("truetype");font-weight:400 700;font-stretch:75% 100%;font-display:swap}
/* Jost (variable, 400 to 900) and Noto Music are served from this site; their licences sit beside the files in assets/fonts */
@font-face{font-family:"Jost";src:url("assets/fonts/jost-latin.woff2") format("woff2");font-weight:400 900;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Jost";src:url("assets/fonts/jost-latin-ext.woff2") format("woff2");font-weight:400 900;font-style:normal;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Noto Music";src:url("assets/fonts/noto-music.woff2") format("woff2");font-weight:400;font-style:normal;font-display:block;unicode-range:U+25CC,U+2669-266F,U+1D000-1D0F5,U+1D100-1D245}
html{font-size:calc(100%*var(--k-text,1));scrollbar-color:var(--k-accent,#5F06EA) var(--k-paper,#F5F6F1)}
/* --g is one staff space; everything the staff touches is measured in it */
.t-score{--bg:var(--k-paper,#F5F6F1);--fg:var(--k-ink,#050505);--soft:var(--k-soft,#45424f);--accent:var(--k-accent,#5F06EA);--on-accent:var(--k-paper,#F5F6F1);--focus:var(--k-accent,#5F06EA);
  --rule:rgba(5,5,5,.2);--rule:color-mix(in srgb,var(--fg) 20%,transparent);
  --btn:var(--fg);--on-btn:var(--bg);--btn-hover:var(--accent);--on-btn-hover:var(--on-accent);--field:transparent;--lilac:var(--k-lilac,#C9B8FF);--tint:var(--k-tint,#E7DFFF);
  --display:"Jost","Futura","Avenir Next",sans-serif;--music:"Noto Music","Apple Symbols",serif;
  --text:"Instrument Sans","Helvetica Neue",Arial,sans-serif;--ease:var(--k-ease,cubic-bezier(.16,1,.3,1));
  --rk:var(--k-round,1);--lw:calc(1.05px*var(--k-line,1));--hk:var(--k-hscale,1);--tk:var(--k-time,1);
  --g:calc(clamp(7px,1.4vw,20px)*var(--k-staff,1));--st:clamp(1rem,3vw,3rem);--gut:calc(var(--pad) + var(--g)*4 + clamp(.9rem,2.6vw,2.6rem))}
@supports (width:round(down,1px,1px)){.t-score{--g:round(down,calc(clamp(7px,1.4vw,20px)*var(--k-staff,1)),1px)}}

.t-score main :is(h1,h2,.hub h2,.plans h3,.index h3,.review h3,.cost,.pager a){font-family:var(--display);font-weight:var(--k-hweight,800);text-transform:var(--k-hcase,lowercase);letter-spacing:calc(-.012em + var(--k-htrack,0em));font-variant-ligatures:none;text-wrap:balance}
/* the headline is fitted to its column (--n is the longest line, in characters) and never outgrows the landing page's */
.t-score main h1{font-size:calc(min(5.6rem,10.6vw,76vw/(var(--n)*.5))*var(--hk));line-height:1.02}
.t-score main h2{font-size:calc(clamp(1.9rem,3.3vw,3.3rem)*var(--hk));line-height:1.06}
.t-score main h3{font-size:1.06rem;font-weight:600}
.t-score main .hub h2{font-size:calc(clamp(1.6rem,2.7vw,2.7rem)*var(--hk));line-height:1.06}
.t-score .plans h3{font-size:clamp(1.9rem,3.3vw,3.3rem);line-height:1}
.t-score .index h3{font-size:1.5rem;line-height:1.1;margin-bottom:.8rem}
.t-score .review h3{font-size:1.5rem;line-height:1.1}
.t-score .cost{font-size:clamp(3.2rem,7.4vw,7.4rem);line-height:.9;color:var(--accent)}
.t-score .pager a{font-size:clamp(1.5rem,2.1vw,2.2rem);line-height:1.06}
.t-score .pager small{font-family:var(--text);text-transform:none;letter-spacing:0;font-weight:400}
.t-score .hub a:hover h2{color:var(--accent)}
.t-score :focus-visible{outline-width:2.5px}

/* the staff: five lines in from the left, a clef, whole notes, then the bend into the right margin */
.t-score main{position:relative;overflow:clip}
.t-score .head{overflow:visible;min-height:0;padding-top:calc(var(--st) + var(--g)*9.5);padding-right:var(--gut);padding-bottom:calc(var(--blk)*var(--k-space,1))}
.t-score .blk{padding-right:var(--gut);padding-block:calc(var(--blk)*var(--k-space,1));border-top:0}
@media (min-width:861px){.t-score .blk:not(.wide,.pager){grid-template-columns:minmax(0,4fr) minmax(0,8fr)}}
.t-score .staff{left:0;right:0;top:var(--st);height:calc(var(--g)*10)}
.t-score .staff svg{position:absolute;top:0;height:100%;max-width:none;overflow:visible}
.t-score .staff .bd{right:calc(var(--pad) - var(--g));width:calc(var(--g)*10)}
.t-score .staff .cl{left:var(--pad);width:calc(var(--g)*40)}
.t-score .staff path{fill:none;stroke:var(--fg);stroke-width:var(--lw);vector-effect:non-scaling-stroke}
.t-score .staff .mus{font-family:var(--music);fill:var(--fg)}
.t-score .whole .o{fill:var(--accent)}
.t-score .whole .i{fill:var(--bg)}
/* pages that persuade carry one accent disc under the bend, as the landing page does */
.t-score .staff .disc{position:absolute;right:calc(var(--pad) - var(--g)*.7);top:calc(var(--g)*-.9);width:calc(var(--g)*8.6);aspect-ratio:1;border-radius:50%;background:var(--lilac);scale:var(--k-disc,1)}
/* the piece ends: a final barline where the staff meets the footer */
.t-score main::after{content:"";position:absolute;right:var(--pad);bottom:0;width:calc(var(--g)*4);height:calc(var(--g)*.95);border-top:var(--lw) solid var(--fg);border-bottom:calc(var(--g)*.45) solid var(--fg);pointer-events:none}
/* 404: "a rest, not the end" */
.t-score.p-404 .head::after{content:"\1D13D";position:absolute;right:calc(var(--gut) + 6vw);bottom:.02em;z-index:1;font:400 min(30vw,26rem)/1 var(--music);color:var(--accent);pointer-events:none}

/* blocks: capsules and note heads instead of rules */
.t-score .ticks{display:flex;flex-wrap:wrap;gap:.6rem;border-top:0}
.t-score .ticks li{padding:.5rem 1.05rem;border:1.5px solid var(--fg);border-radius:calc(99px*var(--rk));font-weight:600;font-size:.95rem}
.t-score .index ul{display:flex;flex-wrap:wrap;gap:.5rem}
.t-score .index li{padding:.42rem .95rem;border:1.5px solid var(--fg);border-radius:calc(99px*var(--rk));font-weight:600;font-size:.92rem}
.t-score .steps{border-top:0}
.t-score .steps li{border-bottom:0;align-items:center;padding:.85rem 0}
.t-score .steps .n{display:grid;place-items:center;width:2.7rem;height:1.85rem;border-radius:50%;background:var(--accent);color:var(--on-accent);font:700 .95rem/1 var(--display)}
.t-score .shot{padding:1.6rem 1.6rem 1rem;background:var(--tint);border-radius:calc(1.6rem*var(--rk))}
.t-score .shot img{border-radius:calc(.8rem*var(--rk));border:1.5px solid var(--fg)}
/* a gap waiting for a real capture is a rest */
.t-score .slot{border-radius:calc(1.6rem*var(--rk))}
.t-score .slot p::before{content:"\1D13D";display:block;margin-bottom:.1rem;font:400 2.8rem/1 var(--music);color:var(--accent)}
.t-score .plans{display:grid;gap:.9rem;border-top:0}
.t-score .plans li{border:1.5px solid var(--fg);border-radius:calc(2.4rem*var(--rk));padding:1.5rem 2.2rem}
.t-score .plans li:nth-child(2){background:var(--tint)}
.t-score .field :is(input,select){border-radius:calc(99px*var(--rk));padding-left:1.2rem;padding-right:1.2rem}
.t-score .field select{appearance:none;-webkit-appearance:none;padding-right:2.9rem;background:var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23050505' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 1.25rem center/.8rem auto}
.t-score .field textarea{border-radius:calc(1.4rem*var(--rk));padding:.9rem 1.2rem}
.t-score .preview{border:1.5px solid var(--fg);border-radius:calc(1.4rem*var(--rk))}

/* long documents keep their headings at reading size */
.t-score main :is(.legal,.prose) h2{font-size:clamp(1.5rem,2.1vw,2.2rem);line-height:1.1}
.t-score main :is(.legal,.prose) h3{font-size:1.1rem}

/* one authored moment: the notes land on the staff */
@media (prefers-reduced-motion:no-preference){
  .t-score .staff .whole .in{animation:land calc(.7s*var(--tk)) var(--ease) both;transform-box:fill-box;transform-origin:center}
  .t-score .staff .whole:nth-of-type(2) .in{animation-delay:calc(.09s*var(--tk))}
  .t-score .staff .whole:nth-of-type(3) .in{animation-delay:calc(.18s*var(--tk))}
  .t-score .staff .whole:nth-of-type(4) .in{animation-delay:calc(.27s*var(--tk))}
  .t-score .staff .whole:nth-of-type(5) .in{animation-delay:calc(.36s*var(--tk))}
  .t-score .staff .whole:nth-of-type(6) .in{animation-delay:calc(.45s*var(--tk))}
  @keyframes land{from{transform:translateY(-2px) scale(.2);opacity:0}to{transform:none;opacity:1}}
}

@media (max-width:860px){
  /* on a phone the lines may wrap, so the longest word (--m) sets the limit */
  .t-score main h1{font-size:calc(min(13vw,77vw/(var(--m)*.58))*var(--hk))}
  .t-score .head{padding-top:calc(var(--st) + var(--g)*11)}
  .t-score .steps li{align-items:baseline}
  .t-score .plans li{border-radius:calc(1.8rem*var(--rk));padding:1.4rem}
  .t-score .shot{padding:.8rem}
  .t-score .index{row-gap:2.2rem}
}

.t-score.commerce main{padding-bottom:clamp(3rem,7vw,7rem)}
.t-score.commerce .head{padding-bottom:clamp(1.25rem,3vw,2.75rem)}
.t-score.commerce .blk{padding-top:1.5rem;padding-bottom:1.5rem}
.t-score.commerce .blk .body{max-width:38rem}
.commerce-status:not(:empty){margin:1.1rem 0;line-height:1.5}
.commerce [hidden]{display:none!important}
.commerce button:disabled{opacity:.65;cursor:wait}
.commerce .lines{margin:1.4rem 0}
.commerce .btn,.commerce .go{min-height:2.75rem}
.commerce .fine,.commerce .auth-links{margin-top:1.25rem}
#cart-empty .btn{margin-top:1rem}
#account-email{overflow-wrap:anywhere}
