/* vishnu.me — every post, track and vlog is a line of one poem, a stanza per year, newest first.
   Kinds differ only in the colour of the full stop: blue writing, green music, red vlogs.
   The masthead holds the three kind icons and his flower; the flower opens the page about him
   at /about. An open page sets its title big inside the ribbon of every line. */
/* Fonts, served from this site (no third-party requests): Fraunces (variable: optical size, weight, SOFT, WONK; roman and
   italic) and DM Mono, each split by alphabet like Google Fonts does, so a browser only fetches the parts a page uses. */
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/dm-mono-normal-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/dm-mono-normal-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/dm-mono-normal-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/dm-mono-normal-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('/fonts/fraunces-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('/fonts/fraunces-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/fraunces-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/fraunces-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light dark;
  --paper: light-dark(#fcfdff, #131d2b);
  --ink: light-dark(#253958, #e1ebfc);
  /* Kind colours (Electric): blue for writing, green for music, red for vlogs.
     The light green is 3.3:1 on the page: fine for full stops, icons and large type, not for small text. */
  --k-post: light-dark(#2563eb, #7aa2ff);
  --k-track: light-dark(#16a34a, #4ade80);
  --k-video: light-dark(#e11d48, #fb7185);
  --muted: light-dark(#6c7b91, #a5b5cf);
  --rule: light-dark(#e3e9f1, #2e4057);
  --shade: light-dark(rgba(20, 32, 60, .45), rgba(0, 0, 0, .6));
  --emblem: var(--k-post);
  --pad: clamp(1.15rem, 3.4vw, 3rem);
  --gutter: clamp(0rem, 9vw, 9.5rem);
  --hero: clamp(4.1rem, 11.3vw, 15rem);
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --lh: .9;
  --er: 1.45rem;
  --di: .6rem;
  --tool: 2.25rem;
}
[data-kind="post"] { --k: var(--k-post); }
[data-kind="track"] { --k: var(--k-track); }
[data-kind="video"] { --k: var(--k-video); }

* { box-sizing: border-box; }
html { background: var(--paper); overflow-x: clip; }
body { margin: 0; color: var(--ink); font-family: var(--serif); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--emblem); outline-offset: 4px; border-radius: 2px; }
[hidden] { display: none !important; }

/* Clipped sideways so nothing (like the symbol's ripple near the edge) can widen the page; clip keeps the ribbon sticky. */
.page { display: flex; flex-direction: column; min-height: 100svh; padding: 0 var(--pad) 4rem; overflow-x: clip; }
.small { margin: 0; color: var(--muted); font: 400 .6875rem/1.6 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.small a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: .3em; }
.icon { display: block; flex: none; width: 1.05rem; height: 1.05rem; }
.small .icon, .title-meta .icon { display: inline-block; width: .95rem; height: .95rem; margin-right: .5em; color: var(--k); vertical-align: -.22em; }

/* Masthead: name, then the three kinds and the symbol */
.masthead { position: relative; z-index: 10; display: flex; align-items: center; gap: 1rem; min-height: clamp(4.5rem, 10vh, 6rem); }
.who { display: flex; align-items: center; flex: 1 1 0; min-width: 0; margin-right: auto; }
/* Back to the poem: on every page but the poem itself, its arrow lined up with the page's edge. */
.home-back { display: none; place-items: center; flex: none; width: var(--tool); height: var(--tool); margin: 0 .25rem 0 calc((var(--tool) - 1.15rem) / -2); border-radius: 50%; color: var(--ink); transition: background .15s ease, color .15s ease; }
.home-back .icon { width: 1.15rem; height: 1.15rem; stroke-width: 1.75; }
.page[data-mode="open"] .home-back, html.blooming .home-back { display: grid; animation: back-in .5s cubic-bezier(.22, 1, .36, 1) both; }
@media (hover: hover) { .home-back:hover { background: color-mix(in srgb, var(--muted) 14%, transparent); } }
@keyframes back-in { from { opacity: 0; translate: .5rem 0; } }
/* The name slides along (rather than cross-fading) when the back button arrives or leaves. */
.name { view-transition-name: site-name; display: inline-block; font-size: 1.125rem; letter-spacing: -.012em; text-decoration: none; white-space: nowrap; font-variation-settings: "wght" 560, "SOFT" 100, "WONK" 1; }
.tools { display: flex; align-items: center; }
.kind { display: grid; place-items: center; width: var(--tool); height: var(--tool); padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: background .15s ease, color .15s ease; }
.kinds { display: flex; }
.kind { color: var(--k); }
@media (hover: hover) { .kind:hover { background: color-mix(in srgb, var(--k) 12%, transparent); } }
.kind[aria-pressed="true"] { background: var(--k); color: var(--paper); }

/* The symbol */
.emblem { position: relative; z-index: 2; display: grid; place-items: center; flex: none; width: 2.9rem; height: 2.9rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--emblem); cursor: pointer; }
.emblem .flower { position: relative; width: 100%; height: 100%; animation: spin 72s linear infinite; transition: scale .4s cubic-bezier(.22, 1, .36, 1); }
.emblem:hover .flower, .emblem[aria-expanded="true"] .flower { scale: 1.12; }

/* Until someone has opened it, the symbol wiggles now and then and sends out a ripple. */
.ripple { position: absolute; inset: 0; border: 1.5px solid currentColor; border-radius: 50%; opacity: 0; pointer-events: none; }
.emblem::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, currentColor 0 8%, color-mix(in srgb, currentColor 48%, transparent) 26%, color-mix(in srgb, currentColor 20%, transparent) 48%, transparent 72%); animation: pulse 3s linear infinite; }
.emblem::after { content: ''; position: absolute; width: 25%; height: 25%; border-radius: 50%; background: currentColor; }
.ext[href^="http"]::after { content: ' ↗'; color: var(--muted); font-size: .78em; font-style: normal; }
/* About: the symbol blooms into a page of its own. */
.bloom { position: fixed; inset: 0; z-index: 9; display: grid; place-items: center; padding: 7rem var(--pad) 4rem; overflow-y: auto; background: var(--paper); visibility: hidden; clip-path: circle(0 at var(--bx, 100%) var(--by, 0)); transition: clip-path .6s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .6s; }
.bloom[data-open="true"] { visibility: visible; clip-path: circle(150vmax at var(--bx, 100%) var(--by, 0)); transition: clip-path .85s cubic-bezier(.22, 1, .36, 1), visibility 0s; }
.bloom[data-open="true"] :is(.bloom-about, .bloom-links) { animation: rise .7s .22s cubic-bezier(.22, 1, .36, 1) both; }
.bloom[data-open="true"] .bloom-links { animation-delay: .3s; }
.bloom-inner { width: min(46rem, 100%); }
/* His name heads the page, larger than the bio and always on one line. It flies there from the masthead (see flyName). */
.bloom-name { width: fit-content; margin: 0 0 clamp(.9rem, 2.2vh, 1.4rem); font-size: min(5.75rem, max(2.75rem, 7.5vw), calc((100vw - 2 * var(--pad)) / 8.4)); white-space: nowrap; line-height: 1; letter-spacing: -.04em; font-variation-settings: "wght" 600, "SOFT" 100, "WONK" 1; }
.bloom-name .stop { color: var(--emblem); }
.name-ghost { position: fixed; z-index: 11; margin: 0; color: var(--ink); pointer-events: none; will-change: transform; }
html.blooming .masthead .name, html.name-flying .masthead .name, html.name-flying .bloom .bloom-name { visibility: hidden; }
.bloom-about { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.75rem); line-height: 1.15; letter-spacing: -.025em; font-variation-settings: "wght" 360, "SOFT" 70, "WONK" 1; text-wrap: balance; }
.bloom-about a { color: var(--k-post); text-decoration-thickness: 1px; text-underline-offset: .15em; }
.bloom-links { display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; margin-top: clamp(1.5rem, 4vh, 2.25rem); font: italic 400 clamp(1.1rem, 1.6vw, 1.3rem)/1.4 var(--serif); letter-spacing: -.01em; }
.bloom-links a { color: var(--ink); text-decoration: none; transition: color .15s ease; }
.bloom-links a:hover { color: var(--k-post); }
html.blooming { overflow: hidden; }
html.blooming .tools { visibility: hidden; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* The poem: a stanza per year, newest first */
.poem { margin: clamp(.25rem, 2.5vh, 2rem) 0 0 -.035em; }
.sized { font-size: var(--size); line-height: var(--lh); letter-spacing: -.042em; white-space: nowrap; }
.stanza { display: grid; grid-template-columns: var(--year-col) minmax(0, 1fr); align-items: first baseline; }
.stanza + .stanza { margin-top: calc(var(--size) * .14 + .35rem); }
.stanza-year { color: var(--muted); font: 400 .6875rem/1 var(--mono); letter-spacing: .05em; }
.entry { --wght: 360; --soft: 70; color: var(--ink); text-decoration: none; cursor: pointer; transition: color .25s ease, opacity .3s ease; }
.entry.solid { display: inline-block; }
.entry:hover, .entry:focus-visible { color: var(--k); }
.tok { display: inline-block; margin-right: var(--wgap, .2em); font-variation-settings: "wght" var(--wght), "SOFT" var(--soft), "WONK" 1; }
.tok.last { margin-right: var(--egap, .44em); }
.dot { color: var(--k); }
.entry[data-playing="true"] .dot, .title[data-playing="true"] .dot { animation: blink 1.1s ease-in-out infinite; }
.note { display: inline-block; vertical-align: top; margin: calc(var(--size) * .115) 0 0 .5em; color: var(--muted); font: 400 max(.625rem, .068em)/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; font-variation-settings: normal; }
.poem[data-finding="true"] .entry:not([data-match="true"]) { opacity: .12; }
/* Until the type has loaded, the poem stays hidden; then its lines come in (see arrive in script.js). */
html.arriving .poem { opacity: 0; }

/* The preview waits until you rest on a line, then appears beside the pointer and trails it softly. */
.peek { position: fixed; z-index: 30; top: 0; left: 0; display: flex; align-items: center; gap: .8rem; width: max-content; max-width: min(21rem, calc(100vw - 2 * var(--pad))); padding: .5rem .85rem .5rem .5rem; border: 1px solid var(--rule); border-radius: .7rem; background: var(--paper); box-shadow: 0 12px 28px -22px var(--shade); opacity: 0; pointer-events: none; translate: var(--x, 0) var(--y, 0); transform-origin: 0 0; }
.peek[data-on="true"] { opacity: 1; }
/* It grows from the corner nearest the pointer. */
.peek[data-hside="left"] { transform-origin: 100% 0; }
.peek[data-side="above"] { transform-origin: 0 100%; }
.peek[data-side="above"][data-hside="left"] { transform-origin: 100% 100%; }
.peek-art:empty { display: none; }
.peek-art img { display: block; width: auto; height: 4.25rem; border-radius: .35rem; }
.peek-art svg { display: block; width: 5.5rem; height: 2rem; fill: var(--k-track); }
.peek-text { display: grid; gap: .35rem; min-width: 0; padding-left: .2rem; }
.peek-line { display: -webkit-box; margin: 0; overflow: hidden; font-size: 1rem; font-style: italic; line-height: 1.35; letter-spacing: -.01em; font-variation-settings: "SOFT" 100, "WONK" 0; text-wrap: pretty; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.peek-line:empty { display: none; }

/* Something is open: the poem becomes one line that scrolls sideways, with the open line set big */
.page[data-mode="open"] .poem { position: sticky; top: 0; z-index: 5; margin: 0 calc(-1 * var(--pad)); border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ribbon { --size: 1.5rem; --lh: 1.25; --wgap: .24em; --egap: 0em; --rsize: clamp(1.25rem, 2.1vw, 1.65rem); position: relative; display: flex; align-items: baseline; gap: .7em; padding: .7rem var(--pad) .8rem; overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-size: var(--rsize); line-height: 1.25; letter-spacing: -.02em; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--pad), #000 calc(100% - var(--pad) * 2.5), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--pad), #000 calc(100% - var(--pad) * 2.5), transparent 100%); }
.ribbon::-webkit-scrollbar { display: none; }
.ribbon::after { content: ''; flex: none; width: var(--tail, 3rem); }
.ribbon .entry { --wght: 400; flex: none; opacity: .45; }
.ribbon .entry:hover, .ribbon .entry:focus-visible { opacity: 1; }
.ribbon .entry[data-active="true"] { --wght: 720; opacity: 1; }
.ribbon .note { margin: .2em 0 0 .3em; font-size: .5625rem; }

/* The open line starts exactly where the text below starts; the lines before it fade out to the left.
   Extra room on the left lets script nudge every line, even the newest, onto that column. */
.page[data-mode="open"] .ribbon { --line-x: calc(var(--pad) + var(--gutter)); padding-left: calc(var(--line-x) + 1.5rem); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--line-x), #000 calc(100% - var(--pad) * 2.5), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--line-x), #000 calc(100% - var(--pad) * 2.5), transparent 100%); }
/* The open line is set at title size inside the ribbon, so there is no second heading. As you scroll it shrinks to ribbon size (--c goes from 0 to 1, set in script) and stays at the top,
   while the room it gives up scrolls away with the page, so the text below never jumps. */
.page[data-mode="open"] .poem { margin-bottom: calc(var(--room, 0px) * var(--c, 0)); border-bottom-color: color-mix(in srgb, var(--rule) calc(var(--c, 0) * 100%), transparent); }
.page[data-mode="open"] .ribbon .entry[data-active="true"] { --big: clamp(4rem, 10.5vw, 10.5rem); --wght: 640; --soft: 30; padding: .1em 0 .12em; font-size: calc(var(--big) + (var(--rsize) - var(--big)) * var(--c, 0)); line-height: .92; letter-spacing: -.042em; white-space: normal; max-width: calc(min(16em, 100vw - 2 * var(--pad) - var(--gutter)) + var(--c, 0) * 400vw); }
.page[data-mode="open"] .ribbon .entry[data-active="true"][data-scale="l"] { --big: clamp(3rem, 7.4vw, 7.25rem); }
.page[data-mode="open"] .ribbon .entry[data-active="true"][data-scale="m"] { --big: clamp(2.5rem, 5.6vw, 5.25rem); }
.page[data-mode="open"] .content { padding-top: .35rem; }
.page[data-mode="open"] .content > .title { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.page[data-mode="open"] .title-meta { margin-top: 1rem; }


/* Search and the kind icons only filter the poem, so an open page leaves them out. */
.page[data-mode="open"] .tools { display: none; }

.content { flex: 1; min-width: 0; padding: clamp(1.75rem, 6vh, 4rem) 0 0 var(--gutter); }
.title { width: fit-content; max-width: 100%; margin: 0 0 0 -.04em; font-size: clamp(4rem, 10.5vw, 10.5rem); font-weight: 400; line-height: .92; letter-spacing: -.042em; text-wrap: balance; font-variation-settings: "wght" 640, "SOFT" 30, "WONK" 1; }
.title[data-scale="l"] { font-size: clamp(3rem, 7.4vw, 7.25rem); }
.title[data-scale="m"] { max-width: 16em; font-size: clamp(2.5rem, 5.6vw, 5.25rem); line-height: .96; }
.title-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .85rem; margin: 1.25rem 0 clamp(1.75rem, 5vh, 3rem); color: var(--muted); font: 400 .6875rem/1.6 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.title-meta .icon { display: block; width: 1rem; height: 1rem; margin: 0; }

/* The symbol as a quiet ornament: section breaks and the end of a post */
.sigil { position: relative; display: inline-block; width: 1.5rem; height: 1.5rem; color: var(--emblem); vertical-align: middle; }
.sigil::before { content: ''; position: absolute; inset: 0; background: currentColor; -webkit-mask: var(--flower) center / contain no-repeat; mask: var(--flower) center / contain no-repeat; }
.sigil::after { content: ''; position: absolute; inset: 37.5%; border-radius: 50%; background: currentColor; }

/* Reading */
.prose { max-width: 34rem; font-size: 1.1875rem; line-height: 1.72; font-variation-settings: "SOFT" 0, "WONK" 0; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { margin: 2.1em 0 .65em; font-size: 1.65rem; font-style: italic; font-weight: 400; line-height: 1.2; letter-spacing: -.015em; }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--emblem); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.prose blockquote { margin: 1.4em 0; padding-left: 1.25em; border-left: 2px solid var(--k-post); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose ol { margin: 1.1em 0 1.3em; padding-left: 1.4em; }
.prose li { margin: .6em 0; padding-left: .3em; }
.prose h3 { margin: 1.9em 0 .5em; font-size: 1.25rem; font-style: italic; font-weight: 400; line-height: 1.3; letter-spacing: -.01em; }
.prose ul { margin: 1.1em 0 1.3em; padding-left: 1.2em; }
.prose img { display: block; max-width: 100%; height: auto; margin: 1.6em 0; border-radius: 4px; }
.prose pre { margin: 1.4em 0; padding: 1rem 1.15rem; overflow-x: auto; border-radius: 6px; background: color-mix(in srgb, var(--muted) 10%, transparent); font: 400 .8125rem/1.6 var(--mono); overflow-wrap: normal; }
.prose code { font-family: var(--mono); font-size: .86em; }
.prose pre code { font-size: inherit; }
.prose small { color: var(--muted); font-size: .85em; }
/* Essays first published elsewhere point back to the original (also the page's canonical). */
.source { margin-top: 1.5rem; }
.prose hr { width: 1.5rem; height: 1.5rem; margin: 2.2em 0; border: 0; background: var(--emblem); -webkit-mask: var(--flower) center / contain no-repeat; mask: var(--flower) center / contain no-repeat; }
.prose > :last-child { margin-bottom: 0; }
.prose.short { max-width: 30rem; font-size: clamp(1.5rem, 2.5vw, 2.05rem); line-height: 1.42; letter-spacing: -.014em; font-variation-settings: "SOFT" 100, "WONK" 0; }
.endmark { display: block; margin-top: 2.5rem; }
/* The end of a page: the previous line, Home, the next line, in the small type. */
.after { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem 2.25rem; margin: clamp(2.5rem, 8vh, 4.5rem) 0 0; }
.back { color: var(--muted); font: 400 .6875rem/1.6 var(--mono); letter-spacing: .05em; text-transform: uppercase; text-decoration-color: var(--rule); text-underline-offset: .3em; transition: color .15s ease; }
.back:hover, .back:focus-visible { color: var(--ink); text-decoration-color: currentColor; }

/* Listening: the play button carries the symbol's ring */
.player { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(1rem, 3vw, 2.25rem); max-width: 60rem; }
.disc { --level: 0; position: relative; display: grid; place-items: center; width: clamp(5.5rem, 12vw, 8rem); height: clamp(5.5rem, 12vw, 8rem); padding: 0; border: 0; border-radius: 50%; background: none; color: var(--k-track); cursor: pointer; }
.disc:disabled { cursor: default; opacity: .45; }
.disc::before { content: ''; position: absolute; inset: -8%; border-radius: 50%; background: radial-gradient(circle, currentColor 0 8%, color-mix(in srgb, currentColor 48%, transparent) 26%, color-mix(in srgb, currentColor 20%, transparent) 48%, transparent 72%); opacity: 0; scale: calc(.6 + var(--level) * .9); transition: scale .12s linear, opacity .4s ease; }
.player[data-state="playing"] .disc::before { opacity: .75; }
/* The ring turns faster while playing. The speed is eased in script (spinTo), so it never jumps. */
.disc .ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 72s linear infinite; }
.disc .core { position: relative; display: grid; place-items: center; width: 46%; height: 46%; border-radius: 50%; background: currentColor; transition: scale .25s cubic-bezier(.22, 1, .36, 1); }
.disc:not(:disabled):hover .core { scale: 1.08; }
.disc .core svg { width: 38%; height: 38%; fill: var(--paper); }
.disc .pause, .player[data-state="playing"] .disc .go { display: none; }
.player[data-state="playing"] .disc .pause { display: block; }
.wave { position: relative; height: clamp(3.5rem, 9vw, 5.5rem); color: color-mix(in srgb, var(--k-track) 30%, transparent); cursor: pointer; touch-action: none; }
.wave svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.wave .played { position: absolute; inset: 0; color: var(--k-track); clip-path: inset(0 calc(100% - var(--progress, 0%)) 0 0); }
.track-time { color: var(--muted); font: 400 .75rem/1 var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* Watching */
.stage { display: grid; grid-template-columns: max-content minmax(0, 24rem); justify-content: start; align-items: end; gap: clamp(1.25rem, 3vw, 2.75rem); }
.stage video { display: block; width: auto; height: max(20rem, min(calc(100svh - 28.5rem), 640px)); max-width: 100%; border-radius: 4px; background: #000; }
.stage[data-shape="wide"] { grid-template-columns: minmax(0, 46rem); }
.stage[data-shape="wide"] video { width: 100%; height: auto; }
.stage .caption-text { margin: 0; font-size: 1.125rem; line-height: 1.6; white-space: pre-line; }
.stage .tags { margin: .8rem 0 0; color: var(--muted); font: 400 .75rem/1.7 var(--mono); }
.stage .small { margin-top: 1rem; }
.absent { max-width: 30rem; color: var(--muted); font-size: 1.1875rem; font-style: italic; line-height: 1.6; }

@media (max-width: 700px) {
  :root { --hero: clamp(3.4rem, 21.5vw, 6.6rem); --gutter: 0rem; --tool: 2.1rem; }
  .masthead { flex-wrap: wrap; row-gap: .25rem; padding-top: .9rem; }
  /* Second row: the three kinds, on the left. */
  .tools { order: 3; flex-basis: 100%; margin: 0 calc((2.9rem - var(--tool)) / 2) 0 0; }
  .kinds { order: 1; margin: 0; padding: 0; border: 0; }
  .no-match { margin: .5rem 0 0; color: var(--muted); font-size: 1.25rem; font-style: italic; }
  /* On a phone his name takes two lines on the about page, larger; each word flies to its own line. */
  .bloom-name { font-size: min(5.5rem, calc((100vw - 2 * var(--pad)) / 4.6)); line-height: .95; }
  .bloom-name .w { display: block; }
  .stanza { grid-template-columns: minmax(0, 1fr); }
  .stanza-year { margin-bottom: .3rem; }
  .player { grid-template-columns: auto minmax(0, 1fr); }
  .player .track-time { grid-column: 2; text-align: left; }
  .stage, .stage[data-shape="wide"] { grid-template-columns: minmax(0, 1fr); }
  .stage video { height: auto; max-height: 68svh; margin-inline: auto; }
}

@keyframes spin { to { rotate: 360deg; } }
@keyframes pulse {
  0% { transform: scale(.28); opacity: .7; animation-timing-function: ease-out; }
  66.667% { transform: scale(1.24); opacity: .7; animation-timing-function: ease-out; }
  100% { transform: scale(1.24); opacity: 0; }
}
@keyframes blink { 50% { opacity: .15; } }
::view-transition-group(*) { animation-duration: .52s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
@media (prefers-reduced-motion: reduce) {
  .emblem .flower, .disc .ring, .home-back, .entry[data-playing="true"] .dot, .title[data-playing="true"] .dot { animation: none; }
  .emblem::before { animation: none; transform: scale(1); opacity: .6; }
  .entry, .disc::before, .peek, .bloom { transition: none; }
  .bloom[data-open="true"] :is(.bloom-about, .bloom-links) { animation: none; }
  .page[data-mode="home"] .entry:hover { --wght: 700; }
}
  
