:root {
  --outer: #0e0f0d;
  --field: #111210;
  --panel: #171815;
  --raised: #1d1e1a;
  --ivory: #f1eee6;
  --gold: #c7a464;
  --gold-hi: #e0c58a;
  --stone: #b7b2a8;
  --taupe: #8f8a80;
  --inferno: #b91c1c;
  --arkham: #2ab18f;
  --border: rgba(241, 238, 230, 0.10);
  --gold-rule: rgba(199, 164, 100, 0.40);
  --shell: 1240px;
  --header-height: 64px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--outer); }
body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(25, 42, 31, 0.18), transparent 38rem),
    linear-gradient(180deg, var(--field), var(--outer));
  color: var(--stone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
img { display: block; width: 100%; height: auto; }
a { color: var(--ivory); text-underline-offset: 0.22em; }
a:hover, a:focus-visible { color: var(--gold-hi); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand-text {
  color: var(--ivory);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.04;
}
.shell { width: min(calc(100% - 2rem), var(--shell)); margin-inline: auto; }
.panel { background: var(--panel); border: 1px solid var(--border); }
.eyebrow {
  margin-bottom: 0.5rem;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: rgba(14, 15, 13, 0.96);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand-text {
  display: inline-flex;
  align-items: center;
  min-width: 190px;
  color: var(--ivory);
  font-size: 1.12rem;
  letter-spacing: 0.015em;
  text-decoration: none;
}
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.site-nav a {
  color: var(--stone);
  font-family: var(--sans);
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--gold-hi); }

/* Home */
.home-page {
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
}
.home-main {
  height: calc(100svh - var(--header-height));
  min-height: 616px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.home-content {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(560px, 1.28fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(1rem, 2.4vh, 1.75rem);
}
.home-intro { max-width: 480px; }
.home-intro h1 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 5.1vw, 5.2rem);
}
.home-intro > p:last-child {
  max-width: 470px;
  margin-bottom: 0;
  color: var(--ivory);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.55;
}
.home-albums {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2.4rem);
  align-items: end;
}
.home-album-card { min-width: 0; border-top: 3px solid; background: var(--panel); }
.home-album-card.inferno-card { border-top-color: var(--inferno); }
.home-album-card.arkham-card { border-top-color: var(--arkham); }
.home-album-card > a { display: block; }
.home-album-meta {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
}
.home-album-meta h2 { margin: 0; font-size: clamp(1.5rem, 2vw, 2.05rem); }
.home-album-meta a {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.home-social {
  display: grid;
  grid-template-columns: auto minmax(0, 520px);
  gap: 1.2rem;
  align-items: center;
  padding-block: 0.65rem 0.9rem;
  border-top: 1px solid var(--gold-rule);
}
.social-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.social-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.social-card, .mini-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--gold-rule);
  border-radius: 16px;
  background: rgba(23, 24, 21, 0.72);
  color: var(--ivory);
  text-decoration: none;
}
.social-card { min-height: 64px; padding: 0.55rem 0.75rem; }
.social-card:hover, .mini-social:hover { border-color: var(--gold-hi); background: var(--panel); }
.social-card span:last-child, .mini-social span:last-child { display: grid; }
.social-card strong, .mini-social strong { font-size: 0.92rem; }
.social-card small, .mini-social small { color: var(--gold); font-size: 0.72rem; }
.social-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--raised);
  color: var(--gold-hi);
}
.social-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.social-icon .icon-dot { fill: currentColor; stroke: none; }
.social-icon.small { width: 34px; height: 34px; border-radius: 8px; }
.social-icon.small svg { width: 20px; height: 20px; }

/* Music */
.compact-page-title { padding: 1.05rem 0 0.3rem; }
.compact-page-title .eyebrow { margin: 0; }
.album-section { padding: 1rem 0 2.8rem; }
.album-banner {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.75fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 3px solid;
}
.album-banner.inferno-accent { border-top-color: var(--inferno); }
.album-banner.arkham-accent { border-top-color: var(--arkham); }
.album-title-block h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 3.2vw, 3.15rem);
}
.album-meta {
  margin: 0;
  color: var(--stone);
  font-size: 0.82rem;
  line-height: 1.45;
}
.album-description { margin: 0; color: var(--ivory); font-size: 0.98rem; line-height: 1.55; }
.album-body {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: stretch;
  margin-top: 1rem;
}
.album-cover { align-self: start; }
.album-cover img { border: 1px solid var(--border); }
.track-panel {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.35rem;
  background: var(--panel);
  border: 1px solid var(--border);
}
.track-list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.track-list li {
  min-height: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.22rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--ivory);
  font-size: 0.88rem;
}
.track-list time { color: var(--taupe); font-family: var(--sans); font-size: 0.75rem; }
.tags {
  margin: 0.65rem 0;
  color: var(--taupe);
  font-size: 0.68rem;
  letter-spacing: 0.025em;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  padding: 0.62rem 0.95rem;
  border: 1px solid var(--gold-hi);
  background: var(--gold-hi);
  color: var(--outer);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-decoration: none;
  text-transform: uppercase;
}
.button:hover, .button:focus-visible { background: transparent; color: var(--gold-hi); }
.rounded-button { border-radius: 999px; padding-inline: 1.35rem; }

/* Composers */
.composers-page { min-height: 100svh; }
.composers-main { padding-block: 1.4rem 1.8rem; }
.composers-heading { margin-bottom: 1.15rem; }
.composers-heading h1 { margin: 0; font-size: clamp(2rem, 3.3vw, 3.15rem); }
.creator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}
.creator-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(155px, 34%) minmax(0, 1fr);
}
.creator-card > img { border-right: 1px solid var(--border); }
.creator-copy { min-width: 0; display: flex; flex-direction: column; padding: 1.15rem 1.25rem; }
.creator-copy h2 { margin: 0 0 0.65rem; font-size: clamp(1.45rem, 2.1vw, 2rem); }
.creator-copy p:not(.eyebrow) { margin-bottom: 0.75rem; font-size: 0.9rem; line-height: 1.48; }
.creator-links {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
}
.creator-links.single-link { justify-content: flex-start; }
.small-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--gold-rule);
  border-radius: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.mini-social { min-height: 48px; padding: 0.4rem 0.6rem; }
.mini-social strong { font-size: 0.8rem; }
.mini-social small { font-size: 0.66rem; }

/* CueForge */
.cueforge-hero {
  padding: clamp(2.2rem, 4.5vw, 4rem) 0;
  border-bottom: 1px solid var(--gold-rule);
  background:
    radial-gradient(circle at 85% 25%, rgba(199, 164, 100, 0.08), transparent 30rem),
    linear-gradient(90deg, rgba(8, 12, 9, 0.95), rgba(17, 18, 16, 0.98));
}
.cueforge-hero-inner { max-width: var(--shell); }
.cueforge-hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  letter-spacing: 0.015em;
}
.cueforge-hero p:not(.eyebrow) {
  max-width: 820px;
  margin-bottom: 1rem;
  color: var(--ivory);
  font-size: clamp(1rem, 1.45vw, 1.23rem);
  line-height: 1.55;
}
.cueforge-modules { padding: 2rem 0 2.6rem; }
.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.module-card { min-width: 0; border-color: var(--gold-rule); border-radius: 24px; overflow: hidden; background: rgba(16, 22, 17, 0.82); }
.module-card img { border-bottom: 1px solid var(--gold-rule); }
.module-copy { padding: 1rem 1.1rem 1.15rem; }
.module-copy .eyebrow { margin-bottom: 0.45rem; }
.module-copy h2 { margin: 0 0 0.5rem; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.module-copy p:last-child { margin-bottom: 0; color: var(--gold-hi); font-size: 0.92rem; line-height: 1.5; }

@media (max-width: 980px) {
  .home-page { height: auto; min-height: 100svh; overflow: auto; }
  .home-main { height: auto; min-height: 0; }
  .home-content { grid-template-columns: 1fr; }
  .home-intro { max-width: 760px; }
  .home-social { grid-template-columns: 1fr; }
  .album-banner { grid-template-columns: 1fr; gap: 0.7rem; }
  .album-body { grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr); }
  .creator-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  :root { --header-height: auto; }
  .site-header { height: auto; }
  .header-inner { padding-block: 0.85rem; align-items: flex-start; flex-direction: column; gap: 0.75rem; }
  .brand-text { min-width: 0; }
  .site-nav { width: 100%; justify-content: space-between; gap: 0.7rem; }
  .site-nav a { font-size: 0.69rem; }
  .home-albums, .social-grid, .module-grid { grid-template-columns: 1fr; }
  .home-album-meta { align-items: flex-start; flex-direction: column; }
  .album-body { grid-template-columns: 1fr; }
  .track-panel { min-height: 0; }
  .creator-card { grid-template-columns: 1fr; }
  .creator-card > img { border-right: 0; border-bottom: 1px solid var(--border); }
  .creator-links { align-items: stretch; flex-direction: column; }
  .small-link, .mini-social { width: 100%; }
}

/* R04 layout refinements */

/* Home: horizontal introduction above two equal album cards */
.home-main {
  height: calc(100svh - var(--header-height));
  min-height: 616px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(0.8rem, 1.8vh, 1.25rem);
  padding-block: clamp(0.8rem, 1.8vh, 1.25rem);
}
.home-overview {
  min-height: 126px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(0.9rem, 1.7vw, 1.35rem) clamp(1rem, 2.2vw, 1.75rem);
}
.home-summary { min-width: 0; }
.home-summary .eyebrow { margin-bottom: 0.35rem; }
.home-summary h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 3vw, 3rem);
}
.home-summary > p:last-child {
  max-width: 820px;
  margin: 0;
  color: var(--ivory);
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  line-height: 1.45;
}
.home-social-compact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}
.compact-social {
  min-width: 158px;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--gold-rule);
  border-radius: 13px;
  background: rgba(23, 24, 21, 0.72);
  color: var(--ivory);
  text-decoration: none;
}
.compact-social:hover,
.compact-social:focus-visible {
  border-color: var(--gold-hi);
  background: var(--panel);
}
.compact-social > span:last-child { display: grid; line-height: 1.2; }
.compact-social strong { font-family: var(--sans); font-size: 0.76rem; }
.compact-social small { color: var(--gold); font-size: 0.62rem; }
.social-icon.compact {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.social-icon.compact svg { width: 18px; height: 18px; }
.home-albums {
  width: min(100%, 960px);
  min-height: 0;
  justify-self: center;
  align-self: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: end;
}
.home-album-card { min-width: 0; }
.home-album-meta {
  min-height: 58px;
  padding: 0.55rem 0.85rem;
}
.home-album-meta h2 { font-size: clamp(1.35rem, 1.8vw, 1.8rem); }
.home-album-meta a { font-size: 0.63rem; }

/* Music: remove the album-header accent rule while preserving the approved layout */
.album-banner,
.album-banner.inferno-accent,
.album-banner.arkham-accent {
  border-top: 1px solid var(--border);
}

/* Composers: compact three-button row for A.P. DeVaney */
.creator-links {
  gap: 0.45rem;
  flex-wrap: nowrap;
}
.small-link,
.mini-social {
  min-height: 44px;
}
.small-link { padding: 0.45rem 0.62rem; }
.mini-social { gap: 0.48rem; padding: 0.32rem 0.5rem; }
.mini-social strong { font-size: 0.74rem; }
.mini-social small { font-size: 0.59rem; }
.social-icon.small {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.social-icon.small svg { width: 18px; height: 18px; }

/* CueForge: match the compact, single-viewport A.P. DeVaney composition */
.cueforge-page { min-height: 100svh; }
.cueforge-main { min-height: calc(100svh - var(--header-height)); }
.cueforge-hero {
  padding: clamp(1.25rem, 2.5vh, 1.8rem) 0 clamp(1.2rem, 2.3vh, 1.65rem);
}
.cueforge-hero .eyebrow { margin-bottom: 0.45rem; }
.cueforge-hero h1 {
  margin-bottom: 0.35rem;
  font-size: clamp(2.8rem, 5vw, 4.65rem);
}
.cueforge-hero p:not(.eyebrow) {
  max-width: 880px;
  margin-bottom: 0.75rem;
  font-size: clamp(0.94rem, 1.15vw, 1.08rem);
  line-height: 1.42;
}
.cueforge-hero .button { min-height: 36px; padding-block: 0.48rem; }
.cueforge-modules { padding: clamp(0.85rem, 1.8vh, 1.2rem) 0 0.85rem; }
.module-grid { gap: 0.95rem; }
.module-card { border-radius: 20px; }
.module-copy { padding: 0.68rem 0.85rem 0.82rem; }
.module-copy .eyebrow { margin-bottom: 0.3rem; }
.module-copy h2 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
}
.module-copy p:last-child {
  font-size: 0.82rem;
  line-height: 1.36;
}

@media (min-width: 1100px) and (min-height: 740px) {
  .cueforge-page {
    height: 100svh;
    overflow: hidden;
  }
  .cueforge-main {
    height: calc(100svh - var(--header-height));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .cueforge-modules {
    min-height: 0;
    display: flex;
    align-items: center;
  }
  .module-card { align-self: center; }
}

@media (max-width: 980px) {
  .home-main {
    height: auto;
    min-height: 0;
    display: block;
  }
  .home-overview {
    grid-template-columns: 1fr;
    margin-bottom: 1rem;
  }
  .home-social-compact { justify-content: flex-start; }
  .home-albums { width: 100%; }
  .creator-links { flex-wrap: wrap; }
}

@media (max-width: 700px) {
  .home-social-compact { align-items: stretch; flex-direction: column; }
  .compact-social { width: 100%; }
}
