@font-face {
  font-family: Bricolage;
  src: url("assets/bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ground: #151118;
  --ink: #f8f1e9;
  --muted: #c3b6c5;
  --lilac: #decfff;
  --coral: #ffa391;
  --edge: #423647;
  --panel: #201925;
  --text: Bricolage, "Helvetica Neue", sans-serif;
  --outside: clamp(22px, 4.65vw, 78px);
  font-family: var(--text);
  background: var(--ground);
  color: var(--ink);
  scrollbar-color: #6b5973 var(--ground);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-inline-size: 280px; }
::selection { color: var(--ground); background: var(--coral); }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 4px; }
a { color: inherit; text-underline-offset: .24em; }
button { font: inherit; }
button:focus:not(:focus-visible), h1:focus { outline: none; }
.page { max-width: 1600px; min-height: 100svh; margin: 0 auto; padding-inline: var(--outside); display: flex; flex-direction: column; }
.masthead { min-height: 80px; border-bottom: 1px solid var(--edge); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.034em; text-decoration: none; white-space: nowrap; }
.brand img { flex: none; }
.concept, .credit { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.35; }
.experience { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.1fr); grid-template-rows: 1fr auto auto 1fr; grid-template-areas: '. art' 'message art' 'controls art' '. art'; align-content: center; column-gap: clamp(42px, 5.35vw, 88px); padding-block: clamp(30px, 5vh, 62px); flex: 1; }
.message { grid-area: message; align-self: end; }
h1 { margin: 0; font-weight: 800; font-size: clamp(3.15rem, 6.12vw, 6rem); line-height: .89; letter-spacing: -.04em; }
h1 em { font-style: normal; color: var(--lilac); }
.message > p { color: var(--muted); max-width: 34ch; line-height: 1.48; font-size: clamp(1.06rem, 1.5vw, 1.28rem); margin: 24px 0 0; }
.controls { grid-area: controls; align-self: start; max-width: 450px; margin-top: 27px; }
.button { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 53px; border: 1px solid transparent; padding: 11px 22px; border-radius: 6px; text-align: center; font-weight: 750; font-size: 1rem; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.primary { color: #1c1022; background: var(--lilac); }
.primary:hover { background: #f2e8ff; }
.primary:disabled { color: #c1adc9; background: #382b41; cursor: default; }
.secondary { background: transparent; color: var(--ink); border-color: #705c76; }
.secondary:hover { background: #302438; }
.text-button { min-height: 44px; padding-inline: 0; border-color: transparent; background: transparent; color: var(--lilac); text-decoration: underline; text-underline-offset: .25em; }
.text-button:hover { color: var(--ink); }
.fine-print { margin: 11px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.sleeve { grid-area: art; align-self: center; isolation: isolate; margin: 0; overflow: hidden; position: relative; background: #110e17; border: 1px solid #413142; border-radius: 13px; width: 100%; min-width: 0; max-height: min(68vh, 680px); aspect-ratio: 1.103; }
.sleeve > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .55s, transform .55s; }
.sleeve::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, #120c17 2%, #120c17e8 17%, #120c1740 34%, transparent 51%); pointer-events: none; }
.sleeve-content { position: absolute; z-index: 1; display: grid; gap: 5px; bottom: clamp(15px, 2.35vw, 34px); left: clamp(17px, 2.35vw, 34px); right: 61px; }
.sleeve-status { display: flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 700; color: var(--lilac); }
.signal-light { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
figcaption { color: var(--muted); font-size: .875rem; }
.sleeve-notation { position: absolute; z-index: 1; right: clamp(17px, 2.35vw, 34px); bottom: clamp(19px, 2.58vw, 40px); display: flex; align-items: center; gap: 4px; height: 26px; }
.sleeve-notation span { display: block; background: var(--coral); width: 2px; height: 8px; border-radius: 3px; }
.sleeve-notation span:nth-child(2n) { height: 15px; }
.sleeve-notation span:nth-child(3n), .sleeve-notation span:nth-child(4) { height: 22px; }
.sleeve-notation span:nth-child(n+5) { background: var(--lilac); }
[data-scene="choose"] .sleeve > img { filter: saturate(.78); transform: scale(1.06); }
[data-scene="meet"] .sleeve > img { filter: hue-rotate(-17deg) saturate(.72); }
.sleeve.arrival > img { animation: lock-on .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes lock-on { from { filter: blur(9px) saturate(1.65); transform: scale(1.09); } to { filter: blur(0) saturate(1); transform: scale(1); } }
.closing { min-height: 73px; display: flex; justify-content: space-between; align-items: center; gap: 30px; border-top: 1px solid var(--edge); }
.progress { width: min(49%, 560px); margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.progress li { display: grid; gap: 7px; color: var(--muted); font-size: .875rem; white-space: nowrap; }
.progress-line { display: block; height: 2px; background: #534459; }
.progress li[aria-current] { color: var(--ink); font-weight: 750; }
.progress li[aria-current] .progress-line { background: var(--lilac); }
.progress li.past .progress-line { background: #917b9c; }
fieldset { border: 0; margin: 0 0 15px; padding: 0; min-inline-size: 0; }
fieldset legend { padding: 0; margin: 0 0 6px; }
.song-list { display: grid; gap: 8px; margin-bottom: 14px; }
fieldset .song-list { margin-bottom: 0; }
.song-row { display: flex; min-width: 0; align-items: center; border: 1px solid var(--edge); border-radius: 7px; background: var(--panel); }
.song-row:has(input:checked) { border-color: var(--lilac); background: #2a2134; }
.song-row label, .song-details { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; padding: 7px 9px 7px 11px; min-height: 57px; }
.song-row label { cursor: pointer; }
.song-row input { accent-color: var(--lilac); width: 17px; height: 17px; margin: 0 1px 0 0; flex: none; }
.song-text { min-width: 0; display: grid; gap: 1px; }
.song-text strong { font-size: 1rem; line-height: 1.15; }
.song-text small { color: var(--muted); font-size: .85rem; }
.play { display: grid; place-items: center; background: transparent; border: 1px solid transparent; color: var(--ink); width: 44px; height: 44px; border-radius: 6px; margin: 0 4px 0 0; flex: none; cursor: pointer; }
.play:hover, .play[aria-pressed="true"] { color: var(--lilac); background: #392c43; }
.play::before { content: ''; width: 10px; height: 12px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); margin-left: 2px; }
.play[aria-pressed="true"]::before { width: 10px; height: 12px; clip-path: polygon(0 0, 30% 0, 30% 100%, 0 100%, 0 0, 70% 0, 100% 0, 100% 100%, 70% 100%, 70% 0); margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 9px 13px; align-items: center; }
.branches { display: flex; flex-wrap: wrap; gap: 0 17px; margin-top: 5px; }
.people { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.people li { border-top: 1px solid var(--edge); padding: 9px 0 0; display: grid; gap: 4px; color: var(--muted); font-size: .9rem; }
.people strong { font-size: 1.2rem; line-height: 1; color: var(--ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[data-scene]:not([data-scene="incoming"]) h1 { font-size: clamp(2.85rem, 5.1vw, 5.2rem); line-height: .93; }
[data-scene]:not([data-scene="incoming"]) .message > p { margin-top: 17px; }
[data-scene]:not([data-scene="incoming"]) .controls { margin-top: 19px; }
@media (max-width: 850px) {
  .experience { column-gap: 29px; }
}
@media (max-width: 700px) {
  .page { max-width: 570px; }
  .masthead { min-height: 60px; }
  .brand { font-size: 1.08rem; gap: 6px; }
  .brand img { width: 29px; height: auto; }
  .concept { text-align: right; font-size: .79rem; }
  .experience { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: 'message' 'art' 'controls'; align-content: start; padding-block: 24px 25px; }
  .experience:not([data-scene="incoming"]) { grid-template-areas: 'message' 'controls' 'art'; }
  h1 { font-size: clamp(3rem, 11.5vw, 4.65rem); line-height: .92; }
  .message > p { max-width: 45ch; margin-top: 15px; font-size: 1.04rem; }
  .sleeve { margin-top: 16px; aspect-ratio: 1.36; max-height: none; }
  .experience:not([data-scene="incoming"]) .sleeve { aspect-ratio: 1.65; }
  .controls { margin-top: 15px; max-width: none; }
  .controls > .button { width: 100%; }
  .actions > .primary, .actions > .secondary { flex: 1 1 auto; }
  .closing { align-items: stretch; flex-direction: column; gap: 12px; padding-block: 13px 19px; }
  .progress { width: 100%; }
  .progress li { font-size: .8rem; gap: 5px; }
  .credit { font-size: .8rem; }
  [data-scene]:not([data-scene="incoming"]) h1 { font-size: clamp(2.7rem, 9.8vw, 4.5rem); }
}
@media (max-width: 360px) {
  :root { --outside: 17px; }
  .concept { font-size: .79rem; }
  .button { padding-inline: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.manual-link { display: block; width: 100%; margin-top: 9px; min-height: 44px; border: 1px solid #705c76; border-radius: 6px; background: var(--panel); color: var(--ink); padding: 8px; font: inherit; }
.closing .footer-links { display: flex; gap: 8px 16px; flex-wrap: wrap; }
.closing .footer-links a { color: var(--muted); font-size: .875rem; }
