/* Site theme */

:root {
  --bg: #eaeaea;
  --bg-elev: #f2f2f4;
  --surface: #e0e0e4;
  --text: #111111;
  --muted: #4a4a4a;
  --link: #111111;
  --link-hover: #555555;
  --accent: #333333;
  --border: rgba(0, 0, 0, 0.1);
  --shadow: none;
  --header-link: #111111;
}

html, body {
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: "Crimson Text", Georgia, "Times New Roman", serif;
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--text);
  letter-spacing: 0.2px;
  margin-top: 1.2em;
  margin-bottom: 0.4em;
}

h1 { font-weight: 700; font-size: 2.2rem; }
h2 { font-weight: 600; font-size: 1.8rem; }
h3 { font-weight: 600; font-size: 1.4rem; }

p, li { color: var(--text); }

em, i { color: var(--muted); }

a {
  color: var(--link) !important; /* ensure override of Minima default */
  text-decoration: none;
  position: relative;
  transition: color 160ms ease;
}

/* Normalize visited state to match the theme palette */
a:visited { color: var(--link) !important; }
a:visited:hover { color: var(--link-hover) !important; }

/* Remove animated underline */
a::after { display: none !important; }

a:hover { color: var(--link-hover) !important; }

/* Ensure no default underline on hover */
a:hover { text-decoration: none !important; }

/* Layout wrappers from Minima */
.wrapper {
  max-width: 1040px;
}

/* Header / Nav */
.site-header {
  background: var(--bg);
  border-bottom: none;
  position: relative;
  z-index: 1000;
  box-shadow: none;
  padding: 28px 0 22px;
}

.header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  position: relative;
}

.header-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none !important;
  color: var(--text) !important;
  line-height: 1.2;
}

.header-brand:hover {
  opacity: 0.72;
  color: var(--text) !important;
}

.header-brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.header-brand-sub {
  margin-top: 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
}

.header-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 0;
  row-gap: 4px;
}

.header-nav--left {
  justify-content: flex-start;
}

.header-nav--right {
  justify-content: flex-end;
}

.site-header .page-link {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--header-link) !important;
  padding: 4px 10px;
  border-radius: 0;
  background: none;
  transition: opacity 160ms ease;
  white-space: nowrap;
}

.site-header .page-link:hover {
  opacity: 0.55;
  background: none;
  color: var(--header-link) !important;
}

.nav-trigger,
.nav-trigger-label,
.header-mobile-menu {
  display: none;
}

/* Legacy dropdown styles kept for any remaining markup */
.nav-item.dropdown { position: relative; display: inline-block; }
.dropdown-toggle { display: none; }
.nav-item .chevron { display: none; }
.nav-item .dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  min-width: 220px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scaleY(0.96);
  transform-origin: top;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.6, 0.2, 1), visibility 180ms step-end;
  pointer-events: none;
  z-index: 2000;
}

.nav-item .dropdown-menu .page-link {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
}

.nav-item .dropdown-menu .page-link:hover { background: var(--surface); }

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scaleY(1);
  transition: opacity 180ms ease, transform 240ms cubic-bezier(0.2, 0.6, 0.2, 1), visibility 0ms step-start;
  pointer-events: auto;
}

/* Mobile toggle behavior */
@media screen and (max-width: 700px) {
  .nav-item.dropdown { display: block; }
  .nav-item .chevron { float: right; opacity: 0.7; }
  .dropdown-toggle { display: none; }
  .dropdown-toggle ~ .dropdown-menu { display: none; }
  .dropdown-toggle:checked ~ .dropdown-menu { display: block; }
}

/* Parent label styling */
.nav-item .is-parent {
  cursor: default;
}

/* Images */
img {
  border-radius: 6px;
  box-shadow: none;
}

/* Desktop profile image sizing */
.profile-photo { width: 180px; height: auto; }

/* Horizontal rules */
hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* Cards for concerts */
.concert-list { margin-top: 10px; }

.concert {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 18px 0;
  overflow: hidden;
}

.concert-poster {
  width: 300px;
  height: auto;
  border-radius: 4px;
  margin-right: 20px;
  float: left;
  display: block;
}

.concert-details {
  overflow: hidden;
}

.concert-details h3 {
  margin-top: 0;
  font-size: 1.6em;
}

/* Faint divider between performances */
.concert + .concert {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
}

.concert h3 a { color: var(--text); }
.concert h3 a:hover { color: var(--link-hover); }

.concert p strong { color: var(--muted); }

/* Slightly smaller text within concert cards */
.concert h3 { font-size: 1.3em !important; }
.concert p { font-size: 1.05em !important; }

/* Hide footer site-wide */
.site-footer { display: none !important; }

/* Code / pre (in case) */
code, pre { background: #f2efe9; color: #2b241b; }

/* Blockquotes for visual callouts */
blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 1rem;
  color: var(--muted);
  background: var(--surface);
  border-radius: 6px;
  margin: 1rem 0;
}

/* Section banding helper */
.band {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.band + .band { margin-top: 1.25rem; }

/* (Reverted) header/footer shadows removed */

/* (Reverted) content panel wrapper removed */

/* (Reverted) h2 underline removed */


/* Responsive tweaks */
@media screen and (max-width: 700px) {
  .site-header {
    padding: 12px 0;
  }

  .header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: auto;
  }

  .header-brand {
    grid-column: unset;
    order: unset;
    margin-bottom: 0;
    align-items: flex-start;
    text-align: left;
    flex: 1;
    min-width: 0;
  }

  .header-brand-sub {
    display: none;
  }

  .header-brand-name {
    font-size: 0.95rem;
    letter-spacing: 0.14em;
  }

  .header-nav--left,
  .header-nav--right {
    display: none;
  }

  .nav-trigger {
    display: block;
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }

  .nav-trigger-label {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
  }

  .nav-trigger-label:hover {
    background: var(--surface);
  }

  .header-mobile-menu {
    display: none;
    border-top: 1px solid var(--border);
    background: var(--bg);
    box-shadow: 0 14px 28px rgba(0,0,0,0.10);
  }

  .site-header:has(#nav-trigger:checked) .header-mobile-menu {
    display: block;
  }

  .header-mobile-menu .page-link {
    display: block;
    padding: 12px 0;
    color: var(--text) !important;
  }

  .header-mobile-menu .page-link + .page-link {
    border-top: 1px solid var(--border);
  }

  .header-mobile-group-label {
    margin: 14px 0 6px;
    color: var(--muted);
    font-size: 0.85em;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .header-mobile-group-label:first-child {
    margin-top: 8px;
  }

  /* Make nav links and submenu easy to tap */
  .site-nav .page-link { display: block; padding: 12px 16px; }

  /* Panel-style mobile menu similar to reference */
  .site-nav {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 28px rgba(0,0,0,0.10);
  }
  .site-nav .trigger { padding: 6px 0; }
  .site-nav .page-link + .page-link { border-top: 1px solid var(--border); }

  /* Mobile submenu is inline and collapsed until toggled */
  .nav-item .dropdown-menu {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    padding: 0;
    background: transparent;
    min-width: 0;
    border-top: 1px solid var(--border); /* separator between parent and submenu */
    padding-top: 4px;
  }

  .nav-item .dropdown-menu .page-link { padding-left: 24px; }
  .nav-item .dropdown-menu .page-link + .page-link { border-top: 0; } /* no line between submenu items */

  /* Stack profile photo below title; remove float on small screens */
  .profile-photo { float: none !important; display: block; margin: 10px 0 16px 0 !important; width: 100% !important; height: auto !important; }

  /* Stack concert entries and make posters full-width */
  .concert {
    padding: 12px 0;
    grid-template-columns: 1fr;
  }
  .concert-poster {
    float: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 12px 0 !important;
  }

  /* Slightly adjust type scale for small screens */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  /* Show chevron and enable tap-to-toggle */
  .nav-item .chevron { display: inline-block; margin-left: 6px; }
  .dropdown-toggle ~ .dropdown-menu { display: none; }
  .dropdown-toggle:checked ~ .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  /* Allow tapping the parent label */
  .nav-item .is-parent { pointer-events: auto; cursor: pointer; }

  .home-photo {
    border-radius: 0;
  }
}

/* Home landing */
.page-content:has(.home-landing) {
  padding: 0;
}

.page-content:has(.home-landing) > .wrapper {
  max-width: none;
  padding: 0;
  margin: 0;
}

.home-landing {
  max-width: none;
  text-align: center;
}

.home-hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.home-photo {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 72px 32px 40px;
  text-align: center;
  background: linear-gradient(
    to top,
    rgba(20, 20, 20, 0.72) 0%,
    rgba(20, 20, 20, 0.45) 45%,
    rgba(20, 20, 20, 0) 100%
  );
  opacity: 0;
  transform: translateY(36px);
  will-change: opacity, transform;
}

.home-blurb {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Crimson Text", Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 700px) {
  .home-bottom {
    position: static;
    padding: 24px 20px 32px;
    background: none;
  }

  .home-blurb {
    color: var(--text);
    text-shadow: none;
    line-height: 1.5;
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-bottom {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}

/* Research page */
.page-content:has(.research-page) > .wrapper {
  max-width: 1100px;
  padding: 40px 24px 56px;
  margin: 0 auto;
}

.research-page {
  text-align: center;
}

.research-page h1 {
  margin: 0 auto 1.25em;
  padding: 0;
  max-width: 1000px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.research-photo {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto 36px;
  border-radius: 0;
  box-shadow: none;
}

.research-text {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.research-section {
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 0 0 48px;
  text-align: left;
}

.research-section:first-of-type {
  margin-top: 36px;
}

.research-section-title {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
}

.research-section .research-note {
  margin-bottom: 14px;
}

.research-section .research-text {
  padding: 0;
  margin-bottom: 0;
}

.research-text p {
  margin: 0;
}

.research-text p + p {
  margin-top: 1.25em;
}

.research-text a {
  color: var(--text) !important;
}

.research-text a:hover {
  color: var(--link-hover) !important;
}

/* Research paper preview styles */
.paper-list { margin-top: 0; }
.paper { margin-bottom: 14px; }
.paper .title { font-weight: 700; }
.paper .paper-meta { color: var(--muted); font-size: 0.95em; }
.paper .links a { margin-right: 10px; }
.paper .award-chip {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.85em;
  font-style: italic;
  white-space: nowrap;
}
.chip {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.85em;
}

.research-note {
  color: var(--muted);
  font-size: 0.95em;
  margin-top: 2px;
  margin-bottom: 14px;
  font-style: italic;
}

/* Performances page */
.page-content:has(.performances-page) > .wrapper {
  max-width: 1100px;
  padding: 40px 24px 56px;
  margin: 0 auto;
}

.performances-page {
  text-align: center;
}

.performances-photo {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto 36px;
  border-radius: 0;
  box-shadow: none;
}

.performances-section-title {
  margin: 40px auto 1em;
  max-width: 1000px;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
}

.performances-section-title:first-of-type {
  margin-top: 0;
}

.performances-page .concert-list {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

/* Recordings page */
.page-content:has(.recordings-page) > .wrapper {
  max-width: 1100px;
  padding: 40px 24px 56px;
  margin: 0 auto;
}

.recordings-page {
  text-align: center;
}

.recordings-title {
  margin: 0 auto 1.25em;
  max-width: 1000px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.recording {
  max-width: 1000px;
  margin: 0 auto;
}

.recording + .recording {
  margin-top: 48px;
}

.recording-video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

.recording-audio {
  width: 100%;
  display: block;
  margin: 0 auto;
}

.recording-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}

.recording-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.recording-caption {
  margin-top: 0.85em;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.recording-piece {
  display: inline;
  color: var(--text);
  font-style: italic;
  font-size: 1.1rem;
}

.recording-musicians {
  display: inline;
  font-size: 1.05rem;
}

/* Bio page */
.page-content:has(.bio-page) > .wrapper {
  max-width: 1100px;
  padding: 40px 24px 56px;
  margin: 0 auto;
}

.bio-page {
  text-align: center;
}

.bio-photo {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  margin: 0 auto 36px;
  border-radius: 8px;
  box-shadow: none;
}

.bio-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.75;
}

.bio-content p {
  margin: 0;
}

.bio-content p + p {
  margin-top: 1.25em;
}

.bio-content a {
  color: var(--text) !important;
}

.bio-content a:hover {
  color: var(--link-hover) !important;
}

@media screen and (max-width: 800px) {
  .page-content:has(.bio-page) > .wrapper {
    padding: 28px 20px 48px;
  }

  .bio-photo {
    max-width: 100%;
  }
}
