:root {
  --bg: #fbf8f3;
  --bg-alt: #f3ece1;
  --ink: #241d18;
  --ink-soft: #5b5047;
  --accent: #b5651d;
  --accent-ink: #8a4a10;
  --gold: #e0a526;
  --dark: #1c1612;
  --dark-ink: #f3ece1;
  --card: #ffffff;
  --line: #e3d9ca;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(36, 29, 24, .10);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120f;
    --bg-alt: #1f1914;
    --ink: #f1e9dd;
    --ink-soft: #bdb0a1;
    --accent: #e8a24d;
    --accent-ink: #f0b569;
    --card: #241d18;
    --line: #3a3027;
    --shadow: 0 6px 24px rgba(0, 0, 0, .4);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; z-index: 1000; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* memorial bar */
.memorial-bar { background: var(--dark); color: var(--dark-ink); text-align: center; font-size: .9rem; padding: 8px 16px; }
.memorial-bar p { margin: 0; }
.memorial-bar a { color: var(--gold); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(28, 22, 18, .94); backdrop-filter: blur(8px); }
.nav { width: min(1120px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand img { height: 44px; width: auto; }
.nav-links { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; color: #f3ece1; text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: 6px; }
.nav-links a:hover, .nav-links a:focus-visible { background: rgba(224, 165, 38, .2); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 12px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 24px; height: 2px; background: #f3ece1; content: ''; position: relative; }
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after { position: absolute; top: 7px; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { flex-wrap: wrap; }
  .nav-links { display: none; width: 100%; flex-direction: column; padding-bottom: 12px; }
  .nav-links.open { display: flex; }
}

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% 0%, rgba(224, 165, 38, .22), transparent 60%), var(--bg-alt); padding: clamp(40px, 8vw, 96px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.eyebrow { letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--accent-ink); font-size: .85rem; margin: 0 0 8px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 36em; }
.hero-photo { margin: 0; }
.hero-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-width: 420px; margin-inline: auto; aspect-ratio: 540/684; object-fit: cover; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid var(--ink); transition: background .2s, color .2s; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { order: -1; } .hero-photo img { max-width: 280px; } }

/* sections */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--dark); color: var(--dark-ink); }
.section.dark a { color: var(--gold); }
.section h2 { margin-bottom: 1em; position: relative; }
.section h2::after { content: ''; display: block; width: 56px; height: 4px; background: var(--gold); margin-top: 12px; border-radius: 2px; }
.prose { max-width: 70ch; }
.prose p { margin: 0 0 1.1em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
.photo-strip figure { margin: 0; }
.photo-strip img { width: 100%; height: 100%; max-height: 260px; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 600px) { .photo-strip { grid-template-columns: 1fr 1fr; } .photo-strip figure:first-child { grid-column: 1 / -1; } }

/* publications */
.pub-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); }
.pub-card { display: grid; grid-template-columns: 130px 1fr; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.pub-card img { width: 130px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); align-self: start; }
.pub-card h3 { font-size: 1.1rem; margin-bottom: .4em; }
.pub-card p { margin: 0 0 .7em; font-size: .97rem; color: var(--ink-soft); }
.pub-venue { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem !important; font-weight: 600; color: var(--accent-ink) !important; }
.text-link { font-weight: 600; }
@media (max-width: 520px) { .pub-card { grid-template-columns: 90px 1fr; gap: 14px; } .pub-card img { width: 90px; } }

/* teaching */
.course-group { margin-bottom: 20px; }
.course-group h3 { font-size: 1.05rem; color: var(--accent-ink); margin-bottom: .3em; }
.course-group ul { margin: 0; padding-left: 1.2em; }
.course-group li { margin-bottom: .25em; }

/* performance */
.play-head { margin-bottom: 28px; }
.play-head .subtitle { color: var(--gold); font-style: italic; font-size: 1.15rem; margin: 0 0 .6em; }
.play-head p { margin: 0 0 .4em; max-width: 60ch; }
.feature { margin: 0; }
.feature img { border-radius: var(--radius); width: 100%; }
.feature figcaption, .lightbox small { font-size: .82rem; opacity: .75; }
.gallery-title { margin: 48px 0 16px; }
.gallery-title span { display: block; font-family: var(--sans); font-weight: 400; font-size: .9rem; opacity: .75; margin-top: 4px; }
.thumb-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.thumb { padding: 0; border: 0; background: #000; cursor: zoom-in; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s, opacity .25s; }
.thumb:hover img, .thumb:focus-visible img { transform: scale(1.06); opacity: .9; }

/* freedom sung */
.fs-card { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.fs-card img { border-radius: 8px; width: 100%; }
@media (max-width: 700px) { .fs-card { grid-template-columns: 1fr; } .fs-card img { max-width: 220px; } }

/* footer */
.site-footer { background: var(--dark); color: var(--dark-ink); padding: 56px 0; text-align: center; }
.site-footer a { color: var(--gold); }
.site-footer p { max-width: 56ch; margin-inline: auto; }
.social { list-style: none; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin: 20px 0; padding: 0; }
.fine { font-size: .85rem; opacity: .7; margin-top: 28px; }

/* dialogs */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--card); }
dialog::backdrop { background: rgba(0, 0, 0, .65); }
.memorial { width: min(480px, calc(100% - 32px)); border-radius: var(--radius); padding: 40px 28px 30px; text-align: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.memorial h2::after { margin-inline: auto; }
.memorial h2 { margin-bottom: .6em; }
.dialog-close { position: absolute; top: 6px; right: 12px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(10, 8, 6, .96); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox figure { margin: 0; text-align: center; min-width: 0; }
.lightbox img { max-height: 80vh; max-width: 100%; margin-inline: auto; border-radius: 4px; }
.lightbox figcaption { margin-top: 12px; padding: 0 12px; }
.lightbox small { display: block; margin-top: 4px; }
.lb-close, .lb-prev, .lb-next { background: none; border: 0; color: #fff; cursor: pointer; font-size: 32px; padding: 16px; }
.lb-close { position: absolute; top: 8px; right: 12px; font-size: 40px; }
@media (max-width: 600px) { .lightbox[open] { grid-template-columns: 44px 1fr 44px; } .lb-prev, .lb-next { padding: 8px; font-size: 26px; } }

.pub-card.no-cover { grid-template-columns: 1fr; grid-column: 1 / -1; border-left: 4px solid var(--gold); }
.book-note { background: var(--bg-alt); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; max-width: 70ch; margin: 0 0 1.4em; }
