:root {
  --book-black: #000;
  --book-ink: #110e08;
  --book-paper: #f7f7f5;
  --book-acid: #ccff00;
  --book-olive: #477000;
  --book-gray: #8c8c86;
  --book-line: #2a2a27;
  --book-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--book-black);
  color: var(--book-paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--book-black);
  color: var(--book-paper);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.book-fallback-header {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid #30302d;
  background: #000;
  font: 700 11px/1 "Courier New", monospace;
  text-transform: uppercase;
}

.book-fallback-header a {
  text-decoration: none;
}

.book-hero {
  min-height: calc(100vh - 56px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--book-line);
  isolation: isolate;
}

.book-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #000 0%, #000 43%, rgba(0, 0, 0, .82) 60%, rgba(0, 0, 0, .18) 100%);
}

.book-hero-cover {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 45%;
  background: #000 url("/book/assets/cover.jpg") center right 9% / contain no-repeat;
  opacity: .94;
}

.book-hero-copy {
  width: min(var(--book-max), calc(100% - 48px));
  margin: 0 auto;
  min-height: calc(100vh - 56px);
  padding: 72px 0 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.book-kicker,
.book-section-label {
  margin: 0 0 22px;
  color: var(--book-acid);
  font: 700 12px/1.25 "Courier New", monospace;
  text-transform: uppercase;
}

.book-hero h1 {
  margin: 0;
  max-width: 710px;
  color: #fff;
  font: 900 82px/.86 Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.book-years {
  margin: 22px 0 0;
  color: var(--book-acid);
  font: 700 22px/1 "Courier New", monospace;
}

.book-deck {
  max-width: 630px;
  margin: 28px 0 0;
  color: #e6e6e1;
  font-size: 20px;
  line-height: 1.45;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin-top: 32px;
  border: 1px solid #44443f;
  background: #44443f;
}

.book-action {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: #080808;
  color: #fff;
  text-decoration: none;
  font: 700 11px/1 "Courier New", monospace;
  text-transform: uppercase;
}

.book-action:hover,
.book-action:focus-visible {
  background: #1a1a18;
}

.book-action-primary {
  background: var(--book-acid);
  color: #000;
}

.book-action-primary:hover,
.book-action-primary:focus-visible {
  background: #b9e900;
}

.book-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(105px, 1fr));
  width: min(640px, 100%);
  margin: 46px 0 0;
  border-top: 1px solid #3c3c38;
  border-bottom: 1px solid #3c3c38;
}

.book-stats div {
  padding: 13px 12px 14px 0;
  border-right: 1px solid #3c3c38;
}

.book-stats div + div {
  padding-left: 14px;
}

.book-stats div:last-child {
  border-right: 0;
}

.book-stats dt {
  color: var(--book-gray);
  font: 700 8px/1.2 "Courier New", monospace;
  text-transform: uppercase;
}

.book-stats dd {
  margin: 6px 0 0;
  color: #fff;
  font: 700 15px/1.1 "Courier New", monospace;
}

.book-band {
  background: var(--book-paper);
  color: var(--book-ink);
}

.book-band-inner {
  width: min(var(--book-max), calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0;
}

.book-intro-grid,
.book-source-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 80px;
}

.book-intro .book-section-label,
.book-contents .book-section-label,
.book-sources .book-section-label {
  color: var(--book-olive);
}

.book-intro h2,
.book-contents h2,
.book-sources h2,
.book-record h2,
.book-rights h2,
.book-gallery h2 {
  margin: 0;
  max-width: 900px;
  font-size: 48px;
  line-height: 1.02;
}

.book-intro-grid > div p,
.book-source-copy p {
  max-width: 760px;
  margin: 28px 0 0;
  font-size: 19px;
  line-height: 1.55;
}

.book-gallery {
  padding: 96px max(24px, calc((100% - var(--book-max)) / 2));
  background: #090909;
}

.book-gallery-heading {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 80px;
  margin-bottom: 48px;
}

.book-pages {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  align-items: start;
}

.book-pages figure {
  margin: 0;
  grid-column: span 4;
}

.book-pages figure:nth-child(4),
.book-pages figure:nth-child(5) {
  grid-column: span 6;
}

.book-pages img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  border: 1px solid #343431;
  background: #111;
}

.book-pages figcaption {
  margin-top: 10px;
  color: #999994;
  font: 700 9px/1.2 "Courier New", monospace;
}

.book-contents {
  border-top: 1px solid #d4d4ce;
}

.book-toc {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--book-ink);
}

.book-toc li {
  min-height: 82px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #bdbdb7;
}

.book-toc span,
.book-toc em {
  font: 700 10px/1.2 "Courier New", monospace;
}

.book-toc span {
  color: var(--book-olive);
}

.book-toc strong {
  font-size: 24px;
}

.book-toc em {
  color: #666660;
  font-style: normal;
}

.book-record {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  column-gap: 84px;
  row-gap: 40px;
  padding: 100px max(24px, calc((100% - var(--book-max)) / 2));
  background: var(--book-acid);
  color: #000;
}

.book-record .book-section-label {
  color: #000;
}

.book-record-copy p {
  max-width: 720px;
  margin: 28px 0 0;
  font-size: 18px;
  line-height: 1.55;
}

.book-hashes {
  align-self: end;
  padding: 20px;
  border: 2px solid #000;
  background: rgba(255, 255, 255, .38);
  font: 700 10px/1.5 "Courier New", monospace;
  overflow-wrap: anywhere;
}

.book-hashes p {
  margin: 0;
}

.book-hashes p + p {
  margin-top: 16px;
}

.book-record-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 2px solid #000;
  border-left: 1px solid #000;
}

.book-record-actions a {
  min-height: 68px;
  padding: 14px;
  display: flex;
  align-items: center;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  color: #000;
  text-decoration: none;
  font: 700 10px/1.3 "Courier New", monospace;
  text-transform: uppercase;
}

.book-record-actions a:hover,
.book-record-actions a:focus-visible {
  background: #000;
  color: var(--book-acid);
}

.book-sources {
  border-bottom: 1px solid #c6c6bf;
}

.book-source-copy a {
  display: inline-block;
  margin-top: 34px;
  color: var(--book-ink);
  font: 700 11px/1.2 "Courier New", monospace;
  text-transform: uppercase;
}

.book-rights {
  width: min(var(--book-max), calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

.book-rights p:not(.book-section-label) {
  max-width: 900px;
  margin: 26px 0 0;
  color: #c6c6c0;
  font-size: 18px;
  line-height: 1.55;
}

.book-rights .book-rights-contact {
  font: 700 11px/1.4 "Courier New", monospace;
}

.book-footer {
  min-height: 86px;
  padding: 0 max(24px, calc((100% - var(--book-max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #30302d;
  color: #9b9b95;
  font: 700 9px/1.2 "Courier New", monospace;
}

.book-footer a {
  color: var(--book-acid);
}

@media (max-width: 820px) {
  .book-hero {
    min-height: 920px;
  }

  .book-hero::after {
    background: linear-gradient(180deg, #000 0%, #000 55%, rgba(0, 0, 0, .2) 100%);
  }

  .book-hero-cover {
    inset: 48% -4% -9% 20%;
    background-position: center bottom;
    opacity: .56;
  }

  .book-hero-copy {
    min-height: 920px;
    padding-top: 54px;
    justify-content: flex-start;
  }

  .book-hero h1 {
    font-size: 58px;
  }

  .book-deck {
    font-size: 17px;
  }

  .book-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-stats div:nth-child(2) {
    border-right: 0;
  }

  .book-stats div:nth-child(1),
  .book-stats div:nth-child(2) {
    border-bottom: 1px solid #3c3c38;
  }

  .book-intro-grid,
  .book-source-grid,
  .book-gallery-heading,
  .book-record {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .book-band-inner,
  .book-gallery,
  .book-record,
  .book-rights {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .book-intro h2,
  .book-contents h2,
  .book-sources h2,
  .book-record h2,
  .book-rights h2,
  .book-gallery h2 {
    font-size: 36px;
  }

  .book-pages figure,
  .book-pages figure:nth-child(4),
  .book-pages figure:nth-child(5) {
    grid-column: span 6;
  }

  .book-toc li {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
  }

  .book-toc strong {
    font-size: 18px;
  }

  .book-toc em {
    grid-column: 2;
  }

  .book-record-actions {
    grid-template-columns: 1fr 1fr;
  }

  .book-record-actions a:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .book-fallback-header {
    padding: 0 16px;
  }

  .book-hero-copy,
  .book-band-inner,
  .book-rights {
    width: calc(100% - 32px);
  }

  .book-gallery,
  .book-record {
    padding-left: 16px;
    padding-right: 16px;
  }

  .book-hero h1 {
    font-size: 47px;
  }

  .book-action {
    flex: 1 1 calc(50% - 1px);
    justify-content: center;
  }

  .book-action-primary {
    flex-basis: 100%;
  }

  .book-pages {
    gap: 12px;
  }

  .book-pages figure,
  .book-pages figure:nth-child(4),
  .book-pages figure:nth-child(5) {
    grid-column: span 12;
  }

  .book-record-actions {
    grid-template-columns: 1fr;
  }

  .book-record-actions a:last-child {
    grid-column: auto;
  }

  .book-footer {
    padding: 24px 16px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
