/*
  DREAMHOLE QUICK ART CONTROLS
  Change these values to recolor or brighten the site.
  Replace images/backgrounds/dreamhole-logo.webp to swap the large background art.
*/
:root {
  --ink: #0a0807;
  --charcoal: #15110e;
  --paper: #d5c39e;
  --paper-bright: #eee0bd;
  --rust: #7b2319;
  --red: #b52d20;
  --gold: #aa8958;
  --line: rgba(204, 178, 126, 0.23);
  --texture-opacity: 0.17;
  --content-width: 1220px;
  --serif: Baskerville, "Baskerville Old Face", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background:
    linear-gradient(rgba(10, 8, 7, 0.94), rgba(10, 8, 7, 0.965)),
    url("../images/backgrounds/dreamhole-logo.webp") center 10rem / min(72vw, 850px) auto fixed no-repeat,
    var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: var(--texture-opacity);
  pointer-events: none;
  background-image:
    repeating-linear-gradient(94deg, transparent 0 9px, rgba(255,255,255,.025) 10px, transparent 11px),
    repeating-linear-gradient(0deg, transparent 0 17px, rgba(122,65,37,.06) 18px, transparent 19px);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: #fff5dc; background: var(--rust); }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  transform: translateY(-160%);
  padding: .6rem 1rem;
  color: #fff;
  background: var(--rust);
}
.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 490px) auto;
  align-items: center;
  gap: 2rem;
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--line);
}
.masthead { display: block; }
.masthead img { width: 100%; height: auto; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .75rem 1.35rem;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.site-nav a { text-decoration: none; opacity: .72; transition: opacity .2s, color .2s; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--paper-bright); opacity: 1; }
.nav-toggle { display: none; }

.section-shell { width: min(calc(100% - 48px), var(--content-width)); margin-inline: auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .78fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  width: min(calc(100% - 48px), var(--content-width));
  min-height: 760px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 128px) 0;
}
.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--gold);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .25em;
  line-height: 1.4;
  text-transform: uppercase;
}
h1, h2 { margin: 0; color: var(--paper-bright); font-weight: 400; letter-spacing: -.045em; line-height: .9; }
h1 { max-width: 750px; font-size: clamp(4.4rem, 8.5vw, 8.2rem); }
h1 em { color: var(--gold); font-weight: 400; }
h2 { font-size: clamp(3.3rem, 6.5vw, 6.5rem); }
.hero-declaration {
  max-width: 640px;
  margin: 2.1rem 0 1.8rem;
  color: #c9b992;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.45;
}
.release-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .75rem;
  color: #a69676;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.signal { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 18px 5px rgba(181,45,32,.28); }
.release-separator { opacity: .35; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  min-height: 52px;
  padding: .78rem 1.2rem;
  border: 1px solid var(--gold);
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #0d0907; background: var(--gold); }
.button-primary:hover { background: var(--paper-bright); border-color: var(--paper-bright); }
.button-secondary { color: var(--paper); background: transparent; }
.button-secondary:hover { color: #0d0907; background: var(--paper); }
.streaming-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1.2rem; }
.streaming-links a {
  color: var(--gold);
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.streaming-links a[hidden] { display: none; }
.cover-wrap { position: relative; margin: 0; }
.album-cover { position: relative; z-index: 1; width: 100%; border: 1px solid rgba(219,190,137,.34); box-shadow: 0 34px 90px rgba(0,0,0,.62), 0 0 0 9px rgba(133,94,52,.05); }
.cover-wrap::before {
  position: absolute;
  inset: -8% 11% 15% -11%;
  content: "";
  border: 1px solid rgba(179,44,29,.5);
  transform: rotate(-4deg);
}
.cover-wrap figcaption { margin-top: .8rem; color: #84775f; font-family: var(--sans); font-size: .65rem; letter-spacing: .22em; text-align: right; }
.cover-number { position: absolute; z-index: 2; top: -2.1rem; right: -.5rem; color: var(--rust); font-family: var(--sans); font-size: .72rem; font-weight: 800; letter-spacing: .25em; writing-mode: vertical-rl; }

.bandcamp-player {
  display: grid;
  grid-template-columns: minmax(240px, .55fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  padding-block: clamp(65px, 8vw, 105px);
  border-top: 1px solid var(--line);
}
.player-heading h2 { font-size: clamp(3rem, 5.7vw, 5.5rem); }
.player-heading > p:last-child { max-width: 370px; margin: 1.5rem 0 0; color: #8f8167; }
.player-frame {
  padding: 15px;
  border: 1px solid rgba(204,178,126,.29);
  background: rgba(21,17,14,.88);
  box-shadow: 0 28px 80px rgba(0,0,0,.42), inset 0 0 0 4px rgba(170,137,88,.035);
}
.player-frame iframe { display: block; width: 100%; height: 472px; border: 0; background: var(--charcoal); }
.player-frame > p { margin: .8rem .25rem 0; color: #6f644f; font-family: var(--sans); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.player-frame > p a { color: var(--gold); }

.featured-track {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 2rem;
  padding-block: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.track-mark { color: var(--rust); font-family: var(--sans); font-size: 4.6rem; font-weight: 900; line-height: 1; }
.track-copy h2 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
.track-copy p:last-child { max-width: 690px; margin: .9rem 0 0; color: #9d8f71; }
.track-status { min-width: 170px; padding-left: 1.5rem; border-left: 1px solid var(--line); }
.track-status span, .track-status strong { display: block; font-family: var(--sans); text-transform: uppercase; }
.track-status span { color: #7f725b; font-size: .65rem; letter-spacing: .16em; }
.track-status strong { margin-top: .2rem; color: var(--gold); font-size: .88rem; letter-spacing: .09em; }

.story, .credits {
  display: grid;
  grid-template-columns: minmax(270px, .8fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 9vw, 10rem);
  padding-block: clamp(95px, 13vw, 175px);
}
.section-heading { align-self: start; position: sticky; top: 3rem; }
.story-copy { max-width: 730px; }
.story-copy p { margin: 0 0 1.5rem; color: #a99a7b; }
.story-copy .lead { color: var(--paper-bright); font-size: clamp(1.25rem, 2.1vw, 1.65rem); line-height: 1.5; }
.story-copy .closing { margin-top: 2.4rem; padding: 1.8rem 0 0 1.8rem; color: var(--paper); border-top: 1px solid var(--rust); border-left: 1px solid var(--rust); font-style: italic; }

.novel { padding: clamp(90px, 10vw, 145px) 0; background: rgba(5,4,3,.78); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.novel-intro { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 4rem; margin-bottom: 75px; }
.novel-note { max-width: 420px; justify-self: end; color: #aa9b7d; }
.novel-note p { margin: 0 0 .65rem; }
.zoom-note { color: #786b55; font-family: var(--sans); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.reader { display: grid; grid-template-columns: 260px minmax(0, 860px); justify-content: space-between; align-items: start; gap: clamp(2rem, 6vw, 6rem); }
.chapter-nav { position: sticky; top: 30px; max-height: calc(100vh - 60px); overflow: auto; }
.chapter-nav > p { margin: 0 0 1rem; color: #786b55; font-family: var(--sans); font-size: .65rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.chapter-nav ol { margin: 0; padding: 0; list-style: none; }
.chapter-nav li { border-top: 1px solid var(--line); }
.chapter-nav li:last-child { border-bottom: 1px solid var(--line); }
.chapter-nav a { display: grid; grid-template-columns: 32px 1fr; gap: .4rem; padding: .85rem 0; color: #776b56; font-family: var(--sans); font-size: .72rem; letter-spacing: .06em; line-height: 1.35; text-decoration: none; text-transform: uppercase; transition: color .2s, padding .2s; }
.chapter-nav a span { color: var(--rust); font-weight: 800; }
.chapter-nav a:hover, .chapter-nav a:focus-visible, .chapter-nav a.is-active { padding-left: .5rem; color: var(--paper-bright); }
.pages { min-width: 0; }
.novel-page { scroll-margin-top: 28px; margin: 0 0 clamp(70px, 9vw, 120px); }
.novel-page figcaption { display: flex; gap: 1rem; align-items: center; margin-bottom: .8rem; color: #8e8067; font-family: var(--sans); font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.novel-page figcaption span { color: var(--rust); }
.novel-page a { display: block; border: 1px solid rgba(185,157,109,.35); box-shadow: 0 24px 80px rgba(0,0,0,.5); cursor: zoom-in; transition: border-color .25s, transform .25s; }
.novel-page a:hover { border-color: var(--gold); transform: translateY(-3px); }
.novel-page img { width: 100%; height: auto; }

.credits { border-bottom: 1px solid var(--line); }
.credit-list article { display: grid; grid-template-columns: minmax(130px, .4fr) 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.credit-list article:last-of-type { border-bottom: 1px solid var(--line); }
.credit-list p, .credit-list span { margin: 0; }
.credit-list article p { color: var(--paper-bright); font-size: 1.25rem; }
.credit-list article span { color: #9c8d70; }
.credit-list .release-credit { margin-top: 2rem; color: #716651; font-family: var(--sans); font-size: .68rem; letter-spacing: .17em; text-transform: uppercase; }

.site-footer { position: relative; min-height: 500px; overflow: hidden; }
.footer-image { position: absolute; inset: 0; opacity: .44; background: linear-gradient(to bottom, var(--ink), transparent 35%, rgba(9,6,6,.62)), url("../images/backgrounds/dreamhole-logo.webp") center 34% / min(70vw, 650px) no-repeat; filter: saturate(1.1) contrast(1.12); }
.footer-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 500px; padding-bottom: 50px; text-align: center; }
.footer-content img { width: min(550px, 78vw); }
.footer-content p { margin: 1.2rem 0 2.5rem; color: var(--red); font-family: var(--sans); font-size: .72rem; font-weight: 800; letter-spacing: .35em; text-transform: uppercase; }
.footer-content a { color: #8d8066; font-family: var(--sans); font-size: .68rem; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  body { background-attachment: scroll; }
  .site-header { grid-template-columns: 1fr auto; }
  .masthead { max-width: 440px; }
  .nav-toggle { display: block; padding: .6rem 0 .6rem 1rem; color: var(--gold); border: 0; background: transparent; font-family: var(--sans); font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
  .site-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: flex-end; padding: 1.3rem 24px; background: rgba(10,8,7,.98); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { order: 1; }
  .cover-wrap { order: 0; width: min(100%, 560px); }
  .bandcamp-player { grid-template-columns: 1fr; }
  .player-heading > p:last-child { max-width: 550px; }
  .featured-track { grid-template-columns: 75px 1fr; }
  .track-status { grid-column: 2; padding: 0; border: 0; }
  .story, .credits { grid-template-columns: 1fr; gap: 3rem; }
  .section-heading { position: static; }
  .novel-intro { grid-template-columns: 1fr; gap: 2rem; }
  .novel-note { justify-self: start; }
  .reader { grid-template-columns: 1fr; }
  .chapter-nav { position: relative; top: auto; z-index: 3; max-height: none; overflow: visible; }
  .chapter-nav ol { display: flex; gap: .45rem; padding-bottom: .5rem; overflow-x: auto; scroll-snap-type: x proximity; }
  .chapter-nav li { flex: 0 0 auto; border: 1px solid var(--line); scroll-snap-align: start; }
  .chapter-nav li:last-child { border-bottom: 1px solid var(--line); }
  .chapter-nav a { display: flex; padding: .65rem .85rem; }
  .chapter-nav a:hover, .chapter-nav a:focus-visible, .chapter-nav a.is-active { padding: .65rem .85rem; background: rgba(170,137,88,.1); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section-shell, .hero, .site-header { width: min(calc(100% - 32px), var(--content-width)); }
  .site-header { padding-block: 22px 17px; }
  h1 { font-size: clamp(3.5rem, 18vw, 5rem); }
  h2 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .hero { gap: 3.8rem; padding-block: 58px 85px; }
  .release-line { align-items: flex-start; flex-direction: column; }
  .release-separator { display: none; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .player-frame { padding: 9px; }
  .player-frame iframe { height: 500px; }
  .featured-track { grid-template-columns: 52px 1fr; gap: 1rem; }
  .track-mark { font-size: 3rem; }
  .track-copy h2 { font-size: 2.65rem; }
  .story, .credits { padding-block: 90px; }
  .story-copy .closing { padding-left: 1.2rem; }
  .novel { padding-block: 85px; }
  .novel-intro { margin-bottom: 50px; }
  .novel-page { margin-bottom: 75px; }
  .credit-list article { grid-template-columns: 1fr; gap: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
