:root {
  --burgundy: #5c1118;
  --burgundy-dark: #33080d;
  --gold: #c99a3d;
  --gold-pale: #ead8aa;
  --ivory: #f7f0e2;
  --paper: #fffaf1;
  --ink: #2f211b;
  --muted: #765e50;
  --line: #dbc8a8;
  --shadow: 0 8px 24px rgba(63, 31, 20, 0.1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--burgundy);
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 999;
  background: white;
  padding: 0.7rem 1rem;
}
.site-header {
  background: #130d08;
  border-bottom: 1px solid var(--gold);
}
.site-header > a:first-child {
  position: relative;
  display: block;
}
.site-header > a:first-child::after {
  content: "Desde 1996";
  position: absolute;
  right: clamp(0.7rem, 2vw, 1.6rem);
  bottom: clamp(0.55rem, 1.5vw, 1.15rem);
  padding: 0.22rem 0.55rem;
  color: #fff4d6;
  background: rgba(38, 13, 10, 0.68);
  border: 1px solid rgba(234, 216, 170, 0.62);
  border-radius: 2px;
  font-family: Georgia, serif;
  font-size: clamp(0.7rem, 1.2vw, 0.92rem);
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.banner {
  width: 100%;
  max-height: 470px;
  object-fit: cover;
  object-position: center top;
}
.main-nav {
  background: linear-gradient(180deg, var(--burgundy), var(--burgundy-dark));
  border-top: 1px solid #7e2530;
  border-bottom: 2px solid var(--gold);
}
.main-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1450px;
  display: flex;
  justify-content: center;
}
.main-nav a {
  display: block;
  padding: 1rem 1.15rem;
  color: #fff5df;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.07);
  color: #ffd978;
  border-bottom-color: var(--gold);
}
.menu-toggle {
  display: none;
}
.page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
.intro-strip {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  padding: 1.5rem 1.7rem;
  box-shadow: var(--shadow);
}
.intro-strip h1 {
  margin: 0.1rem 0 0.35rem;
  font-family: Georgia, serif;
  color: var(--burgundy);
}
.intro-strip h1 span {
  display: block;
}
.site-credit {
  margin: 0.85rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-credit a {
  font-weight: 700;
}
.eyebrow {
  margin: 0;
  color: var(--burgundy);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
}
.quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.quick-links a {
  padding: 0.85rem;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
}
.home-grid,
.lower-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.panel,
.explore {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.45rem;
}
.panel h2,
.explore h2 {
  margin: 0.15rem 0 0.7rem;
  color: var(--burgundy);
  font-family: Georgia, serif;
}
.featured {
  min-height: 260px;
}
.featured h2 {
  font-size: 2.2rem;
}
.composer {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  margin-top: -0.6rem;
}
.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}
.button {
  display: inline-block;
  border: 1px solid var(--burgundy);
  padding: 0.65rem 1rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: 3px;
}
.button.primary {
  background: var(--burgundy);
  color: white;
}
.news article {
  border-top: 1px solid var(--line);
  padding: 0.7rem 0;
}
.news article:first-of-type {
  border-top: 0;
}
.news h3 {
  font-size: 1rem;
  margin: 0;
  color: var(--burgundy);
}
.news p {
  margin: 0.15rem 0 0;
}
.news-illustration {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-top: 0.75rem;
}
.history-hero {
  display: grid;
  grid-template-columns: 1.25fr minmax(260px, 0.75fr);
  gap: 1.5rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.history-hero > div {
  padding: 1.7rem;
}
.history-hero h1,
.history-section h2 {
  color: var(--burgundy);
  font-family: Georgia, serif;
}
.history-hero h1 {
  margin: 0.15rem 0 0.5rem;
}
.history-hero img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}
.history-section {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  margin-top: 1.25rem;
}
.history-section h2 {
  margin: 0.1rem 0 0.7rem;
}
.history-section h3 {
  color: var(--burgundy);
}
.history-section blockquote {
  max-width: 520px;
  margin: 1.25rem auto;
  padding: 1.2rem 1.5rem;
  border-left: 5px solid var(--gold);
  background: #fff;
  font-family: Georgia, serif;
  font-size: 1.08rem;
  white-space: pre-line;
}
.explore {
  margin-top: 1.25rem;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.explore-card {
  min-height: 135px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  text-decoration: none;
  background: #fffdf8;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.explore-card span {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--burgundy);
}
.explore-card small {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer {
  background: linear-gradient(180deg, var(--burgundy), var(--burgundy-dark));
  color: #fff4dc;
  border-top: 3px solid var(--gold);
}
.footer-inner {
  max-width: 1400px;
  margin: auto;
  padding: 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 1.5rem;
  align-items: center;
}
.footer-inner > div:first-child:empty {
  display: none;
}
.footer-left {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.site-footer a {
  color: #ffe1a0;
}
.dedication {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dedication img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 3px;
}
.mission {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  text-align: center;
  font-family: Georgia, serif;
  font-style: italic;
}
.site-footer nav {
  display: contents;
}
.site-footer nav a:not([href*="contacto"]) {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}
.site-footer nav a[href*="contacto"] {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
@media (max-width: 900px) {
  .main-nav ul {
    display: none;
    flex-direction: column;
  }
  .main-nav ul.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
    background: transparent;
    color: white;
    border: 0;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
  }
  .intro-strip,
  .home-grid,
  .lower-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .quick-links,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .mission {
    grid-column: 1/-1;
    grid-row: 1;
    text-align: center;
  }
  .footer-left {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }
  .site-footer nav a:not([href*="contacto"]) {
    grid-column: 1;
    grid-row: 2;
  }
  .site-footer nav a[href*="contacto"] {
    grid-column: 2;
    grid-row: 2;
  }
}
@media (max-width: 560px) {
  .page-shell {
    padding: 1rem 0.75rem 2rem;
  }
  .quick-links,
  .card-grid {
    grid-template-columns: 1fr;
  }
  .banner {
    min-height: 210px;
    object-fit: cover;
  }
}

/* Catálogo de obras */
.catalog-hero,
.work-hero {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

/* Artículo principal sobre la danza */
.danza-article {
  max-width: 1120px;
}
.danza-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 1.7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.danza-opening h1 {
  margin: 0.1rem 0 0.8rem;
  color: var(--burgundy);
  font-family: Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.05;
}
.danza-lead {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.16rem;
  line-height: 1.75;
}
.documentary-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto 1.4rem;
  padding: 1.1rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  box-shadow: var(--shadow);
}
.documentary-callout h2 {
  margin: 0.1rem 0 0.25rem;
  color: var(--burgundy);
  font-family: Georgia, serif;
}
.documentary-callout p {
  margin: 0.15rem 0;
}
.documentary-callout .button {
  flex: 0 0 auto;
}
.danza-article .history-section {
  max-width: 900px;
  margin: 0 auto 1.4rem;
  padding: 1.8rem clamp(1.15rem, 4vw, 2.5rem);
}
.danza-article .history-section h2,
.danza-article .history-section h3 {
  color: var(--burgundy);
  font-family: Georgia, serif;
}
.danza-article .history-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}
.danza-article .history-section h3 {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
}
.danza-article .history-section p {
  max-width: 76ch;
  line-height: 1.78;
}
.danza-figure {
  margin: 1.6rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e9dcc2;
  box-shadow: var(--shadow);
}
.danza-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.danza-figure-opening {
  margin: 0;
}
.danza-figure-wide {
}
.danza-image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.7rem;
}
.danza-image-pair img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.huyke-poem {
  max-width: 540px;
  margin: 1.7rem auto;
  padding: 1.4rem 1.7rem;
  white-space: pre-line;
  border-left: 4px solid var(--gold);
  background: #f3e6ca;
  color: var(--burgundy-dark);
  font-family: Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.65;
}
@media (max-width: 760px) {
  .danza-opening {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }
  .danza-image-pair {
    grid-template-columns: 1fr;
  }
  .documentary-callout {
    align-items: flex-start;
    flex-direction: column;
  }
}
.catalog-hero {
  padding: 1.7rem;
}
.catalog-hero h1,
.work-copy h1 {
  font-family: Georgia, serif;
  color: var(--burgundy);
  margin: 0.15rem 0 0.3rem;
}
.catalog-controls {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.catalog-controls input,
.catalog-controls select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font: inherit;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
.work-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.work-card img {
  aspect-ratio: 3/2;
  object-fit: cover;
  width: 100%;
}
.work-card div {
  padding: 1rem;
}
.work-card h3 {
  font-family: Georgia, serif;
  color: var(--burgundy);
  margin: 0;
}
.work-card p {
  color: var(--muted);
  margin: 0.25rem 0 0;
}
.catalog-table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
}
.catalog-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.catalog-table th,
.catalog-table td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.catalog-table th {
  background: #efe2c8;
  color: var(--burgundy);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.catalog-table a {
  font-weight: 700;
  text-decoration: none;
}
.resource-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.75rem;
  padding: 0.16rem 0.42rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.library-hero {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  box-shadow: var(--shadow);
  padding: 1.7rem;
  margin-bottom: 1.5rem;
}
.library-hero h1 {
  margin: 0.15rem 0 0.5rem;
  color: var(--burgundy);
  font-family: Georgia, serif;
}
.library-controls {
  grid-template-columns: minmax(260px, 620px);
  margin-bottom: 0;
}
.collection-note {
  max-width: 900px;
  color: var(--muted);
}
.score-table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
}
.score-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.score-table th,
.score-table td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.score-table th {
  background: #efe2c8;
  color: var(--burgundy);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.score-table tr:hover {
  background: #fffdf8;
}
.button.compact {
  padding: 0.38rem 0.65rem;
  font-size: 0.88rem;
  white-space: nowrap;
}
.work-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
}
.work-hero img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}
.work-copy {
  padding: 2rem;
  align-self: center;
}
.work-copy .composer {
  margin: 0.1rem 0 1rem;
}
.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
  gap: 1.25rem;
}
.work-section,
.work-aside {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.45rem;
  margin-bottom: 1.25rem;
}
.work-section h2,
.work-aside h2 {
  font-family: Georgia, serif;
  color: var(--burgundy);
  margin-top: 0;
}
.audio-player {
  width: 100%;
  margin: 0.5rem 0;
}
.video-link {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.6rem;
  margin: 0.7rem 0;
}
.video-link img {
  width: 115px;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.video-link strong {
  display: block;
  color: var(--burgundy);
}
.lyrics {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.75;
  columns: 2;
  column-gap: 2.5rem;
}
.lyrics p {
  break-inside: avoid;
  margin-top: 0;
}
.dedication-poem {
  columns: 1;
  max-width: 32rem;
  margin: 2rem auto 0;
  text-align: center;
}
.dedication-poem h2 {
  column-span: none;
  text-align: center;
  margin: 0 0 1rem;
}
.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.resource-list li {
  border-top: 1px solid var(--line);
  padding: 0.7rem 0;
}
.resource-list li:first-child {
  border-top: 0;
}
.work-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}
.work-nav a {
  font-weight: 700;
}
.work-nav .catalog-return {
  margin-inline: auto;
  padding-inline: 1rem;
  text-align: center;
}
.composer a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.composer-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1rem;
  align-items: center;
}
.composer-card img {
  width: 84px;
  height: 100px;
  object-fit: cover;
  border: 2px solid var(--gold-pale);
  border-radius: 4px;
}
.composer-card .portrait-placeholder {
  width: 84px;
  height: 100px;
  display: grid;
  place-items: center;
  background: #efe2c8;
  border: 2px solid var(--gold-pale);
  color: var(--burgundy);
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}
.composer-card h2 {
  margin: 0 0 0.25rem;
}
.composer-card p {
  margin: 0;
}
.profile-hero,
.info-page {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.7rem;
}
.profile-hero {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 2rem;
  align-items: start;
}
.profile-hero img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  object-position: center 18%;
  border: 2px solid var(--gold-pale);
}
.profile-supporting-photo {
  margin: 1.4rem 0;
}
.profile-supporting-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 2px solid var(--gold-pale);
}
.profile-supporting-photo figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}
.profile-hero > .portrait-placeholder {
  width: 100%;
  min-height: 420px;
  display: grid;
  place-items: center;
  background: #efe2c8;
  border: 2px solid var(--gold-pale);
  color: var(--burgundy);
  font-family: Georgia, serif;
  font-size: 4rem;
  font-weight: 700;
}
.portrait-placeholder.faceless {
  position: relative;
  overflow: hidden;
  color: transparent;
  background: linear-gradient(180deg, #eee1c7, #d8c39c);
}
.portrait-placeholder.faceless::before {
  content: "";
  position: absolute;
  top: 72px;
  left: 50%;
  width: 130px;
  height: 150px;
  border-radius: 50%;
  background: #9b876c;
  transform: translateX(-50%);
}
.portrait-placeholder.faceless::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -80px;
  width: 310px;
  height: 260px;
  border-radius: 52% 52% 0 0;
  background: #796753;
  transform: translateX(-50%);
}
.profile-dates {
  color: var(--muted);
  font-weight: 700;
}
.composer-search {
  max-width: 620px;
  margin-top: 1.2rem;
}
.composer-search label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--burgundy);
}
.composer-search input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.composer-index {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.45rem;
}
.index-count {
  margin-top: 0;
  color: var(--muted);
  font-weight: 700;
}
.composer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.composer-list li {
  display: grid;
  grid-template-columns: 80px minmax(220px, 1fr) 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}
.composer-list li:first-child {
  border-top: 0;
}
.composer-list .composer-era {
  display: block;
  padding: 1.25rem 0 0.55rem;
  border-top: 2px solid var(--gold);
  color: var(--burgundy);
  font-family: Georgia, serif;
  font-size: 1.18rem;
  font-weight: 700;
}
.composer-list .composer-era:first-child {
  padding-top: 0.35rem;
  border-top: 0;
}
.composer-list a {
  font-family: Georgia, serif;
  font-size: 1.16rem;
  font-weight: 700;
  text-decoration: none;
}
.composer-list small {
  color: var(--muted);
}
.composer-year {
  font-weight: 800;
  color: var(--burgundy);
}
.index-empty {
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
}
.profile-hero h1,
.info-page h1 {
  color: var(--burgundy);
  font-family: Georgia, serif;
  margin: 0.15rem 0 0.7rem;
}
.dedication-page {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 2rem;
  align-items: center;
}
.dedication-page img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border: 2px solid var(--gold-pale);
}
.contact-card {
  max-width: 720px;
  margin: auto;
  text-align: center;
}
.contact-card .button {
  margin-top: 0.7rem;
}
.note {
  font-size: 0.88rem;
  color: var(--muted);
}
.fact-list {
  display: grid;
  gap: 1rem;
  padding-left: 1.4rem;
}
.fact-list li {
  padding-left: 0.35rem;
}
.fact-list a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
[id] {
  scroll-margin-top: 1rem;
}
.section-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0;
}
.page-end-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin: 1.5rem auto 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.page-end-nav a {
  color: var(--burgundy);
  font-weight: 700;
  text-underline-offset: 0.2em;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
.video-grid figure {
  margin: 0;
}
.video-grid video {
  display: block;
  width: 100%;
  background: #111;
  border: 2px solid var(--gold-pale);
}
.video-grid figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-top: 0.65rem;
}
.fan-sign-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.fan-sign-grid article {
  background: var(--paper);
  border: 1px solid var(--gold-pale);
  padding: 1rem 1.1rem;
}
.fan-sign-grid h3 {
  font-size: 1rem;
  margin: 0 0 0.45rem;
}
.fan-sign-grid p {
  margin: 0;
}
.fan-costume img {
  max-height: 430px;
  object-fit: contain;
}
.fan-language-table td:first-child {
  width: 58%;
}
.score-search-form {
  align-items: end;
  display: flex;
  gap: 0.75rem;
}
.score-search-form label {
  flex: 1 1 24rem;
}
.score-search-form .button {
  flex: 0 0 auto;
  margin-bottom: 0;
}
.photo-archive {
  max-width: 1180px;
}
.photo-intro {
  max-width: 780px;
  margin: 0 auto 2.2rem;
  text-align: center;
}
.photo-intro h1 {
  color: var(--burgundy);
  font-family: Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  margin: 0.35rem 0 1rem;
}
.photo-intro > p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}
.photo-feature {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.5fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
  padding: 1.4rem;
  background: linear-gradient(135deg, #f2e7d2, #fffaf0);
  border: 1px solid var(--gold-pale);
}
.photo-feature h2,
.archive-section h2 {
  color: var(--burgundy);
  font-family: Georgia, serif;
  margin: 0.3rem 0 0.75rem;
}
.photo-wide,
.archive-card figure {
  margin: 0;
}
.photo-open {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #24160f;
  cursor: zoom-in;
}
.photo-open img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.photo-open:hover img,
.photo-open:focus-visible img {
  transform: scale(1.018);
  opacity: 0.92;
}
.photo-wide figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.photo-wide figcaption strong {
  color: var(--burgundy);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--gold-pale);
}
.section-heading > p {
  max-width: 420px;
  color: var(--muted);
  text-align: right;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.archive-card {
  min-height: 330px;
  background: #fff;
  border: 1px solid var(--gold-pale);
  box-shadow: 0 8px 24px rgba(74, 39, 16, 0.07);
}
.archive-card > div:last-child {
  padding: 1.15rem 1.2rem 1.3rem;
}
.archive-card h3 {
  color: var(--burgundy);
  font-family: Georgia, serif;
  font-size: 1.3rem;
  margin: 0.35rem 0 0.65rem;
}
.archive-card p {
  margin: 0.4rem 0;
  color: var(--muted);
}
.archive-date {
  font-size: 0.75rem !important;
  font-weight: 800;
  letter-spacing: 0.11em;
  color: #8b6324 !important;
}
.archive-placeholder {
  display: grid;
  grid-template-rows: 145px 1fr;
  background: linear-gradient(160deg, #fffdf8, #f5ead8);
}
.archive-year {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem !important;
  color: #fff;
  background: linear-gradient(145deg, #630d18, #8b2630);
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1.05;
  text-align: center;
}
.archive-status {
  display: inline-block;
  margin-top: 0.55rem;
  color: #8b6324;
  font-size: 0.82rem;
  font-weight: 700;
}
.text-button {
  margin-top: 0.55rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--burgundy);
  font: inherit;
  font-weight: 700;
}
.photo-prototype-note {
  margin: 2rem auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.photo-period {
  display: inline-block;
  margin: 0.1rem 0 0.8rem !important;
  color: #8b6324 !important;
  font-family: Georgia, serif;
  font-size: 1.35rem !important;
  font-weight: 700;
}
.historical-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.historical-gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--gold-pale);
  box-shadow: 0 8px 24px rgba(74, 39, 16, 0.07);
}
.historical-gallery .photo-open {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.historical-gallery .photo-open img {
  width: 100%;
  height: 300px;
  aspect-ratio: auto;
  object-fit: contain;
  background: #24160f;
}
.historical-gallery figcaption {
  padding: 1rem 1.05rem 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.historical-gallery figcaption strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--burgundy);
  font-family: Georgia, serif;
  font-size: 1rem;
}
.photo-dialog {
  width: min(1040px, 92vw);
  padding: 2.7rem 1rem 1rem;
  border: 1px solid var(--gold-pale);
  background: #fffaf0;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.4);
}
.photo-dialog::backdrop {
  background: rgba(20, 10, 6, 0.82);
}
.photo-dialog img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: auto;
}
.photo-dialog p {
  margin: 0.8rem 0 0;
  text-align: center;
  color: var(--burgundy);
  font-weight: 700;
}
.photo-close {
  position: absolute;
  top: 0.3rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: none;
  color: var(--burgundy);
  font-size: 1.8rem;
  cursor: pointer;
}
@media (max-width: 900px) {
  .catalog-controls,
  .featured-grid,
  .work-hero,
  .work-layout,
  .profile-hero,
  .dedication-page,
  .history-hero {
    grid-template-columns: 1fr;
  }
  .photo-feature {
    grid-template-columns: 1fr;
  }
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .historical-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .work-hero img {
    min-height: 0;
  }
  .profile-hero img {
    height: auto;
    max-height: none;
    object-fit: contain;
  }
}
@media (max-width: 620px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }
  .historical-gallery {
    grid-template-columns: 1fr;
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    text-align: left;
  }
  .photo-wide figcaption {
    display: block;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .fan-sign-grid {
    grid-template-columns: 1fr;
  }
  .score-search-form {
    align-items: stretch;
    flex-direction: column;
  }
  .lyrics {
    columns: 1;
  }
  .video-link {
    grid-template-columns: 90px 1fr;
  }
  .video-link img {
    width: 90px;
  }
  .work-nav {
    display: grid;
    grid-template-columns: 1fr;
  }
  .work-nav .catalog-return {
    margin: 0;
    padding: 0;
  }
  .composer-list li {
    grid-template-columns: 64px 1fr;
  }
  .composer-list small {
    grid-column: 2;
  }
}
