/* Post-export improvements for navigation, accessibility, and mobile use. */
:where(a, button):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Compact navigation and visible language switch */
.nav { font-size: 10px; }
.navlinks { gap: 24px; font-size: 11px; }
.navCta { font-size: 8px; }
.languageSwitch { display:flex; align-items:center; gap:7px; margin:0; text-transform:uppercase; letter-spacing:.16em; font:9px "Bodoni 72 Smallcaps",Georgia,serif; color:#fff; }
.languageSwitch a,.languageSwitch span { border:1px solid #ffffff80; padding:5px 7px; line-height:1; }
.languageSwitch span { background:#f0e8d7; color:#17160f; border-color:#f0e8d7; }
.languageSwitch a:hover { background:#d0a548; border-color:#d0a548; color:#17160f; }
@media (max-width:1040px) { .nav { font-size:9px; } .navlinks { gap:16px; font-size:10px; } .navCta { font-size:8px; } }
.navLanguage { margin-left:auto; flex:0 0 auto; }
.pageLanguage { display:flex; gap:7px; margin-left:auto; text-transform:uppercase; letter-spacing:.16em; font:9px "Bodoni 72 Smallcaps",Georgia,serif; }
.pageLanguage a,.pageLanguage span { border:1px solid #681f1b66; padding:5px 7px; line-height:1; }
.pageLanguage span { color:#eee8da; background:#681f1b; border-color:#681f1b; }
.specialThanks { border-top:1px solid #681f1b55; }
.specialThanks > div p { max-width:720px; font-size:17px; line-height:1.7; }
.instrumentMakers > div p { max-width:720px; font-size:17px; line-height:1.7; }
.sourceList { margin-bottom:36px; }
.trCompact { max-width:1120px; margin:0 auto; padding:85px 7vw; display:grid; grid-template-columns:1fr 2fr; gap:7vw; border-top:1px solid #681f1b55; }
.trCompact h2 { font-size:clamp(38px,5vw,64px); }
.trCompact h3 { font-size:30px; margin-bottom:14px; }
.trCompact p { font:17px/1.65 Georgia,serif; }
@media (max-width:760px) { .trCompact { grid-template-columns:1fr; padding:60px 7vw; } }

.detailPage :where(a, button):focus-visible,
.memberDetail :where(a, button):focus-visible {
  outline-color: #e9c782;
}

.nav a,
.button,
.readMore,
.detailBack,
.detailHome,
.sourceLinks a {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.navlinks {
  gap: clamp(16px, 2.3vw, 34px);
}

/* A tighter, more continuous rhythm between homepage sections. */
.intro,
.programmes {
  padding-top: 82px;
  padding-bottom: 82px;
}

.events {
  padding-top: 58px;
  padding-bottom: 44px;
}

.eventsHead h2 {
  font-size: clamp(36px, 4.2vw, 58px);
}

.ensemble {
  padding-top: 84px;
  padding-bottom: 84px;
}

.instruments {
  padding-top: 72px;
  padding-bottom: 72px;
}

.gallery {
  padding-top: 72px;
  padding-bottom: 62px;
}

footer {
  padding-top: 52px;
}

.heroCopy .lede {
  max-width: 520px;
  margin: 0 0 18px;
  color: #f2eee4;
  font-family: "Garamond Light", Garamond, Georgia, serif;
  font-variant: normal;
  text-transform: none;
  font-size: 17px;
}

/* Cursor-following eye crops taken from the painting itself. */
.heroEyeLayer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.heroEye {
  position: absolute;
  width: var(--eye-width, 22px);
  height: var(--eye-height, 14px);
  background-image: url('/images/venetian-doge.jpg');
  background-repeat: no-repeat;
  background-size: var(--portrait-width) var(--portrait-height);
  background-position: var(--portrait-x) var(--portrait-y);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 48%, rgba(0,0,0,.72) 67%, transparent 82%);
  mask-image: radial-gradient(ellipse at center, #000 48%, rgba(0,0,0,.72) 67%, transparent 82%);
  transform: translate(-50%, -50%) translate(var(--eye-x, 0), var(--eye-y, 0));
  transition: transform 120ms ease-out;
}

.heroCopy { z-index: 2; }

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .heroEyeLayer { display: none; }
}

.upcomingNotice {
  width: 75%;
  max-width: none;
  margin: 26px 0 30px 25%;
  padding: 20px 24px;
  border: 1px solid #ffffff66;
}

.upcomingNotice .eyebrow {
  color: #e9c782;
}

.upcomingNotice h3 {
  margin: 7px 0;
  font-size: 24px;
}

.upcomingNotice p:not(.eyebrow) {
  margin-bottom: 11px;
  font-size: 16px;
}

.upcomingNotice a,
.pastLabel {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-family: "Bodoni 72 Smallcaps", serif;
  font-size: 10px;
}

.pastLabel {
  margin: 0 0 7px 25%;
  color: #e9c782;
}

.events .eventList,
.events .pastLabel,
.events .past {
  width: 75%;
  margin-left: 25%;
  margin-right: 0;
}

.events .eventRow {
  grid-template-columns: 145px 1fr;
  gap: 26px;
  padding: 24px 0;
}

.events .eventRow time b {
  font-size: 50px;
}

.events .eventRow h3 {
  font-size: 25px;
  line-height: 1.08;
}

.events .past {
  margin-top: 24px;
}

.listenSection {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 4vw;
  padding: 74px 7vw;
  color: var(--paper);
  background: #142523;
}

.listenSection h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
}

.listenSection > div:last-child > p {
  max-width: 670px;
  font-size: 18px;
  line-height: 1.55;
}

.listenActions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}

.bibliography {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(480px, 2fr);
  gap: 7vw;
  max-width: 1120px;
  margin: 0 auto 90px;
  padding-top: 12px;
}

.bibliographyJump {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 13px 16px;
  border: 1px solid #681f1b88;
  color: #681f1b;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-family: "Bodoni 72 Smallcaps", serif;
  font-size: 11px;
}

.bibliographyJump span {
  color: #755e42;
  font-size: 9px;
}

#bibliography {
  scroll-margin-top: 32px;
}

.bibliographyHeading h2 {
  margin: 14px 0 20px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
}

.bibliographyHeading > p:last-child {
  font-size: 15px;
  line-height: 1.6;
}

.bibliographyList {
  border-top: 1px solid #681f1b66;
  counter-reset: bibliography;
}

.bibliographyList li {
  display: block;
  position: relative;
  counter-increment: bibliography;
  border-bottom: 1px solid #681f1b55;
  padding: 13px 0 13px 32px;
}

.bibliographyList li::before {
  content: counter(bibliography, decimal-leading-zero);
  position: absolute;
  top: 16px;
  left: 0;
  color: #681f1b;
  letter-spacing: .08em;
  font-family: "Bodoni 72 Smallcaps", serif;
  font-size: 9px;
}

.bibliographyList span,
.bibliographyList a {
  color: #681f1b;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-family: "Bodoni 72 Smallcaps", serif;
  font-size: 10px;
}

.bibliographyList p {
  display: inline;
  font-size: 13px;
  line-height: 1.45;
}

.bibliographyList a {
  display: inline;
  margin-left: 8px;
  white-space: nowrap;
  font-size: 8px;
}

.resourcePage {
  min-height: 100vh;
  padding: 42px 7vw 70px;
  background: var(--paper);
}

.resourceHero {
  max-width: 1120px;
  margin: 85px auto 75px;
}

.resourceHero h1 {
  max-width: 950px;
  margin: 18px 0 30px;
  font-size: clamp(58px, 8vw, 110px);
  line-height: .9;
}

.resourceHero > p:last-child {
  max-width: 760px;
  font-size: 20px;
  line-height: 1.55;
}

.resourceSection {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(420px, 2fr);
  gap: 7vw;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 0;
  border-top: 1px solid #681f1b55;
}

.resourceSection > h2 {
  font-size: 30px;
  line-height: 1.08;
}

.resourceSection h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.resourceSection p {
  font-size: 16px;
  line-height: 1.65;
}

.resourceLinks {
  display: grid;
  gap: 14px;
}

.resourceLinks a,
.downloadGrid span {
  color: #681f1b;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: "Bodoni 72 Smallcaps", serif;
  font-size: 12px;
}

.downloadGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.downloadGrid img {
  aspect-ratio: 4 / 3;
  width: 100%;
  margin-bottom: 10px;
  object-fit: cover;
}

.resourceNote {
  grid-column: 1 / -1;
  margin-top: 18px;
  color: #755e42;
  font-size: 13px !important;
}

.creditList {
  columns: 2;
  column-gap: 40px;
}

.creditList p {
  break-inside: avoid;
  margin-bottom: 10px;
}

.resourceTop {
  display: flex;
  justify-content: space-between;
}

.resourceTop .detailHome {
  margin: 0;
}

.albumFeature {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(420px, 1.4fr);
  align-items: center;
  gap: 8vw;
  max-width: 1120px;
  margin: 0 auto 80px;
  padding: 48px 0;
  border-top: 1px solid #681f1b55;
  border-bottom: 1px solid #681f1b55;
}

.albumFeature figure {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.albumFeature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.albumFeature h2,
.recordingChannels h2 {
  margin: 14px 0 20px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
}

.albumFeature div > p:not(.eyebrow),
.recordingChannels > p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.65;
}

.recordingChannels {
  max-width: 820px;
  margin: 0 auto 90px;
  text-align: center;
}

.recordingChannels .listenActions {
  justify-content: center;
}

@media (max-width: 800px) {
  .nav {
    align-items: center;
    height: 70px;
    padding-inline: 5vw;
  }

  .navlinks {
    display: flex;
    position: static;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    transform: none;
  }

  .navlinks::-webkit-scrollbar {
    display: none;
  }

  .navlinks > * {
    flex: 0 0 auto;
  }

  .navCta {
    display: none;
  }

  .navSubmenu {
    display: none;
  }

  .intro,
  .programmes,
  .ensemble,
  .instruments,
  .gallery {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .events {
    padding-top: 60px;
    padding-bottom: 48px;
  }

  .upcomingNotice,
  .pastLabel,
  .events .eventList,
  .events .past {
    width: 100%;
    margin-left: 0;
  }

  .listenSection {
    grid-template-columns: 1fr;
    padding: 60px 7vw;
  }

  .bibliography {
    grid-template-columns: 1fr;
  }

  .resourceSection {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .downloadGrid {
    grid-template-columns: 1fr;
  }

  .creditList {
    columns: 1;
  }

  .albumFeature {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

.recognition {
  padding: 20px 7vw 110px;
}

.aboutRecognition {
  max-width: 1280px;
  margin: 0 auto 70px;
  padding: 20px 0 80px;
}

.aboutRecognition .recognitionHeading {
  display: block;
}

.aboutRecognition .recognitionHeading h2 {
  margin-top: 18px;
}

.aboutRecognition .recognitionGrid {
  grid-template-columns: minmax(280px, .9fr) minmax(380px, 1.4fr);
  gap: 8vw;
  margin-left: 0;
}

.aboutLayout header .aboutCredit {
  width: auto;
  margin: 38px 0 0;
  text-align: left;
}

.aboutLayout header .aboutHome {
  display: inline-block;
  margin-top: 22px;
  text-align: left;
}

.recognitionHeading {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 4vw;
  margin-bottom: 52px;
}

.recognitionHeading h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
}

.recognitionGrid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, 2fr);
  gap: 7vw;
  margin-left: 25%;
}

.awardCard {
  align-self: start;
  background: #681f1b;
  color: var(--paper);
  padding: 34px;
}

.awardCard .eyebrow {
  color: #e9c782;
}

.awardCard h3 {
  margin: 18px 0;
  font-size: 32px;
}

.awardCard > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.65;
}

.recognitionLinks {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.recognitionLinks a,
.pressItem a {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-family: "Bodoni 72 Smallcaps", serif;
  font-size: 10px;
}

.pressList > .eyebrow {
  margin-bottom: 18px;
  color: #681f1b;
}

.pressItem {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  border-top: 1px solid #681f1b55;
  padding: 24px 0;
}

.pressItem time {
  color: #755e42;
  font-size: 13px;
}

.pressItem h3 {
  margin: 0 0 8px;
  font-size: 25px;
}

.pressItem p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
}

.pressItem a {
  color: #681f1b;
}

.instrument {
  grid-template-columns: 66px 26px 1fr;
  min-height: 98px;
}

.instrument > img {
  width: 58px;
  height: 66px;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
}

.instrumentGroup article:has(.instrumentIdentity figure) > p {
  margin-top: 54px;
  padding-top: 0;
}

.instrumentGroup:has(+ .projectConfiguration) {
  padding-bottom: 26px;
}

.instrumentGroup + .projectConfiguration {
  margin-top: 18px;
  margin-bottom: 62px;
}

@media (max-width: 800px) {
  .recognition {
    padding-bottom: 80px;
  }

  .recognitionHeading,
  .recognitionGrid {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .recognitionGrid {
    gap: 48px;
  }

  .aboutRecognition .recognitionGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .instrumentGroup article:has(.instrumentIdentity figure) > p {
    margin-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 520px) {
  .pressItem {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
