/* Vorpal Hedge · album page. Extends the tokens and components in /styles.css.
   Silver page, Ink text, Crimson accent; only the shared footer is dark. */


.caption {
  font: 500 12px/1.5 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-75);
}

/* Top ------------------------------------------------------------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: var(--pad-top) var(--pad-x) 0;
}
.top__logo img { width: var(--logo-w); height: auto; }

/* Record: title, cover, track list -------------------------------- */

.record { padding: clamp(32px, 4vw, 56px) var(--pad-x) clamp(72px, 8.9vw, 128px); }
.record__title {
  max-width: 11em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8.4vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.record__title em { font-style: italic; color: var(--crimson); white-space: nowrap; }
.record__deck {
  margin-top: 24px;
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4;
  color: var(--ink-75);
}

.record__grid {
  margin-top: clamp(48px, 5.6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(40px, 6vw, 88px);
  row-gap: 48px;
  align-items: start;
}
.record__cover {
  width: 100%;
  height: auto;
  transform: rotate(-2deg);
  transition: transform 200ms ease-out;
}
.record__sleeve:hover .record__cover { transform: rotate(0deg); }
.record__sleeve .caption { margin-top: 28px; }

.record__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 20px;
}
.record__head .button { flex: 0 0 auto; }

.track { border-top: 1px solid var(--ink-25); }
.track:first-child { border-top: 2px solid var(--crimson); }
.track:last-child { border-bottom: 1px solid var(--ink-25); }
.track__button {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.track__num {
  flex: none;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.22em;
  color: var(--crimson);
}
.track__title {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.1;
  transition: color 200ms ease-out, transform 200ms ease-out;
}
.track__button:hover .track__title { color: var(--crimson); transform: translateX(6px); }
.track.is-current .track__title { color: var(--crimson); font-style: italic; }
.track__time {
  flex: none;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.14em;
  color: var(--ink-75);
}

/* Square equalizer bars: the album's one bit of showing off. */
.eq {
  flex: none;
  display: none;
  align-items: flex-end;
  gap: 3px;
  width: 37px;
  height: 28px;
}
.track.is-current .eq { display: flex; }
.eq i { display: block; flex: 1; height: 100%; background: var(--crimson); transform-origin: bottom; transform: scaleY(0.12); }

/* Story ----------------------------------------------------------- */

.story,
.review,
.credits {
  padding: 0 var(--pad-x) clamp(72px, 8.9vw, 128px);
}
.story {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  column-gap: clamp(24px, 4vw, 56px);
  row-gap: 24px;
}
.story__body { max-width: 680px; }
.story__body p + p { margin-top: 20px; }
.story__body p,
.review__body p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-75);
  text-wrap: pretty;
}
.story__body .story__lead {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.22;
  color: var(--ink);
  text-wrap: balance;
}
.story__body .story__sign { margin-top: 32px; font-size: 12px; line-height: 1.5; color: var(--crimson); }

/* Review ---------------------------------------------------------- */

.review__quote { margin-top: 32px; max-width: 1040px; }
.review__quote blockquote { font-size: clamp(38px, 6vw, 88px); }
.review__grid {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  column-gap: clamp(40px, 6vw, 88px);
  row-gap: 40px;
  align-items: start;
}
.review__body { max-width: 680px; }
.review__body p + p { margin-top: 20px; }

.spec { border-top: 2px solid var(--crimson); padding-top: 16px; }
.spec dl { margin: 12px 0 0; }
.spec dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--ink-25);
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.spec dt { color: var(--ink-75); }
.spec dd { margin: 0; color: var(--ink); text-align: right; }

/* Credits --------------------------------------------------------- */

.credits__title {
  margin-top: 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.05;
}
.credits__title em { color: var(--crimson); }

.stats {
  margin: clamp(32px, 4vw, 56px) 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.stats div { display: flex; flex-direction: column; gap: 8px; }
.stats dd {
  order: -1;
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1;
  color: var(--crimson);
}
.stats dt {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-75);
}

.personnel {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(40px, 6vw, 88px);
}
.personnel li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  padding: 14px 0;
  border-top: 1px solid var(--ink-25);
}
.personnel__role { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.personnel__who { font: 500 12px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-75); }
.credits__rule { margin-top: 28px; }

/* Closer ---------------------------------------------------------- */

.closer {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 34vw, 480px);
  padding: 0 var(--pad-x) clamp(64px, 7vw, 96px);
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.closer__wedge {
  position: absolute;
  height: clamp(280px, 34vw, 480px);
  width: auto;
  left: calc(clamp(280px, 34vw, 480px) * -0.12);
  bottom: calc(clamp(280px, 34vw, 480px) * -0.2);
  pointer-events: none;
}
.closer__body { position: relative; width: min(100%, 720px); }
.closer__line {
  font-family: var(--serif);
  font-size: clamp(30px, 3.9vw, 56px);
  line-height: 1.12;
  text-wrap: balance;
}
.closer__line em { color: var(--crimson); }
.closer__back { margin-top: 28px; font-size: 18px; }
.closer__back a {
  color: var(--ink);
  text-decoration-color: var(--crimson);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  transition: color 200ms ease-out;
}
.closer__back a:hover { color: var(--crimson); }

/* Deck: the controls, shown under the current song ----------------- */

.deck {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
  padding: 0 0 16px;
}
.deck__toggle {
  flex: none;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--crimson);
  color: var(--paper);
  cursor: pointer;
  transition: background 200ms ease-out;
}
.deck__toggle:hover { background: var(--crimson-75); }
.deck__icon { width: 16px; height: 16px; fill: currentColor; }
.deck__skip {
  flex: none;
  width: 44px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: color 200ms ease-out, border-color 200ms ease-out;
}
.deck__skip:hover { color: var(--crimson); border-color: var(--crimson); }
.deck__info { flex: 1 1 auto; min-width: 0; }
.deck__time {
  flex: none;
  white-space: nowrap;
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.1em;
  color: var(--ink-75);
  text-align: right;
}

.deck__volume { flex: none; display: flex; align-items: center; gap: 10px; }
.deck__volume .deck__seek { width: 88px; }

.deck__seek {
  display: block;
  width: 100%;
  height: 28px;
  margin: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.deck__seek::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(to right, var(--crimson) var(--p, 0%), var(--ink-25) var(--p, 0%));
}
.deck__seek::-moz-range-track { height: 6px; background: var(--ink-25); }
.deck__seek::-moz-range-progress { height: 6px; background: var(--crimson); }
.deck__seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 22px;
  margin-top: -8px;
  border: 0;
  border-radius: 0;
  background: var(--crimson);
}
.deck__seek::-moz-range-thumb {
  width: 12px;
  height: 22px;
  border: 0;
  border-radius: 0;
  background: var(--crimson);
}

/* Small screens ---------------------------------------------------- */

@media (max-width: 860px) {
  .record__grid,
  .review__grid,
  .story { grid-template-columns: minmax(0, 1fr); }
  .record__sleeve { max-width: 480px; }
  .personnel { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .track__button { min-height: 64px; }
  .eq { width: 26px; gap: 2px; }
  .closer { justify-content: flex-start; padding-bottom: 200px; }
  .closer__wedge { height: 220px; left: -26px; bottom: -44px; }
  .deck { flex-wrap: wrap; row-gap: 4px; }
  .deck__info { flex-basis: 100%; order: -1; }
  .deck__time { margin-left: auto; }
  .deck__volume { flex-basis: 100%; }
  .deck__volume .deck__seek { flex: 1; width: auto; }
}
