:root {
  --ink: #1f2a2e;
  --muted: #5d6a6e;
  --paper: #f7f4ee;
  --paper-alt: #efeae0;
  --accent: #8a5a2b;
  --line: #d9d1c3;
  --serif-d: "Cormorant Garamond", Georgia, serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.7 var(--serif);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif-d); font-weight: 500; line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
h3 { font-size: 1.4rem; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* nav */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 244, 238, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif-d); font-size: 1.35rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand img { height: 44px; width: auto; display: block; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; overflow-x: auto; min-width: 0; }
.lang { position: relative; flex-shrink: 0; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); font-size: .8rem; letter-spacing: .08em; color: var(--ink); user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.lang[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang summary:hover, .lang[open] summary { background: var(--paper-alt); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 150px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.10); padding: 6px 0; z-index: 20; }
.nav .lang-menu a { display: block; padding: 7px 16px; color: var(--ink); font-size: .92rem; }
.nav .lang-menu a[href]:hover { background: var(--paper-alt); }
.nav .lang-menu a[aria-current] { color: var(--accent); font-weight: 600; }
.nav a:not(.brand) { color: var(--muted); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.nav a:not(.brand):hover { color: var(--ink); }

/* hero */
.hero { padding: 120px 0 110px; text-align: center; border-bottom: 1px solid var(--line); }
.portrait { display: block; height: 170px; width: auto; margin: 0 auto 32px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; color: var(--muted); margin: 0 0 18px; }
.hero h1 { font-size: clamp(3rem, 9vw, 5.6rem); margin: 0; }
.years { font-family: var(--serif-d); font-style: italic; font-size: 1.6rem; color: var(--accent); margin: 6px 0 28px; }
.lead { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 1.1rem; }

/* blocks */
.block { padding: 90px 0; }
.block.alt { background: var(--paper-alt); }
.block p { margin: 0 0 1.1em; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 10px 0 10px 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 21px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.timeline span { font-family: var(--serif-d); font-size: 1.15rem; font-weight: 600; color: var(--accent); }
.timeline p { margin: 0; }

/* books */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-bottom: 28px; }
.books article { border: 1px solid var(--line); padding: 20px 22px; background: #fbf9f5; }
.books .y { font-size: .82rem; letter-spacing: .12em; color: var(--muted); }
.books h3 { margin: 4px 0 6px; }
.books p { margin: 0; font-size: .95rem; color: var(--muted); }
.note { font-style: italic; color: var(--muted); }

/* publications */
.pubs dt { font-family: var(--serif-d); font-size: 1.5rem; margin-top: 22px; }
.pubs dt small { font-family: var(--serif); font-size: .85rem; color: var(--muted); margin-left: 8px; }
.pubs dd { margin: 4px 0 0; color: var(--ink); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.gallery a { display: block; aspect-ratio: 5 / 7; overflow: hidden; background: var(--paper-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.03); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(16, 20, 22, .92); }
.lightbox img { position: absolute; inset: 0; margin: auto; max-width: calc(100vw - 120px); max-height: calc(100vh - 60px); }
.lightbox button { position: absolute; background: none; border: 0; color: #f2efe8; font-size: 2.6rem; line-height: 1; padding: 12px 16px; cursor: pointer; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 8px; top: 8px; }
.lightbox button:focus:not(:focus-visible) { outline: none; }

/* video */
.video { border: 1px solid var(--line); background: #fbf9f5; padding: 28px 30px; }
.video-still { position: relative; display: block; margin: -28px -30px 24px; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.video-still img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.video-still:hover img { transform: scale(1.02); }
.play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(20, 26, 28, .72); border: 2px solid rgba(255,255,255,.85); }
.play::after { content: ""; position: absolute; left: 28px; top: 21px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #fff; }
.video-still:hover .play { background: var(--accent); }
.video-meta { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px !important; }
.video h3 { margin-bottom: 14px; }
.video-src { font-size: .92rem; color: var(--muted); }
.button { display: inline-block; margin-top: 6px; padding: 10px 22px; background: var(--ink); color: #fff; text-decoration: none; font-size: .95rem; letter-spacing: .02em; }
.button:hover { background: var(--accent); }

/* footer */
.foot { background: var(--ink); color: #d8dcd9; padding: 70px 0 50px; }
.foot h2 { font-size: 1.6rem; color: #fff; }
.foot ul { padding-left: 18px; }
.foot a { color: #e6cfae; }
.copy { margin-top: 40px; font-size: .85rem; color: #98a3a0; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav ul { gap: 14px; margin-left: 0; }
  .nav { gap: 12px; }
  .brand { display: none; }
  .hero { padding: 48px 0 64px; }
  .portrait { height: 120px; margin-bottom: 24px; }
  .block { padding: 64px 0; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .video { padding: 22px 20px; }
  .video-still { margin: -22px -20px 20px; }
  .lightbox img { max-width: 100vw; max-height: calc(100vh - 140px); }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}
