/* The homepage and the glass its sections open on. Shared by index.html and the five section pages (they are the same page,
   arriving with a different section already open). */
/* Layout: the home page is Blue Pain redrawn as a living picture. Every element is drawn fresh from measurements of the
   painting: her blue ground, the red arches, the violet and royal-blue panes, the neon threads, and the four black blocks.
   The blocks stay where she painted them and are the four doors; at rest each shows only its slit (or point), and over a
   block its light comes out of the slit and the name appears. One committed look from the painting, no theme switch.
   Chinese uses the reader's system fonts so it always renders. */
:root{
  --blue:#2D86C8; --cream:#F7F2E2; --light:#EDE7A6;
  --f-zh:"Helvetica Neue",Helvetica,Arial,"PingFang SC","苹方-简","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC","Source Han Sans SC",sans-serif;
  --f-en:"Helvetica Neue",Helvetica,Arial,"PingFang SC","苹方-简","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC","Source Han Sans SC",sans-serif;
  --f-mono:"Helvetica Neue",Helvetica,Arial,"PingFang SC","苹方-简","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC","Source Han Sans SC",sans-serif;
  color-scheme:dark;
}
html,body{height:100%}
html{background:var(--blue)}
body{margin:0;background:var(--blue);color:var(--cream);overflow:hidden;font-family:var(--f-en)}
a{color:inherit;text-decoration:none}
.wall{position:fixed;inset:0;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
html,body{overscroll-behavior:none}
/* phones and tablets: one finger moves around the painting (and it glides on a little when let go); two fingers move and zoom */
@media (hover:none) and (pointer:coarse){
  .wall{touch-action:none}
}
#scene{position:absolute;inset:0;width:100%;height:100%;display:block}
.door{position:absolute;z-index:4;left:0;top:0;display:grid;justify-items:center;gap:8px;text-align:center;pointer-events:none;
  opacity:0;transform:translate(-50%,-42%);transition:opacity .5s, transform .7s cubic-bezier(.2,.7,.2,1);text-shadow:0 0 16px rgba(0,0,0,.75)}
.door.on,.door:focus-visible,.door.hint{opacity:1;transform:translate(-50%,-50%)}
.door.hint:not(.on){transition:opacity 1.1s ease,transform 1.2s cubic-bezier(.2,.7,.2,1)}
.door:focus-visible{outline:none}
.door:focus-visible .zh{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:8px}
.door .zh{font-family:var(--f-zh);font-weight:400;font-size:clamp(30px,3.4vw,54px);letter-spacing:.3em;margin-right:-.3em;line-height:1.1;color:var(--cream)}
.door .en{font-family:var(--f-en);font-weight:300;font-size:clamp(13px,1.15vw,17px);letter-spacing:.32em;margin-right:-.32em;text-transform:uppercase;color:var(--light)}
@media (prefers-reduced-motion: reduce){.door{transition:opacity .2s}}
/* the pointer is a small swimmer doing breaststroke (mouse and trackpad only) */
/* the label beside a chosen arch or pane */
.peek{position:fixed;left:0;top:0;z-index:15;pointer-events:none;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap;max-width:min(260px,70vw);padding:8px 12px 9px;border-radius:10px;
  background:rgba(12,30,62,.74);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#FBF8F0;font:400 12px/1.4 var(--f-en);
  box-shadow:0 10px 24px -12px rgba(4,14,40,.7);opacity:0;transform:translate(-50%,-100%) translateY(6px);transition:opacity .25s,transform .3s cubic-bezier(.2,.7,.2,1)}
.peek.on{opacity:1;transform:translate(-50%,-100%)}
.peek b{display:block;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.peek span{display:block;opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.peek em{display:block;margin-top:4px;font-style:normal;font-size:11px;color:#F2DC6B;letter-spacing:.02em}
html.sec-open .peek{display:none}
#swimmer{position:fixed;left:0;top:0;width:72px;height:72px;z-index:50;pointer-events:none;opacity:0;transition:opacity .2s;will-change:transform}
@media (hover:hover) and (pointer:fine){.swim:not(.sec-open),.swim:not(.sec-open) *{cursor:none!important}}

/* ---- the edge where a pane meets the header (and, on computers, the footer): one look for all of them — the glass, a
   painting or photograph seen large, the listening room. A dark seam, a thin catch of light just under it, a soft shadow
   cast up onto the header. ---- */
:root{--edge-in:inset 0 1px 0 rgba(255,255,255,.13);--seam-a:.38;--seam-w:1px;--seam-hi:.22}
html.hh-dark,html.hh-np{--seam-a:.6;--seam-hi:.14}
@media (min-resolution:2dppx){:root{--seam-w:.5px}}   /* on sharp screens the dark line is half a pixel: one fine device pixel */   /* the seam: a dark line with a bright one just under it, as the glass had it; over the dark views the light line is softer */
/* one edge for all of them, laid above the header and above every view (glass, picture, album, listening room), so it looks the
   same whichever is open, the header's darkening included. It comes and goes with the glass. */
.hh-edge{position:fixed;left:0;right:0;top:var(--hh-h,48px);height:2px;z-index:41;pointer-events:none;opacity:0;transition:opacity .3s linear;
  background:linear-gradient(180deg,rgba(8,24,52,var(--seam-a)) 0 var(--seam-w),rgba(255,255,255,var(--seam-hi)) var(--seam-w) calc(var(--seam-w) + 1px),transparent 0)}
/* the shadow cast up onto the header comes from a clear box hanging under the line, as tall as a pane's top: a shadow from the
   2 px line itself would vanish (its negative spread leaves nothing to cast), and a box's own shadow is never drawn under it */
.hh-edge::before{content:"";position:absolute;left:0;right:0;top:0;height:80px;pointer-events:none;
  box-shadow:0 -3px 6px -1px rgba(4,12,30,.2),0 -10px 18px -6px rgba(4,12,30,.11)}
.hh.glassing~.hh-edge{opacity:1;transition:opacity .5s ease-out}
html.menu-open .hh-edge{opacity:0!important;transition-duration:.2s}
/* a painting or photograph seen large takes the screen down to its foot: the footer and its player step out of the way
   (the music plays on, and they come back when the picture is closed) … */
html.hh-dark .layer{bottom:0}
html.hh-dark .hh-ft{opacity:0!important;visibility:hidden;pointer-events:none;transition:opacity .3s,visibility 0s .3s}
/* … all but the song's line of light, which stays along the very foot of the screen (only to be seen, not touched) */
html.hh-dark .hh-rim{bottom:calc(env(safe-area-inset-bottom,0px) - 5px);pointer-events:none}
.hh-ft,.hh-rim{transition:opacity .35s}
/* ---- the glass: the sections open on it, over the living painting, below the header ----
   The painting itself is frosted where the glass lies on it (see frost() in the script): the browser draws it blurred until
   only its colours are left, as an album's cover is behind its tracks. This element adds the glass's tint, edge and shadow. */
#glass{position:fixed;left:0;right:0;bottom:var(--ft-h,0px);top:var(--hh-h,48px);z-index:20;overflow:hidden;visibility:hidden;color-scheme:light;
  border-top:0;   /* its top edge is the one shared edge (.hh-edge) */
  transition:border-color .3s linear,box-shadow .3s linear,visibility 0s .35s}
#glass.on{visibility:visible;transition:border-color .4s,box-shadow .4s}
/* computers: a footer strip mirrors the header, so the glass sits in the middle like a pane set into the painting (not on phones) */
@media (min-width:761px){
  :root{--ft-h:35px}   /* the same as the header (and the player) */
  #glass{border-bottom:var(--seam-w) solid rgba(12,32,62,0);box-shadow:inset 0 -1px 0 rgba(255,255,255,0),0 2px 5px -1px rgba(4,12,30,0),0 8px 14px -6px rgba(4,12,30,0)}
  #glass.on{border-bottom-color:rgba(4,12,28,var(--seam-a));box-shadow:inset 0 -1px 0 rgba(255,255,255,.08),0 2px 5px -1px rgba(4,12,30,.24),0 8px 14px -6px rgba(4,12,30,.12)}
  html:not(.hh-playing) .sec .foot{display:none}   /* the strip says it; only while the player covers the strip does the section's end say it again */
  .pane>.sec{padding-bottom:56px}
}
.hh-ft{display:none}
@media (min-width:761px){
  .hh-ft{position:fixed;left:0;right:0;bottom:0;height:var(--ft-h);z-index:30;display:flex;justify-content:space-between;align-items:center;
    padding:0 max(var(--hh-m),env(safe-area-inset-right,0px)) 0 max(var(--hh-m),env(safe-area-inset-left,0px));
    font:400 12px/1 var(--hh-font);letter-spacing:.02em;color:#F7F2E2;text-shadow:0 1px 6px rgba(10,30,70,.35);
    transform:translateY(100%);opacity:0;transition:transform .55s cubic-bezier(.2,.75,.2,1),opacity .4s;pointer-events:none}
  .hh-ft::before{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(180deg,rgba(12,38,78,.36),rgba(10,32,68,.42))}
  .hh-ft::after{content:"";position:absolute;inset:0;z-index:0;background:rgba(8,9,13,.62);opacity:0;transition:opacity .45s}
  html.hh-dark .hh-ft::after{opacity:1}
  .hh-ft>span{position:relative;z-index:1;opacity:.72;transition:opacity .35s}
  .hh-ft:hover>span{opacity:.9}
  #glass.on~.hh-ft{transform:none;opacity:1;pointer-events:auto}   /* comes and goes with the glass */
}
/* ---- the player: while a track plays the footer strip carries it (computers and phones), and the glass's bottom rim
   fills with her yellow light as the song goes on ---- */
html.hh-playing{--ft-h:35px}   /* the player is as tall as the header (35px on a computer, 40px on a phone) */
@media (max-width:760px){
  html.hh-playing{--ft-h:calc(40px + env(safe-area-inset-bottom,0px))}
  html.hh-playing .hh-ft{position:fixed;left:0;right:0;bottom:0;height:var(--ft-h);z-index:30;display:flex;align-items:center;
    padding:0 18px env(safe-area-inset-bottom,0px);font:400 13px/1 var(--hh-font);color:#F7F2E2;text-shadow:0 1px 6px rgba(10,30,70,.35);
    transform:translateY(100%);opacity:0;transition:transform .55s cubic-bezier(.2,.75,.2,1),opacity .4s}
  html.hh-playing .hh-ft::before{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(180deg,rgba(12,38,78,.36),rgba(10,32,68,.42))}
  html.hh-playing #glass.on{border-bottom:var(--seam-w) solid rgba(4,12,28,var(--seam-a))}
}
html.hh-playing #glass.on~.hh-ft{transform:none;opacity:1;pointer-events:auto}
/* phones, nothing playing: the footer strip waits below the screen and comes up when the section is read to its end
   (what it says is then not said again at the section's foot, whose room is kept for it) */
@media (max-width:760px){
  /* the same strip as on a computer: the painting seen through it (the glass draws back above it), the glass's edge and its
     shadow along the top */
  html.ft-end.docflow:not(.hh-playing) #glass{height:calc(100vh - var(--hh-h,48px) - 40px - env(safe-area-inset-bottom,0px));height:calc(100lvh - var(--hh-h,48px) - 40px - env(safe-area-inset-bottom,0px))}
  html.docflow #glass.on{transition:border-color .4s,box-shadow .4s,height .5s cubic-bezier(.2,.75,.2,1)}
  html.ft-end.docflow:not(.hh-playing) #glass.on{border-bottom:var(--seam-w) solid rgba(4,12,28,var(--seam-a));
    box-shadow:inset 0 -1px 0 rgba(255,255,255,.08),0 2px 5px -1px rgba(4,12,30,.24),0 8px 14px -6px rgba(4,12,30,.12)}
  html.docflow:not(.hh-playing) .hh-ft{position:fixed;left:0;right:0;bottom:0;height:calc(40px + env(safe-area-inset-bottom,0px));z-index:30;display:flex;justify-content:space-between;align-items:center;
    padding:0 18px env(safe-area-inset-bottom,0px);font:400 12px/1 var(--hh-font);letter-spacing:.02em;color:#F7F2E2;text-shadow:0 1px 6px rgba(10,30,70,.35);
    transform:translateY(100%);opacity:0;transition:transform .5s cubic-bezier(.2,.75,.2,1),opacity .35s;pointer-events:none}
  html.docflow:not(.hh-playing) .hh-ft::before{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(180deg,rgba(12,38,78,.36),rgba(10,32,68,.42))}
  html.docflow:not(.hh-playing) .hh-ft>span{position:relative;z-index:1;opacity:.72}
  /* the glass's edge as on a computer, drawn on the strip itself (the strip's own picture of the painting would cover a shadow
     cast from the glass): the faint light on the glass's last pixel, the dark seam, and the soft shadow falling onto the strip */
  html.docflow .hh-ft::after{content:"";position:absolute;left:0;right:0;top:-1px;height:15px;z-index:1;pointer-events:none;
    background:linear-gradient(180deg,rgba(255,255,255,.08) 0 1px,rgba(4,12,28,calc(var(--seam-a) + .2)) 1px 2px,
      rgba(4,12,30,.24) 2px,rgba(4,12,30,.1) 5px,rgba(4,12,30,.04) 9px,rgba(4,12,30,0) 15px)}
  html.ft-end.docflow:not(.hh-playing) .hh-ft{transform:none;opacity:1;pointer-events:auto}
  html.docflow:not(.hh-playing) .sec .foot{visibility:hidden}
}   /* only with a section open: the homepage stays the painting alone */
html.hh-playing .hh-ft>span{display:none}
.ft-pl{display:none;position:relative;z-index:1;flex:1;min-width:0;height:100%;align-items:center}
html.hh-playing .ft-pl{display:flex}
/* the words: the song, then (smaller, dimmer) its album; the controls in her yellow light, apart from them */
.ft-pl .info{flex:1;min-width:0;display:flex;align-items:baseline;gap:12px}
.ft-pl .tt{all:unset;cursor:pointer;flex:none;max-width:60%;color:#FBF8F0;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ft-pl .sub{min-width:0;font-size:12px;color:rgba(251,248,240,.62);letter-spacing:.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.ft-pl .dot,.ft-pl .tmA{display:none}
.ft-pl .dot{margin:0 6px}
/* the controls: five equal cells, evenly spaced, each icon centred in its cell; under the pointer a soft rounded square lights
   behind the button, as in a music player. Shuffle and repeat are a little smaller and dimmer until switched on. */
.ft-pl .ctl{display:grid;grid-auto-flow:column;grid-auto-columns:34px;align-items:center;justify-items:center;gap:6px}
.ft-pl .ctl button,.ft-pl .x{all:unset;box-sizing:border-box;cursor:pointer;display:grid;place-items:center;width:34px;height:30px;border-radius:8px;
  color:#F2DC6B;opacity:.85;transition:background-color .2s,opacity .2s}
.ft-pl .ctl .pp{opacity:1}
.ft-pl .ctl .sh,.ft-pl .ctl .rp{opacity:.5;position:relative}
.ft-pl .ctl .sh[aria-pressed="true"],.ft-pl .ctl .rp[aria-pressed="true"]{opacity:1}
.ft-pl .ctl .sh[aria-pressed="true"]::after,.ft-pl .ctl .rp[aria-pressed="true"]::after{content:"";position:absolute;bottom:2px;left:50%;width:3px;height:3px;margin-left:-1.5px;border-radius:50%;background:currentColor}
.ft-pl .ctl button:hover,.ft-pl .x:hover{background:rgba(251,248,240,.12);opacity:1}
.ft-pl .ctl button:active{background:rgba(251,248,240,.2)}
.ft-pl .ctl button:focus-visible,.ft-pl .x:focus-visible,.ft-pl .tt:focus-visible{outline:1px solid #F2DC6B;outline-offset:2px}
.ft-pl .tm{font-size:11.5px;color:rgba(251,248,240,.6);font-variant-numeric:tabular-nums;white-space:nowrap}
.ft-pl .x{width:28px;height:28px;opacity:.5}
/* computers: three parts, balanced — the song on the left, the controls in the middle of the column, the time and close on the right */
@media (min-width:761px){
  html.hh-playing .ft-pl{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;column-gap:24px}
  .ft-pl .tm{justify-self:end;grid-column:3;grid-row:1;margin-right:40px}
  .ft-pl .x{justify-self:end;grid-column:3;grid-row:1}
}
/* computers: the player lines up with the column of works above it */
@media (min-width:761px){html.hh-playing .hh-ft{padding-inline:max(var(--hh-m),calc((100vw - min(1280px,var(--gw,1280px)))/2))}}
/* phones: the song over its album and time at the text margin; the three controls grouped on the right, each a finger's size;
   no close button (a long press on play/pause stops) and no dot on the light line */
@media (max-width:760px){
  .ft-pl .info{flex-direction:column;align-items:flex-start;justify-content:center;gap:2px}
  .ft-pl .tt{max-width:100%;font-size:14px}
  .ft-pl .sub{font-size:11px;max-width:100%}
  .ft-pl .dot,.ft-pl .tmA{display:inline}
  .ft-pl .tm,.ft-pl .x{display:none}
  .ft-pl .ctl{margin-right:-6px;grid-auto-columns:34px;gap:0}
  .ft-pl .ctl button{width:34px;height:38px;border-radius:10px}
  .ft-pl .info{padding-right:8px}
  .hh-rim i::after{display:none}
  .hh-rim::before{background:rgba(242,220,107,.18)}
}
.hh-rim{position:fixed;left:0;right:0;bottom:calc(var(--ft-h) - 6px);height:12px;z-index:31;cursor:pointer;display:none}
html.hh-playing #glass.on~.hh-rim{display:block}
.hh-rim::before{content:"";position:absolute;left:0;right:0;top:5px;height:2px;background:rgba(242,220,107,.13)}
.hh-rim i{position:absolute;left:0;top:5px;height:2px;width:var(--p,0%);background:linear-gradient(90deg,rgba(242,220,107,.5),#F6E58A);
  box-shadow:0 0 8px 1px rgba(242,220,107,.6),0 0 18px 2px rgba(242,220,107,.22)}
.hh-rim i::after{content:"";position:absolute;right:-3px;top:-2px;width:6px;height:6px;border-radius:50%;background:#FFF6C2;box-shadow:0 0 10px 3px rgba(255,240,170,.75)}
.hh-rim:hover::before{background:rgba(242,220,107,.25)}
@media (prefers-reduced-motion: reduce){.hh-ft{transition:none}}
#glass.now,#glass.now .g-tint,#glass.now::after{transition:none}
#glass{--eb:110px;--et:46px}
@media (max-width:760px){#glass{--eb:22px;--et:16px}}
/* the tint thins out only slightly toward the edges, in the same bands as the frost */
#glass .g-tint{-webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,.9),#000 var(--eb),#000 calc(100% - var(--eb)),rgba(0,0,0,.9)),linear-gradient(180deg,rgba(0,0,0,.9),#000 var(--et),#000 calc(100% - var(--eb)),rgba(0,0,0,.9));
  -webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,rgba(0,0,0,.9),#000 var(--eb),#000 calc(100% - var(--eb)),rgba(0,0,0,.9)),linear-gradient(180deg,rgba(0,0,0,.9),#000 var(--et),#000 calc(100% - var(--eb)),rgba(0,0,0,.9));mask-composite:intersect}
#glass .g-tint{position:absolute;inset:0;background:linear-gradient(180deg,rgba(51,103,157,.80),rgba(45,95,147,.84));   /* her blue (hue 210°, saturation 68%, brightness 60%): about #326499 over the frost */
  opacity:0;transition:opacity .3s linear}   /* going: at the same pace as the frost on the painting, so no tinted pane outlives it */
#glass.on .g-tint{opacity:1;transition:opacity .5s ease-out}
#glass::after{opacity:0;transition:opacity .3s linear}
#glass.on::after{opacity:1}
#glass::after{content:none}   /* its light line is the shared edge's now */
#panes{position:absolute;inset:0;z-index:2}
/* one section: it scrolls inside the glass and never reaches above it */
.pane{position:absolute;inset:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;outline:none;
  scrollbar-width:thin;scrollbar-color:rgba(16,40,72,.32) transparent}
.pane>.sec{min-height:100%;display:flex;flex-direction:column;transition:opacity .45s ease-out}
.pane.pre>.sec{opacity:0}
.pane.pre.leave>.sec{transition:opacity .25s ease-in}
.pane.leave{pointer-events:none}
/* what covers the glass (a painting seen large, an album, a photograph): also kept below the header */
.layer{position:fixed;left:0;right:0;bottom:var(--ft-h,0px);top:var(--hh-h,48px);z-index:29;pointer-events:none}
.layer>*{pointer-events:auto}
html.sec-open .wall{pointer-events:none}
html.sec-open #swimmer{visibility:hidden}
html.sec-open .door{visibility:hidden}
@media (prefers-reduced-motion: reduce){#glass,.pane>.sec{transition:none}}
/* phone: an open section scrolls as the page itself, so in Safari the words pass under the browser's own bars, as in an app,
   and a tap on the top bar brings it back to the top. The glass stays put behind it; the homepage is unchanged. */
#flow{display:none}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}   /* Safari on phones must not enlarge text on its own */
/* phone menu: in a section the glass, the works and the footer player fade away while the menu is open, showing the live painting */
html.mf #glass .g-tint,html.mf #panes,html.mf #flow,html.mf .layer,html.mf .door,html.mf .hh-ft,html.mf .hh-rim{transition:opacity .35s!important}
html.menu-open #glass .g-tint,html.menu-open #panes,html.menu-open #flow,html.menu-open .layer,html.menu-open .door,html.menu-open .hh-ft,html.menu-open .hh-rim{opacity:0!important;pointer-events:none!important}
html.menu-open #glass{border-top-color:transparent!important;border-bottom-color:transparent!important;box-shadow:none!important}
html.menu-open #glass::after{opacity:0}
/* the painting (and so the frosted glass) reaches as far down as the page can ever show, Safari's bars shrunk or not,
   so the words never pass over bare colour; it holds that size while the bars shrink and grow */
html.docflow .wall{bottom:auto;height:100vh;height:100lvh}
html.docflow #glass{bottom:auto;height:calc(100vh - var(--hh-h,48px) - var(--ft-h,0px));height:calc(100lvh - var(--hh-h,48px) - var(--ft-h,0px))}
html.docflow,html.docflow body{height:auto;overflow:visible}
html.docflow,html.docflow body{background:#3c6195}   /* under Safari's bars: the colour the glass reads as */
html.docflow #flow{display:block;overflow-x:clip;position:relative;z-index:21;padding-top:var(--hh-h,48px);padding-bottom:calc(var(--ft-h,0px) + env(safe-area-inset-bottom,0px))}
html.docflow #flow>.pane{position:relative;inset:auto;overflow:visible;overflow-x:clip}
html.docflow #flow>.pane>.sec{min-height:calc(100svh - var(--hh-h,48px))}
html.docflow.hh-dark body,html.docflow:has(.layer>:not([hidden])) body{overflow:hidden}   /* a painting or photograph seen large holds the page still */
.hh-art{display:none;position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
html.docflow .hh-art{display:block}   /* the strip of painting under the header covers the words going up beneath it */

/* ---- the close mark, the same wherever a picture or an album is seen large: a plain thin cross in the top right corner, lined up
   with the header's right edge; no circle around it. ---- */
.hh-x{all:unset;box-sizing:border-box;cursor:pointer;display:grid;place-items:center;width:44px;height:44px;color:rgba(241,238,230,.4);transition:color .2s,opacity .35s}   /* quieter at rest; full white on hover or press */
.hh-x svg{filter:drop-shadow(0 1px 3px rgba(0,0,0,.45))}
@media (hover:hover){.hh-x:hover{color:#fff}}
.hh-x:active{color:#fff}
.hh-x:focus-visible{outline:none;color:#fff}
/* ---- the album page: an album, opened from the Sound shelf or from the player in the footer. It covers the glass below the
   header, as a painting seen large does: night blue washed with the cover's colours, her yellow light for what can be touched.
   The cover comes in from the shelf (or fades in); the rest fades in around it. ---- */
#np{position:fixed;left:0;right:0;top:var(--hh-h,48px);bottom:0;z-index:40;isolation:isolate;color:#F1EEE6;font-family:var(--hh-font);-webkit-font-smoothing:antialiased;
  -webkit-tap-highlight-color:transparent;--y:#F2DC6B;--ease:cubic-bezier(.2,.75,.2,1)}
#np[hidden]{display:none}
.np-bg,.np-tx,.np-now,.np-ctl,.np-side,.np-x{opacity:0;transition:opacity .3s ease}
#np.on .np-bg{opacity:1;transition:opacity .45s ease}
#np.on .np-tx,#np.on .np-now,#np.on .np-ctl,#np.on .np-side,#np.on .np-x{opacity:1;transition:opacity .45s ease .14s}
#np:not(.fly):not(.on) .np-art{opacity:0}
#np.fly .np-in{transform:none;transition:none}
/* before any of the album plays: no line of light yet, only the play button (the room keeps its shape, so nothing jumps) */
#np.idle .np-now,#np.idle .np-ctl .sh,#np.idle .np-ctl .pv,#np.idle .np-ctl .nx,#np.idle .np-ctl .rp{visibility:hidden}
#np *{box-sizing:border-box}
.np-bg{position:absolute;inset:0;z-index:-1;background:#0A1322;overflow:hidden}
.np-bg i{position:absolute;inset:-14%;background:center/cover no-repeat;filter:blur(60px) saturate(1.2);opacity:.38}
.np-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,14,28,.1),rgba(6,11,22,.62))}
html.hh-np .hh.on-art::after,html.hh-np .hh-ft::after{opacity:1}
html.hh-np.docflow body{overflow:hidden}
html.menu-open #np{opacity:0!important;pointer-events:none}
html:not(.sec-open) #np{top:0}   /* on the homepage the header floats over the painting: the room fills the screen under it */
html:not(.sec-open) #np .np-in{padding-top:calc(var(--hh-h,48px) + 60px)}
html:not(.sec-open) #np .np-x{top:calc(var(--hh-h,48px) + 8px)}
.np-in{position:absolute;inset:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:rgba(241,238,230,.3) transparent;
  display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:34px;padding:60px 26px calc(34px + env(safe-area-inset-bottom,0px));
  transform:translateY(22px);transition:transform .55s var(--ease)}
#np.on .np-in{transform:none}
@media (max-width:860px){.np-in{-webkit-mask-image:linear-gradient(180deg,transparent 14px,#000 62px);mask-image:linear-gradient(180deg,transparent 14px,#000 62px)}}   /* scrolled words fade out before they reach the close button */
.np-main{width:100%;max-width:430px;margin-inline:auto;min-width:0}
.np-art{width:min(100%,46vh);margin-inline:auto;aspect-ratio:1;touch-action:pan-x;transition:transform .5s var(--ease),opacity .4s ease}
.np-art img{display:block;width:100%;height:100%;object-fit:cover;border-radius:2px;background:transparent;box-shadow:0 34px 80px -28px rgba(0,0,0,.85),0 3px 12px rgba(0,0,0,.3);-webkit-user-drag:none;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
#np.paused .np-art{transform:scale(.93)}                 /* paused: the cover steps back a little */
.np-tx{margin-top:26px;min-width:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
@media (hover:hover){.np-tx:hover h2,.np-tx:hover .np-sub{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}}
.np-tx:focus{outline:none}.np-tx:focus-visible h2{text-decoration:underline;text-underline-offset:4px}
.np-tx h2{margin:0;font-size:22px;font-weight:500;line-height:1.25;overflow-wrap:anywhere;text-wrap:balance}
.np-sub{margin:5px 0 0;font-size:14px;color:rgba(241,238,230,.72);overflow-wrap:anywhere}
/* the line of light: as on the glass's rim, only here it can be held and dragged */
.np-bar{position:relative;height:28px;margin-top:14px;cursor:pointer;touch-action:none;outline:none}
.np-bar::before{content:"";position:absolute;left:0;right:0;top:13px;height:2px;border-radius:2px;background:rgba(242,220,107,.2)}
.np-bar i{position:absolute;left:0;top:13px;height:2px;width:var(--p,0%);border-radius:2px;background:linear-gradient(90deg,rgba(242,220,107,.55),#F6E58A);box-shadow:0 0 8px 1px rgba(242,220,107,.6),0 0 18px 2px rgba(242,220,107,.22)}
.np-bar i::after{content:"";position:absolute;right:-5px;top:-4px;width:10px;height:10px;border-radius:50%;background:#FFF6C2;box-shadow:0 0 10px 3px rgba(255,240,170,.7);transition:transform .2s var(--ease)}
.np-bar.drag i::after,.np-bar:focus-visible i::after{transform:scale(1.5)}
.np-tm{display:flex;justify-content:space-between;margin-top:-2px;font-size:12px;letter-spacing:.04em;font-variant-numeric:tabular-nums;color:rgba(241,238,230,.66)}
.np-ctl{display:flex;justify-content:space-between;align-items:center;margin-top:16px}
.np-ctl button{all:unset;box-sizing:border-box;position:relative;cursor:pointer;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;color:var(--y);transition:background-color .2s,opacity .2s,transform .2s}
.np-ctl button svg{width:24px;height:24px}
.np-ctl .sh svg,.np-ctl .rp svg{width:19px;height:19px}
.np-ctl .sh,.np-ctl .rp{opacity:.5}
.np-ctl .sh[aria-pressed="true"],.np-ctl .rp[aria-pressed="true"]{opacity:1}
.np-ctl .sh[aria-pressed="true"]::after,.np-ctl .rp[aria-pressed="true"]::after{content:"";position:absolute;bottom:6px;left:50%;width:3px;height:3px;margin-left:-1.5px;border-radius:50%;background:currentColor}
.np-ctl .pp{width:68px;height:68px;border:1px solid rgba(242,220,107,.55);background:rgba(242,220,107,.07);box-shadow:0 0 22px -4px rgba(242,220,107,.45)}
.np-ctl .pp svg{width:28px;height:28px}
@media (hover:hover){.np-ctl button:hover{background:rgba(241,238,230,.1);opacity:1}.np-ctl .pp:hover{background:rgba(242,220,107,.16)}}
.np-ctl button:active{transform:scale(.94)}
.np-ctl button:focus-visible{outline:1px solid var(--y);outline-offset:3px}
.np-ctl .pp:disabled{opacity:.3;cursor:default;box-shadow:none}
/* the album's other songs */
.np-side{width:100%;max-width:430px;margin-inline:auto;min-width:0}
.np-side[hidden]{display:none}
.np-intro{margin:0 0 24px;font-size:14.5px;line-height:1.75;color:rgba(241,238,230,.86);white-space:pre-line;max-width:60ch}
.np-intro[hidden]{display:none}
.np-lh{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:0 0 8px}
.np-meta{font-size:12px;color:rgba(241,238,230,.6);font-variant-numeric:tabular-nums;white-space:nowrap}
.np-side h3{margin:0;font-size:12px;font-weight:400;letter-spacing:.14em;text-transform:uppercase;color:rgba(241,238,230,.66)}
.np-list{list-style:none;margin:0;padding:0;border-top:1px solid rgba(241,238,230,.16)}
.np-list li{border-bottom:1px solid rgba(241,238,230,.16)}
.np-list button{all:unset;box-sizing:border-box;cursor:pointer;display:grid;grid-template-columns:2.2em minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;padding:12px 4px;font-size:15px;line-height:1.3}
.np-list button[disabled]{cursor:default;opacity:.42}
.np-list .no{font-size:12px;font-variant-numeric:tabular-nums;color:rgba(241,238,230,.6)}
.np-list .t{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (hover:hover){.np-list button:not([disabled]):hover{background:rgba(241,238,230,.07)}}
.np-list button:focus-visible{outline:1px solid var(--y);outline-offset:-1px}
.np-list button.on{color:var(--y)}.np-list button.on .no{color:inherit}
.np-list .eq{display:none;align-items:flex-end;gap:2px;height:12px}
.np-list button.on .eq{display:flex}
.np-list .eq i{width:2px;height:100%;border-radius:1px;background:currentColor;transform-origin:bottom;animation:np-eq 1s ease-in-out infinite}
.np-list .eq i:nth-child(2){animation-delay:-.35s}.np-list .eq i:nth-child(3){animation-delay:-.7s}
#np.paused .np-list .eq i{animation-play-state:paused}
/* while the whole of the sound works shuffles: what comes next, with each album's cover */
.np-list.mixl button{grid-template-columns:40px minmax(0,1fr);gap:12px;padding:9px 4px}
.np-list .th{display:block;width:40px;height:40px;object-fit:cover;border-radius:2px;background:rgba(241,238,230,.08);-webkit-user-drag:none}
.np-list .tw{display:flex;flex-direction:column;gap:2px;min-width:0}
.np-list .al{font-size:12px;color:rgba(241,238,230,.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@keyframes np-eq{0%,100%{transform:scaleY(.3)}50%{transform:scaleY(1)}}
.np-x{position:absolute;z-index:2;top:8px;right:calc(max(var(--hh-m),env(safe-area-inset-right,0px)) - 12px)}
/* the song's name in the footer player opens this page: a small mark says so */
.ft-pl .tt::after{content:"";display:inline-block;width:11px;height:7px;margin-left:8px;vertical-align:.12em;background:currentColor;opacity:.75;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.2 6.6 6 1.8l4.8 4.8' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%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 12 8'%3E%3Cpath d='M1.2 6.6 6 1.8l4.8 4.8' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}   /* a drawn chevron, so its point stays whole at any size */
/* computers: the cover and its controls on the left, the album's songs on the right, the two centred in the room */
@media (min-width:761px){html.sec-open #np{bottom:var(--ft-h,0px)}
  html.sec-open #np::after{content:"";position:absolute;z-index:5;left:0;right:0;bottom:-1px;height:2px;pointer-events:none;
    background:linear-gradient(0deg,rgba(4,12,28,var(--seam-a)) 0 var(--seam-w),rgba(255,255,255,.07) var(--seam-w) calc(var(--seam-w) + 1px),transparent 0);box-shadow:0 2px 5px -1px rgba(4,12,30,.24),0 8px 14px -6px rgba(4,12,30,.12)}}
@media (min-width:861px){
  .np-in{grid-template-columns:minmax(0,400px) minmax(0,400px);justify-content:center;align-content:center;align-items:center;gap:clamp(40px,7vw,110px);padding:56px 48px 48px;min-height:100%}
  .np-main,.np-side{margin:0;max-width:none}
  .np-art{width:min(100%,44vh)}
  .np-side[hidden]+*{display:none}
  .np-in:has(.np-side[hidden]){grid-template-columns:minmax(0,400px)}
  .np-list{max-height:min(60vh,520px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(241,238,230,.3) transparent}
}
@media (max-height:560px) and (max-width:860px){.np-art{width:min(100%,220px)}}
/* phones: the tracks wait until the cover is swiped up; a tap on the cover darkens it and shows the album's intro over it */
.np-art{position:relative}
.np-desc{display:none}
@media (max-width:860px){
  #np:not(.list) .np-side{display:none}
  #np.list .np-side{animation:np-up .45s var(--ease) both}
  @keyframes np-up{from{opacity:0;transform:translateY(16px)}}
  .np-desc{display:block;position:absolute;inset:0;border-radius:2px;background:rgba(6,10,20,.72);opacity:0;pointer-events:none;transition:opacity .3s ease;
    overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:none;padding:20px 20px 22px;-webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 30px),transparent);mask-image:linear-gradient(180deg,#000 calc(100% - 30px),transparent)}
  .np-desc::-webkit-scrollbar{display:none}
  .np-desc p{margin:0;font-size:14px;line-height:1.75;color:rgba(241,238,230,.9);white-space:pre-line;text-align:justify;text-justify:inter-character}
  #np.desc .np-desc{opacity:1;pointer-events:auto}
}
@media (prefers-reduced-motion: reduce){#np,.np-in,.np-art,.np-bg,.np-tx,.np-now,.np-ctl,.np-side,.np-x{transition:none!important}.np-list .eq i{animation:none}}

/* ---- the glass's edges, above what scrolls on it (see the script). The seam sits on top; under it a band of frost a little
   deeper than the glass, only a few pixels: things going up beneath the header soften into the glass there, instead of running up to the
   line. The same at the foot, where there is a footer (computers, or a phone while a song plays). ---- */
.seam{position:fixed;left:0;right:0;z-index:22;height:10px;pointer-events:none;display:none;opacity:0;transition:opacity .3s linear;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:rgba(52,92,148,.3)}
.seam-t{top:var(--hh-h,48px);-webkit-mask-image:linear-gradient(180deg,#000 2px,transparent);mask-image:linear-gradient(180deg,#000 2px,transparent)}
.seam-b{bottom:var(--ft-h,0px);-webkit-mask-image:linear-gradient(0deg,#000 2px,transparent);mask-image:linear-gradient(0deg,#000 2px,transparent)}
.seam::before{content:"";position:absolute;left:0;right:0;height:2px}
.seam-t::before{top:0;background:linear-gradient(180deg,rgba(6,20,48,.62) 0 1px,rgba(255,255,255,.13) 1px 2px)}
.seam-b::before{bottom:0;background:linear-gradient(0deg,rgba(6,20,48,.62) 0 1px,rgba(255,255,255,.08) 1px 2px)}
html.sec-open .seam-t{display:block}
@media (min-width:761px){html.sec-open .seam-b{display:block}}
html.sec-open.hh-playing .seam-b{display:block}
.hh.glassing~.seam{opacity:1;transition:opacity .5s ease-out}
html.menu-open .seam,html.hh-dark .seam,html.hh-np .seam{opacity:0!important;transition-duration:.2s!important}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.seam{background:rgba(52,92,148,.8)}}

/* ---- a phone: the player at the foot has the painting behind it (as the header does), and while one goes down through the
   works it draws back to its line of light along the foot of the screen; going up, it comes out again ---- */
@media (max-width:760px){
  html.hh-playing .hh-ft{isolation:isolate}
  /* drawn back: the glass reaches the foot of the screen (the player keeps its own height while it slides away) */
  html.docflow.ft-mini.hh-playing{--ft-h:0px}
  html.docflow.ft-mini.hh-playing .hh-ft{height:calc(40px + env(safe-area-inset-bottom,0px))}
  html.docflow.ft-mini.hh-playing #glass.on{border-bottom-color:transparent}
  html.docflow.ft-mini.hh-playing #glass.on~.hh-ft{transform:translateY(100%);opacity:0;pointer-events:none;transition:transform .45s cubic-bezier(.4,0,.2,1),opacity .35s .1s}
  html.docflow.ft-mini .hh-rim{bottom:calc(env(safe-area-inset-bottom,0px) - 3px);height:18px;transition:bottom .45s cubic-bezier(.4,0,.2,1)}
  html.docflow.ft-mini .hh-rim::before,html.docflow.ft-mini .hh-rim i{top:13px}   /* the line flush with the foot of the screen */
  html.docflow.ft-mini .seam-b{display:none!important}
  html.docflow .hh-rim{transition:bottom .55s cubic-bezier(.2,.75,.2,1)}
}
