:root {
  color-scheme: dark;
  --black: #090909;
  --white: #f1f1f1;
  --grey: #929292;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--black); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

html:has(body.secret-archive),
body.secret-archive {
  background: #090909 url("picture/PHOTO1.jpg") center / cover fixed no-repeat;
}

button, input { font: inherit; }

.archive-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 72px 28px;
}

.topbar, .eyebrow, .intro-note, .intro-art, .section-heading,
.year-number, .year-type, .row-arrow, .waveform, .player-heading, .footer {
  display: none;
}

.intro {
  min-height: 0;
  margin: 0 0 66px;
  padding: 0;
  text-align: center;
}

.intro h1 {
  margin: 0;
  color: var(--white);
  font-family: var(--font);
  font-size: 96px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.listening-room {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  border: 0;
}

.archive-grid { display: contents; }

.year-list {
  display: grid;
  grid-template-columns: repeat(2, 120px);
  justify-content: center;
  gap: 12px 20px;
  padding: 0;
}

.note-link { margin-bottom: 8px; }

.year-row {
  display: grid;
  width: 120px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  color: var(--grey);
  background: transparent;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: color 150ms ease, transform 150ms ease;
}

.year-row:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.year-row:focus-visible {
  outline: 0;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.year-row.is-active { color: var(--white); }

.year-name {
  display: block;
  font-family: var(--font);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
}

.player-panel[hidden] { display: none !important; }

.track-shell { gap: 38px; }

.track-page[hidden],
.track-shell > .back-link[hidden] { display: none !important; }

.note-shell {
  align-items: stretch;
  justify-content: flex-start;
  gap: 36px;
}

.back-link {
  color: var(--grey);
  font-size: 13px;
  text-decoration: none;
  transition: color 150ms ease;
}

.back-link:hover { color: var(--white); }

.back-link:focus-visible { outline: 1px solid var(--grey); outline-offset: 5px; }

.note-page {
  width: min(720px, 100%);
  margin: 0 auto;
}

.note-page h1 {
  margin: 0 0 32px;
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 400;
  line-height: 1;
}

.note-copy {
  color: #d0d0d0;
  font-size: 15px;
  line-height: 1.8;
}

.note-copy p { margin: 0 0 20px; }

.note-copy h2 {
  margin: 40px 0 16px;
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bonus-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0 0 32px;
}

.bonus-gallery figure {
  min-width: 0;
  margin: 0;
}

.bonus-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #303030;
}

.bonus-gallery figcaption {
  margin-top: 8px;
  color: var(--grey);
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .bonus-gallery { grid-template-columns: 1fr; }
}

.secret-dialog {
  width: min(360px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid #303030;
  color: var(--white);
  background: #101010;
}

.secret-dialog::backdrop { background: rgb(0 0 0 / 75%); }

.secret-dialog h2 {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.secret-dialog label {
  display: block;
  margin-bottom: 8px;
  color: var(--grey);
  font-size: 12px;
}

.secret-dialog input {
  width: 100%;
  padding: 10px;
  border: 1px solid #505050;
  border-radius: 0;
  color: var(--white);
  background: var(--black);
}

.secret-dialog input:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 2px;
}

.secret-error {
  margin: 10px 0 0;
  color: #c4c4c4;
  font-size: 12px;
}

.secret-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.secret-actions button {
  padding: 8px 12px;
  border: 1px solid #505050;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.secret-actions button:hover,
.secret-actions button:focus-visible { border-color: var(--white); }

.secret-actions .secret-submit { background: #202020; }

.track-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(360px, 100%);
}

.track-page h1 {
  margin: 0 0 36px;
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.track-page.has-tracklist {
  width: min(100%, 1060px);
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(36px, 6vw, 76px);
}

.track-page.secret-layout {
  width: min(100%, 1060px);
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(36px, 6vw, 76px);
}

.track-page.secret-layout .track-player-column {
  flex: 0 1 360px;
  transform: none;
}

.track-page.secret-layout h1 {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.08em;
  border: 0;
}

.track-player-column {
  display: flex;
  width: min(360px, 100%);
  flex: 0 1 360px;
  flex-direction: column;
  align-items: center;
  align-self: center;
  transform: translate(clamp(0px, 3vw, 32px), -7vh);
}

.track-player-column .player-panel { margin-top: 0; }

.track-page.secret-layout .player-panel {
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 8px;
  background: rgb(0 0 0 / 58%);
  backdrop-filter: blur(8px);
}

.track-list {
  width: min(580px, 58%);
  max-height: min(72vh, 760px);
  flex: 1 1 580px;
  overflow-y: auto;
  padding: 0 14px 0 28px;
  border-left: 1px solid #303030;
  scrollbar-color: #505050 transparent;
  scrollbar-width: thin;
}

.track-page.secret-layout .track-list[data-year="2027"] {
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 8px;
  background: rgb(0 0 0 / 58%);
  backdrop-filter: blur(8px);
}

.track-list[hidden] { display: none !important; }

.track-list-section { display: flex; flex-direction: column; }

.project-section { margin-top: 25px; }

.project-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 7px;
  padding: 0 0 9px;
  border-bottom: 1px solid #303030;
  color: var(--grey);
  font-size: 11px;
}

.project-heading h2 {
  margin: 0;
  color: var(--white);
  font-size: inherit;
  font-weight: 500;
}

.project-heading time { white-space: nowrap; }

.track-entry {
  display: block;
  width: 100%;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid #202020;
  color: var(--grey);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.track-entry:disabled {
  cursor: default;
  opacity: 1;
}

.track-entry--spaced { margin-top: 18px; }

.track-entry:hover .track-title,
.track-entry.is-current .track-title { color: var(--white); }

.track-entry.is-current .track-title::before {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 7px;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 3px 35% no-repeat,
    linear-gradient(currentColor, currentColor) 4px 100% / 3px 75% no-repeat,
    linear-gradient(currentColor, currentColor) 8px 100% / 3px 50% no-repeat;
  content: "";
  vertical-align: -1px;
}

.track-list.is-playing .track-entry.is-current .track-title::before {
  animation: track-activity 600ms ease-in-out infinite alternate;
}

@keyframes track-activity {
  from {
    background-size: 3px 75%, 3px 30%, 3px 55%;
  }
  to {
    background-size: 3px 30%, 3px 85%, 3px 40%;
  }
}

.track-entry:focus-visible {
  outline: 1px solid var(--grey);
  outline-offset: 2px;
}

.track-title {
  display: block;
  color: #d0d0d0;
  font-size: 13px;
  line-height: 1.4;
  transition: color 140ms ease;
}

.track-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 3px;
  color: var(--grey);
  font-size: 11px;
  line-height: 1.4;
}

.track-meta time { white-space: nowrap; }

.player-panel {
  display: flex;
  width: min(360px, 100%);
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  margin: 42px 0 0;
  padding: 0;
  border: 0;
}

.time-row {
  display: flex;
  justify-content: space-between;
  color: var(--grey);
  font-size: 11px;
  letter-spacing: 0;
}

.seek-slider {
  width: 100%;
  height: 16px;
  margin: 8px 0 10px;
  accent-color: var(--white);
  cursor: pointer;
}

.seek-slider:disabled { cursor: default; }

.transport {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.transport button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 32px;
  padding: 0;
  border: 0;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.transport button:focus-visible {
  outline: 1px solid var(--grey);
  outline-offset: 3px;
}

.transport-skip { font-size: 17px; }
.transport .time-skip { width: 36px; font-size: 11px; }
.transport button:disabled { color: var(--grey); cursor: default; opacity: 0.5; }
.play-button svg { width: 17px; height: 17px; fill: currentColor; }
.pause-icon, .player-status { display: none; }
.player-panel.is-playing .play-icon { display: none; }
.player-panel.is-playing .pause-icon { display: block; }

.player-status.is-error {
  display: block;
  margin: 20px 0 0;
  color: #c4c4c4;
  font-size: 12px;
}

.player-panel.is-audio-unavailable .player-status {
  display: block;
  margin: 20px 0 0;
  color: var(--grey);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0;
}

audio { display: none; }

@media (max-width: 760px) {
  .archive-shell { padding: 56px 20px; }
  .intro { margin-bottom: 56px; }
  .intro h1 { font-size: 64px; }
  .track-page h1 { font-size: 64px; }
  .track-page.has-tracklist { flex-direction: column; align-items: center; gap: 34px; }
  .track-page.secret-layout { flex-direction: column; gap: 28px; }
  .track-page.secret-layout .track-player-column { order: 1; }
  .track-player-column { flex: 0 1 auto; transform: none; }
  .track-list {
    width: 100%;
    max-height: none;
    flex: 0 1 auto;
    overflow: visible;
    padding: 18px 0 0;
    border-top: 1px solid #303030;
    border-left: 0;
  }

  .track-page.secret-layout .track-list[data-year="2027"] {
    padding: 20px;
    border: 1px solid rgb(255 255 255 / 12%);
  }
}

@media (max-width: 480px) {
  .archive-shell { padding: 40px 16px; }
  .intro { margin-bottom: 48px; }
  .intro h1 { font-size: 42px; }
  .track-page h1 { font-size: 42px; }
  .year-list { gap: 15px; }
  .year-name { font-size: 19px; }
  .player-panel { margin-top: 34px; }
}

@media (max-width: 360px) {
  .intro h1 { font-size: 36px; }
  .track-page h1 { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .track-list.is-playing .track-entry.is-current .track-title::before { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .page-transition-enter body,
  .page-transition-exit body { animation-duration: 1ms !important; }
}

.page-transition-enter body { animation: page-fade-in 320ms ease both; }
.page-transition-exit body { animation: page-fade-out 220ms ease both; }

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes page-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
