/* ─────────────────────────────────────────────────────────────
   David Carlton Adams — style.css
   Fonts: Cormorant Garamond (display) + Inter (UI/body)
───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@400;500&display=swap');

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg:               #f8f6f2;
  --bg-2:             #f0ece6;
  --bg-3:             #e7e2db;
  --text:             #1b1917;
  --text-2:           #5c5751;
  --text-3:           #9e9893;
  --accent:           #3d5a73;
  --accent-hover:     #2c4459;
  --accent-light:     #dce6ee;
  --border:           #e0dbd5;
  --border-strong:    #ccc7c0;
  --highlight-bar:    #3d5a73;
  --tag-bg:           #e7e2db;
  --tag-text:         #5c5751;
  --tag-media-bg:     #d4e6d4;
  --tag-media-text:   #2a5a2a;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --max-w:  860px;
  --nav-h:  60px;
  --gap:    2rem;
  --radius: 3px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:               #111010;
    --bg-2:             #1a1917;
    --bg-3:             #222018;
    --text:             #e8e3dc;
    --text-2:           #9a9490;
    --text-3:           #6a6560;
    --accent:           #7a9ab8;
    --accent-hover:     #9ab4cc;
    --accent-light:     #1e2e3a;
    --border:           #2a2825;
    --border-strong:    #3a3835;
    --highlight-bar:    #7a9ab8;
    --tag-bg:           #252320;
    --tag-text:         #9a9490;
    --tag-media-bg:     #1a2e1a;
    --tag-media-text:   #7ab87a;
  }
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
h4 { font-size: 0.7rem; font-family: var(--font-body); font-weight: 500;
     letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3);
     margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 5rem;
  min-height: 100vh;
}

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-name:hover { text-decoration: none; color: var(--text); }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--text-2);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-2);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--text);
  font-weight: 500;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  font-size: 0.78rem;
  color: var(--text-3);
  text-align: center;
}
footer a { color: var(--text-3); }
footer a:hover { color: var(--text-2); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
  text-decoration: none;
}
.btn:hover { background: var(--bg-2); color: var(--text); border-color: var(--text-3); text-decoration: none; }
.btn-accent {
  background: var(--accent); border-color: var(--accent);
  color: var(--bg);
}
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--bg); }

/* ── Tags / chips ────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  background: var(--tag-bg);
  color: var(--tag-text);
  white-space: nowrap;
}
.tag-media { background: var(--tag-media-bg); color: var(--tag-media-text); }

/* ── ─────────────────────────────────────────────────────────── */
/*    ABOUT / INDEX                                                */
/* ── ─────────────────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 640px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.about-name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.about-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--text-3);
  margin-bottom: 2rem;
}

.about-header {
  margin-bottom: 2.5rem;
}

/* ── Alternating bio blocks ───────────────────────────────── */
.bio-blocks {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.bio-block {
  display: flex;
  gap: 3rem;
  align-items: start;
}

.bio-block--flip {
  /* DOM order in flip blocks already puts figure first — no reversal needed */
}

.bio-block-text {
  flex: 1;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text);
}

.bio-block-figure {
  flex-shrink: 0;
  width: 240px;
  margin: 0;
}

.bio-block-figure img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  background: var(--bg-3);
}

.bio-full {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .bio-block {
    flex-direction: column;
  }
  .bio-block-figure {
    width: 100%;
  }
  .bio-block-figure img {
    aspect-ratio: 4/3;
  }
}
/* ───────────────────────────────────────────────────────────── */

.about-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-3);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  border: 1px dashed var(--border-strong);
}


/* ── ─────────────────────────────────────────────────────────── */
/*    WORKS                                                        */
/* ── ─────────────────────────────────────────────────────────── */

.works-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.works-count {
  font-size: 0.8rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Filter bar */
.filter-bar {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  flex-shrink: 0;
  min-width: 3rem;
}

/* Search input */
#works-search {
  font-family: var(--font-body);
  font-size: 0.875rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.45rem 0.75rem;
  color: var(--text);
  width: 100%;
  max-width: 300px;
  transition: border-color 0.15s var(--ease);
}
#works-search:focus { outline: none; border-color: var(--accent); }
#works-search::placeholder { color: var(--text-3); }

/* Force chips */
#force-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.chip {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: var(--bg);
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.12s var(--ease), color 0.12s var(--ease), border-color 0.12s var(--ease);
}
.chip:hover { background: var(--bg-3); color: var(--text); }
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* Year inputs */
.year-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.year-inputs input {
  font-family: var(--font-body);
  font-size: 0.8rem;
  width: 5rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  text-align: center;
  -moz-appearance: textfield;
}
.year-inputs input::-webkit-inner-spin-button,
.year-inputs input::-webkit-outer-spin-button { -webkit-appearance: none; }
.year-inputs input:focus { outline: none; border-color: var(--accent); }
.year-sep { color: var(--text-3); font-size: 0.8rem; }

/* Toggle labels */
.toggle-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}
.toggle-label input[type="checkbox"] {
  width: 1rem; height: 1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Sort buttons */
.sort-group {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.sort-btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.12s var(--ease);
}
.sort-btn:hover { color: var(--text); border-color: var(--text-3); }
.sort-btn.active { color: var(--text); border-color: var(--text-2); background: var(--bg-2); }

/* Clear button */
#clear-filters {
  display: none;
  font-size: 0.72rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.12s var(--ease);
  white-space: nowrap;
}
#clear-filters:hover { color: var(--text); border-color: var(--text-3); }

/* Sort + count bar */
.works-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* Works list */
#works-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.works-empty {
  padding: 3rem 0;
  color: var(--text-3);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}

/* Work row */
.work-row {
  border-bottom: 1px solid var(--border);
  transition: background 0.12s var(--ease);
}

.work-row.work-highlighted {
  border-left: 3px solid var(--highlight-bar);
}

.work-summary {
  padding: 1rem 0 1rem 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.work-row.work-highlighted .work-summary { padding-left: 0.75rem; }

.work-summary:hover .work-title { color: var(--accent); }

.work-main {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.work-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.12s var(--ease);
  line-height: 1.2;
}

.work-star {
  font-size: 0.7rem;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}

.work-year {
  font-size: 0.8rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-left: auto;
  flex-shrink: 0;
}

.work-meta {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.work-instr {
  font-size: 0.83rem;
  color: var(--text-2);
  flex: 1;
  min-width: 0;
}

.work-dur {
  font-size: 0.78rem;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.work-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.work-tags {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.work-chevron {
  font-size: 1rem;
  color: var(--text-3);
  line-height: 1;
  flex-shrink: 0;
  width: 1rem;
  text-align: center;
  transition: color 0.12s var(--ease);
}
.work-summary:hover .work-chevron { color: var(--accent); }

/* Detail panel */
.work-detail {
  padding: 0 0 1.25rem;
  border-top: 1px solid var(--border);
}
.work-row.work-highlighted .work-detail { padding-left: 0.75rem; }

.detail-inner {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 1rem;
}

.detail-block {
  min-width: 180px;
  flex: 1;
}

.detail-block p {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: 0.2rem;
  line-height: 1.5;
}

.detail-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.detail-link {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}
.detail-link:hover { background: var(--accent); color: var(--bg); text-decoration: none; }


/* ── ─────────────────────────────────────────────────────────── */
/*    MEDIA                                                        */
/* ── ─────────────────────────────────────────────────────────── */

.media-section-title {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.featured-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-bottom: 5rem;
}

.featured-work {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 620px) {
  .featured-work { grid-template-columns: 1fr; }
}

.featured-embed {
  background: var(--bg-3);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
}

/* SoundCloud players are ~166px tall — override aspect ratio */
.featured-embed.is-audio,
.recording-embed.is-audio {
  aspect-ratio: unset;
  height: 166px;
}

.featured-embed iframe,
.featured-embed .embed-placeholder {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.embed-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
  background: var(--bg-3);
  border: 1px dashed var(--border-strong);
}

.featured-info {}

.featured-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.featured-meta {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

.featured-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* Additional recordings */
.recordings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.recording-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recording-embed {
  background: var(--bg-3);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
}

.recording-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.recording-embed .embed-placeholder { width: 100%; height: 100%; }

.recording-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
}

.recording-meta {
  font-size: 0.8rem;
  color: var(--text-2);
}


.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.photo-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.photo-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.photo-item figcaption {
  font-size: 0.75rem;
  color: var(--text-2);
}


/* ── ─────────────────────────────────────────────────────────── */
/*    TEACHING                                                     */
/* ── ─────────────────────────────────────────────────────────── */

.teaching-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 640px) {
  .teaching-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.teaching-philosophy {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.teaching-philosophy p { margin-bottom: 1.2rem; }

.courses-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.course-item {}

.course-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.course-meta {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: 0.3rem;
}

.course-desc {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.55;
}

.teaching-contact {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.teaching-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.teaching-list li {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-2);
  padding: 0.3rem 0 0.3rem 1.1rem;
  position: relative;
}

.teaching-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-2);
}


/* ── ─────────────────────────────────────────────────────────── */
/*    CONTACT                                                      */
/* ── ─────────────────────────────────────────────────────────── */

.contact-wrap {
  max-width: 520px;
}

.contact-intro {
  font-size: 1.05rem;
  color: var(--text-2);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.contact-group {
  margin-bottom: 2rem;
}

.contact-group-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.5rem;
}

.contact-email {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text);
  word-break: break-all;
}
.contact-email:hover { color: var(--accent); text-decoration: none; }

.contact-profiles {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}


/* ── ─────────────────────────────────────────────────────────── */
/*    UTILITIES                                                    */
/* ── ─────────────────────────────────────────────────────────── */

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

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text-3);
  margin-bottom: 2.5rem;
}

/* ── Hamburger / mobile nav ──────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--text-2);
  flex-shrink: 0;
  line-height: 1;
}
.nav-toggle svg { display: block; }

@media (max-width: 560px) {
  .nav-toggle { display: flex; align-items: center; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem 1.5rem 1rem;
    gap: 0;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 0.9rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.05em;
  }
  .nav-links li:last-child a { border-bottom: none; }
}

/* ── Responsive tweaks ───────────────────────────────────────── */
@media (max-width: 480px) {
  .nav-name { font-size: 0.95rem; }
  .filter-bar { padding: 1rem; }
  .work-title { font-size: 1.05rem; }
}

/* ── Performances section ────────────────────────────────────── */
.performances {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--text-2);
  margin-bottom: 1.25rem;
}

.perf-group-label {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  font-style: italic;
  color: var(--text-3);
  margin-bottom: 0.5rem;
}

.perf-row {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.perf-date {
  font-size: 0.72rem;
  color: var(--text-3);
  white-space: nowrap;
  min-width: 6.5rem;
  font-style: italic;
  font-variant-numeric: tabular-nums;
}

/* upcoming dates get accent color */
.perf-row.upcoming .perf-date { color: var(--accent); }

.perf-info { flex: 1; }

.perf-title {
  font-size: 0.9rem;
  color: var(--text);
  font-style: italic;
}

.perf-tag {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  vertical-align: middle;
  margin-left: 0.4rem;
  font-style: normal;
}

.perf-meta {
  font-size: 0.75rem;
  color: var(--text-2);
  margin-top: 0.15rem;
}

@media (max-width: 560px) {
  .perf-row { flex-direction: column; gap: 0.2rem; }
  .perf-date { min-width: unset; }
}

/* ── Easter eggs — invisible links ──────────────────────────── */
a.egg {
  color: inherit;
  text-decoration: none;
  cursor: default;
}

/* ── doors row (index): four quiet ways in ─────────────────── */
.doors {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--text-2);
  margin: 2.2rem 0 1.6rem;
}
.doors a {
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.doors a:hover { color: var(--text); border-color: var(--text-2); }
