@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --bg: #f6f1e6;
  --surface: #fffdf8;
  --surface-2: #efe8d8;
  --text: #1f2328;
  --muted: #5f5b52;
  --accent: #8b2232;
  --accent-2: #3f5f7d;
  --border: #d8cebb;
  --shadow: 0 10px 30px rgba(29, 34, 41, 0.1);
  --radius: 14px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", Georgia, serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(139, 34, 50, 0.12), transparent 42%),
    radial-gradient(circle at 90% 0%, rgba(63, 95, 125, 0.16), transparent 34%),
    var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  color: #5f1320;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(5px);
  background: rgba(255, 252, 246, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 72px;
}

.brand {
  font-family: "Cormorant Garamond", Garamond, serif;
  font-size: clamp(1.4rem, 1.8vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.brand small {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.2rem;
}

.site-nav a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  margin: var(--space-6) auto var(--space-5);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.95), rgba(237, 229, 211, 0.78));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0 0 var(--space-2);
  font-family: "Cormorant Garamond", Garamond, serif;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.05;
}

.hero p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 70ch;
}

.page-section {
  padding: var(--space-4) 0 var(--space-5);
}

.page-section h2 {
  font-family: "Cormorant Garamond", Garamond, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 var(--space-3);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
}

.card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-link {
  position: relative;
}

.card-hit {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  z-index: 2;
}

.card-hit:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.conductor-card img,
.person-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.card-open {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  z-index: 2;
}

.card-open:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.card h3 {
  margin: 0 0 var(--space-1);
  font-family: "Cormorant Garamond", Garamond, serif;
  font-size: 1.7rem;
}

.card p {
  margin: 0 0 var(--space-2);
  color: var(--muted);
}

.media-wrap {
  margin: var(--space-4) 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  overflow: hidden;
}

.media-wrap iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
}

.article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2vw, 2rem);
}

.article h1,
.article h2,
.article h3 {
  font-family: "Cormorant Garamond", Garamond, serif;
  line-height: 1.1;
}

.article p {
  margin: 0 0 1rem;
}

.article table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

.article td,
.article th {
  vertical-align: top;
  padding: 0.35rem;
}

.article iframe {
  width: 100%;
  max-width: 100%;
  border: 0;
  min-height: 280px;
}

.article [align="right"],
.article [align="center"] {
  text-align: inherit;
}

.about-article h3 {
  margin: 1.15rem 0 0.45rem;
  font-size: 1.35rem;
}

.about-bio {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.about-portrait img {
  width: 100%;
  max-width: 220px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-content .lead {
  margin-top: 0.2rem;
}

.about-timeline {
  margin: 0.35rem 0 0.65rem;
  padding-left: 1.2rem;
}

.about-timeline li {
  margin: 0 0 0.65rem;
  color: var(--muted);
}

.conductor-detail {
  max-width: 920px;
  margin: 0 auto;
}

.conductor-detail table,
.conductor-detail tbody,
.conductor-detail tr,
.conductor-detail td {
  display: block;
  width: 100% !important;
  height: auto !important;
}

.conductor-detail td {
  padding: 0.25rem 0 !important;
  border: 0 !important;
}

.conductor-detail img {
  display: block;
  width: min(100%, 360px) !important;
  max-width: min(100%, 460px);
  margin: 0.45rem auto 1rem;
  height: auto !important;
}

.conductor-detail img[align="left"],
.conductor-detail img[align="right"] {
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.conductor-detail iframe {
  display: block;
  width: min(100%, 760px);
  margin: 0.5rem auto 1rem;
  min-height: 320px;
}

.conductor-detail p {
  line-height: 1.72;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.image-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.btn-link {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.btn-link:hover,
.btn-link:focus-visible {
  color: #fff;
  background: #681826;
}

.site-footer {
  margin-top: var(--space-6);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border);
  background: rgba(239, 232, 216, 0.75);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
  width: auto;
  height: auto;
  z-index: 200;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 2px solid var(--accent);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.modal-panel {
  position: relative;
  width: min(92vw, 820px);
  max-height: 88vh;
  overflow: auto;
  margin: 6vh auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem 1.4rem;
}

.modal-close {
  float: right;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .card-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 252, 246, 0.98);
    padding: 0 1rem 1rem;
    display: none;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.8rem;
  }

  .header-inner {
    min-height: 64px;
  }
}

@media (max-width: 600px) {
  .card-grid--three {
    grid-template-columns: 1fr;
  }

  .about-bio {
    grid-template-columns: 1fr;
  }
}
