@font-face { font-family: Figtree; src: url('/public/fonts/figtree-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Figtree; src: url('/public/fonts/figtree-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: Figtree; src: url('/public/fonts/figtree-latin-900-normal.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --ink: #17130F;
  --paper: #F7F7F5;
  --accent: #FF4F2E;
  --deep: #D42A0B;
  --soft: #2A241E;
  --margin: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --seam: 50svh;
  --display: clamp(72px, 12.4vw, 190px);
  --title: clamp(40px, 5.4vw, 84px);
  --clause: clamp(22px, 2vw, 30px);
  --big: clamp(56px, 7.4vw, 118px);
  --text: 18px;
  --small: 15px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 var(--text)/1.5 Figtree, system-ui, sans-serif; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h1, h2, p { margin: 0; }
h2 { font-weight: 900; letter-spacing: -.03em; line-height: .95; font-size: var(--title); }

.bar {
  position: absolute; z-index: 3; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 20px var(--margin);
}
.logo img { height: 42px; width: auto; }
.bar nav { display: flex; gap: 28px; font-weight: 800; }
.bar nav a { text-decoration: none; padding: 8px 0; }
.bar nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; }

/* The poster: two flat fields meeting at the seam, which runs through the second line. */
.hero { position: relative; min-height: 100svh; background: var(--accent); overflow: hidden; display: flex; flex-direction: column; }
.hero::before { content: ''; position: absolute; inset: 0 0 auto; height: var(--seam); background: var(--paper); }
.headline-stage { position: absolute; inset: 0 var(--margin) auto; top: calc(var(--seam) - 1.29 * var(--display)); height: calc(1.72 * var(--display)); font-size: var(--display); }
.headline {
  position: absolute; inset: 0; margin: 0; font-size: inherit; font-weight: 900; line-height: .86; letter-spacing: -.045em;
  text-transform: uppercase; text-align: center; white-space: nowrap;
}
.copy { position: absolute; inset: 0; display: block; }
.copy.above { color: var(--deep); clip-path: inset(0 -100vw .43em -100vw); }
.copy.below { color: var(--ink); clip-path: inset(1.29em -100vw 0 -100vw); }
.line { display: block; overflow: hidden; padding-bottom: .02em; }
.line > span { display: block; }
.js .line > span { animation: rise .9s var(--ease) both; }
.js .line + .line > span { animation-delay: .11s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }

.melody[hidden] { display: none; }
.melody { position: absolute; z-index: 2; left: 0; width: 100%; top: calc(var(--seam) - 22svh); height: 44svh; pointer-events: none; }
.melody path { fill: none; stroke: var(--ink); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

.tool {
  position: relative; z-index: 3; margin-top: calc(var(--seam) + .43 * var(--display) + 32px); padding: 0 var(--margin) 40px;
  display: grid; justify-items: center; gap: 22px; text-align: center;
}
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.button {
  min-height: 64px; padding: 0 34px; border: 0; border-radius: 0; cursor: pointer; font: 900 clamp(20px, 1.7vw, 26px)/1 Figtree, system-ui, sans-serif;
  letter-spacing: -.015em; transition: transform .15s var(--ease);
}
.button:hover { transform: translateY(-3px); }
.button:active { transform: translateY(1px); }
.button.ink { background: var(--ink); color: var(--paper); }
.button.paper { background: var(--paper); color: var(--ink); }
.button.wide { width: 100%; }
.button[hidden] { display: none; }
.button:disabled { opacity: .55; cursor: default; transform: none; }

#level { -webkit-appearance: none; appearance: none; width: min(420px, 100%); height: 14px; background: var(--paper); border: 0; }
#level[hidden] { display: none; }
#level::-webkit-meter-bar { background: var(--paper); border: 0; height: 14px; border-radius: 0; }
#level::-webkit-meter-optimum-value, #level::-webkit-meter-suboptimum-value, #level::-webkit-meter-even-less-good-value { background: var(--ink); transition: none; }
#level::-moz-meter-bar { background: var(--ink); }

#result { display: block; max-width: 44rem; color: var(--ink); }
#result .lead { display: block; }
#result strong { display: block; font-size: var(--clause); font-weight: 900; line-height: 1; letter-spacing: -.03em; overflow-wrap: anywhere; }
#result small { display: block; margin-top: 10px; font-size: var(--text); }
#result a { font-weight: 800; }
.shortlist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; text-align: left; }
.pick { --row: var(--ink); --row-ink: var(--paper); background: var(--row); color: var(--row-ink); padding: 10px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; }
.pick:first-child { --row: var(--paper); --row-ink: var(--ink); }
.pick-play, .pick-yes { min-height: 48px; padding: 0 16px; border: 0; border-radius: 0; cursor: pointer; font: 800 var(--text)/1 Figtree, system-ui, sans-serif; transition: transform .15s var(--ease); }
.pick-play { min-width: 92px; background: var(--accent); color: var(--ink); }
.pick-yes { background: var(--row-ink); color: var(--row); }
.pick-play:hover, .pick-yes:hover { transform: translateY(-2px); }
.pick-name { display: grid; min-width: 0; }
.pick-name b { font-weight: 800; overflow-wrap: anywhere; }
.pick-name span { overflow-wrap: anywhere; }
.pick-more { grid-column: 1 / -1; font-size: var(--small); }
.pick-status:empty { display: none; }
.store-badge { font-weight: 800; }
.pick a { color: inherit; font-weight: 800; }
#result .retry { margin-top: 16px; }
#result .pick-links { margin-top: 12px; }
.pick-more .pick-links { margin-top: 0; }
#result { scroll-margin-top: 24px; }

/* One card, further along in each of four fields. */
.fields { display: grid; grid-template-columns: repeat(4, 1fr); }
.field { min-height: 84svh; padding: 28px; display: flex; flex-direction: column; position: relative; }
.field h2 { font-size: clamp(30px, 3vw, 46px); }
.f-ink { background: var(--ink); color: var(--paper); }
.f-paper { background: var(--paper); }
.f-deep { background: var(--deep); color: var(--paper); }
.f-accent { background: var(--accent); }
.card {
  position: absolute; top: 34%; left: 50%; width: min(260px, calc(100% - 40px)); margin-left: calc(min(260px, 100% - 40px) / -2);
  background: var(--paper); color: var(--ink); padding: 16px; transition: transform .15s var(--ease);
}
.f-paper .card { background: #E9E9E6; }
.field:hover .card { transform: translateY(-6px); }
.card-title { font-weight: 900; }
.card svg { width: 100%; height: auto; margin: 10px 0; }
.trace { fill: none; stroke: var(--deep); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.trace.faint { stroke: var(--ink); stroke-width: 3; }
.card-note { font-size: var(--small); }
.card-list { margin: 10px 0; padding-left: 1.3em; font-weight: 800; }
.clause { margin-top: auto; font-weight: 800; font-size: var(--clause); line-height: 1.12; letter-spacing: -.015em; }

/* A groove is a tune you can see, so it carries the claim that only the shape matters. */
.shape { position: relative; min-height: 92svh; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; overflow: hidden; background: var(--ink); }
.shape-picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shape-words { position: relative; background: var(--accent); padding: 40px var(--margin); display: grid; gap: 20px; }
.shape-words h2 { font-size: var(--big); line-height: .9; }
.shape-close { position: relative; justify-self: end; align-self: start; width: min(34vw, 460px); height: auto; aspect-ratio: 1; object-fit: cover; margin: 64px var(--margin) 0 0; transform: rotate(4deg); clip-path: circle(50%); }

/* The catalogue as a departures board. */
.board-section { background: var(--ink); color: var(--paper); padding: 120px 12px 0; overflow: hidden; }
.board-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 24px; padding: 0 16px 48px; }
.board-head p { font-size: var(--text); }
#board { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.row { background: var(--soft); }
.row-head {
  width: 100%; min-height: 72px; padding: 10px 16px; border: 0; background: none; color: inherit; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) 90px; align-items: center; gap: 20px; font: 800 var(--clause)/1.1 Figtree, system-ui, sans-serif;
}
.row-head:hover { background: #3A322A; }
.row-title, .row-artist { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-artist { font-weight: 500; }
.row-time { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.row-detail { display: none; padding: 0 16px 20px; }
.row-detail a { font-weight: 800; }
.row.open { background: var(--accent); color: var(--ink); }
.row.open .row-head:hover { background: none; }
.row.open .row-head { font-weight: 900; }
.row.open .row-detail { display: block; }
.board-empty { padding: 24px 16px 60px; }

/* Questions, filed like cards in a drawer. */
.drawer { background: var(--accent); padding: 160px var(--margin); }
.drawer h2 { max-width: 62rem; margin: 0 auto 56px; }
.cards { max-width: 62rem; margin: 0 auto; }
.q { position: relative; margin-top: -8px; transition: transform .15s var(--ease); }
.q summary { cursor: pointer; list-style: none; padding: 0 0 18px; }
.q summary::-webkit-details-marker { display: none; }
.tab { display: inline-block; min-width: 150px; padding: 10px 20px; font-weight: 800; font-size: var(--small); background: var(--card); transform: translateY(-38px); margin-bottom: -38px; }
.q:nth-child(2) .tab { margin-left: 150px; } .q:nth-child(3) .tab { margin-left: 300px; } .q:nth-child(4) .tab { margin-left: 450px; }
.q:nth-child(5) .tab { margin-left: 600px; } .q:nth-child(6) .tab { margin-left: 750px; }
.question { display: block; padding: 0 24px; font-weight: 800; font-size: var(--clause); line-height: 1.15; }
.q p { padding: 0 24px 34px; max-width: 54ch; }
.q a { font-weight: 800; }
.q-paper { --card: var(--paper); background: var(--card); color: var(--ink); }
.q-ink { --card: var(--ink); background: var(--card); color: var(--paper); }
.q-deep { --card: var(--deep); background: var(--card); color: var(--paper); }
.cards .q + .q { margin-top: 44px; }

/* The first step, already open. */
.closing { min-height: 90svh; background: var(--paper); padding: 40px var(--margin); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; align-items: center; }
.closing-words { align-self: end; }
.closing-words h2 { font-size: var(--big); line-height: .9; }
.closing-words p { margin-top: 24px; max-width: 34rem; }
.dialog { justify-self: center; width: min(440px, 100%); background: var(--accent); padding: 28px; display: grid; gap: 18px; }
.dialog-title { font-weight: 900; font-size: var(--clause); line-height: 1.05; letter-spacing: -.02em; }
fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 4px; }
legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
fieldset label { position: relative; cursor: pointer; }
fieldset input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
fieldset span { display: block; padding: 15px 18px; background: var(--paper); font-weight: 800; }
fieldset input:checked + span { background: var(--ink); color: var(--paper); }
fieldset input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

.foot { background: var(--ink); color: var(--paper); padding: 64px var(--margin) 28px; }
.foot-mark { width: 100%; height: auto; }
.foot-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; margin-top: 56px; font-size: var(--small); }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 800; }
.copyright { margin-top: 32px; font-size: var(--small); }

/* Guides and song pages. */
.article { background: var(--paper); }
.article-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px var(--margin); }
.small-button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; font-size: var(--text); text-decoration: none; }
.article-top { background: var(--accent); padding: clamp(48px, 8vw, 120px) var(--margin); }
.article-top h1 { max-width: 16ch; font-size: var(--big); font-weight: 900; line-height: .95; letter-spacing: -.035em; overflow-wrap: anywhere; animation: settle .7s var(--ease) both; }
.article-top p { animation: settle .7s var(--ease) .09s both; }
.article-body { max-width: 46rem; margin: 0 auto; padding: 72px var(--margin) 120px; }
.article-body > * { animation: settle .6s var(--ease) .15s both; }
.article-body h2 { font-size: var(--clause); margin: 48px 0 12px; line-height: 1.1; letter-spacing: -.015em; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin: 0 0 16px; }
.article-picture { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 48px 0 0; }
.article-lead { margin-top: 20px !important; font-size: var(--clause); font-weight: 800; }
.article-call { margin: 32px 0 0 !important; }
.article-call .button { display: inline-flex; align-items: center; text-decoration: none; }
.article-facts { padding-left: 1.2em; margin: 24px 0; }
.article-body audio { width: 100%; }
.article-top .article-lead { max-width: 34ch; font-size: var(--clause); }

/* Forms: adding music, review and removal requests. */
.stack { display: grid; gap: 22px; }
.stack[hidden], .review-unlock[hidden] { display: none; }
.form-field { display: grid; gap: 8px; font-weight: 800; }
.form-optional { font-weight: 500; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 56px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); font: 500 var(--text)/1.4 Figtree, system-ui, sans-serif;
}
.form-field input[type="file"] { padding: 14px; cursor: pointer; }
.form-field input::placeholder { color: var(--soft); opacity: .65; }
.form-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; cursor: pointer; }
.form-check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--ink); }
.form-note { font-size: var(--small); margin: 0 !important; min-height: 0; }
.form-note:empty { display: none; }
.text-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.studio { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.studio[hidden] { display: none; }
.studio-main { padding: 72px clamp(28px, 6vw, 96px) 120px var(--margin); }
.studio-main > * + * { margin-top: 20px; }
.studio-main > form { margin-top: 32px; }
.studio-side { padding: 72px var(--margin) 120px clamp(28px, 4vw, 64px); background: var(--ink); color: var(--paper); }
.studio-side > * + * { margin-top: 20px; }
.studio-side a, .studio-side .text-button { color: var(--paper); }
.studio h2 { font-size: var(--clause); line-height: 1.1; letter-spacing: -.015em; }
.studio-note { padding: 48px var(--margin); }
.journey { margin: 32px 0 40px !important; }
.journey dt:not(:first-child) { margin-top: 28px; }
.journey dt { font-weight: 900; font-size: var(--clause); letter-spacing: -.015em; line-height: 1.1; color: var(--accent); }
.journey dd { margin: 8px 0 0; }
.upload-list, .song-list, .review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.upload-list:empty, .song-list:empty { display: none; }
.upload-list li, .song-list li { display: grid; gap: 4px; }
.upload-list li[data-state="failed"] span { color: var(--deep); font-weight: 800; }
.upload-list progress { width: 100%; height: 10px; margin-top: 6px; accent-color: var(--accent); }
.studio-side > .form-note { margin-top: 12px !important; }
.upload-list { margin-top: 24px !important; }
.song-list { margin-top: 32px !important; }
.song-list span { font-size: var(--small); }
.song-list span[data-status="live"] { color: var(--accent); font-weight: 800; }
.song-list small { font-size: var(--small); }
.hum-consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; margin: 18px 0 6px; text-align: left; font-size: var(--small); cursor: pointer; }
.hum-consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.review { max-width: 60rem; margin: 0 auto; padding: 40px var(--margin) 120px; }
.review h1 { font-size: var(--title); font-weight: 900; line-height: .95; letter-spacing: -.035em; margin-bottom: 32px; }
.review-unlock { display: grid; gap: 16px; max-width: 26rem; justify-items: start; }
.review-unlock .form-field { width: 100%; }
.review-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; border: 0; }
.review-tabs label { position: relative; }
.review-tabs input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.review-tabs span { display: block; padding: 12px 18px; background: #E9E9E5; font-weight: 800; }
.review-tabs input:checked + span { background: var(--ink); color: var(--paper); }
.review-tabs input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.review-list { gap: 12px; }
.review-list li { display: grid; gap: 10px; padding: 24px; background: #fff; }
.review-list h2 { font-size: var(--clause); line-height: 1.1; letter-spacing: -.015em; overflow-wrap: anywhere; }
.review-list p { overflow-wrap: anywhere; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.review-actions:empty { display: none; }
.review .button.paper { background: #E9E9E5; }
@media (max-width: 760px) {
  .studio { grid-template-columns: minmax(0, 1fr); }
  .studio-main { padding: 48px var(--margin) 64px; }
  .studio-side { padding: 48px var(--margin) 64px; }
  .review-actions .button { width: 100%; }
}

@keyframes settle { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.article .foot-row { margin-top: 0; }
.article .copyright { margin-top: 0; }

.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.seen { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--delay, 0ms); }

@media (max-width: 1000px) {
  .fields { grid-template-columns: repeat(2, 1fr); }
  .q:nth-child(n) .tab { margin-left: calc((var(--i, 0)) * 60px); }
  .q:nth-child(2) { --i: 1; } .q:nth-child(3) { --i: 2; } .q:nth-child(4) { --i: 3; } .q:nth-child(5) { --i: 4; } .q:nth-child(6) { --i: 5; }
}

@media (max-width: 640px) {
  :root { --margin: 16px; --seam: 38svh; --display: 19.6vw; --title: 11vw; --big: 13vw; --text: 17px; }
  .bar { padding: 14px var(--margin); }
  .logo img { height: 34px; }
  .bar nav { display: none; }
  .tool { justify-items: stretch; text-align: left; }
  .pick { grid-template-columns: auto minmax(0, 1fr); }
  .pick-yes { grid-column: 1 / -1; width: 100%; }
  #result .retry { width: 100%; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; min-height: 60px; }
  .small-button { width: auto; min-height: 44px; padding: 0 14px; }
  .article-top h1 { font-size: 10.2vw; }
  .article-call .button { justify-content: center; }
  #level { width: 100%; }
  .fields { grid-template-columns: 1fr; }
  .field { min-height: 0; padding: 28px 20px 56px; gap: 28px; }
  .field h2 { font-size: var(--clause); }
  .card { position: static; margin: 0; width: min(260px, 100%); order: 2; }
  .clause { margin-top: 0; order: 1; }
  .shape { grid-template-columns: 1fr; min-height: 84svh; align-items: end; }
  .shape-close { width: 58vw; order: -1; margin: 28px var(--margin) 96px 0; }
  .board-section { padding: 80px 8px 0; }
  .board-head { grid-template-columns: 1fr; padding: 0 8px 32px; }
  .row-head { grid-template-columns: minmax(0, 1fr) auto; min-height: 64px; padding: 10px 12px; }
  .row-artist { display: none; }
  .row.open .row-title { white-space: normal; }
  .row-detail { padding: 0 12px 16px; }
  .drawer { padding: 96px var(--margin); }
  .tab { min-width: 110px; padding: 10px 14px; }
  .q:nth-child(n) .tab { margin-left: calc(var(--i, 0) * 34px); }
  .question { padding: 0 20px; }
  .q p { padding: 0 20px 28px; }
  .closing { grid-template-columns: 1fr; min-height: 84svh; padding-top: 56px; padding-bottom: 32px; }
  .closing-words { align-self: start; }
  .foot-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .line > span { animation: none; }
  .article-top h1, .article-top p, .article-body > * { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .button, .card, .q { transition: none; }
}
