:root {
  --ink: #111111;
  --muted: #888888;
  --bg: #ffffff;
  --line: #e8e8e8;
  --maxw: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header / nav ---- */
header {
  padding: 40px 0 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.logo-text {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.logo-mark {
  /* span the full height of the three stacked words: font-size * line-height * 3 */
  width: calc(18px * 1.2 * 3);
  height: calc(18px * 1.2 * 3);
  object-fit: contain;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  color: #555555;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
}

/* Fold the nav into a hamburger dropdown on narrow screens */
@media (max-width: 600px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .nav-links {
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    display: none;
    margin-top: 12px;
    border-top: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
}

/* ---- Main ---- */
main {
  padding: 64px 0 0;
}

h1 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 28px;
  color: var(--ink);
}

/* ---- Gallery (main page) ---- */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* Two columns on desktop; the video spans the full width below the photos */
@media (min-width: 601px) {
  .gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .gallery .video {
    grid-column: 1 / -1;
  }
}

.visual {
  position: relative;
}

.visual img {
  width: 100%;
  display: block;
  background: #f2f2f2;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Portrait tiles for upright photos */
.visual.tall img {
  aspect-ratio: 3 / 4;
}

/* Video tile: same full-width box and grey placeholder as photos,
   but 16/9 (video's natural ratio) and no hover caption. */
.visual.video {
  aspect-ratio: 16 / 9;
  background: #f2f2f2;
}

.visual.video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.visual .caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: rgba(167, 199, 231, 0.9);
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.visual:hover .caption {
  opacity: 1;
}

/* Touch devices have no hover: show the title as a label below instead. */
@media (hover: none) {
  .visual .caption {
    position: static;
    opacity: 1;
    background: none;
    color: var(--muted);
    justify-content: flex-start;
    text-align: left;
    padding: 12px 0 0;
    font-size: 15px;
    font-weight: 400;
  }
}

/* ---- About page ---- */
.portrait {
  width: 100%;
  display: block;
  filter: grayscale(100%);
  background: #f2f2f2;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.bio {
  margin: 40px 0 0;
}

.bio p {
  margin: 0 0 20px;
  max-width: 54ch;
}

.bio a {
  color: var(--ink);
  text-decoration: none;
  background: rgba(245, 152, 50, 0.45);
  padding: 0 4px;
  border-radius: 3px;
  transition: background 0.15s ease;
}

.bio a:hover {
  background: rgba(245, 152, 50, 0.85);
}

/* Hanging-dash lists (conductors, instruments) — minimal dash instead of default bullets */
.people,
.instruments {
  list-style: none;
  margin: 4px 0 24px;
  padding: 0;
}

.people li,
.instruments li {
  position: relative;
  padding-left: 22px;
  max-width: 54ch;
}

.people li + li,
.instruments li + li {
  margin-top: 10px;
}

.people li::before,
.instruments li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: var(--muted);
}

.details {
  margin: 56px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.row {
  display: flex;
  gap: 24px;
  padding: 8px 0;
}

.row .label {
  flex: 0 0 120px;
  color: var(--muted);
  font-size: 15px;
}

.row .value {
  color: var(--ink);
  font-size: 15px;
}

.row .value a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.15s ease;
}

.row .value a:hover {
  border-color: var(--ink);
}

.social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(245, 152, 50, 0.45);
  color: var(--ink);
  border-bottom: none;
  transition: background 0.15s ease;
}

.social svg {
  width: 28px;
  height: 28px;
}

.social a:hover {
  background: rgba(245, 152, 50, 0.85);
  color: var(--ink);
  border-bottom: none;
}

/* ---- Footer ---- */
footer {
  padding: 80px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

/* ---- Responsive ---- */
@media (max-width: 540px) {
  body { font-size: 16px; }
  header { padding-top: 28px; }
  main { padding-top: 44px; }
  .logo-text { font-size: 15px; }
  .logo-mark { width: calc(15px * 1.2 * 3); height: calc(15px * 1.2 * 3); }
  .gallery { gap: 40px; }
  .row { flex-direction: column; gap: 2px; }
  .row .label { flex-basis: auto; }
}
