:root {
  color-scheme: dark;
  --black: #050607;
  --near-black: #0b0d0f;
  --panel: rgba(15, 17, 18, 0.78);
  --panel-solid: #111416;
  --steel: #c8c2b7;
  --muted: #9d968b;
  --ash: #676258;
  --lightning: #f3ead9;
  --ember: #b98354;
  --line: rgba(243, 234, 217, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(185, 131, 84, 0.18), transparent 26rem),
    radial-gradient(circle at 86% 6%, rgba(243, 234, 217, 0.16), transparent 24rem),
    linear-gradient(135deg, #030405 0%, #121516 44%, #08090a 100%);
  color: var(--steel);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(5, 6, 7, 0.92), rgba(5, 6, 7, 0.22));
  backdrop-filter: blur(12px);
}

.brand {
  justify-self: start;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: 0.45rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.56);
}

.nav-links a {
  padding: 0.65rem 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--lightning);
  background: rgba(243, 234, 217, 0.08);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.patreon-menu {
  position: relative;
}

.patreon-menu-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.56);
  color: var(--lightning);
  cursor: pointer;
}

.patreon-menu-toggle:hover,
.patreon-menu-toggle:focus-visible,
.patreon-menu.is-open .patreon-menu-toggle {
  border-color: rgba(243, 234, 217, 0.48);
  background: rgba(243, 234, 217, 0.12);
  outline: none;
}

.patreon-menu.is-unlocked .patreon-menu-toggle {
  border-color: rgba(185, 131, 84, 0.78);
  color: var(--ember);
}

.patreon-menu-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.patreon-menu-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  display: none;
  min-width: 260px;
  padding: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.patreon-menu.is-open .patreon-menu-panel {
  display: grid;
  gap: 0.65rem;
}

.patreon-menu-panel p {
  margin: 0;
  color: var(--steel);
  font-size: 0.88rem;
  line-height: 1.45;
}

.patreon-menu-panel a,
.patreon-menu-panel button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  background: rgba(243, 234, 217, 0.08);
  color: var(--lightning);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.patreon-menu-panel a:hover,
.patreon-menu-panel a:focus-visible,
.patreon-menu-panel button:hover,
.patreon-menu-panel button:focus-visible {
  border-color: rgba(243, 234, 217, 0.48);
  background: rgba(243, 234, 217, 0.14);
  outline: none;
}

.patreon-menu-panel form {
  margin: 0;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  align-items: end;
  padding: 8rem clamp(1rem, 5vw, 5rem) 10vh;
}

.hero-art {
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/cover_stormvast.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.94) 0%, rgba(5, 6, 7, 0.58) 42%, rgba(5, 6, 7, 0.25) 100%),
    linear-gradient(0deg, var(--black) 0%, rgba(5, 6, 7, 0.1) 36%, rgba(5, 6, 7, 0.6) 100%);
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.hero h1 {
  max-width: 100%;
  font-size: clamp(3.4rem, 10vw, 7.25rem);
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--ember);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0 0 0.85rem;
  color: var(--ember);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: var(--ember);
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.breadcrumbs span {
  color: var(--ember);
}

.breadcrumbs [aria-current="page"] {
  color: var(--lightning);
}

.music-hero .breadcrumbs,
.legal-hero .breadcrumbs {
  max-width: 100%;
  color: var(--ember);
  font-size: 0.78rem;
}

h1,
h2 {
  margin: 0;
  color: var(--lightning);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.95;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(4rem, 14vw, 11rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
}

p {
  line-height: 1.7;
}

.hero-copy {
  max-width: 620px;
  margin: 1.25rem 0 0;
  color: var(--steel);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
}

.button {
  justify-content: center;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
}

.button.primary {
  color: #08090a;
  background: var(--lightning);
}

.button.secondary {
  color: var(--lightning);
  background: rgba(243, 234, 217, 0.08);
}

.text-link {
  color: var(--lightning);
  border-bottom: 1px solid var(--ember);
}

.section {
  padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 5vw, 5rem);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: clamp(2rem, 7vw, 7rem);
  border-top: 1px solid var(--line);
}

.body-copy {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.05rem;
}

.artist-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(280px, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.58), rgba(5, 6, 7, 0.18)),
    rgba(185, 131, 84, 0.05);
  border-top: 1px solid var(--line);
}

.artist-band img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.artist-copy {
  max-width: 720px;
}

.artist-copy p {
  color: var(--muted);
}

.stormvast-definition {
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(110deg, rgba(185, 131, 84, 0.12), transparent 45%),
    rgba(243, 234, 217, 0.025);
}

.definition-entry {
  max-width: 980px;
  padding-left: clamp(0.8rem, 2vw, 1.4rem);
  border-left: 3px solid var(--ember);
}

.definition-entry p {
  margin: 0;
}

.definition-word {
  color: var(--lightning);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4.5vw, 4.2rem);
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
}

.definition-pronunciation {
  margin-top: 0.65rem !important;
  color: var(--ember);
  font-size: 1rem;
  font-weight: 800;
}

.definition-origin {
  margin-top: 1.35rem !important;
  color: var(--muted);
  line-height: 1.7;
}

.definition-origin em {
  color: var(--lightning);
}

.definition-origin strong,
.definition-meaning strong {
  color: var(--lightning);
}

.definition-meaning {
  margin-top: 1rem !important;
  color: var(--steel);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
}

.definition-story {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--steel);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.8;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(280px, 0.6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  background: rgba(243, 234, 217, 0.04);
  border: 1px solid var(--line);
}

.feature-copy {
  max-width: 650px;
}

.feature-copy p {
  color: var(--muted);
}

.feature-copy .mantra {
  color: var(--lightning);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.25;
}

.feature-band img,
.music-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.production-note {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.study-feature-band {
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 1fr);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(185, 131, 84, 0.14), transparent 46%),
    rgba(243, 234, 217, 0.025);
}

.study-feature-band .body-copy {
  align-content: start;
}

.study-feature-band .button {
  width: fit-content;
  margin-top: 0.5rem;
}

.production-note p {
  max-width: 860px;
  margin: 0;
}

.production-note .kicker {
  margin-bottom: 0.65rem;
}

.production-note a {
  color: inherit;
  text-decoration-color: var(--ember);
  text-underline-offset: 0.2em;
}

.music-page {
  padding-top: 5.15rem;
}

.music-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 5vw, 5rem);
}

.music-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.music-hero p {
  max-width: 720px;
  color: var(--steel);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
}

.music-hero h1 {
  max-width: 760px;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
}

.album-overview-hero {
  position: relative;
  min-height: 400px;
  max-height: 400px;
  overflow: hidden;
  align-items: center;
  padding: clamp(3.6rem, 6vw, 4.75rem) clamp(1rem, 5vw, 5rem) clamp(2.4rem, 4vw, 3.25rem);
  background-image:
    linear-gradient(90deg, rgba(5, 6, 7, 0.98) 0%, rgba(5, 6, 7, 0.94) 44%, rgba(5, 6, 7, 0.68) 68%, rgba(5, 6, 7, 0.12) 100%),
    linear-gradient(0deg, var(--black) 0%, rgba(5, 6, 7, 0.12) 34%, rgba(5, 6, 7, 0.42) 100%),
    url("../assets/images/music-hero.jpg");
  background-position: center, center, right center;
  background-repeat: no-repeat;
  background-size: cover, cover, auto 100%;
  border-bottom: 1px solid var(--line);
}

.album-overview-hero h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
}

@media (min-width: 1180px) {
  .album-overview-hero {
    min-height: 520px;
    max-height: 520px;
    padding-top: clamp(4rem, 6vw, 5.5rem);
    padding-bottom: clamp(3rem, 5vw, 4.5rem);
    background-image:
      linear-gradient(90deg, rgba(5, 6, 7, 0.99) 0%, rgba(5, 6, 7, 0.96) 42%, rgba(5, 6, 7, 0.72) 62%, rgba(5, 6, 7, 0.14) 100%),
      linear-gradient(0deg, var(--black) 0%, rgba(5, 6, 7, 0.08) 36%, rgba(5, 6, 7, 0.36) 100%),
      url("../assets/images/music-hero.jpg");
    background-size: cover, cover, auto 100%;
  }
}

@media (min-width: 1600px) {
  .album-overview-hero {
    min-height: 560px;
    max-height: 560px;
    background-image:
      linear-gradient(90deg, rgba(5, 6, 7, 0.99) 0%, rgba(5, 6, 7, 0.97) 46%, rgba(5, 6, 7, 0.78) 64%, rgba(5, 6, 7, 0.14) 100%),
      linear-gradient(0deg, var(--black) 0%, rgba(5, 6, 7, 0.08) 36%, rgba(5, 6, 7, 0.34) 100%),
      url("../assets/images/music-hero.jpg");
  }
}

.study-preview-callout {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(280px, 1.3fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: center;
  margin: 2rem clamp(1rem, 5vw, 5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: rgba(185, 131, 84, 0.09);
}

.study-preview-callout h2 {
  font-size: clamp(1.65rem, 4vw, 3rem);
}

.study-preview-copy {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.study-preview-copy p {
  margin: 0;
  color: var(--steel);
  line-height: 1.7;
}

.study-intro-button {
  width: fit-content;
}

.patreon-access-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
  margin: 2rem clamp(1rem, 5vw, 5rem);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(185, 131, 84, 0.18), rgba(243, 234, 217, 0.04)),
    rgba(5, 6, 7, 0.42);
}

.patreon-access-panel[hidden] {
  display: none;
}

.patreon-access-panel.is-unlocked {
  border-color: rgba(185, 131, 84, 0.65);
  background: rgba(185, 131, 84, 0.1);
}

.patreon-cta-copy {
  display: grid;
  gap: 1rem;
}

.patreon-cta-copy h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
}

.patreon-access-panel p {
  margin: 0;
  color: var(--steel);
}

.patreon-status-note {
  padding: 0.85rem;
  border-left: 3px solid var(--ember);
  background: rgba(5, 6, 7, 0.4);
}

.patreon-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.patreon-benefits {
  padding: 1rem;
  border: 1px solid rgba(243, 234, 217, 0.14);
  background: rgba(5, 6, 7, 0.34);
}

.patreon-benefits h3 {
  margin: 0;
  color: var(--lightning);
  font-size: 1rem;
  text-transform: uppercase;
}

.patreon-benefits ul {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--steel);
}

.patreon-benefits li {
  position: relative;
  padding-left: 1.15rem;
  line-height: 1.45;
}

.patreon-benefits li::before {
  position: absolute;
  left: 0;
  color: var(--ember);
  content: "+";
}

.secondary-button {
  border-color: var(--line);
  color: var(--lightning);
  background: rgba(5, 6, 7, 0.38);
  cursor: pointer;
}

.album-index {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.album-index-heading {
  display: grid;
  gap: 1rem;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 360px));
  gap: 1rem;
}

.album-card {
  display: grid;
  grid-template-rows: auto auto minmax(3rem, auto) 1fr;
  gap: 0.85rem;
  align-content: start;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(243, 234, 217, 0.04);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.album-card:hover,
.album-card:focus-visible {
  border-color: rgba(243, 234, 217, 0.48);
  background: rgba(243, 234, 217, 0.1);
  outline: none;
}

.album-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

.album-card strong {
  color: var(--lightning);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 4vw, 2.45rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.album-card span:last-child {
  color: var(--muted);
  line-height: 1.65;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: 1rem;
  padding: 0 clamp(1rem, 5vw, 5rem) clamp(4rem, 8vw, 7rem);
}

.track-list,
.track-panel,
.song-content-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.track-list {
  align-self: start;
  min-width: 0;
  padding: 1rem;
}

.track-movement {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.track-movement-title {
  margin: 0;
  color: var(--ember);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.track-movement-list {
  display: grid;
  gap: 0.75rem;
}

.track-movement-list .track-button {
  margin-top: 0;
}

.track-list h2,
.track-panel h2,
.lyrics-panel h2,
.song-details-panel h2 {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}

.track-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  background: rgba(243, 234, 217, 0.04);
  color: var(--steel);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.track-button:hover,
.track-button.is-active {
  border-color: rgba(243, 234, 217, 0.48);
  background: rgba(243, 234, 217, 0.11);
}

.track-button:disabled,
.track-button.is-unreleased {
  opacity: 0.48;
  cursor: not-allowed;
}

.track-button:disabled:hover,
.track-button.is-unreleased:hover {
  border-color: var(--line);
  background: rgba(243, 234, 217, 0.04);
}

.track-copy {
  display: grid;
  min-width: 0;
}

.track-button strong {
  color: var(--lightning);
  text-transform: uppercase;
}

.track-copy span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.playing-indicator {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.16rem;
  width: 1.35rem;
  height: 1.1rem;
  color: var(--ember);
  opacity: 0;
}

.track-button.is-playing .playing-indicator,
.lyric-line.is-current .lyric-playing-indicator {
  opacity: 1;
}

.playing-indicator span {
  display: block;
  width: 0.18rem;
  height: 0.42rem;
  background: currentColor;
  animation: speaker-pulse 0.72s ease-in-out infinite;
}

.playing-indicator span:nth-child(2) {
  height: 0.82rem;
  animation-delay: 0.14s;
}

.playing-indicator span:nth-child(3) {
  height: 0.58rem;
  animation-delay: 0.28s;
}

@keyframes speaker-pulse {
  0%,
  100% {
    transform: scaleY(0.42);
  }

  50% {
    transform: scaleY(1);
  }
}

.now-playing {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 1rem;
}

.track-panel,
.song-content-panel {
  min-width: 0;
  padding: clamp(1rem, 3vw, 2rem);
}

.track-panel {
  align-self: start;
  scroll-margin-top: 1rem;
}

.track-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.track-panel-heading h2 {
  min-width: 0;
}

.song-content-panel {
  display: flex;
  flex-direction: column;
  height: var(--lyrics-panel-height, auto);
  min-height: 0;
  overflow: hidden;
}

.song-content-tabs {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(var(--song-tab-count, 3), minmax(0, 1fr));
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
}

.song-content-tabs.has-two-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.song-content-tab {
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.song-content-tab + .song-content-tab {
  border-left: 1px solid var(--line);
}

.song-content-tab:hover,
.song-content-tab:focus-visible,
.song-content-tab.is-active {
  background: rgba(243, 234, 217, 0.1);
  color: var(--lightning);
  outline: none;
}

.song-content-tab.is-active {
  box-shadow: inset 0 -2px var(--ember);
}

.song-tab-panel {
  min-height: 0;
}

.song-tab-panel[hidden] {
  display: none;
}

.lyrics-panel {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
}

.song-details-panel {
  flex: 1 1 0;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 1.25rem;
  padding-right: 0.25rem;
  overflow-y: auto;
}

.study-panel,
.devotional-panel,
.chart-panel {
  flex: 1 1 0;
  padding-right: 0.25rem;
  overflow-y: auto;
}

.song-details-panel.is-active,
.study-panel.is-active,
.devotional-panel.is-active,
.chart-panel.is-active {
  display: grid;
}

.devotional-panel.is-active {
  align-content: start;
}

.song-tab-heading {
  flex: 0 0 auto;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.study-tab-heading,
.devotional-tab-heading,
.chart-tab-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.chart-heading-copy {
  display: grid;
  gap: 0.35rem;
}

.song-content-panel.is-coming-soon .song-details-section,
.song-content-panel.is-coming-soon .study-print-button,
.song-content-panel.is-coming-soon .chart-download-menu {
  display: none;
}

.song-content-panel.is-coming-soon .study-panel.is-active,
.song-content-panel.is-coming-soon .devotional-panel.is-active,
.song-content-panel.is-coming-soon .chart-panel.is-active {
  align-content: start;
}

.song-content-panel.is-coming-soon .lyrics-body,
.song-content-panel.is-coming-soon .study-body {
  padding-top: 1.25rem;
}

.song-content-panel.is-coming-soon .study-body,
.song-content-panel.is-coming-soon .chart-viewer {
  gap: 0;
}

.song-content-panel.is-coming-soon .song-story,
.song-content-panel.is-coming-soon .coming-soon-message {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.study-print-actions {
  display: flex;
  gap: 0.5rem;
}

.study-print-button {
  width: 40px;
  height: 40px;
}

.study-print-button:hover,
.study-print-button:focus-visible {
  outline: none;
}

.study-print-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.8;
}

.chart-download-menu {
  position: relative;
}

.chart-download-menu summary {
  list-style: none;
}

.chart-download-menu summary::-webkit-details-marker {
  display: none;
}

.chart-download-menu svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.8;
}

.chart-download-options {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 4;
  min-width: 180px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 9, 0.98);
  box-shadow: var(--shadow);
}

.chart-download-options a {
  display: block;
  padding: 0.85rem 1rem;
  color: var(--lightning);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.chart-download-options a + a {
  border-top: 1px solid var(--line);
}

.chart-download-options a:hover,
.chart-download-options a:focus-visible {
  background: rgba(243, 234, 217, 0.1);
  outline: none;
}

.chart-viewer {
  min-height: 0;
}

.devotional-layout {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  gap: 1.25rem;
  min-height: 0;
  padding-top: 0.9rem;
}

.devotional-intro {
  padding: 0.9rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.devotional-intro:empty {
  display: none;
}

.devotional-intro h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.devotional-tabs {
  position: sticky;
  top: 0;
  display: grid;
  align-content: start;
  align-self: start;
  border: 1px solid var(--line);
}

.devotional-tab {
  min-height: 44px;
  padding: 0.8rem 0.9rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.devotional-tab + .devotional-tab {
  border-top: 1px solid var(--line);
}

.devotional-tab:hover,
.devotional-tab:focus-visible,
.devotional-tab.is-active {
  background: rgba(243, 234, 217, 0.1);
  color: var(--lightning);
  outline: none;
}

.devotional-tab.is-active {
  box-shadow: inset 3px 0 var(--ember);
}

.devotional-body {
  min-width: 0;
}

.devotional-section {
  padding-top: 0;
}

.devotional-section[hidden] {
  display: none;
}

.chart-sheet {
  max-width: 920px;
  color: var(--steel);
}

.chart-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.6;
  text-transform: uppercase;
}

.chart-meta:empty {
  display: none;
}

.chart-body {
  padding-top: 0.35rem;
  font-size: 1.08rem;
  line-height: normal;
}

.chart-section-heading {
  margin: 1.65rem 0 0.55rem;
  color: var(--steel);
  font-family: inherit;
  font-size: inherit;
  font-weight: 900;
  letter-spacing: 0;
}

.chart-section-heading:first-child {
  margin-top: 0;
}

.chart-line {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--steel);
  font: inherit;
  line-height: normal;
  text-align: left;
  white-space: pre-wrap;
  transition: color 180ms ease, opacity 180ms ease;
}

.chart-chords {
  font-weight: 900;
  margin-bottom: 0.1rem;
}

.chart-lyrics {
  margin-bottom: 0.8rem;
  cursor: pointer;
}

.chart-lyrics:hover,
.chart-lyrics:focus-visible {
  color: var(--lightning);
  outline: none;
}

.chart-line.is-current {
  color: var(--ember);
  font-weight: 800;
}

.chart-spacer {
  height: 0.75rem;
}

.chart-frame {
  display: block;
  width: 100%;
  min-height: 540px;
  height: 100%;
  border: 1px solid var(--line);
  background: rgba(243, 234, 217, 0.06);
}

.song-story,
.song-style p,
.life-application p {
  margin: 0;
  color: var(--steel);
  line-height: 1.75;
}

.streaming-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.streaming-links:empty,
.streaming-links[hidden] {
  display: none;
}

.streaming-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  background: rgba(243, 234, 217, 0.06);
  color: var(--lightning);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.streaming-links a:hover,
.streaming-links a:focus-visible {
  border-color: rgba(243, 234, 217, 0.48);
  background: rgba(243, 234, 217, 0.14);
  outline: none;
}

.streaming-note {
  max-width: 520px !important;
  margin: 1.25rem 0 0;
  color: var(--steel) !important;
  font-size: 0.95rem;
  line-height: 1.55;
}

.album-streaming-links {
  margin-top: 0.85rem;
}

.track-streaming-links {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-top: 0;
}

.album-streaming-links .streaming-icon-link,
.track-streaming-links .streaming-icon-link {
  justify-content: center;
  width: 40px;
  min-height: 40px;
  padding: 0;
}

.streaming-brand-icon {
  display: block;
  width: 19px;
  height: 19px;
  color: var(--lightning);
  fill: currentColor;
}

.song-style .music-metadata {
  color: var(--ember);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.song-details-section {
  display: grid;
  gap: 0.8rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.song-details-section h3 {
  color: var(--lightning);
  font-size: 1rem;
  text-transform: uppercase;
}

.study-body {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding-top: 1.25rem;
  color: var(--steel);
  line-height: 1.75;
}

.study-body h1,
.study-body h2,
.study-body h3 {
  color: var(--lightning);
}

.study-body h1 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.study-body h2 {
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
}

.study-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.study-body h3 {
  margin-top: 0.5rem;
  font-size: 1rem;
}

.study-body p,
.study-body ul,
.study-body ol {
  margin: 0;
}

.study-body ul,
.study-body ol {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.35rem;
}

.study-body blockquote {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--ember);
  background: linear-gradient(90deg, rgba(201, 139, 82, 0.16), rgba(243, 234, 217, 0.04));
  color: var(--lightning);
}

.study-body blockquote p {
  margin: 0;
}

.study-body blockquote em {
  color: var(--lightning);
  font-style: italic;
}

.study-body blockquote strong {
  color: var(--ember);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.study-body strong {
  color: var(--lightning);
}

.study-body a {
  color: var(--lightning);
  text-decoration-color: var(--ember);
  text-underline-offset: 0.22em;
}

.study-body a:hover,
.study-body a:focus-visible {
  color: var(--ember);
}

.study-introduction-link {
  display: grid;
  gap: 0.55rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.study-introduction-link h3 {
  max-width: 420px;
  margin: 0;
  color: var(--lightning);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  text-transform: none;
}

.study-introduction-link a {
  width: fit-content;
  color: var(--lightning);
  font-weight: 800;
  text-transform: uppercase;
  text-decoration-color: var(--ember);
  text-underline-offset: 0.24em;
}

.study-empty {
  color: var(--muted);
}

.print-packet {
  display: none;
}

.bible-references {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0.75rem;
}

.bible-reference {
  padding: 1rem;
  border-left: 2px solid var(--ember);
  background: rgba(243, 234, 217, 0.05);
}

.bible-reference a {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--lightning);
  font-weight: 800;
  text-decoration-color: var(--ember);
  text-underline-offset: 0.22em;
}

.bible-reference a:hover,
.bible-reference a:focus-visible {
  color: var(--ember);
}

.bible-reference p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.track-panel p {
  color: var(--muted);
}

.custom-player {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 54px;
  margin-top: 1rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  background: rgba(243, 234, 217, 0.08);
}

.player-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.38);
  color: var(--lightning);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.player-icon:hover {
  border-color: rgba(243, 234, 217, 0.48);
  background: rgba(243, 234, 217, 0.14);
}

.player-icon:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.play-toggle span {
  width: 0;
  height: 0;
  margin-left: 0.2rem;
  border-block: 0.45rem solid transparent;
  border-left: 0.72rem solid currentColor;
  overflow: hidden;
  text-indent: -999px;
}

.play-toggle.is-playing span {
  width: 0.75rem;
  height: 0.9rem;
  margin-left: 0;
  border: 0 solid transparent;
  border-inline: 0.24rem solid currentColor;
}

.share-track svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.seek-wrapper {
  flex: 1 1 auto;
  min-width: 80px;
  height: 28px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.seek-control {
  width: 100%;
  accent-color: var(--lightning);
  pointer-events: none;
}

.seek-wrapper:has(.seek-control:disabled),
.seek-control:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.time-display {
  flex: 0 0 auto;
  min-width: 4rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.audio-note {
  margin: 0.75rem 0 0;
  color: var(--ember);
  font-size: 0.94rem;
}

.audio-note:empty {
  display: none;
}

.lyrics-body {
  display: grid;
  flex: 1 1 auto;
  gap: 1rem;
  width: 100%;
  min-height: 0;
  padding-top: 1.5rem;
  padding-right: clamp(1rem, 3vw, 2rem);
  overflow-y: auto;
  color: var(--steel);
  font-size: 1.08rem;
  white-space: pre-line;
}

.lyrics-body.is-synced {
  gap: 0;
  white-space: normal;
}

.synced-lyrics-preview,
.full-lyrics-body {
  display: grid;
  gap: 0;
}

.full-lyrics-readthrough {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.full-lyrics-readthrough hr {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.full-lyrics-readthrough .kicker {
  margin: 0;
}

.lyric-line {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--steel);
  font: inherit;
  line-height: normal;
  text-align: left;
  transition: color 180ms ease, opacity 180ms ease;
  cursor: pointer;
}

.lyric-line:hover,
.lyric-line:focus-visible {
  color: var(--lightning);
  outline: none;
}

.lyric-line.is-section {
  margin-top: 1.1rem;
}

.lyric-line.is-section:first-child {
  margin-top: 0;
}

.lyric-line.is-spacer {
  min-height: 1rem;
}

.lyric-line.is-instrumental {
  display: inline-flex;
  align-items: center;
  min-width: 1.35rem;
  min-height: 1.1rem;
}

.lyric-playing-indicator {
  opacity: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lyric-line.is-current {
  color: var(--ember);
  font-weight: 800;
}

.lyric-line.is-plain {
  cursor: default;
}

.lyric-line.is-linked-target {
  color: var(--ember);
  font-weight: 800;
}

.study-lyric-link {
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  color: var(--ash);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 800;
}

.footer-social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.footer-social-links a,
.footer-social-links span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(243, 234, 217, 0.04);
  color: var(--muted);
}

.footer-social-links a {
  color: var(--lightning);
}

.footer-social-links a:hover,
.footer-social-links a:focus-visible {
  border-color: rgba(243, 234, 217, 0.48);
  background: rgba(243, 234, 217, 0.12);
  outline: none;
}

.footer-social-links .is-placeholder {
  opacity: 0.48;
}

.footer-social-links svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.footer-legal-links a {
  color: var(--ash);
  text-decoration-color: var(--ember);
  text-underline-offset: 0.22em;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: var(--lightning);
}

.legal-page {
  padding-top: clamp(7rem, 12vw, 9rem);
}

.legal-hero {
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 5rem) clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.98), rgba(5, 6, 7, 0.82)),
    url("../assets/images/cover_stormvast.png") center / cover;
}

.legal-hero h1 {
  max-width: 980px;
  font-size: clamp(2.1rem, 4.2vw, 4.6rem);
}

.legal-hero p {
  max-width: 760px;
  color: var(--steel);
}

.legal-content {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 5vw, 2rem);
  color: var(--steel);
}

.legal-content section {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.legal-content section:first-child {
  border-top: 0;
}

.legal-content h2 {
  margin-bottom: 0.85rem;
  color: var(--lightning);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.legal-content p,
.legal-content li {
  font-size: 1rem;
  line-height: 1.75;
}

.legal-content ul {
  margin: 1rem 0 0;
  padding-left: 1.3rem;
}

.legal-contact {
  display: grid;
  gap: 0.25rem;
}

.legal-contact a {
  color: var(--lightning);
  text-decoration-color: var(--ember);
  text-underline-offset: 0.22em;
}

.study-intro-hero {
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.98), rgba(5, 6, 7, 0.72)),
    url("../assets/images/cover_tempered.png?v=20260630-new-cover") center / cover;
}

.stormvast-study-intro-hero {
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.98), rgba(5, 6, 7, 0.72)),
    url("../assets/images/cover_stormvast.png") center / cover;
}

.study-intro-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--ember);
  background: rgba(243, 234, 217, 0.05);
}

.study-intro-content blockquote p {
  margin: 0 0 0.45rem;
  color: var(--lightning);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
}

.study-intro-content blockquote cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.study-intro-content h3 {
  margin: 1.4rem 0 0.5rem;
  color: var(--lightning);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.study-intro-mantra {
  color: var(--lightning);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  line-height: 1.45;
}

.study-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.study-steps article {
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(243, 234, 217, 0.04);
}

.study-steps h3 {
  margin-top: 0;
  color: var(--ember);
}

.study-track-list {
  columns: 2;
  column-gap: 2rem;
}

.study-track-list li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
  }

  .hero {
    min-height: 94vh;
    min-height: 94svh;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, var(--black) 0%, rgba(5, 6, 7, 0.25) 46%, rgba(5, 6, 7, 0.76) 100%),
      rgba(5, 6, 7, 0.34);
  }

  .split-section,
  .artist-band,
  .feature-band,
  .stormvast-definition,
  .study-feature-band,
  .music-hero,
  .study-preview-callout,
  .patreon-access-panel,
  .player-layout {
    grid-template-columns: 1fr;
  }

  .study-intro-button {
    grid-column: auto;
  }

  .study-steps {
    grid-template-columns: 1fr;
  }

  .album-overview-hero {
    min-height: 400px;
    max-height: 400px;
    padding-top: 6.25rem;
    background-image:
      linear-gradient(90deg, rgba(5, 6, 7, 0.98) 0%, rgba(5, 6, 7, 0.9) 58%, rgba(5, 6, 7, 0.46) 100%),
      linear-gradient(0deg, var(--black) 0%, rgba(5, 6, 7, 0.18) 42%, rgba(5, 6, 7, 0.7) 100%),
      url("../assets/images/music-hero.jpg");
    background-position: center, center, right center;
    background-size: cover, cover, auto 100%;
  }

  .track-list {
    position: static;
  }

  .song-content-panel {
    height: auto;
    overflow: visible;
  }

  .lyrics-body,
  .song-details-panel,
  .study-panel,
  .devotional-panel,
  .chart-panel {
    overflow: visible;
  }

  .lyrics-panel,
  .song-details-panel,
  .study-panel,
  .devotional-panel,
  .chart-panel {
    flex: none;
  }

  .devotional-layout {
    grid-template-columns: 1fr;
  }

  .devotional-tabs {
    position: static;
  }

}

@media (max-width: 520px) {
  .site-header,
  .site-footer {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .patreon-menu-panel {
    right: auto;
    left: 0;
  }

  .nav-links a {
    flex: 1;
    text-align: center;
  }

  .song-content-tab {
    padding-right: 0.35rem;
    padding-left: 0.35rem;
    font-size: 0.76rem;
  }

  .song-content-tab[data-short-label] {
    font-size: 0;
  }

  .song-content-tab[data-short-label]::after {
    content: attr(data-short-label);
    font-size: 0.76rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero {
    padding: 7.25rem clamp(1rem, 5vw, 5rem) 8vh;
  }

  .hero-art {
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% auto;
    transform: none;
  }

  .hero .kicker {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .hero h1 {
    max-width: 100%;
    overflow-wrap: normal;
    font-size: clamp(1.75rem, 9vw, 2.25rem);
    line-height: 1;
  }

  .hero-copy {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .button {
    min-height: 42px;
    padding: 0.68rem 0.85rem;
    font-size: 0.84rem;
  }
}

@page {
  size: letter;
  margin: 0.65in 0.65in 0.78in;

  @bottom-center {
    content: "STORMVAST STUDY PACKET  ·  PAGE " counter(page);
    color: #666;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 7.5pt;
    letter-spacing: 0.08em;
  }
}

@page :first {
  margin-bottom: 0.65in;
  counter-reset: page 0;

  @bottom-center {
    content: none;
  }
}

@page devotional-packet {
  size: letter;
  margin: 0.65in 0.65in 0.78in;

  @bottom-center {
    content: "STORMVAST DEVOTIONAL PACKET  ·  PAGE " counter(page);
    color: #666;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 7.5pt;
    letter-spacing: 0.08em;
  }
}

@page devotional-packet:first {
  margin-bottom: 0.65in;
  counter-reset: page 0;

  @bottom-center {
    content: none;
  }
}

@media print {
  body.is-printing-study,
  body.is-printing-devotional {
    background: #fff;
    color: #191919;
    font-family: Georgia, "Times New Roman", serif;
  }

  body.is-printing-study > :not(.print-packet),
  body.is-printing-devotional > :not(.print-packet) {
    display: none !important;
  }

  body.is-printing-study .print-packet,
  body.is-printing-devotional .print-packet {
    display: block;
    color: #191919;
    font-size: 10.5pt;
    line-height: 1.55;
  }

  body.is-printing-devotional .print-packet {
    page: devotional-packet;
  }

  .print-packet a {
    color: #191919;
    text-decoration-color: #9a6336;
    text-underline-offset: 0.12em;
  }

  .print-packet-cover {
    display: block;
    text-align: center;
    break-after: page;
  }

  .print-packet-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 7.2in;
    margin: 0 auto 0.32in;
    object-fit: cover;
  }

  .print-packet-cover p {
    margin: 0.12in 0 0;
    color: #9a6336;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .print-section-label {
    color: #9a6336;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8.5pt;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .print-packet-cover h1 {
    margin: 0;
    color: #111;
    font-size: 27pt;
    line-height: 1;
    text-transform: uppercase;
  }

  .print-song-cover {
    display: flex;
    min-height: 9in;
    break-before: page;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .print-song-metadata {
    margin: -0.08in 0 0.22in;
    color: #9a6336;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8.5pt;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .print-packet-section {
    break-before: page;
  }

  .print-packet-section:first-of-type {
    break-before: auto;
  }

  .print-packet-section h2,
  .print-packet-section h3 {
    break-after: avoid;
    color: #191919;
    text-transform: uppercase;
  }

  .print-packet-section h2 {
    margin: 0 0 0.22in;
    padding-bottom: 0.1in;
    border-bottom: 2px solid #9a6336;
    font-size: 20pt;
  }

  .print-packet-section h3 {
    margin: 0.25in 0 0.08in;
    font-size: 11pt;
  }

  .print-packet-section p,
  .print-packet-section ul,
  .print-packet-section ol {
    orphans: 3;
    widows: 3;
  }

  .print-packet-section li {
    margin-bottom: 0.06in;
  }


  .print-study-introduction-body .kicker,
  .print-study-introduction-body .study-intro-mantra {
    color: #9a6336;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .print-study-introduction-body section {
    break-inside: auto;
  }

  .print-study-introduction-body h2 {
    break-before: page;
    margin-top: 0;
  }

  .print-study-introduction-body section:first-child h2 {
    break-before: auto;
  }

  .print-study-introduction-body blockquote {
    margin: 0.16in 0;
    padding: 0.05in 0 0.05in 0.18in;
    border-left: 3px solid #9a6336;
  }

  .print-study-introduction-body blockquote p {
    margin: 0 0 0.06in;
  }

  .print-study-introduction-body cite {
    display: block;
    color: #555;
    font-style: normal;
  }

  .print-lyrics-body {
    columns: 2;
    column-gap: 0.35in;
    column-rule: 1px solid #ccc;
  }

  .print-lyrics-body span {
    display: block;
    break-inside: avoid;
    line-height: 1.42;
  }

  .print-lyrics-body .print-lyric-section {
    margin-top: 0.16in;
    color: #9a6336;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8pt;
    font-weight: 800;
    text-transform: uppercase;
  }

  .print-lyrics-body .print-lyric-section:first-child {
    margin-top: 0;
  }

  .print-lyrics-body .print-lyric-spacer {
    min-height: 0.1in;
  }

  .print-study-body h2 {
    break-before: page;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    font-size: 14pt;
  }

  .print-study-body h2:first-child {
    break-before: auto;
  }

  .print-devotional-section {
    break-before: page;
  }

  .print-devotional-section:first-of-type {
    break-before: auto;
  }

  .print-devotional-body h1 {
    break-before: auto;
    margin: 0 0 0.2in;
    padding-bottom: 0.1in;
    border-bottom: 2px solid #9a6336;
    color: #191919;
    font-size: 20pt;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .print-devotional-body h2 {
    break-before: auto;
    margin: 0.18in 0 0.08in;
    padding: 0;
    border: 0;
    font-size: 14pt;
    line-height: 1.2;
    text-transform: none;
  }

  .print-devotional-body h3 {
    margin: 0.16in 0 0.06in;
    font-size: 11pt;
    line-height: 1.2;
    text-transform: none;
  }

  .print-study-body h3 {
    font-size: 11pt;
    text-transform: none;
  }

  .print-study-body .print-note-lines {
    display: grid;
    gap: 0.18in;
    margin: 0.14in 0 0.2in;
  }

  .print-study-body .print-note-lines span {
    display: block;
    height: 0.18in;
    border-bottom: 1px solid #aaa;
  }

}


.admin-content {
  display: grid;
  gap: 1.5rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.admin-help,
.admin-user {
  border: 1px solid var(--line);
  background: rgba(243, 234, 217, 0.04);
  padding: 1rem;
}

.admin-help ul,
.admin-entitlements {
  display: grid;
  gap: 0.5rem;
  margin: 0.65rem 0 0;
}


.admin-search {
  display: grid;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: rgba(243, 234, 217, 0.04);
  padding: 1rem;
}

.admin-search label {
  color: var(--ember);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-search input {
  border: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.48);
  color: var(--lightning);
  font: inherit;
  padding: 0.8rem 0.9rem;
}

.admin-search p {
  color: var(--muted);
  margin: 0;
}

.admin-users {
  display: grid;
  gap: 1rem;
}

.admin-user {
  display: grid;
  gap: 1rem;
}

.admin-user h2 {
  margin: 0;
  font-size: 1.1rem;
}

.admin-user p,
.admin-muted,
.admin-status,
.admin-login p {
  color: var(--muted);
}

.admin-entitlements {
  padding: 0;
  list-style: none;
}

.admin-entitlements li,
.admin-grant-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 0.5rem;
  align-items: center;
}

.admin-entitlements code {
  color: var(--lightning);
}

.admin-grant-form input,
.admin-grant-form select,
.admin-entitlements button {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.4);
  color: var(--lightning);
  padding: 0.65rem;
  font: inherit;
}

.admin-grant-form button,
.admin-entitlements button {
  border: 1px solid var(--line);
  background: rgba(243, 234, 217, 0.08);
  color: var(--lightning);
  cursor: pointer;
  font-weight: 800;
  padding: 0.65rem 0.85rem;
  text-transform: uppercase;
}

.admin-grant-form button:hover,
.admin-entitlements button:hover {
  border-color: var(--ember);
}

@media (max-width: 900px) {
  .admin-entitlements li,
  .admin-grant-form {
    grid-template-columns: 1fr;
  }
}
