@font-face { font-family: "Lexend Deca"; src: url("/assets/fonts/lexend-deca-nutype.2884176ad4.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Mono"; src: url("/assets/fonts/fira-mono-medium-nutype.b48f1e6649.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Mono"; src: url("/assets/fonts/fira-mono-bold-nutype.b85c5a3224.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
/* Lexend Deca has no arrows: ↗ ↓ ← and their kin come from the Fira Mono Bold file already loaded, so they
   carry the weight of the words around them instead of a fallback font's hairline. */
@font-face { font-family: "NuType Arrows"; src: url("/assets/fonts/fira-mono-bold-nutype.b85c5a3224.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+2190-2199; }
/* The characters of a song title that Lexend Deca does not have (季候風) come from the Japanese's own face, three glyphs
   in a file of their own, so that every engine draws them alike instead of each from its own system font. */
@font-face { font-family: "NuType Song Titles"; src: url("/assets/fonts/yuji-syuku-songs.2e91d82836.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+5019, U+5B63, U+98A8; }
@font-face { font-family: "Yuji Syuku"; src: url("/assets/fonts/yuji-syuku-nutype.f8992b3889.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0020, U+30A4, U+30BF, U+30CB, U+30D7, U+30E5, U+30FC; }
/* NuType human index: Lexend Deca on pastel, with the piano to the left of the patch.
   All text is red #FF0044 (a Display P3 red on wide-gamut screens, see --red), as in the accepted piano-left design; darkest blue #0B1026 is kept for the
   focus ring and the keyboard's edges. (Red on pastel is 3.35:1: WCAG AA for large type
   only, so the small text is below AA; that is the accepted design.) The masthead has no English title: a slim open
   butter-yellow top, then the live Japanese ニュータイプ over an 88-key piano on the left and the supplied
   patch (unchanged) on the right, its foot level with the keyboard's; the legend and Play sit under the
   keyboard alone. The keyboard is as tall as the patch's lower plate, its keys slim piano keys (each
   natural 7.5 times taller than wide, each sharp 58% as wide and 62% as long), so it
   shows a window of whole keys from middle C rather than all 88 at once. The Japanese uses Yuji Syuku, which ships one regular weight; it is
   set at that weight with a 1/32em text stroke, the stroke Chrome's synthesized bold would add, so it
   weighs the same in every engine. Its file gives its line an ascent of 0.88em and a descent of 0.12em, its own
   typographic values, so every engine sets it on the same baseline. Its unicode-range takes in the space, so it is the
   first available font for its line on every system, not the system's own Japanese serif. Its ink, not its em box, spans the piano: Yuji Syuku's side bearings
   are 0.0897em on the left and 0.0246em on the right, so the word is sized to 5.8857 em-widths of the
   column and shifted left by the first bearing. Lexend is spaced by role: the uppercase runs of 14 to 17px
   are tracked +0.04 to +0.06em with the word space pulled in -0.05 to -0.06em; the names, h2 and h1 run
   -0.02 to -0.03em with -0.05em word space. Natural keys are cut from an embroidered piano patch's cream twill and the
   sharps from its red satin fill in red #FF0044, each inside its own black satin border, pressed naturals butter yellow and pressed sharps a neutral near-black, each still showing its stitches; the keyboard's merrowed cream rim is that patch's too. The strip scrolls sideways, snapping to whole naturals, and
   opens on middle C, so all 88 keys play and can be reached. The Japanese and the keyboard sit left of the patch at
   every width above 700px. Only phones stack: the patch centered above the Japanese on its own row, the
   keyboard full width beneath, still as tall as that patch's plate, down to a 96px floor. The piano is
   the only thing that moves.
   The cursor, for mouse and trackpad, is the patch's four-point cross as a small vector in the site's red (hotspot at
   its centre); it falls back to the crosshair, or to the pointer on links and controls. */
:root {
  --ratio: 1.618;
  --space-1: .618rem;
  --space-2: calc(var(--space-1) * var(--ratio));
  --space-3: calc(var(--space-2) * var(--ratio));
  --space-4: calc(var(--space-3) * var(--ratio));
  --space-5: calc(var(--space-4) * var(--ratio));
  --type-heading: calc(1rem * var(--ratio) * var(--ratio));
  --sans: "Lexend Deca", "NuType Arrows", "NuType Song Titles", Arial, sans-serif;
  --mono: "Fira Mono", monospace;
  --ground: #FFEE8C;
  /* The brand red, the one place it is written: text, the sharps and everything else red take it from here. */
  --red: #FF0044;
  --ink: var(--red);
  --focus: #0B1026;
  /* The naturals are the logo patch's white thread at its brightest: under their cloth's shading (see .brand) a
     natural's cloth averages that patch's open white beside it, as the page draws it. Base and shade lie on the
     logo's own line from light thread to shadow, so at every lightness a key's stitches have its warmth; a cooler
     pair read blue against the cream and the butter ground. */
  /* A pressed natural takes the page's butter yellow and a pressed sharp a neutral near-black, a hair
     warm and never blue (--key-sharp-down): as plain against the red as a pressed key can be while its stitches and
     its black border still show, and the two never merge, so the key edges and a pressed sharp over a pressed natural stay
     readable (one colour for both blacked out runs of keys, and the butter sharps vanished among the naturals). */
  /* Pressed, a key keeps its stitches. A sheet only shades, toward its own dark thread. So a pressed sharp's sheet is
     multiplied over its near-black twice (--cloth-2 lays it the second time): lit thread a charcoal, its stitches
     falling toward black. Over the page's yellow the same shade left a pressed natural 18 levels darker than the page.
     So a pressed natural's thread is dyed: --dye is a flat colour screened over a pressed key's sheet (--dye-blend; a
     resting key blends nothing), which takes each channel v to d + (1 - d/255) v, so the thread's shadow moves from
     the sheet's own colour toward the dye and its brightest thread stays where it was. The page's yellow has all the
     red there is, so nothing that darkens red can average it: the dye holds the red at full and the stitches fall in
     green and blue alone, lemon thread down to amber, weighed so that a pressed natural's cloth averages the page's
     yellow as its light adds up. */
  --key-natural: #FFFBF7; --key-natural-down: #FFFE98; --key-natural-down-dye: #FF3000;
  --key-sharp: var(--red); --key-sharp-down: #1C1A1A;
  --key-edge: #0B1026;
  --key-bass: #1B1C1F;   /* the black naturals below A0 (see the end of the piano's rules) */
  --open-top: clamp(24px, 4svh, 48px);
  /* Beside the keyboard the patch takes 46% of the hero's row, as much as the window's height allows (its
     1187/1049 aspect under the top space and the page padding), and never more than 620px, so a wide
     window gets a longer keyboard rather than a bigger clown. */
  --patch-w: clamp(300px, min(calc((100vw - 2 * var(--space-3) - 2 * var(--hero-inset) - var(--gap)) * .46), calc((100svh - 2 * var(--space-3) - var(--open-top)) / 1.1316)), 620px);
  /* The keyboard is exactly as tall as the plate below the clown, pixel-counted on the rendered page: from
     the top edge of the solid white of the plate's rim above the N (.6805 of the patch's height, where half
     the straight run between the corner and the clown's sleeve is solid white; the loose fibres above it
     don't count, and the N's black outline below it is too low) to the very foot of the patch (1.0: the
     image's bottom edge). At the foot the fringe hangs in shadow and reads as part of the plate, so the
     foot takes it in and the patch never hangs below the keyboard; a foot on the solid white or on the
     fringe's stitches sat visibly too high. That is .3615 of the patch's width tall, never under 96px on
     phones.
     Each natural is 7.5 times taller than wide, a little slimmer than a real piano's 6.4, so the keys are
     as wide as that height gives them, and the keyboard shows as many whole naturals as its column holds:
     a window onto the 88 keys that scrolls sideways and opens on middle C, so its left edge is clean and
     the typing keys are in view, an octave lower (C3, C2, C1) as the window widens. */
  --kb-h: calc(var(--patch-w) * var(--hero-logo-scale, 1) * .3615);
  --key-w: calc((var(--kb-h) - 2 * var(--hero-frame, 2px)) / 7.5);
  --gap: clamp(24px, 3vw, 48px);
  /* One gutter: the hero, the index and the footer share this inset, so the piano frame, the list
     numbers and the footer links sit on one left edge at every width. */
  --hero-inset: clamp(0px, calc((100vw - 1200px) / 8), 48px);
}
/* On a wide-gamut screen the red is Display P3 (0.988, 0.180, 0.298), redder than sRGB can show, so it glows. #FF0044
   is that red clipped into sRGB, so a screen or browser without the wide gamut draws exactly the red it always has,
   the same in every engine. Both conditions must hold: a browser that cannot read color() would otherwise lose the red. */
@media (color-gamut: p3) {
  @supports (color: color(display-p3 0 0 0)) {
    :root { --red: color(display-p3 0.988 0.180 0.298); }
  }
}
* { box-sizing: border-box; }
/* Safari lays every line box out a whole number of pixels tall, rounding its line-height down; Chrome and Firefox keep
   the fraction, so a page of fractional line-heights was shorter in Safari. Here every line-height is a whole number of
   pixels, the same in all three: each rule gives its ratio as --lh, and this rule turns it into pixels at the element's
   own font size, rounded to the nearest pixel. Where round() is missing it is the ratio itself. A rule whose font size
   is fluid gives that size as --fs as well, and the line-height is reckoned from it: Firefox steps a fluid font size by
   a fraction of a pixel, and rounding from the stepped size would sometimes put its line a pixel off Chrome's and
   Safari's. --fs is not inherited. */
:root { --lh: 1.618; }
*, ::before, ::after { --fs: initial; line-height: var(--lh) !important; }
@supports (line-height: round(1.5px, 1px)) {
  *, ::before, ::after { line-height: round(calc(var(--lh) * var(--fs, 1em)), 1px) !important; }
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, select { -webkit-tap-highlight-color: transparent; }
html, body, *, *::before, *::after { cursor: crosshair !important; }
@media (hover: hover) and (pointer: fine) {
  html, body, *, *::before, *::after { cursor: url("/assets/nutype-cursor-cross.2ef5056cfe.svg") 16 16, crosshair !important; }
  a, a *, button, select, .key { cursor: url("/assets/nutype-cursor-cross.2ef5056cfe.svg") 16 16, pointer !important; }
  textarea { cursor: text !important; }
}
html, body { background: var(--ground); color: var(--ink); }
body { margin: 0; padding: var(--space-3); min-height: 100vh; font: 600 1rem var(--sans); --lh: 1.618; text-transform: uppercase; font-synthesis: none; }
a { color: inherit; text-underline-offset: .15em; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 4px; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 5px; }
.skip { position: absolute; top: -100px; left: 12px; z-index: 3; background: var(--ground); padding: var(--space-1); }
.skip:focus { top: 6px; }
.keep-case { text-transform: none; }

.masthead { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
/* Nothing in the masthead is reading text: the logo, the keyboard and its frame, the typing legend, Play and the
   song choice, the patch and the site links are looked at or pressed, never copied. None of it selects, so a
   double-click that lands on the keyboard's frame or just off a key picks up no word, a drag across the hero
   highlights nothing, and Select All takes the page's own text only. (The logo and the patch are also marked
   draggable="false" in the pages, so neither drags away as a ghost.) */
.masthead, .skip { user-select: none; -webkit-user-select: none; }
/* Nor does the page's own margin around them: on an iPhone a thumb held on the margin beside the keyboard would
   otherwise start a selection there, which reaches for the nearest text. The page's text is the index and the
   footer, and only they select. */
body { user-select: none; -webkit-user-select: none; }
main, footer { user-select: text; -webkit-user-select: text; }
/* On an iPhone or iPad a long press calls up a menu or a preview: of the logo's link, of the patch (with the words
   on it offered as text to select), of a key held down. The hero is an instrument, so it calls up none; the site
   links under it keep theirs. */
.brand { -webkit-touch-callout: none; }
/* And so that a held key gives the system nothing to select, call up or drag at any zoom, every piece of the hero says
   so itself, its letters and layers included, rather than leaving it to what each engine inherits. */
.brand *, .brand *::before, .brand *::after { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.hero-scene, main { position: relative; isolation: isolate; width: 100%; }
.hero-scene { container-type: inline-size; padding-top: var(--open-top); }
.brand {
  display: grid; width: 100%;
  grid-template-columns: minmax(0, 1fr) var(--patch-w);
  grid-template-rows: 1fr auto auto auto;
  grid-template-areas: "name logo" "keys logo" "legend ." "play .";
  align-items: end; gap: var(--space-2) var(--gap);
  padding-inline: var(--hero-inset);
  margin-bottom: var(--space-1);
}
.brand-copy { grid-area: name; container-type: inline-size; display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-width: 0; color: var(--ink); text-decoration: none; }
.japanese { display: block; margin-left: -0.0897em; font: 400 min(10rem, calc(100cqi / 5.8857)) "Yuji Syuku", serif; --lh: 1; --fs: min(10rem, calc(100cqi / 5.8857)); -webkit-text-stroke: 0.03125em currentColor; letter-spacing: 0; white-space: nowrap; text-transform: none; }
.piano-panel { display: contents; }
.mascot { grid-area: logo; align-self: end; display: block; width: 100%; height: auto; }
nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: var(--space-1) var(--space-3); font: 800 15px var(--sans); --lh: 1.3; }
nav [aria-current] { text-decoration-thickness: 4px; }

.piano-strip { grid-area: keys; min-width: 0; container-type: inline-size; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: manipulation; border: 2px solid transparent; background: var(--ground); }
/* Behind the keys is the page's yellow: the keys cover the strip at rest, so it shows only when the strip is bounced
   past either end, and then it is the page, not a white band. */
/* The frame is its own layer, drawn above the keyboard on the strip's border box: the keys can never paint
   over it, and every engine draws all four sides the same. At an in-between zoom (a resolution that is not a
   whole number of device pixels) a 0.01px radius makes Chrome and Firefox anti-alias it rather than round each
   side to whole device pixels on its own, which left one side a device pixel thicker or thinner. */
.brand > .rim, .brand > .ground, .brand::after { content: ""; grid-area: keys; align-self: end; justify-self: start; box-sizing: border-box; height: var(--kb-h); border: 2px solid var(--key-edge); pointer-events: none; }
@media not ((resolution: 1dppx) or (resolution: 2dppx) or (resolution: 3dppx) or (resolution: 4dppx)) { .brand::after { border-radius: .01px; } }
/* The last natural, C8, has no divider, so the keyboard is a pixel short of 52 keys: scrolled to its end, the
   window then starts on a key's edge like everywhere else. */
.piano { --bw: calc(var(--key-w) * .58); position: relative; display: grid; grid-template-columns: repeat(56, var(--key-w)) minmax(0, 1fr); width: calc(57 * var(--key-w) - 1px); height: calc(var(--kb-h) - 4px); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.piano-strip::-webkit-scrollbar { display: none; }
/* The keys are cut from the embroidered piano patch: its cream twill for the naturals, its red satin fill for the
   sharps, its black satin border around every piece and its merrowed cream rim around the whole keyboard. Each cloth but
   the rim is quilted from the patch's own pixels into a seamless sheet, along the seams that show least and with the patch's
   lighting taken out, big enough that no key shows the same thread twice. A sheet is shade only: one dark thread
   colour whose alpha is how deep the patch's thread sits there, over the key's colour, so a key's brightest thread
   is its colour, the red is the brand's red wherever a screen can show it, and a pressed key keeps its stitches in
   thread of the pressed colour (see the key colours above). The cream's shade is weighed so that a natural's cloth averages the logo patch's open white
   as the page draws it, then given a step more red (a level and a half on a natural's average: a notch warmer than the logo's white, by eye); the red's starts above the satin's lightest threads, so a sharp stays near the brand red.
   The border is the reverse, the satin's sheen in light thread over black.
   Each sheet comes in four sizes. The player picks the one whose threads are nearest the patch's own beside a key
   as wide as ours, and sets --cw so that one bitmap pixel is one device pixel: nothing is resampled, so the cloth
   is as sharp as the screen at 1x, 2x and 3x and every engine draws the same pixels. Each key starts its cloth at
   one of seven places, so no two neighbours are cut from the same spot. Without the player the second size is
   drawn at one bitmap pixel to a CSS pixel. */
.brand { --crease: #050505; --cast: rgb(38 20 12 / .26); --cw: 160px; --fx: 0px; --fy: 0px;
  --cloth-cream: url("/assets/nutype-cloth-cream-2.ee674eae2f.webp"); --cloth-red: url("/assets/nutype-cloth-red-2.e8a2b8af31.webp"); --cloth-band: url("/assets/nutype-cloth-band-2.598ef9d324.webp"); --cloth-merrow: url("/assets/nutype-cloth-merrow-2.f91a0e9605.webp"); }
.brand[data-cloth="1"] { --cloth-cream: url("/assets/nutype-cloth-cream-1.27cbf9a22d.webp"); --cloth-red: url("/assets/nutype-cloth-red-1.43d8b539b9.webp"); --cloth-band: url("/assets/nutype-cloth-band-1.197449c1a8.webp"); --cloth-merrow: url("/assets/nutype-cloth-merrow-1.8520dc5090.webp"); }
.brand[data-cloth="3"] { --cloth-cream: url("/assets/nutype-cloth-cream-3.5e7d4ec851.webp"); --cloth-red: url("/assets/nutype-cloth-red-3.c89153b883.webp"); --cloth-band: url("/assets/nutype-cloth-band-3.69917d1858.webp"); --cloth-merrow: url("/assets/nutype-cloth-merrow-3.ddf2b96e28.webp"); }
.brand[data-cloth="4"] { --cloth-cream: url("/assets/nutype-cloth-cream-4.b985345813.webp"); --cloth-red: url("/assets/nutype-cloth-red-4.4644d1af2d.webp"); --cloth-band: url("/assets/nutype-cloth-band-4.f283c2a012.webp"); --cloth-merrow: url("/assets/nutype-cloth-merrow-4.a0be77fa66.webp"); }
.key:nth-child(7n+3) { --fx: 0px; --fy: 0px; }
.key:nth-child(7n+4) { --fx: -24px; --fy: -32px; }
.key:nth-child(7n+5) { --fx: -48px; --fy: -64px; }
.key:nth-child(7n+6) { --fx: -72px; --fy: -96px; }
.key:nth-child(7n+7) { --fx: -96px; --fy: -128px; }
.key:nth-child(7n+1) { --fx: -120px; --fy: -160px; }
.key:nth-child(7n+2) { --fx: -144px; --fy: -192px; }
.key { display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
.key.white { position: relative; scroll-snap-align: start; --cloth: var(--cloth-cream); --cs: var(--cw); --cloth-colour: var(--key-natural); background: var(--cloth) var(--fx) var(--fy) / var(--cs) auto var(--cloth-colour); background-blend-mode: var(--cloth-blend, normal); border-right: 1px solid var(--key-edge); }
.key.white:last-child { border-right: 0; }
/* The nine keys below A0, C0 to G sharp 0, are a Bösendorfer Imperial's extra bass keys, its naturals finished in black so
   they are not taken for the usual ones; they are the strip's first nine keys. Their cloth is the naturals' own, cut
   in black: the same sheet screened over --key-bass, so its threads catch the light instead of shading it (--key-bass
   is a level short of red, which the sheet's redder shade gives back). */
.key.white:nth-child(-n+9) { --cloth-colour: var(--key-bass); --cloth-blend: screen; }
.key.white.is-down:nth-child(-n+9) { --cloth-colour: var(--key-natural-down); --cloth-blend: normal; --dye: linear-gradient(var(--key-natural-down-dye), var(--key-natural-down-dye)); --dye-blend: screen; }
.key.white:nth-child(-n+9)[data-kbd]::after { color: var(--key-natural); }
.key.white.is-down:nth-child(-n+9)[data-kbd]::after { color: var(--key-edge); }
.key.white[data-edge] { border-right-color: transparent; }   /* a divider at the window's edge (see the player) */
.key.black { position: absolute; top: 0; z-index: 1; width: var(--bw); height: 62%; --cloth: var(--cloth-red); --cs: calc(var(--cw) / 2); --cloth-colour: var(--key-sharp); background: var(--cloth) var(--fx) var(--fy) / var(--cs) auto var(--cloth-colour); }
.key.white.is-down { --cloth-colour: var(--key-natural-down); --dye: linear-gradient(var(--key-natural-down-dye), var(--key-natural-down-dye)); --dye-blend: screen; }
.key.black.is-down { --cloth-colour: var(--key-sharp-down); --cloth-blend: multiply; --cloth-2: var(--cloth); }
.key:focus-visible { outline: 3px solid var(--key-edge); outline-offset: -3px; }
.key.black:focus-visible { outline-color: var(--key-natural); }
/* The typing letters sit on their keys in every layout, sized to the key; every key keeps its note name for
   assistive technology. */
.key[data-kbd]::after { content: attr(data-kbd); position: absolute; left: 0; right: 0; bottom: calc(var(--key-w) * .3); color: var(--key-edge); font: 700 clamp(9px, calc(var(--key-w) * .45), 13px) var(--mono); --lh: 1; --fs: clamp(9px, calc(var(--key-w) * .45), 13px); text-align: center; pointer-events: none; }
.key.black[data-kbd]::after { color: var(--key-natural); }
/* A phone or a tablet has no keys to type on, so there the letters, and the line under the keyboard that explains
   them, wait until a key is pressed on a real keyboard: the player marks the piano and the line then. A pointer
   that is fine and hovers is a desktop, or a tablet with a trackpad attached, and shows them from the start. */
@media (hover: none) and (pointer: coarse) {
  .piano:not([data-keyboard]) .key[data-kbd]::after { content: ""; }
  .piano-legend:not([data-keyboard]) { display: none; }
}
.piano .black[data-w="1"] { left: calc(1 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="2"] { left: calc(2 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="4"] { left: calc(4 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="5"] { left: calc(5 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="6"] { left: calc(6 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="8"] { left: calc(8 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="9"] { left: calc(9 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="11"] { left: calc(11 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="12"] { left: calc(12 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="13"] { left: calc(13 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="15"] { left: calc(15 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="16"] { left: calc(16 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="18"] { left: calc(18 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="19"] { left: calc(19 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="20"] { left: calc(20 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="22"] { left: calc(22 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="23"] { left: calc(23 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="25"] { left: calc(25 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="26"] { left: calc(26 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="27"] { left: calc(27 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="29"] { left: calc(29 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="30"] { left: calc(30 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="32"] { left: calc(32 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="33"] { left: calc(33 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="34"] { left: calc(34 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="36"] { left: calc(36 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="37"] { left: calc(37 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="39"] { left: calc(39 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="40"] { left: calc(40 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="41"] { left: calc(41 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="43"] { left: calc(43 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="44"] { left: calc(44 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="46"] { left: calc(46 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="47"] { left: calc(47 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="48"] { left: calc(48 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="50"] { left: calc(50 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="51"] { left: calc(51 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="53"] { left: calc(53 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="54"] { left: calc(54 * var(--key-w) - var(--bw) / 2); }
.piano .black[data-w="55"] { left: calc(55 * var(--key-w) - var(--bw) / 2); }
/* Where round() exists, the keyboard is a whole number of pixels tall and every natural a whole pixel wide,
   the sharps one even whole-pixel width on whole pixels, so neighbours never differ by a device pixel and the
   keys end exactly on the frame's inner edge in every engine (a fractional height let Safari's scrolling layer
   stop short of the frame, a band that read as a thicker foot). Behind the keys the strip is key-white, so any
   rounding gap an engine leaves at a zoom reads as key, never as frame. Older engines keep the layout above. */
@supports (width: round(1px, 1px)) {
  :root { --key-w: round(down, calc((var(--kb-h) - 2 * var(--hero-frame, 2px)) / 7.5), 1px); }
  .piano { --bw: round(calc(var(--key-w) * .58), 2px); }
  .piano .black[data-w="1"] { left: round(calc(1 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="2"] { left: round(calc(2 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="4"] { left: round(calc(4 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="5"] { left: round(calc(5 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="6"] { left: round(calc(6 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="8"] { left: round(calc(8 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="9"] { left: round(calc(9 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="11"] { left: round(calc(11 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="12"] { left: round(calc(12 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="13"] { left: round(calc(13 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="15"] { left: round(calc(15 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="16"] { left: round(calc(16 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="18"] { left: round(calc(18 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="19"] { left: round(calc(19 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="20"] { left: round(calc(20 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="22"] { left: round(calc(22 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="23"] { left: round(calc(23 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="25"] { left: round(calc(25 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="26"] { left: round(calc(26 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="27"] { left: round(calc(27 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="29"] { left: round(calc(29 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="30"] { left: round(calc(30 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="32"] { left: round(calc(32 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="33"] { left: round(calc(33 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="34"] { left: round(calc(34 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="36"] { left: round(calc(36 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="37"] { left: round(calc(37 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="39"] { left: round(calc(39 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="40"] { left: round(calc(40 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="41"] { left: round(calc(41 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="43"] { left: round(calc(43 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="44"] { left: round(calc(44 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="46"] { left: round(calc(46 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="47"] { left: round(calc(47 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="48"] { left: round(calc(48 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="50"] { left: round(calc(50 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="51"] { left: round(calc(51 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="53"] { left: round(calc(53 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="54"] { left: round(calc(54 * var(--key-w) - var(--bw) / 2), 1px); }
  .piano .black[data-w="55"] { left: round(calc(55 * var(--key-w) - var(--bw) / 2), 1px); }
}

.piano-legend { grid-area: legend; margin: 0; text-align: center; font: 700 12px var(--mono); --lh: 1.5; }
.piano-legend kbd { padding: 0 .35em; border: 1px solid currentColor; font: inherit; }
/* The key caps' corners are Apple's continuous corner at a 3px radius, drawn by the player as a vector path (no
   border-radius and no corner-shape: an engine's own corner is not that curve): the cap's line becomes a layer of
   its own colour on its border box, cut to a ring between two paths. Without the player a cap is a square box. */
.piano-legend kbd[data-cap] { position: relative; border-color: transparent; }
.piano-legend kbd[data-cap]::before { content: ""; position: absolute; left: var(--cap-x); top: var(--cap-y); width: var(--cap-w); height: var(--cap-h); background: currentColor; clip-path: var(--cap); pointer-events: none; }
.piano-play { grid-area: play; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .25em .9em; margin: 0; text-align: center; }
.piano-play[hidden] { display: none; }
.piano-status:empty { display: none; }
.piano-status { flex-basis: 100%; font: 700 12px var(--mono); --lh: 1.3; }
/* Play's line is drawn as the song choice's is, a border 1px under a line box of the same font and height, not an
   underline: both sit on the row's baseline, so the two lines are one line, to the pixel, in every engine. An underline
   sits where each engine puts it from the font, higher than the song choice's border. */
.play-tune { padding: 0 0 1px; border: 0; border-bottom: 2px solid currentColor; border-radius: 0; background: none; color: inherit; font: 800 15px var(--sans); --lh: 1.3; text-transform: uppercase; }
/* Play and Stop are one width, so nothing beside them moves as one becomes the other: the button is a grid of the mark
   and the word, and under them, in a row of no height, the other state unseen (its mark's room, the gap and its word),
   so the button is as wide as the wider of the two. The mark stays where it is; the word follows its own mark by the
   same gap in both. The mark and the word share their baseline, the mark's being its foot, set .105em low (see below). */
.play-tune { display: inline-grid; grid-template-columns: auto 1fr; align-items: baseline; justify-items: start; }
.play-tune::before { grid-area: 1 / 1; position: relative; top: .105em; }
.play-tune::after { content: attr(data-stop); grid-area: 2 / 1 / 3 / 3; height: 0; overflow: hidden; visibility: hidden; padding-left: var(--stop); margin-left: .3885em; }
.play-tune[aria-pressed="true"]::after { content: attr(data-play); padding-left: .88em; }
/* Play's triangle and Stop's square are the shapes the system fonts draw for \25B6 and \25A0 on a Mac, traced into small
   pictures and laid in as masks of the text's colour, so they sit by their box (from .795em above the baseline to .105em
   below) the same way in every engine, and the restart mark, drawn the same way, lines up with them exactly. The word
   starts where it always has: the character's advance and the two spaces that followed it (.3885em). */
/* The marks are centred on the capitals beside them (.70em tall): the triangle and the restart mark, .84em of ink, stand
   about .07em over the capitals and as far under the baseline, and Stop's square, a square looking larger than a
   triangle of its height, is .66em, centred the same way. Each engine sets text and masks on its own device pixels, so
   the offsets (.105em down for the marks, .02em up for the square) are those that even the overhangs out over Chrome,
   Firefox and Safari as measured, within a device pixel or so in each. */
.play-tune::before, .restart-tune::before { content: ""; display: inline-block; width: .88em; height: .9em; vertical-align: -.105em; background: currentColor; }
/* Play's mask also loads Stop's square and the restart mark, parked outside the box, so neither arrives late. */
.play-tune::before { margin-right: .3885em; -webkit-mask: url("/assets/nutype-mark-play.2c93edda21.svg") 0 0 / 100% 100% no-repeat, url("/assets/nutype-mark-stop.0c41797d03.svg") -100em 0 / 1px no-repeat, url("/assets/nutype-mark-back.26343f0dd9.svg") -100em 0 / 1px no-repeat; mask: url("/assets/nutype-mark-play.2c93edda21.svg") 0 0 / 100% 100% no-repeat, url("/assets/nutype-mark-stop.0c41797d03.svg") -100em 0 / 1px no-repeat, url("/assets/nutype-mark-back.26343f0dd9.svg") -100em 0 / 1px no-repeat; }
.play-tune { --stop: calc(.66em * 604 / 461); }
.play-tune[aria-pressed="true"]::before { width: var(--stop); -webkit-mask-image: url("/assets/nutype-mark-stop.0c41797d03.svg"); mask-image: url("/assets/nutype-mark-stop.0c41797d03.svg");
  -webkit-mask-size: var(--stop) calc(.66em * 900 / 461); mask-size: var(--stop) calc(.66em * 900 / 461); -webkit-mask-position: 0 calc(.43em - .33em - .66em * 389 / 461); mask-position: 0 calc(.43em - .33em - .66em * 389 / 461); }
.play-tune:hover { border-bottom-width: 4px; padding-bottom: 0; margin-bottom: -1px; }
/* The song choice is as wide as the title it shows, with its tracking, and the arrow's 1.1em, and a pixel to spare so no
   engine rounds the title into its ellipsis. A select can't size itself that way (every engine sizes one from its widest
   title, and Firefox without the titles' letter-spacing), so it sits in a slot beside a hidden copy of the title it
   shows, and the player gives it the copy's width whenever either changes; without the player it fills the slot. The
   copy hangs from the slot's right edge, so a copy wider than the slot reaches back over Play's place, never off the
   page. Play's line is the keyboard's own width, under it edge to edge (it takes the strip's width and place below), so
   nothing in it reaches past the piano's edges. The slot holds room for the longest title, Entrance of the Gladiators
   (277px of text, 240px at the phones' 13px): it takes the room Play's line has, up to that, so the menu shares Play's
   line at every width. Where the line is narrower (windows 701 to 829px wide, phones under 390px) the titles are set a
   little smaller, all alike, the largest of a few steps at which the longest fits whole on the line (the player gives
   the menu and its hidden copy the size). Each step is 4/3px smaller and takes a line-height 1px shorter: the font's
   ascent and descent (1em and .25em) then leave the title on Play's baseline with its line 1px under the box, as Play's.
   Play stays put whichever song is chosen. The row is centred under the keyboard as if it held the restart mark, Play and the default song's menu, The
   Entertainer (161.75px of text, 140.17px on phones), and a longer title runs on to the right, into the room held for
   it: the row's ::before is as wide as that room beyond The Entertainer's menu, its gap cancelled, and is given room only
   once the slot has all of its own, so where the line is short it shrinks first and Play moves left to make way. */
.piano-play::before { content: ""; order: -1; flex: 1 1 0; max-width: calc(277px - 162.75px); margin-right: -.9em; }
/* Restart: once a song has started (playing, or stopped partway) a button just like Play, with Play's underline and
   the same gap, plays the song again from its top. Its mark is a bar as thick as Play's letters' stems and Play's own
   triangle turned to point back, drawn like Play's (see above): the same height, on the same line, in every engine.
   At rest it keeps its place, unseen and out of reach, so nothing in the row moves as a song starts, stops or starts
   again: Play, the mark and the menu's left edge stay where they are in every state, for every song. */
.restart-tune { padding: 0 0 1px; border: 0; border-bottom: 2px solid currentColor; border-radius: 0; background: none; color: inherit; font: 800 15px var(--sans); --lh: 1.3; cursor: pointer; }
.restart-tune[hidden] { display: inline-block; visibility: hidden; }
.restart-tune:hover { border-bottom-width: 4px; padding-bottom: 0; margin-bottom: -1px; }
.restart-tune::before { width: 1.12em; -webkit-mask: url("/assets/nutype-mark-back.26343f0dd9.svg") 0 0 / 100% 100% no-repeat; mask: url("/assets/nutype-mark-back.26343f0dd9.svg") 0 0 / 100% 100% no-repeat; }
.song-slot { flex: 1000000 1 0; width: calc(277px + 1.1em); min-width: 0; max-width: calc(277px + 1.1em); display: flex; align-items: flex-start; position: relative; font: 800 15px var(--sans); text-transform: uppercase; }
.song-title { position: absolute; top: 0; right: 0; visibility: hidden; pointer-events: none; white-space: pre; padding-right: calc(1.1em + 1px); }
/* The menu's arrow is two half triangles. They sit on whole pixels, and their slants run a hair off the pixel centres,
   so no engine splits the arrow or breaks a tie its own way: it is drawn whole and alike wherever the menu lands. */
.song-choice { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin: 0; padding: 0 1.1em 1px 0; border: 0; border-bottom: 2px solid currentColor; border-radius: 0; background: transparent; color: inherit; font: 800 15px var(--sans); --lh: 1.3; text-transform: uppercase; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%);
  background-position: calc(100% - .45em) 55%, calc(100% - .1em) 55%; background-size: .35em .35em; background-repeat: no-repeat;
  background-position: calc(100% - round(.1em, 1px) - round(.35em, 1px)) round(down, .57em, 1px), calc(100% - round(.1em, 1px)) round(down, .57em, 1px); background-size: round(.35em, 1px) round(.35em, 1px);
  background-image: linear-gradient(45deg, transparent 52.5%, currentColor 52.5%), linear-gradient(-45deg, transparent 52.5%, currentColor 52.5%); }
.song-choice:hover { border-bottom-width: 4px; padding-bottom: 0; margin-bottom: -1px; }
/* 季候風 is drawn in the titles' brush face, Yuji Syuku, which has one weight: at the menu's size on a phone (11.67px)
   its strokes are heavy enough to close the gaps inside 候 and 風. Chosen, it takes a stroke of the page's own ground
   colour, .02em wide, painted over the edges of every line, which thins each stroke by .01em a side and opens the
   gaps, the brush kept. A stroke is painted, not laid out: the menu is as wide as ever and nothing moves. The menu has
   no background of its own in any state (hover and focus change only its line and ring), so its title always sits on
   the ground; the open list is drawn on other backgrounds, so its rows never take the stroke. */
.song-choice:has(> option[value="monsoon"]:checked) { -webkit-text-stroke: .02em var(--ground); }
.song-choice option { -webkit-text-stroke: 0; }

/* Empty layers keep main's stacking; the piano replaced the old barcode paint. */
main { padding-bottom: 100px; padding-inline: var(--hero-inset); }
/* Tracking by role: the small uppercase runs open up a little, with the word space pulled in so the
   gaps don't grow with the letters. Mono text and the big names keep their own spacing. */
nav, .index-end, .play-tune, .song-choice, .song-slot, .song-title, .siblings { letter-spacing: .05em; word-spacing: -.05em; }
.page-intro { letter-spacing: .06em; word-spacing: -.05em; }
.project-stage { letter-spacing: .04em; }
main p:not(.eyebrow):not(.note), label, .crumbs { letter-spacing: .04em; word-spacing: -.06em; }

.page-intro { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); margin: var(--space-2) 0 var(--space-3); }
.page-intro h1 { margin: 0; font: 800 14px var(--sans); --lh: 1.3; }
.page-intro a { font-size: 14px; }
.project-list { list-style: none; margin: 0; padding: 0; }
.project-list a { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-1); padding: 4px 0 7px; color: var(--ink); text-decoration: none; }
/* The documented stage, as in the agent records, at the end of each row. */
.project-stage { justify-self: end; max-width: 15em; font: 700 13px var(--mono); --lh: 1.3; text-align: right; }
.project-number { font: 700 28px var(--mono); --lh: 1; }
.project-number small { font-size: .55em; vertical-align: .25em; margin-right: .1em; }
.project-name { font: 800 clamp(28px, 3.1vw, 44px) var(--sans); --lh: 1.12; --fs: clamp(28px, 3.1vw, 44px); letter-spacing: -.03em; word-spacing: -.05em; overflow-wrap: anywhere; }
.project-list a:hover .project-name, .project-list a:focus-visible .project-name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .07em; }
.index-end { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: var(--space-3) 0; font-weight: 800; }

.note, .eyebrow, footer, dt, dd, code { font-family: var(--mono); font-weight: 500; }
.eyebrow { font: 700 13px var(--mono); --lh: 1.618; }
.eyebrow small { font-size: .75em; vertical-align: .2em; margin-right: .05em; }
.note { font-size: 14px; }
h2 { margin: 0 0 var(--space-3); color: var(--ink); font: 800 clamp(27px, 3.6vw, var(--type-heading)) var(--sans); --lh: 1.2; --fs: clamp(27px, 3.6vw, var(--type-heading)); letter-spacing: -.02em; word-spacing: -.05em; }
strong { font-weight: 800; }
p { margin: var(--space-2) 0; }
label { display: block; margin: var(--space-3) 0 var(--space-1); font-weight: 800; }
textarea { display: block; width: 100%; max-width: 100%; min-height: 220px; field-sizing: content; resize: vertical; padding: var(--space-2) 0; border: 0; border-radius: 0; background: var(--ground); color: var(--ink); font: 600 17px var(--sans); --lh: 1.618; text-transform: none; }
.support { max-width: 960px; margin-top: var(--space-5); padding-bottom: var(--space-4); }
.article { max-width: 960px; padding: var(--space-3) 0 var(--space-5); }
.article h1 { margin: var(--space-3) 0; color: var(--ink); font: 800 clamp(40px, 6vw, 86px) var(--sans); --lh: 1; --fs: clamp(40px, 6vw, 86px); letter-spacing: -.03em; word-spacing: -.05em; overflow-wrap: anywhere; }
.article h2 { margin-top: var(--space-4); }
/* A one-word name never breaks mid-word: where the column is narrower than the word, its heading shrinks with
   the column, and it keeps its size wherever the word fits. --fit is the word's width in ems at the heading's
   weight and tracking, measured in Chromium (7.8936) and rounded up; at this heading's -.03em tracking it is the
   8.014 measured in Chromium and WebKit at -.02em, less twelve letters' .01em. Without container units, the heading
   is sized by the viewport instead: up to 700px the column is the viewport less the page's two side paddings (one
   pixel spared for rounding), and wider the word fits at the heading's own size. Where container units exist, the
   rule after it takes over, so it changes nothing there. */
.article h1.fit { font-size: min(clamp(40px, 6vw, 86px), (100vw - 2 * var(--space-2) - 1px) / var(--fit)); --fs: min(clamp(40px, 6vw, 86px), (100vw - 2 * var(--space-2) - 1px) / var(--fit)); }
@supports (width: 1cqi) and selector(:has(*)) {
  .article:has(> h1.fit) { container-type: inline-size; }
  .article h1.fit { overflow-wrap: normal; font-size: min(clamp(40px, 6vw, 86px), 100cqi / var(--fit)); --fs: min(clamp(40px, 6vw, 86px), 100cqi / var(--fit)); }
}
.fit-nuclearflare { --fit: 7.894; }
.article p { max-width: 60ch; }
/* The neighbouring projects, in the index's order, at the foot of each record. */
.siblings { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-top: var(--space-4); font-weight: 800; }
.siblings a[rel="next"] { margin-left: auto; }
dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: var(--space-2) var(--space-3); margin-top: var(--space-4); }
dt { font-weight: 700; }
dd { margin: 0; overflow-wrap: anywhere; }
code { font: 500 .85em var(--mono); --lh: 1.618; overflow-wrap: anywhere; text-transform: none; }
footer { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); margin-top: var(--space-5); padding-bottom: var(--space-3); padding-inline: var(--hero-inset); font-size: 12px; }

/* Phones: centered patch, then Japanese, full-width piano and controls on separate rows. */
@media (max-width: 700px) {
  :root { --open-top: clamp(16px, 3svh, 32px); --gap: 12px; --patch-w: clamp(160px, 60vw, 400px); --kb-h: max(96px, calc(var(--patch-w) * var(--hero-logo-scale, 1) * .3615)); }
  body { padding: var(--space-2); }
  .masthead { margin-bottom: var(--space-3); }
  .brand { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto auto; grid-template-areas: "logo" "name" "keys" "legend" "play"; }
  .mascot { width: var(--patch-w); justify-self: center; }
  .brand-copy { align-items: flex-start; }
  /* The Japanese's line is its font-size rounded to a whole pixel (see --lh), which can be up to half a pixel short of
     the font-size. In this one column its box is at least the font-size tall: a floor, not a height. */
  .japanese { min-height: 1em; }
  /* On phones the stage goes under the name, in the name's column. */
  .project-stage { grid-column: 2; justify-self: start; max-width: none; font-size: 11px; text-align: left; }
  .play-tune, .song-choice, .song-slot { font-size: 13px; }
  .song-slot { width: calc(240px + 1.1em); max-width: calc(240px + 1.1em); }
  .piano-play::before { max-width: calc(240px - 141.17px); }
  .restart-tune { font-size: 13px; }
  nav { width: 100%; font-size: 13px; gap: var(--space-1) var(--space-2); }
  .page-intro { gap: var(--space-1); }
  .page-intro h1, .page-intro a { font-size: 12px; }
  .project-list a { grid-template-columns: 62px minmax(0, 1fr); align-items: baseline; gap: 1px var(--space-1); padding: 5px 0 8px; }
  .project-number { font-size: 23px; }
  .project-name { font-size: clamp(23px, 6.2vw, 32px); --fs: clamp(23px, 6.2vw, 32px); --lh: 1.15; }
  .index-end { font-size: 14px; }
  textarea { min-height: 380px; font-size: 16px; }
  dl { grid-template-columns: 14ch minmax(0, 1fr); font-size: 13px; }
}

/* Composition values are scoped to the two hero arrangements (the private editor on the composition preview):
   desktop is the side-by-side hero above 700px, phone is 700px and under. The Japanese keeps its ink sizing
   (5.8857 em-widths) under the editor's scale. Their fallbacks retain
   the responsive composition; print is unchanged. */
@media screen and (min-width: 701px) {
  .brand { grid-template-columns: minmax(0, 1fr) calc(var(--patch-w) * var(--hero-logo-scale, 1)); column-gap: calc(var(--gap) * var(--hero-logo-gap, 1)); }
  .hero-scene { padding-top: calc(var(--open-top) * var(--hero-top-scale, 1)); }
  .brand {
    /* Close extra piano drop progressively; at -100% only the font-sized ink allowance remains. */
    --hero-group-y: max(var(--hero-japanese-y, 0px), calc(-1 * var(--open-top) * var(--hero-top-scale, 1)));
    --hero-drop: calc(var(--hero-piano-y, 0px) * (1 + min(0, var(--hero-name-gap, 1))));
    --hero-shift: calc(var(--hero-group-y) + var(--hero-drop));
    padding-bottom: max(0px, var(--hero-shift));
  }
  .brand-copy { position: relative; top: var(--hero-group-y); z-index: 1; }
  .japanese { font-size: calc(min(10rem, 100cqi / 5.8857) * var(--hero-japanese-scale, 1)); --fs: calc(min(10rem, 100cqi / 5.8857) * var(--hero-japanese-scale, 1)); }
  .piano-strip {
    width: clamp(60%, var(--hero-piano-width, 100%), 100%);
    position: relative;
    left: calc((100% - clamp(60%, var(--hero-piano-width, 100%), 100%)) * var(--hero-piano-align, 0));
    top: var(--hero-shift); z-index: 2;
    /* Percentages here resolve against the text column, even when the piano is narrower. */
    margin-top: calc(var(--space-2) * (max(0, var(--hero-name-gap, 1)) - 1) + min(0, var(--hero-name-gap, 1)) * (min(10rem, 100% / 5.8857) * var(--hero-japanese-scale, 1) * .09 + 1px));
    border-width: var(--hero-frame, 2px);
  }
  /* The frame layer follows the strip's box exactly. */
  .brand > .rim, .brand > .ground, .brand::after {
    width: clamp(60%, var(--hero-piano-width, 100%), 100%);
    height: calc((var(--kb-h) - 2 * var(--hero-frame, 2px)) * var(--hero-key-height, 1) + 2 * var(--hero-frame, 2px));
    position: relative;
    left: calc((100% - clamp(60%, var(--hero-piano-width, 100%), 100%)) * var(--hero-piano-align, 0));
    top: var(--hero-shift); z-index: 3;
    margin-top: calc(var(--space-2) * (max(0, var(--hero-name-gap, 1)) - 1) + min(0, var(--hero-name-gap, 1)) * (min(10rem, 100% / 5.8857) * var(--hero-japanese-scale, 1) * .09 + 1px));
    border-width: var(--hero-frame, 2px);
  }
  .piano { height: calc((var(--kb-h) - 2 * var(--hero-frame, 2px)) * var(--hero-key-height, 1)); }
  .key.white { border-right-width: var(--hero-key-edge, 1px); }
  .key.white:last-child { border-right-width: 0; }
  .piano-play { width: clamp(60%, var(--hero-piano-width, 100%), 100%); position: relative; left: calc((100% - clamp(60%, var(--hero-piano-width, 100%), 100%)) * var(--hero-piano-align, 0)); top: var(--hero-shift); z-index: 2; margin-top: calc(var(--space-2) * (var(--hero-play-gap, 1) - 1)); }
  .play-tune { border-bottom-width: var(--hero-control-line, 2px); }
  .song-choice { border-bottom-width: var(--hero-control-line, 2px); }
  .play-tune:hover { border-bottom-width: calc(var(--hero-control-line, 2px) + 2px); }
  .song-choice:hover { border-bottom-width: calc(var(--hero-control-line, 2px) + 2px); }
  .piano-legend { position: relative; top: var(--hero-shift); z-index: 2; margin-top: calc(var(--space-2) * (var(--hero-hint-gap, 1) - 1)); }
  .piano-legend kbd { border-width: var(--hero-hint-line, 1px); }
}
@media screen and (max-width: 700px) {
  .mascot { width: calc(var(--patch-w) * var(--hero-logo-scale, 1)); max-width: 100%; }
  .brand-copy { margin-top: calc(var(--space-2) * (var(--hero-logo-gap, 1) - 1)); }
  .hero-scene { padding-top: calc(var(--open-top) * var(--hero-top-scale, 1)); }
  .brand {
    /* Close extra piano drop progressively; at -100% only the font-sized ink allowance remains. */
    --hero-group-y: max(var(--hero-japanese-y, 0px), calc(-1 * var(--open-top) * var(--hero-top-scale, 1)));
    --hero-drop: calc(var(--hero-piano-y, 0px) * (1 + min(0, var(--hero-name-gap, 1))));
    --hero-shift: calc(var(--hero-group-y) + var(--hero-drop));
    padding-bottom: max(0px, var(--hero-shift));
  }
  .brand-copy { position: relative; top: var(--hero-group-y); z-index: 1; }
  .japanese { font-size: calc(min(10rem, 100cqi / 5.8857) * var(--hero-japanese-scale, 1)); --fs: calc(min(10rem, 100cqi / 5.8857) * var(--hero-japanese-scale, 1)); }
  .piano-strip {
    width: clamp(60%, var(--hero-piano-width, 100%), 100%);
    position: relative;
    left: calc((100% - clamp(60%, var(--hero-piano-width, 100%), 100%)) * var(--hero-piano-align, 0));
    top: var(--hero-shift); z-index: 2;
    /* Percentages here resolve against the text column, even when the piano is narrower. */
    margin-top: calc(var(--space-2) * (max(0, var(--hero-name-gap, 1)) - 1) + min(0, var(--hero-name-gap, 1)) * (min(10rem, 100% / 5.8857) * var(--hero-japanese-scale, 1) * .09 + 1px));
    border-width: var(--hero-frame, 2px);
  }
  /* The frame layer follows the strip's box exactly. */
  .brand > .rim, .brand > .ground, .brand::after {
    width: clamp(60%, var(--hero-piano-width, 100%), 100%);
    height: calc((var(--kb-h) - 2 * var(--hero-frame, 2px)) * var(--hero-key-height, 1) + 2 * var(--hero-frame, 2px));
    position: relative;
    left: calc((100% - clamp(60%, var(--hero-piano-width, 100%), 100%)) * var(--hero-piano-align, 0));
    top: var(--hero-shift); z-index: 3;
    margin-top: calc(var(--space-2) * (max(0, var(--hero-name-gap, 1)) - 1) + min(0, var(--hero-name-gap, 1)) * (min(10rem, 100% / 5.8857) * var(--hero-japanese-scale, 1) * .09 + 1px));
    border-width: var(--hero-frame, 2px);
  }
  .piano { height: calc((var(--kb-h) - 2 * var(--hero-frame, 2px)) * var(--hero-key-height, 1)); }
  .key.white { border-right-width: var(--hero-key-edge, 1px); }
  .key.white:last-child { border-right-width: 0; }
  .piano-play { width: clamp(60%, var(--hero-piano-width, 100%), 100%); position: relative; left: calc((100% - clamp(60%, var(--hero-piano-width, 100%), 100%)) * var(--hero-piano-align, 0)); top: var(--hero-shift); z-index: 2; margin-top: calc(var(--space-2) * (var(--hero-play-gap, 1) - 1)); }
  .play-tune { border-bottom-width: var(--hero-control-line, 2px); }
  .song-choice { border-bottom-width: var(--hero-control-line, 2px); }
  .play-tune:hover { border-bottom-width: calc(var(--hero-control-line, 2px) + 2px); }
  .song-choice:hover { border-bottom-width: calc(var(--hero-control-line, 2px) + 2px); }
}
/* Where round() exists the keyboard window holds whole naturals: the strip is as wide as the most naturals
   its column takes, less the last one's divider, so the frame is 2px on every side (the divider against the
   frame made the right side 3px). The Japanese ink spans that strip. This follows the composition rules so
   the panel's piano width, frame, key edges and text scale still apply. */
@supports (width: round(1px, 1px)) {
  /* Last in the sheet, so the phone block's height does not override it: the keyboard is a whole number of
     pixels tall at every width. */
  :root { --kb-h: round(calc(var(--patch-w) * var(--hero-logo-scale, 1) * .3615), 1px); }
  @media (max-width: 700px) { :root { --kb-h: max(96px, round(calc(var(--patch-w) * var(--hero-logo-scale, 1) * .3615), 1px)); } }
  .piano-strip, .brand > .rim, .brand > .ground, .brand::after, .piano-play { width: calc(round(down, 100% - 3px, var(--key-w)) + 3px); }
  .japanese { font-size: min(10rem, calc((round(down, 100cqi - 3px, var(--key-w)) + 3px) / 5.8857)); --fs: min(10rem, calc((round(down, 100cqi - 3px, var(--key-w)) + 3px) / 5.8857)); }
  @media screen and (min-width: 701px), screen and (max-width: 700px) {
    .piano-strip, .brand > .rim, .brand > .ground, .brand::after, .piano-play { width: calc(round(down, clamp(60%, var(--hero-piano-width, 100%), 100%) - 2 * var(--hero-frame, 2px) + var(--hero-key-edge, 1px), var(--key-w)) + 2 * var(--hero-frame, 2px) - var(--hero-key-edge, 1px)); }
    .japanese { font-size: calc(min(10rem, (round(down, 100cqi - 2 * var(--hero-frame, 2px) + var(--hero-key-edge, 1px), var(--key-w)) + 2 * var(--hero-frame, 2px) - var(--hero-key-edge, 1px)) / 5.8857) * var(--hero-japanese-scale, 1)); --fs: calc(min(10rem, (round(down, 100cqi - 2 * var(--hero-frame, 2px) + var(--hero-key-edge, 1px), var(--key-w)) + 2 * var(--hero-frame, 2px) - var(--hero-key-edge, 1px)) / 5.8857) * var(--hero-japanese-scale, 1)); }
  }
}


/* The keyboard is cut like a circus ticket, and every key is its own piece of cloth with its own stitched border. The
   player draws the shapes as vector paths once the strip is laid out (and again whenever its size changes): the
   outline is the strip's box with a quarter-round scoop at each corner, one natural wide, and a half-round notch at
   the middle of each end, both cutting straight through the end keys. Around that outline runs the merrowed cream
   rim, as wide beside a key as the patch's own: the player sews it into a canvas laid over the keyboard (see there),
   and this sheet clips that canvas to the ring between the outline and the same cut moved in by the rim's width, so
   both of the rim's edges are vector; the canvas is two pixels larger than the keyboard on every side, held in place
   by its margins and a shift, so the ring is filled wherever an engine sets the picture down. A tight dark gap further in, the same cut holds the keys. Every
   natural is its own piece, a gap short of its neighbours and of the rim, and notched around the sharps beside it;
   every sharp sits in that slot, centred on the gap between its naturals. Every corner, outer and notched, is
   Apple's continuous corner (see the player). A piece is three layers, each a bitmap of cloth clipped by a vector path: the black satin border fills
   the piece's outline; over it lies the cloth, the border's width further in; and along the cloth's top and left
   edges a thin strip stays in the raised border's shadow, so the border reads as sewn on top. Nothing else shades a
   piece: no dome, no bevel, no gloss. The typing letter rides on the cloth layer. Without the player the keyboard
   keeps a plain look: cloth keys between thin dividers in a thin frame. */
.brand[data-ticket]::after { border-color: transparent; background: var(--crease); clip-path: var(--ticket-outer); z-index: 1 !important; }
/* The dark ground between the pieces is the keys' own row's, so it goes with the keys. Past either end of the keyboard,
   where the strip shows only as it is bounced, is the page's yellow: a layer of the player's under the strip, on the
   strip's own box and cut a little inside the keys' cut, so the cut's soft edge still falls on the same dark as ever. */
.brand[data-ticket] .piano-strip { background: none; clip-path: var(--ticket-inner); }
.brand[data-ticket] .piano { background: var(--crease); }
.brand > .ground { display: block; border-color: transparent; background: var(--ground); clip-path: var(--ticket-ground); z-index: 2 !important; }
.brand > .rim { display: block; border-style: none; margin-right: -4px; margin-bottom: -4px; translate: -2px -2px; clip-path: var(--ticket-rim); }
.piano[data-shaped] .key { background: var(--cloth-band) 0 0 / calc(var(--cw) * .225) auto #000; border-right-color: transparent; }
.piano[data-shaped] .key::before, .piano[data-shaped] .key::after { position: absolute; inset: 0; box-sizing: border-box; background: var(--dye, none), var(--cloth-2, none) var(--fx) var(--fy) / var(--cs) auto, var(--cloth) var(--fx) var(--fy) / var(--cs) auto var(--cloth-colour); background-blend-mode: var(--dye-blend, normal), var(--cloth-blend, normal), var(--cloth-blend, normal); pointer-events: none; }
.piano[data-shaped] .key::before { content: ""; background: linear-gradient(var(--cast), var(--cast)), var(--dye, none), var(--cloth-2, none) var(--fx) var(--fy) / var(--cs) auto, var(--cloth) var(--fx) var(--fy) / var(--cs) auto var(--cloth-colour); background-blend-mode: normal, var(--dye-blend, normal), var(--cloth-blend, normal), var(--cloth-blend, normal); clip-path: var(--in); }
.piano[data-shaped] .key::after { content: attr(data-kbd); display: flex; align-items: flex-end; justify-content: center; padding-bottom: calc(var(--key-w) * .3); clip-path: var(--lit); }
/* A sharp the window cuts at either end is left out whole rather than shown as a sliver (see the player). */
.piano[data-shaped] .key.black[data-cut] { visibility: hidden; }
/* The scoops cut through the keyboard's first and last naturals, so a letter on either sits above the scoop, not under it. */
.piano[data-shaped] .key.white:is(:first-child, :last-child)::after { padding-bottom: calc(var(--key-w) * 1.05); }
/* ニュータイプ spans the ticket's straight top edge, between the two scoops, never past it. */
@supports (width: round(1px, 1px)) {
  @media screen {
    .japanese { margin-left: calc(var(--key-w) - .0897em); font-size: calc(min(10rem, (round(down, 100cqi - 2 * var(--hero-frame, 2px) + var(--hero-key-edge, 1px), var(--key-w)) + 2 * var(--hero-frame, 2px) - var(--hero-key-edge, 1px) - 2 * var(--key-w)) / 5.8857) * var(--hero-japanese-scale, 1)); --fs: calc(min(10rem, (round(down, 100cqi - 2 * var(--hero-frame, 2px) + var(--hero-key-edge, 1px), var(--key-w)) + 2 * var(--hero-frame, 2px) - var(--hero-key-edge, 1px) - 2 * var(--key-w)) / 5.8857) * var(--hero-japanese-scale, 1)); }
  }
}

@media print {
  :root { --ground: #FFFFFF; --ink: #0B1026; --focus: #0B1026; }
  body { padding: 0; font-size: 10pt; }
  .skip, nav, .index-end, .piano-strip, .brand > .rim, .brand > .ground, .brand::after, .piano-legend, .piano-play { display: none !important; }
  .hero-scene { padding-top: 0; }
  main { padding-bottom: 0; }
  .brand, main, footer { padding-inline: 0; }
  .brand { grid-template-columns: minmax(0, 1fr) 60px; grid-template-rows: auto; grid-template-areas: "name logo"; }
  .project-stage, .siblings { display: none; }
  .mascot { width: 100%; justify-self: auto; }
  .brand-copy { align-items: flex-start; }
  .japanese { font-size: 40pt; }
  .project-list a { grid-template-columns: 55px minmax(0, 1fr); padding: 3px 0; }
  .project-list li { break-inside: avoid; }
  .project-name { font-size: 25pt; --lh: 1.1; }
  .project-number { font-size: 13pt; }
  textarea { min-height: 130px; height: 160px; font-size: 10pt; }
  .support { break-before: page; }
  h1, h2 { break-after: avoid; }
}
