/* About shares the homepage bounds and type; the material treatment is local. */
.about-page .home-content {
  background: radial-gradient(ellipse at 8% 18%, #8ca3b012, transparent 45%);
}
.about-heading { margin-bottom: clamp(48px, 5vw, 76px); }
.about-heading h1 { margin-bottom: 24px; }
.about-heading .lead-copy { max-width: 1000px; margin-bottom: 24px; }
.about-heading .brush-rule { width: 180px; height: 7px; }
.about-page .songwriter-section { padding: 0 0 clamp(72px, 7vw, 112px); }
.about-page .songwriter-layout {
  display: grid;
  grid-template-columns: .88fr 1fr;
  align-items: start;
  gap: clamp(48px, 7vw, 104px);
}
.about-page .songwriter-portrait { display: block; margin: 0; min-width: 0; }
.portrait-mount { position: relative; isolation: isolate; padding: 0; --metal-frame-width: 20px; }
.about-portrait-window {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5.2;
  background: #272522;
}
/* A viewport on the middle panel preserves the supplied photograph exactly. */
.about-portrait-window .about-middle-portrait {
  position: absolute; top: 0; left: 50%; width: 257.05%; max-width: none;
  height: auto; transform: translateX(-52.93%);
}
.about-page .songwriter-portrait figcaption {
  margin-top: 18px; font: 400 16px/1.5 Oswald, sans-serif; color: #adb5bc;
}
.about-page .songwriter-portrait blockquote {
  max-width: 480px; margin: 34px 0 0; padding: 0; border: 0;
  font: 400 clamp(30px, 3vw, 46px)/1.17 Anton, sans-serif;
  text-transform: uppercase; color: var(--paper);
}
.about-page .songwriter-portrait blockquote::before {
  content: ''; display: block; width: 64px; height: 4px;
  margin-bottom: 20px; background: var(--red);
}
.about-page .songwriter-copy h2 { font-size: clamp(38px, 4.2vw, 64px); margin: 0 0 28px; }
.about-page .songwriter-copy p { line-height: 1.75; }
.about-page .songwriter-copy .lead-copy { font-size: clamp(22px, 2vw, 27px); line-height: 1.5; }
.about-page .about-song-stories {
  border: 0;
  padding: 0 0 clamp(64px, 7vw, 110px);
  scroll-margin-top: calc(var(--site-nav-height) + 20px);
}
.about-section-intro { display: grid; grid-template-columns: .88fr 1fr; gap: clamp(48px, 7vw, 104px); }
.about-section-intro h2 { font-size: clamp(42px, 5vw, 72px); }
.about-section-intro .reading-copy { padding-top: 4px; }
.about-cover-grid {
  --book-columns: 5;
  --book-gap: clamp(10px, 1.1vw, 16px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--book-gap);
  margin: clamp(28px, 3.2vw, 46px) 0 0;
  padding: 0;
  list-style: none;
}
.about-cover-grid:empty { display: none; }
.about-cover-grid > li {
  flex: 0 0 calc((100% - (var(--book-columns) - 1) * var(--book-gap)) / var(--book-columns));
  min-width: 0;
}
.about-page .about-catalogue-status { margin-top: 24px; text-align: center; }
.about-cover {
  --book-side: clamp(4px, .52vw, 7px);
  --book-bottom: clamp(3px, .43vw, 6px);
  display: block;
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.about-cover-book {
  position: absolute;
  inset: 0;
  border-radius: 2px 4px 4px 2px;
  box-shadow: 0 6px 15px #0008;
}
.about-cover-book::before,
.about-cover-book::after {
  content: '';
  position: absolute;
}
.about-cover-book::before {
  inset: 2px 0 0 auto;
  width: var(--book-side);
  background:
    linear-gradient(to right, #4230179f, transparent),
    repeating-linear-gradient(to right, #deceb5 0 .8px, #ac987a .8px 1.6px);
  clip-path: polygon(0 0, calc(100% - 1px) 2px, 100% 5px, 100% 100%, 0 calc(100% - var(--book-bottom)));
}
.about-cover-book::after {
  inset: auto 0 0 2px;
  height: var(--book-bottom);
  background:
    linear-gradient(to right, #36261596, transparent 21%, #36261538),
    repeating-linear-gradient(to bottom, #d6c4a9 0 .8px, #9e896f .8px 1.6px);
  clip-path: polygon(0 0, calc(100% - var(--book-side)) 0, 100% 100%, 0 100%);
}
.about-cover-face {
  position: absolute;
  z-index: 1;
  inset: 0 var(--book-side) var(--book-bottom) 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: 2px 4px 4px 2px;
  background: #101821;
}
.about-cover-bleed {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  object-fit: cover;
  filter: blur(12px);
}
.about-cover-art {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  translate: -50% -50%;
  mask-image: linear-gradient(transparent, #000 5%, #000 95%, transparent);
}
.about-cover-face::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(90deg, #0009, #ffffff2e 2.5%, #0008 3.5%, transparent 6.5%);
  box-shadow: inset 0 0 0 1px #ffffff33, inset 0 -1px #000c;
}
.about-cover-caption {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: clamp(10px, 1.25vw, 18px);
  color: #fff;
  overflow-wrap: anywhere;
  opacity: var(--cover-reveal, 0);
  transition: opacity .28s ease-out;
}
.about-cover-caption::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -34px 0 0;
  pointer-events: none;
  background: linear-gradient(to top, #020305bf, transparent);
}
.about-cover-title {
  font: 400 clamp(.9rem, 1.35vw, 1.15rem)/1.2 Oswald, Arial, sans-serif;
  text-shadow: 0 1px 4px #000, 0 0 8px #000a;
}
.about-cover-action {
  padding: 5px 9px;
  border: 1px solid #ffffff70;
  border-radius: 3px;
  background: #05070b8c;
  font: 400 .75rem/1.25 Arial, sans-serif;
}
.about-cover:is(:hover, :focus-visible) {
  --cover-reveal: 1;
}
.about-cover:focus-visible { outline-offset: 3px; }

html:has(.song-story-dialog[open]) { overflow: hidden; }
.song-story-dialog {
  --story-dialog-gutter: clamp(18px, 4vw, 38px);
  --story-dialog-height: min(780px, calc(100dvh - 40px));
  --story-surface: #101820;
  position: fixed;
  width: min(1000px, calc(100% - 40px));
  max-height: var(--story-dialog-height);
  padding: 0;
  overflow: hidden;
  border: 1px solid #65778680;
  border-radius: 6px;
  color: var(--paper);
  background: var(--story-surface);
  box-shadow: 0 30px 100px #000b;
}
.song-story-dialog::backdrop {
  background: #030609ba;
  -webkit-backdrop-filter: blur(10px) saturate(.7);
  backdrop-filter: blur(10px) saturate(.7);
}
.song-story-dialog[open] { animation: song-story-in .22s ease-out both; }
.song-story-dialog[open]::backdrop { animation: song-story-backdrop-in .2s ease-out both; }
@keyframes song-story-in {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
}
@keyframes song-story-backdrop-in {
  from { opacity: 0; }
}
.song-story-panel {
  display: grid;
  grid-template: "cover story" minmax(0, 1fr) "cover actions" auto / minmax(0, .84fr) minmax(0, 1.16fr);
  max-height: calc(var(--story-dialog-height) - 2px);
}
.song-story-header {
  grid-area: cover;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: clamp(9px, 2dvh, 20px);
  padding: clamp(20px, 5dvh, 46px) var(--story-dialog-gutter);
  border-inline-end: 1px solid #ffffff15;
  background: radial-gradient(ellipse at top, #192532, transparent 80%);
  text-align: center;
}
.song-story-cover {
  width: min(100%, clamp(100px, 42dvh, 330px));
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #ffffff26;
  border-radius: 2px;
  box-shadow: 0 14px 30px #0006;
}
.song-story-header h2 {
  margin: 0;
  font: 400 clamp(24px, min(6vw, 5.8dvh), 46px)/1.12 Anton, Impact, sans-serif;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.song-story-header .brush-rule { width: clamp(58px, 8vw, 92px); height: 5px; }
.song-story-reading {
  --story-fade: clamp(15px, 3.2dvh, 28px);
  grid-area: story;
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  margin-top: clamp(48px, 6dvh, 58px);
}
.song-story-reader {
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #6c7b8d var(--story-surface);
  padding: calc(var(--story-fade) * .75) var(--story-dialog-gutter) var(--story-fade);
}
.song-story-reading::before,
.song-story-reading::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  height: var(--story-fade);
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease-out;
}
.song-story-reading::before {
  top: 0;
  background: linear-gradient(to bottom, var(--story-surface), transparent);
}
.song-story-reading::after {
  bottom: 0;
  background: linear-gradient(to top, var(--story-surface), transparent);
}
.song-story-reading.fade-top::before,
.song-story-reading.fade-bottom::after { opacity: 1; }
.song-story-copy {
  color: #d9dfe5;
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
}
.song-story-copy p { margin: 0; overflow-wrap: anywhere; }
.song-story-copy p + p { margin-top: 1em; }
.song-story-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #78889b75;
  border-radius: 4px;
  background: #0a1118;
  color: #fff;
  cursor: pointer;
}
.song-story-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.song-story-dialog :is(button, a):focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 2px;
}
.song-story-reader:focus-visible { outline: 1px solid var(--warm); outline-offset: -1px; }
.song-story-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 5px var(--story-dialog-gutter) clamp(12px, 2.7dvh, 24px);
  background: linear-gradient(to top, #090e15, var(--story-surface));
}
.song-story-listen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px clamp(12px, 2.6vw, 20px);
  font: 400 1rem/1.3 Oswald, Arial, sans-serif;
  color: #fff;
}
.song-story-close:hover { border-color: var(--red); background: #161e28; }
.about-listen {
  position: relative; isolation: isolate; display: grid;
  grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(40px, 5vw, 80px);
  padding: clamp(32px, 4.5vw, 64px);
  --metal-frame-width: 18px;
  background: #050505 url('assets/frames/scratched-black-tile.webp') center / 512px;
  box-shadow: inset 0 0 70px 24px #000b;
}
.about-listen h2 { font-size: clamp(38px, 4vw, 60px); margin-bottom: 24px; }
.about-album-art { width: 100%; max-width: 380px; margin: 0; justify-self: center; }
.about-album-art a { display: block; }
.about-album-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.about-page .about-listen .discover-link { margin-top: 8px; text-decoration: none; }
@media (max-width: 850px) {
  .about-page .songwriter-layout, .about-section-intro { gap: 40px; grid-template-columns: 1fr; }
  .about-section-intro h2 br { display: none; }
  .about-page .songwriter-portrait { max-width: 580px; }
  .about-page .songwriter-portrait blockquote { max-width: 530px; }
  .about-cover-grid { --book-columns: 3; }
  .about-listen { grid-template-columns: 1fr; gap: 24px; }
  .about-listen h2 br { display: none; }
}
@media (max-width: 700px) {
  .song-story-dialog {
    --story-dialog-height: calc(100dvh - 24px);
    --story-dialog-gutter: 16px;
    width: min(530px, calc(100% - 24px));
  }
  .song-story-panel {
    grid-template: "story" minmax(0, 1fr) "actions" auto / minmax(0, 1fr);
  }
  .song-story-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title cover" "rule cover";
    justify-items: start;
    gap: 8px clamp(14px, 4vw, 24px);
    margin-bottom: 22px;
    padding: 0;
    border-inline-end: 0;
    background: transparent;
    text-align: left;
  }
  .song-story-header h2 { grid-area: title; align-self: end; text-wrap: wrap; }
  .song-story-header .brush-rule { grid-area: rule; align-self: start; }
  .song-story-cover { grid-area: cover; align-self: center; width: clamp(68px, 24vw, 108px); }
  .song-story-reading { margin-top: 50px; }
  .song-story-copy { font-size: .975rem; }
  .song-story-close { top: 6px; right: 6px; }
}
@media (max-width: 600px) {
  .about-heading { margin-bottom: 36px; }
  .about-page .songwriter-portrait { max-width: none; }
  .portrait-mount { --metal-frame-width: 14px; }
  .about-portrait-window { aspect-ratio: 4 / 4.7; }
  .about-cover-grid { --book-columns: 2; }
  .about-listen { --metal-frame-width: 14px; padding: 30px 24px; }
  .about-page .about-listen .discover-link { font-size: 14px; padding-inline: 20px; }
}
@media (hover: none) {
  .about-cover { --cover-reveal: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .about-cover-caption,
  .song-story-reading::before,
  .song-story-reading::after { transition: none; }
  .song-story-dialog[open], .song-story-dialog[open]::backdrop { animation: none; }
}
