:root {
  --ink: #1a1a1a;
  --ink-80: rgba(26, 26, 26, 0.8);
  --white: #faf9f6;
  --card-bg: #d9d9d9;
  --placeholder: #6e6e6e;
  --accent: #002f6c;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --nav-height: 76px;
  --page-pad: 90px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  padding-top: var(--nav-height);
}

a { color: inherit; text-decoration: none; }

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.1);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 1.5rem;
  position: relative;
}
.nav-logo {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}
.nav-logo img { height: 24px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a, .nav-dropdown-toggle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 0 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a.active {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.nav-links a.accent { color: var(--accent); font-weight: 700; }
.nav-dropdown { position: relative; }
.chevron { width: 10px; height: 5px; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.75rem;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 140px;
  display: none;
  flex-direction: column;
}
.nav-dropdown.open .dropdown-menu { display: flex; }
@media (hover: hover) and (min-width: 901px) {
  .nav-dropdown:hover .dropdown-menu { display: flex; }
}
.dropdown-menu a { padding: 0.5rem 1rem; }
.dropdown-menu a:hover { background: var(--card-bg); }

/* Media dropdown hidden — submenu is work in progress; remove this block to restore */
.nav-dropdown .chevron { display: none; }
.dropdown-menu { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--page-pad);
}
.hero-img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: top;
  display: block;
}
.hero-title {
  position: absolute;
  z-index: 2;
  left: calc(var(--page-pad) + 24px);
  bottom: 6%;
  font-family: 'Asap', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 6.25rem);
  line-height: 1;
  color: var(--white);
}

/* SHARED */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem var(--page-pad) 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  flex: 1;
  text-align: left;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  white-space: nowrap;
  background: var(--white);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline:hover img { filter: brightness(0) invert(1); }
/* "View Full Calendar" buttons: bold to match the other buttons */
.section-header .btn-outline,
.concert-more .btn-outline { font-weight: 700; }
.icon-24 { width: 24px; height: 24px; }

/* CONCERTS */
.concerts { max-width: 1200px; margin: 0 auto; }
.concert-carousel {
  margin: 0 var(--page-pad) 3rem;
}
.concert-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  padding: 24px;
  background: #f0f0f0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.concert-grid::-webkit-scrollbar { display: none; }
.concert-grid.dragging { user-select: none; }
.concert-card {
  border: 1px solid #c3c3c3;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  overflow: hidden;
  width: 259.2px;
  flex: 0 0 259.2px;
  display: flex;
  flex-direction: column;
}
.concert-more {
  flex: 0 0 259.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-80);
  padding: 0 16px;
}
.concert-photo {
  height: 131px;
  width: 100%;
  background: linear-gradient(135deg, #c9c9c9, #eaeaea);
}
.concert-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.concert-info {
  background: var(--white);
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ensemble-type {
  font-size: 12px;
  color: var(--ink);
}
.ensemble-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
}
.divider {
  border: none;
  border-top: 1px solid #c3c3c3;
  width: 100%;
}
.concert-datetime { display: flex; flex-direction: column; gap: 4px; }
.concert-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.concert-location {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-80);
}
.concert-time {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink-80);
}
.btn-ticket {
  background: #003580;
  color: var(--white);
  border-radius: 8px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  align-self: flex-start;
}
/* Ticket buttons are external links: icon sits after the label */
.btn-ticket img { order: 1; }
.icon-16 { width: 16px; height: 16px; }

/* QUOTE */
.quote {
  background: #000;
  color: var(--white);
  padding: 3rem var(--page-pad);
  max-width: 1200px;
  margin: 0 auto;
}
.quote-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.quote-deco {
  width: 200px;
  max-width: 30%;
  flex-shrink: 0;
}
.quote-body { max-width: 60rem; }
.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 2.25rem);
  font-style: italic;
  max-width: 60rem;
}
.quote .quote-attr {
  margin-top: 1.25rem;
  font-size: 1rem;
  font-style: normal;
  opacity: 0.8;
}
.quote-flag {
  height: 0.6em;
  width: auto;
  vertical-align: baseline;
  margin-left: 0.15em;
}

/* DISSERTATION */
.dissertation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 5rem var(--page-pad);
  max-width: 1200px;
  margin: 0 auto;
}
.dissertation-media {
  background: var(--placeholder);
  border: 2px solid #c3c3c3;
  border-radius: 8px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  flex: 1 1 45%;
  max-width: 500px;
  aspect-ratio: 1;
}
.dissertation-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dissertation-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.8rem;
  flex: 1 1 55%;
  min-width: 0;
  max-width: 622px;
}
.dissertation-meta {
  display: flex;
  gap: 24px;
  font-size: 20px;
}
.dissertation-meta span:first-child { color: var(--ink); }
.dissertation-meta span:last-child { color: var(--ink-80); }
.dissertation-copy h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.2;
}
.dissertation-copy p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
}

/* PERFORMANCES */
.performances {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5rem;
  padding-bottom: 4rem;
}
.performances .section-header {
  align-self: stretch;
  margin: 0;
}
.performance-grid {
  display: flex;
  gap: 41px;
  padding: 0 var(--page-pad);
  width: 100%;
}
.performance-item {
  flex: 1;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.performance-item img,
.performance-item iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}
.performance-item.placeholder {
  background: linear-gradient(135deg, #c9c9c9, #eaeaea);
}
.footer-deco {
  width: 301px;
  max-width: 60%;
  height: auto;
}

/* ABOUT PAGE */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem var(--page-pad) 0;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  color: var(--ink);
}
.about-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem var(--page-pad) 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.about-content > * {
  width: 100%;
  max-width: 900px;
}
.about-photo {
  display: block;
  object-fit: cover;
}
.about-photo-top {
  height: 436px;
}
.about-bio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.about-logo {
  width: 301px;
  max-width: 60%;
  height: auto;
}
.about-bio p {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
}

/* CALENDAR PAGE */
.calendar-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem var(--page-pad) 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.concert-row {
  display: flex;
  align-items: center;
  gap: clamp(48px, 10vw, 140px);
}
.concert-row-photo {
  width: 460px;
  max-width: 45%;
  aspect-ratio: 1;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.concert-row-details {
  flex: 1;
  min-width: 0;
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
}
.concert-row-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.concert-row-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.concert-row-series {
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--ink);
}
.concert-row-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 48px;
  color: var(--ink);
}
.concert-row-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: #075cdb;
}
.divider.dotted {
  border-top-style: dotted;
  border-top-color: var(--ink-80);
}
.concert-row-datetime {
  display: flex;
  gap: 4px;
}
.concert-row-date,
.concert-row-time {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  width: 172px;
}
.concert-row-date { font-weight: 700; }
.concert-row-notes p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.concert-row-notes p + p {
  margin-top: 12px;
}
.btn-ticket-lg {
  padding: 4px 16px;
  font-size: 20px;
}
.calendar-deco {
  text-align: center;
  padding: 4rem 0 3rem;
}

/* DISSERTATION PAGE */
.page-title-xl {
  font-size: clamp(3rem, 8vw, 6.25rem);
}
.btn-proquest {
  border-color: #c3c3c3;
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.25);
  font-weight: 700;
  font-size: 16px;
}
/* External-link buttons: icon sits after the label */
.btn-proquest img { order: 1; }
.dissertation-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem var(--page-pad) 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.dissertation-banner {
  width: 100%;
  height: 436px;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}
.dissertation-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 33px;
  width: 100%;
}
.dissertation-intro p,
.dissertation-abstract p {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
}
.dissertation-abstract {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

/* MEDIA PAGE (work in progress) */
.wip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem var(--page-pad) 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
.wip-logo {
  width: 240px;
  max-width: 50%;
  height: auto;
}
.wip h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--ink);
}
.wip p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-80);
  max-width: 40rem;
}

/* CONTACT PAGE */
.contact-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem var(--page-pad) 3rem;
  display: flex;
  align-items: flex-start;
  gap: 48px;
}
.contact-photo {
  flex: 0 0 42%;
  max-width: 445px;
  aspect-ratio: 445 / 667;
  object-fit: cover;
  display: block;
}
.contact-form {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form-field label {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--ink);
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid #a6a6a6;
  border-radius: 4px;
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.form-field textarea {
  resize: vertical;
  min-height: 200px;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.btn-submit {
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-submit:hover { background: var(--accent); }
.btn-submit:disabled { opacity: 0.6; cursor: default; }
.form-status {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.form-status.error { color: #b00020; }

/* ENSEMBLES PAGE */
.ensemble-cards {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem var(--page-pad);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px;
}
.ensemble-card {
  width: 240px;
  min-height: 280px;
  background: #fff;
  border: 1px solid #c3c3c3;
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  color: var(--ink);
}
.ensemble-card-media {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ensemble-card-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.ensemble-card p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.1;
  text-align: center;
}
.ensemble-details {
  max-width: 840px;
  width: 100%;
  margin: 193px auto 0;
  padding: 0 var(--page-pad) 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 96px;
}
.ensemble-detail {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
  scroll-margin-top: 100px;
}
.ensemble-detail-img {
  width: 100%;
  height: auto;
  display: block;
}
.ensemble-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.ensemble-detail-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.5rem);
}
.ensemble-detail > p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
}

/* CONTACT / FOOTER */
.contact-footer {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--ink-80);
  font-size: 0.9rem;
  border-top: 1px solid var(--card-bg);
}
.contact-footer a { color: var(--accent); }
.copyright { margin-top: 0.5rem; font-size: 0.8rem; }

/* RESPONSIVE */
@media (max-width: 900px) {
  :root { --page-pad: 24px; --nav-height: 48px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    border-top: 1px solid var(--card-bg);
    gap: 1rem;
  }
  /* dims the page below the open menu; -1 keeps it behind the menu panel,
     which still paints above the page because .nav owns the stacking context */
  .nav.open::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
    pointer-events: none;
  }
  .hero { padding: 0; }
  .hero-img { max-height: none; height: 60vh; }
  .hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
    pointer-events: none;
  }
  .section-header { flex-direction: column; align-items: flex-start; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .quote { flex-direction: column; text-align: center; }
  .dissertation { flex-direction: column; }
  .dissertation-media { flex-basis: auto; width: 100%; }
  .concert-row { flex-direction: column; gap: 24px; }
  .concert-row-photo { width: 100%; max-width: 100%; }
  .performance-grid { flex-direction: column; }
  .contact-content { flex-direction: column; }
  .contact-photo { flex-basis: auto; width: 100%; max-width: 100%; }
  .contact-form { width: 100%; }
  .btn-submit { align-self: center; }
  .ensemble-cards { flex-direction: column; align-items: stretch; gap: 24px; }
  .ensemble-card { width: 100%; }
  .dissertation-meta { flex-direction: column; gap: 4px; }
  .about-photo-top { height: 218px; }
  .dissertation-banner { height: 218px; }
}

@media (max-width: 500px) {
  .concert-card { width: 82vw; flex-basis: 82vw; }
}
