@font-face {
  font-family: "Libertinus Serif";
  src: url("/assets/fonts/libertinus-serif-regular-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Libertinus Serif";
  src: url("/assets/fonts/libertinus-serif-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Libertinus Serif";
  src: url("/assets/fonts/libertinus-serif-bold-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f4f0e7;
  --paper-deep: #e9e2d5;
  --ink: #282724;
  --ink-soft: #5b574f;
  --accent: #824832;
  --line: #c8c0b2;
  --white: #fffdf8;
  --content-width: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3.25rem);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Libertinus Serif", Georgia, serif;
  font-size: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--paper);
  font-size: 1.125rem;
  line-height: 1.62;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 0.16rem solid var(--accent);
  outline-offset: 0.22rem;
}

p,
h1,
h2,
h3,
h4 {
  margin-top: 0;
}

.shell {
  width: min(100% - (2 * var(--gutter)), var(--content-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.8rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 6.25rem;
}

.brand {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.brand:hover {
  color: var(--ink);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.96rem;
}

.nav-list a {
  text-decoration: none;
}

.hero {
  padding-block: clamp(5rem, 12vw, 10rem);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(15rem, 0.65fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 7rem);
}

.eyebrow,
.section-number {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 1.5rem;
}

h1 {
  max-width: 13ch;
  margin-bottom: 0;
  font-size: clamp(3.15rem, 7.8vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.94;
}

.hero-copy p {
  margin-bottom: 1.7rem;
  color: var(--ink-soft);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.text-link {
  display: inline-block;
  font-weight: 700;
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.section-rule {
  border-top: 1px solid var(--line);
}

.section-tint {
  background: var(--paper-deep);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(3rem, 9vw, 8rem);
}

.section-number {
  margin-bottom: 1.3rem;
}

h2 {
  max-width: 12ch;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}

.prose {
  max-width: 38rem;
}

.prose p {
  color: var(--ink-soft);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose .lead {
  color: var(--ink);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.35;
}

.book-action {
  margin-bottom: 0;
  font-weight: 700;
}

.action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.7rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

.book-release {
  padding-block: clamp(5rem, 12vw, 10rem);
}

.release-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(15rem, 0.65fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.release-meta {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.release-meta p {
  margin-bottom: 0.65rem;
}

.download-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.download-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.download-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.download-list a {
  font-weight: 700;
}

.checksum {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.format-note {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.album-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 32rem);
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
}

.album-title cite {
  display: block;
}

.album-title span {
  display: block;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.4em;
  letter-spacing: 0;
  line-height: 1.15;
}

.album-meta {
  margin-top: 2.5rem;
}

.release-meta + .lead {
  margin-top: 2rem;
}

.album-cover {
  width: 100%;
  height: auto;
  box-shadow: 0 0.6rem 2rem rgb(40 39 36 / 18%);
}

.album-page .book-release {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.album-page [id] {
  scroll-margin-top: 2rem;
}

.section-heading {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.release-links {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.release-links a {
  display: inline-block;
  padding-block: 0.5rem;
  font-weight: 700;
}

.premiere-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--white);
  text-decoration: none;
}

.premiere-card:hover {
  border-color: var(--accent);
}

.premiere-card img {
  width: 100%;
  height: auto;
}

.premiere-caption > * {
  display: block;
}

.premiere-caption .eyebrow {
  margin-bottom: 0.7rem;
}

.premiere-caption strong {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.2;
}

.premiere-caption > span:last-child {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.album-origin {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.album-origin summary {
  padding-block: 0.5rem;
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
}

.album-origin summary:focus-visible {
  outline: 0.16rem solid var(--accent);
  outline-offset: 0.22rem;
}

.album-origin[open] summary {
  margin-bottom: 1.5rem;
}

.track-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.track-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.track-story:last-child {
  border-bottom: 1px solid var(--line);
}

.track-art {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.track-story:nth-child(even) .track-art {
  order: 2;
}

.track-copy {
  max-width: 34rem;
}

.track-copy .track-number {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.track-copy h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.track-copy p {
  color: var(--ink-soft);
}

.track-copy .track-ref {
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-style: italic;
}

.track-copy .track-lyrics,
.track-actions {
  margin: 1.5rem 0 0;
  font-weight: 700;
}

.track-lyrics a,
.track-actions a {
  display: inline-block;
  padding-block: 0.4rem;
}

.scripture {
  margin: 0 0 2rem;
  padding-left: 1.4rem;
  border-left: 0.2rem solid var(--accent);
}

.scripture p {
  margin-bottom: 0.8rem;
}

.prose .scripture-ref {
  color: var(--accent);
  font-size: 0.9rem;
}

.tracks-more {
  margin: 2rem 0 0;
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.song-index {
  margin: 0 0 1.5rem;
  padding-left: 1.6rem;
}

.song-index li {
  margin-bottom: 0.3rem;
}

.song {
  scroll-margin-top: 1rem;
}

h2.song-title {
  max-width: 14ch;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
}

.song-ref {
  margin: 1rem 0 0;
  color: var(--accent);
  font-size: 0.9rem;
  font-style: italic;
}

.lyrics {
  max-width: 38rem;
  font-size: 1.2rem;
  line-height: 1.55;
}

.lyrics p {
  margin-bottom: 1.5rem;
}

.lyrics p:last-child {
  margin-bottom: 0;
}

/* Libertinus is subset to Latin; use system faces for Greek and Cyrillic. */
[lang="grc"] {
  font-family: "Gentium Plus", "Palatino Linotype", "Noto Serif",
    "Times New Roman", serif;
}

[lang="ru"] {
  font-family: "Palatino Linotype", "Noto Serif", "Times New Roman", serif;
}

.site-footer {
  padding-block: 2.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.footer-layout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem 4rem;
}

.footer-layout p {
  margin-bottom: 0;
}

.rights-note {
  max-width: 47rem;
  color: var(--ink-soft);
}

.home-lead {
  margin-top: 2.5rem;
}

.dedication {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.error-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.error-main {
  display: grid;
  flex: 1;
  align-items: center;
  padding-block: 5rem;
}

.error-layout h1 {
  max-width: 10ch;
  margin-bottom: 2rem;
  font-size: clamp(3rem, 8vw, 6.5rem);
}

.error-layout > p:not(.eyebrow) {
  max-width: 30rem;
  margin-bottom: 1.8rem;
  color: var(--ink-soft);
}

@media (max-width: 48rem) {
  body {
    font-size: 1.05rem;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.25rem;
    padding-block: 1.4rem;
  }

  .nav-list {
    justify-content: flex-start;
    gap: 0.5rem 1.25rem;
  }

  .hero-layout,
  .release-layout,
  .album-layout,
  .media-layout,
  .track-story,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .track-story:nth-child(even) .track-art {
    order: 0;
  }

  .track-copy {
    max-width: none;
  }

  .hero-layout {
    gap: 2.75rem;
  }

  .hero-copy {
    max-width: 32rem;
  }

  .download-list li {
    grid-template-columns: 1fr;
  }

  .footer-layout {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  .site-header nav,
  .skip-link,
  .text-link {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section-tint {
    background: transparent;
    color: #000;
  }
}
