/* Sangwich: the page is the sandwich, and scrolling is eating through it.
   Top slice (baked crust, real crumb), then the song stacked as fillings: a layer of jam for every hook,
   a layer of peanut butter for every verse with its own place beside it, the bridge as open sky,
   and the bottom slice to close it. Every G is jam. */
@font-face { font-family: Fraunces; src: url(/fonts/fraunces-var.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: Fraunces; src: url(/fonts/fraunces-var-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: Bricolage; src: url(/fonts/bricolage-var.woff2) format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: Brush; src: url(/fonts/mashanzheng-sub.woff2) format("woff2"); font-display: swap; }

:root {
  --table: #e9d6b2;
  --crumb: #fbf0da; --crust: #b8732f; --crust-dk: #7f4618;
  --pb: #d49a4e; --pb-dk: #a8692b; --jam: #a3203a; --jam-dk: #6f1224; --jam-lt: #ffe9d6;
  --ink: #26170c; --ink-2: #4a2c15; --ink-3: #6b4524;
  --sea: #2f6f8c; --sea-dk: #1f5168; --plane: #2f63b8; --xian: #a63b26; --chalk: #2e4a3b;
  --sky: #cfe5ee; --fish: #ee7b22; --fish-dk: #c25711;
  --rap: Bricolage, "Helvetica Neue", Arial, sans-serif;
  --sing: Fraunces, Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 30vh; }
body {
  margin: 0; color: var(--ink); background-color: var(--table);
  /* the kitchen table: warm boards under the sandwich */
  background-image: repeating-linear-gradient(90deg, rgba(122, 74, 30, .06) 0 2px, transparent 2px 180px), linear-gradient(180deg, #f3e6cc, var(--table) 40rem);
  font: 400 18px/1.5 var(--sing); font-optical-sizing: auto;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--jam); outline-offset: 3px; border-radius: 6px; }
.zh { font-family: Brush, "Kaiti SC", STKaiti, KaiTi, serif; font-style: normal; font-size: 1.3em; line-height: 1; }

.sandwich { max-width: 1200px; margin: 0 auto; padding: 28px 14px 40px; }

/* Bread: a toasted crust all the way round, open crumb inside, a slice thick enough to cast a shadow. */
.slice { position: relative; padding: 16px; background: radial-gradient(120% 90% at 50% 20%, #d9944c 0%, var(--crust) 55%, var(--crust-dk) 100%);
  box-shadow: 0 9px 0 #6a3a13, 0 26px 50px rgba(80, 42, 12, .28); }
.crumb { position: relative; background-color: var(--crumb);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .62 0 0 0 0 .42 0 0 0 0 .2 3.4 0 0 0 -1.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(90% 70% at 50% 40%, #fff7e6, var(--crumb) 70%, #f2dcb4 100%);
  box-shadow: inset 0 0 0 2px #e9c58c, inset 0 0 44px 10px rgba(201, 135, 64, .38); }
.slice.top { border-radius: 48% 48% 34px 34px / 160px 160px 34px 34px; }
.slice.top .crumb { border-radius: 47% 47% 22px 22px / 146px 146px 22px 22px; padding: 74px clamp(18px, 6vw, 90px) 44px; text-align: center; }
.slice.bottom { border-radius: 26px 26px 64px 64px; margin-top: -4px; }
.slice.bottom .crumb { border-radius: 14px 14px 52px 52px; padding: 46px clamp(18px, 6vw, 90px) 30px; text-align: center; }
@media (max-width: 640px) {
  .slice { padding: 11px; }
  .slice.top { border-radius: 46% 46% 26px 26px / 80px 80px 26px 26px; }
  .slice.top .crumb { border-radius: 45% 45% 16px 16px / 72px 72px 16px 16px; padding-top: 46px; }
}

.tag { display: inline-block; width: clamp(150px, 20vw, 210px); line-height: 0; }
.tag img { width: 100%; height: auto; }

/* The wordmark is baked: toasted letters with a crust edge, the G is jam.
   On load the D drops into the sea and the G falls into its place. */
h1 { margin: 8px 0 0; font: 900 clamp(70px, 15vw, 180px)/.9 var(--sing); letter-spacing: -.025em; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.wm { display: inline-flex; align-items: baseline; filter: drop-shadow(0 7px 0 rgba(106, 58, 19, .28)); }
.wm .b { display: inline-block; color: transparent; background: linear-gradient(180deg, #f4cd8b 0%, #dd9a50 42%, #b06a2c 78%, #8c4f1f 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 2.5px #74401a; }
.wm .g { display: inline-block; color: transparent; background: linear-gradient(180deg, #e8556a 0%, var(--jam) 55%, var(--jam-dk) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 2.5px #5a0d1c;
  max-width: 0; opacity: 0; transform: translateY(-1.4em); animation: gin .9s cubic-bezier(.3, 1.6, .5, 1) 1.9s forwards; }
.wm .d { max-width: .7em; animation: dfall 1.1s cubic-bezier(.5, 0, .75, .3) .9s forwards; }
.sea-line { display: block; width: min(320px, 60%); height: 22px; margin: 4px auto 0; fill: none; stroke: var(--sea); stroke-width: 3; stroke-linecap: round; opacity: 0; animation: seain .5s ease .8s forwards, seaout 1.2s ease 3.3s forwards; }
@keyframes dfall { 0% { transform: none; } 60% { opacity: 1; } 100% { transform: translateY(1.2em) rotate(38deg); opacity: 0; max-width: 0; } }
@keyframes gin { 0% { max-width: 0; opacity: 0; transform: translateY(-1.4em); } 40% { max-width: .62em; opacity: 1; } 100% { max-width: .62em; opacity: 1; transform: none; } }
@keyframes seain { to { opacity: .85; } }
@keyframes seaout { to { opacity: 0; } }
h1 .g.bounce { animation: gbounce .698s ease-in-out infinite; max-width: .62em; opacity: 1; transform: none; }
@keyframes gbounce { 0%, 100% { transform: none; } 40% { transform: translateY(-.14em) scale(1.05); } }

.say { margin: 16px auto 30px; max-width: 32em; font-style: italic; font-size: clamp(19px, 2.2vw, 24px); color: var(--ink-2); line-height: 1.4; }

/* The player: a jar lid to press, and a butter knife to spread through the song. */
.player { display: flex; align-items: center; gap: 18px; max-width: 660px; margin: 0 auto; text-align: left; }
.play { flex: none; width: 86px; height: 86px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--crumb);
  background: radial-gradient(circle, #a96d33 0 56%, #8a5626 57% 62%, transparent 63%), repeating-conic-gradient(#8f5a28 0 5deg, #6c4019 5deg 10deg);
  box-shadow: 0 5px 0 #4f2c10, inset 0 2px 0 rgba(255, 220, 170, .35); transition: transform .12s; }
.play:active { transform: translateY(3px); box-shadow: 0 2px 0 #4f2c10; }
.play svg { width: 34px; height: 34px; fill: currentColor; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .3)); }
.play .i-pause, body.playing .play .i-play { display: none; }
body.playing .play .i-pause { display: block; }
.track { flex: 1; min-width: 0; }
.now { margin: 0 0 6px; font: 600 17px/1.3 var(--rap); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.times { display: flex; justify-content: space-between; align-items: center; font: 500 15px/1.2 var(--rap); color: var(--ink-2); font-variant-numeric: tabular-nums; gap: 10px; margin-top: 4px; }
.save { color: var(--jam); font-weight: 700; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
input.knife { width: 100%; height: 30px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --p: 0%; }
input.knife::-webkit-slider-runnable-track { height: 12px; border-radius: 7px; background: linear-gradient(90deg, var(--pb) var(--p), #ead2a6 var(--p)); box-shadow: inset 0 0 0 2px #c98d47; }
input.knife::-moz-range-track { height: 12px; border-radius: 7px; background: #ead2a6; }
input.knife::-moz-range-progress { height: 12px; border-radius: 7px; background: var(--pb); }
input.knife::-webkit-slider-thumb { -webkit-appearance: none; width: 54px; height: 22px; margin-top: -5px; border: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 22'%3E%3Cpath d='M2 11c0-4 3-6 8-6h24v12H10c-5 0-8-2-8-6Z' fill='%23d7dde2' stroke='%238a949b' stroke-width='1.4'/%3E%3Crect x='33' y='6' width='19' height='10' rx='5' fill='%237a4a22'/%3E%3C/svg%3E") center/contain no-repeat; }
input.knife::-moz-range-thumb { width: 54px; height: 22px; border: 0; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 22'%3E%3Cpath d='M2 11c0-4 3-6 8-6h24v12H10c-5 0-8-2-8-6Z' fill='%23d7dde2' stroke='%238a949b' stroke-width='1.4'/%3E%3Crect x='33' y='6' width='19' height='10' rx='5' fill='%237a4a22'/%3E%3C/svg%3E") center/contain no-repeat; }

/* The fillings. Each layer has a soft spread edge on top. */
.filling { margin: -2px 12px 0; position: relative; z-index: 1; }
.layer { position: relative; padding: 54px clamp(18px, 5vw, 64px) 46px; }
.layer::before { content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 16px; background: var(--c);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 16'%3E%3Cpath d='M0 16V9c10-9 22-9 32-3s18 7 26 0 16-7 22 0v10Z'/%3E%3C/svg%3E") repeat-x 0 0 / 80px 16px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 16'%3E%3Cpath d='M0 16V9c10-9 22-9 32-3s18 7 26 0 16-7 22 0v10Z'/%3E%3C/svg%3E") repeat-x 0 0 / 80px 16px; }
.layer.pb { --c: var(--pb); background: var(--pb) radial-gradient(120% 60% at 30% 0%, rgba(255, 226, 170, .45), transparent 60%); color: var(--ink); }
.layer.jam { --c: var(--jam); background: var(--jam) radial-gradient(90% 70% at 70% 10%, rgba(255, 120, 140, .35), transparent 60%); color: var(--jam-lt); text-align: center; }
.layer.sky { --c: var(--sky); background: linear-gradient(180deg, var(--sky), #eef4ef 80%); color: var(--ink); text-align: center; padding-top: 170px; overflow: hidden; }
.layer.has-scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 44px; align-items: start; }

/* Part names are labels stuck on the jar. */
.layer h2 { display: inline-block; margin: 0 0 18px; padding: 5px 14px; font: 700 16px/1.2 var(--rap); color: var(--ink); background: #fff6e4; border: 1.5px dashed #b98447; border-radius: 6px; transform: rotate(-1.5deg); }
.layer.jam h2 { background: var(--jam-lt); border-color: #e6a0a8; }

.layer ol { list-style: none; margin: 0; padding: 0; }
.ln { padding: 4px 0; }
.ln > a { text-decoration: none; transition: color .25s, opacity .25s; border-radius: 4px; }
.pb .ln > a { font: 680 clamp(24px, 2.6vw, 36px)/1.16 var(--rap); font-stretch: 86%; letter-spacing: -.01em; }
.jam .ln > a, .sky .ln > a { font: italic 500 clamp(28px, 3.4vw, 50px)/1.15 var(--sing); font-variation-settings: "SOFT" 100, "opsz" 96; }
.w { white-space: nowrap; }
.ln b.g { display: inline-block; font-weight: inherit; color: var(--jam); }
.jam .ln b.g { color: #ffcf6e; }
.ln > a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
body.playing .ln > a { opacity: .5; }
body.playing .ln.past > a { opacity: .68; }
.ln.on > a, body.playing .ln.on > a { opacity: 1; }
.pb .ln.on > a { background: linear-gradient(transparent 60%, rgba(255, 244, 214, .7) 60%); }
.jam .ln.on > a { text-shadow: 0 0 22px rgba(255, 200, 150, .55); }
.ln.sayit.on b.g { animation: bounce .698s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: none; } 40% { transform: translateY(-.26em) scale(1.08); } }
.note { display: block; margin: 4px 0 10px; font: italic 400 18px/1.4 var(--sing); color: var(--ink-2); max-width: 40em; }
.jam .note { color: #ffd7cf; }
.note .zh { color: var(--jam-dk); font-size: 1.45em; vertical-align: -.08em; }
.jam .note .zh { color: #ffcf6e; }

/* A deli label to send one line. */
.send-line { display: none; margin: 4px 0 6px 10px; vertical-align: middle; border: 0; background: #fff6e4; color: var(--ink); font: 700 14px/1 var(--rap); padding: 7px 12px 7px 20px; cursor: pointer; transform: rotate(-2deg);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); box-shadow: inset 0 0 0 1.5px #b98447; position: relative; }
.send-line::before { content: ""; position: absolute; left: 9px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--jam); }
.ln.on .send-line, .ln:hover .send-line, .ln:focus-within .send-line { display: inline-block; }

/* The scenes stay beside their verse while it plays. */
.stage { position: sticky; top: 18px; margin: 0; }
.stage .scene { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 0 0 4px #fff6e4, 0 12px 30px rgba(70, 36, 10, .25); background: #f6ead2; }
.stage figcaption { margin-top: 14px; font: 600 16px/1.2 var(--rap); color: var(--ink-2); text-align: center; }
@media (max-width: 860px) {
  .layer.has-scene { grid-template-columns: 1fr; gap: 20px; }
  .stage { position: relative; top: 0; order: -1; max-width: 460px; width: 100%; margin: 0 auto; }
  .layer.sky { padding-top: 130px; }
}

/* Over the Pacific */
.pacific .air { fill: #f6e8cc; }
.pacific .sea { fill: var(--sea); }
.pacific .wave { fill: none; stroke: #8fc1d4; stroke-width: 2.4; stroke-linecap: round; }
.pacific .xian path, .pacific .xian rect { fill: var(--xian); } .pacific .xian .door { fill: #f6e8cc; }
.pacific .amherst path { fill: #fffaf0; stroke: #9aa7ad; stroke-width: 2; } .pacific .amherst .spire { fill: #fffaf0; } .pacific .amherst .win { fill: #9aa7ad; }
.pacific .place { font-size: 34px; fill: var(--xian); text-anchor: middle; font-family: Brush, serif; }
.pacific .placename { font: 600 15px var(--rap); fill: var(--ink-2); text-anchor: middle; }
.pacific .placename.big { font-size: 18px; }
.pacific .route { fill: none; stroke: var(--plane); stroke-width: 2.2; stroke-dasharray: 2 8; stroke-linecap: round; opacity: .7; }
.pacific .plane path { fill: var(--plane); stroke: #fff; stroke-width: 1.5; }
.pacific .dropped { font: 900 40px var(--sing); fill: #b06a2c; text-anchor: middle; opacity: 0; transform-box: fill-box; transform-origin: center; transition: transform 1.4s cubic-bezier(.5, 0, .8, .4), opacity 1.4s; }
.pacific .splash { fill: none; stroke: #fff; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pacific .name { font-size: 64px; text-anchor: middle; font-family: Brush, serif; opacity: 0; transition: opacity .8s; }
.pacific .fishname { fill: #ffb15c; } .pacific .rainname { fill: #fff6e4; }
.pacific .rain { fill: none; stroke: #e9f4f8; stroke-width: 2; stroke-linecap: round; opacity: 0; transition: opacity .8s; }
.pacific .seafish { opacity: 0; transition: opacity .8s; }
.layer:not(.live) .pacific .rainname, .layer:not(.live) .pacific .rain, .layer:not(.live) .pacific .seafish { opacity: 1; }
.live.at-0 .pacific .dropped { opacity: 1; }
.live.at-1 .pacific .dropped { transform: translateY(150px) rotate(70deg); opacity: 0; }
.live.at-1 .pacific .splash { animation: splash 1s ease-out 1.1s; }
@keyframes splash { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(7); } }
.live.at-3 .pacific .fishname, .live.at-3 .pacific .seafish { opacity: 1; }
.live.at-4 .pacific .fishname { opacity: 0; }
.live.at-4 .pacific .rainname, .live.at-4 .pacific .rain { opacity: 1; }
.pacific .rain, .mountains .rain { animation: fall 1.1s linear infinite; }
@keyframes fall { from { transform: translateY(-10px); } to { transform: translateY(14px); } }

/* Mr. G's table */
.table .wall { fill: #efe3c8; }
.table .board rect { fill: var(--chalk); stroke: #8a6a44; stroke-width: 6; }
.table .board text { font: italic 500 17px var(--sing); fill: #e8efe6; transition: fill .4s; }
.table .board text:first-of-type { font-style: normal; font-weight: 700; font-family: var(--rap); font-size: 16px; }
.live.at-4 .table .board text:not(:first-of-type) { fill: #ffe08a; }
.table .wood { fill: #b57a44; } .table .grain { stroke: #95602f; stroke-width: 2; fill: none; }
.table .glass { fill: rgba(255, 255, 255, .55); stroke: #c9b38f; stroke-width: 2; }
.table .butter { fill: #c98b3d; }
.table .label { fill: #fbf0d9; stroke: #b3263a; stroke-width: 2; }
.table .lbl { font: italic 700 18px var(--sing); fill: var(--jam); text-anchor: middle; }
.table .lbl.small { font: 600 14px var(--rap); fill: var(--ink-2); }
.table .lid { cursor: pointer; transform-box: fill-box; transform-origin: center; transform: translateY(var(--lift, 0px)) rotate(var(--lid, 0deg)); transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.table .lid rect { fill: #7a4a22; } .table .lid .ridge { stroke: #5a3414; stroke-width: 3; }
.table .lid:focus-visible { outline: none; } .table .lid:focus-visible rect { stroke: var(--jam); stroke-width: 3; }
.table.open .lid, .live.at-6 .table .lid { --lift: -54px; --lid: -24deg; }
.table .knife { transition: transform 1s ease; }
.table .knife .blade { fill: #d7dde2; stroke: #8a949b; stroke-width: 1.4; } .table .knife .handle { fill: #7a4a22; }
.live.at-2 .table .knife { transform: translate(150px, -70px) rotate(-18deg); }

/* After the new rain */
.mountains .paper { fill: #f4efe2; }
.mountains .moon { fill: #f3d9a0; opacity: .8; }
.mountains .m3 { fill: #a8b6bc; opacity: .55; } .mountains .m2 { fill: #6f8790; opacity: .7; } .mountains .m1 { fill: #3c5560; opacity: .85; }
.mountains .rain { fill: none; stroke: #6f8790; stroke-width: 1.6; stroke-linecap: round; opacity: .55; }
.mountains .poem { font-family: Brush, serif; font-size: 34px; fill: #26170c; text-anchor: middle; }
.mountains .seal rect { fill: var(--jam); } .mountains .seal text { font-family: Brush, serif; font-size: 16px; fill: #fff3e0; text-anchor: middle; }
.mountains .risefish { --rise: .55; transform: translate(120px, calc(250px - var(--rise) * 170px)); transition: transform .6s ease; }
.live.at-14 .mountains .risefish { transform: translate(150px, 20px); }

/* Jinyu the goldfish, wherever he swims */
.f .body { fill: var(--fish); } .f .tail, .f .fin { fill: var(--fish-dk); }
.f .scale { fill: none; stroke: #f6a35d; stroke-width: 2.4; stroke-linecap: round; }
.f .eye { fill: #fff6e4; } .f .pupil { fill: var(--ink); } .f .mouth { fill: none; stroke: var(--fish-dk); stroke-width: 2.4; stroke-linecap: round; }
.f .tail { transform-box: fill-box; transform-origin: 100% 50%; animation: wag .9s ease-in-out infinite; }
.f .wing path { fill: #fffaf0; stroke: #e2c99c; stroke-width: 1.5; } .f .wing .quill { fill: none; stroke: #d3b680; stroke-width: 1.6; }
.f .wing { transform-box: fill-box; transform-origin: 10% 95%; transform: scale(var(--wing, 0)); transition: transform 1s ease; }
.f .wing.back { opacity: .75; }
.seafish .f { --wing: 0; }
.risefish .f { --wing: var(--grow, .7); }
.live.at-14 .risefish .f .wing.front, .flyer .f .wing.front { animation: flap .5s ease-in-out infinite; }
.flyer .f { --wing: 1; }
@keyframes wag { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@keyframes flap { 0%, 100% { transform: scale(var(--wing, 1)) rotate(0); } 50% { transform: scale(var(--wing, 1)) rotate(-22deg); } }

/* The bridge: open sky, and the fish who learned to fly it. */
.flywrap { position: absolute; top: 26px; left: 8%; width: 150px; pointer-events: none; }
.flyer { width: 100%; height: auto; overflow: visible; animation: hover 3s ease-in-out infinite; }
.sky.live .flywrap { animation: across 11s linear infinite; }
@keyframes hover { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
@keyframes across { 0% { left: -160px; top: 60px; } 25% { top: 8px; } 50% { top: 70px; } 75% { top: 12px; } 100% { left: 100%; top: 60px; } }
.bubble { position: absolute; left: 70%; top: -14px; white-space: nowrap; background: #fffaf0; border: 1.5px solid #b98447; border-radius: 14px 14px 14px 2px; padding: 6px 12px; font: italic 500 16px var(--sing); opacity: 0; transition: opacity .3s; }
.sky.live.at-1:not(.at-2) .bubble, .sky:not(.live) .bubble { opacity: 1; }
@media (max-width: 640px) { .flywrap { width: 100px; } }

/* The bottom slice. */
.send { border: 0; background: var(--jam); color: var(--crumb); font: 700 clamp(19px, 2.3vw, 24px)/1.2 var(--rap); padding: 17px 32px; border-radius: 999px; cursor: pointer; box-shadow: 0 5px 0 var(--jam-dk); }
.send:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--jam-dk); }
.credits { max-width: 40em; margin: 26px auto 18px; font: italic 400 17px/1.5 var(--sing); color: var(--ink-2); }
.foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 0; font: 500 14px var(--rap); color: var(--ink-3); }
.access { display: inline-flex; align-items: center; gap: 6px; }
.access svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.foot .build-stamp { font: 500 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-3); opacity: 1; letter-spacing: 0; }

/* One share sheet for the song and for any single line. */
.sheet { border: 0; padding: 14px; border-radius: 32px; background: radial-gradient(120% 90% at 50% 20%, #d9944c, var(--crust) 55%, var(--crust-dk)); width: min(520px, calc(100vw - 28px)); box-shadow: 0 30px 80px rgba(60, 30, 8, .4); }
.sheet form { background: var(--crumb); border-radius: 22px; padding: 24px; box-shadow: inset 0 0 30px 6px rgba(201, 135, 64, .3); }
.sheet::backdrop { background: rgba(38, 23, 12, .5); }
.sheet h2 { margin: 0 0 12px; font: 800 26px/1.1 var(--sing); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--ink); }
.sheet blockquote { margin: 0 0 16px; padding: 10px 14px; border-left: 5px solid var(--jam); background: #f6dfb3; font: italic 500 19px/1.35 var(--sing); color: var(--ink); }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ways a, .ways button { display: block; text-align: center; padding: 12px 10px; border-radius: 14px; border: 1.5px solid #c98d47; background: #fff8ea; text-decoration: none; font: 600 16px/1.2 var(--rap); color: var(--ink); cursor: pointer; }
.ways a:hover, .ways button:hover { background: #f6dfb3; }
.ways #s-native { grid-column: 1 / -1; background: var(--jam); color: var(--crumb); border-color: var(--jam); }
.sheet .link { margin: 14px 0 6px; font: 500 14px var(--rap); color: var(--ink-3); word-break: break-all; }
.sheet .close { margin-top: 6px; width: 100%; padding: 12px; border-radius: 14px; border: 0; background: var(--ink); color: var(--crumb); font: 600 16px var(--rap); cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
