/* generated by scripts/build.mjs – edit src/site.css */
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/literata-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/literata-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/literata-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/literata-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/literata-latin-ext-400-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/literata-latin-400-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --paper: #f1eadf;
  --ink: #1f1a17;
  --ink-2: #574d45;
  --muted: #675d53;
  --red: #9e2a1f;
  --rule: rgba(31, 26, 23, 0.16);
  --stage: #2a1c16;
  --screen: #141110;
  --cream: #efe4cc;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --g: clamp(16px, 3.6vw, 48px);
  --max: 1280px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.1875rem/1.6 var(--serif);
  overflow-x: clip;
  font-kerning: normal;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 0.9em; }
button { font: inherit; color: inherit; }
cite { font-style: italic; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--ink); color: var(--paper); padding: 0.5rem 0.9rem; font-size: 0.95rem; }
.skip:focus { top: 12px; }

/* ---------- header: light type over the stage, paper once scrolled ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; gap: 1.4rem;
  padding: 6px var(--g);
  padding-top: max(6px, env(safe-area-inset-top));
  font-size: 0.95rem; line-height: 1.2;
  color: var(--cream);
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.top.is-scrolled, .top.menu-open { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--rule); }
.top__brand { font-weight: 600; text-decoration: none; margin-right: auto; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.top:not(.is-scrolled):not(.menu-open) .top__brand { visibility: hidden; } /* the name stands on the proscenium */
.top__lang { display: flex; gap: 0; margin: 0; }
.top__lang a { text-decoration: none; opacity: 0.72; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.top__lang a[aria-current] { opacity: 1; text-decoration: underline; }
.top__nav ul { display: flex; gap: 0.2rem 1.2rem; list-style: none; margin: 0; padding: 0; }
.top__nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.top__nav a:hover, .top__nav a.is-active { text-decoration: underline; color: inherit; }
.top__toggle { display: none; }

@media (max-width: 960px) {
  .top { gap: 0.6rem; }
  .top__toggle { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
  .top__nav ul {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 0 var(--g) 0.6rem; background: var(--paper); color: var(--ink);
    box-shadow: 0 1px 0 var(--rule);
  }
  .top__nav.is-open ul { display: flex; }
  .top__nav li a { display: flex; padding: 0.4rem 0; font-size: 1.1rem; }
}

/* ---------- hero: the paper theatre ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; max-height: 1200px; display: flex; flex-direction: column; background: var(--stage); color: var(--cream); }
.hero__stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y pinch-zoom; opacity: 0; transition: opacity 0.7s ease; }
.has-3d .hero__canvas { opacity: 1; }
.hero__fallback { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; transition: opacity 0.7s ease; }
.hero__fallback img { max-height: 84%; width: auto; }
.has-3d .hero__fallback { opacity: 0; pointer-events: none; }
.no-3d .hero__canvas { display: none; }
.hero__name { position: absolute; top: 64px; left: 0; right: 0; z-index: 1; text-align: center; font: 600 clamp(1.8rem, 5vw, 3rem)/1.1 var(--serif); color: var(--cream); transition: opacity 0.7s ease; }
.hero__job { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.has-3d .hero__name { opacity: 0; } /* drawn on the proscenium; stays in the document for screen readers */
.hero__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.2rem 1.4rem;
  padding: 6px var(--g) max(8px, env(safe-area-inset-bottom));
  font-size: 0.92rem; line-height: 1.35; border-top: 1px solid rgba(239, 228, 204, 0.18);
}
.hero__caption { margin: 0; padding: 0.35rem 0; }
.hero__credit { opacity: 0.72; }
.hero__credit::before { content: ' · '; }
.hero__scenes { display: flex; gap: 0.2rem; }
.hero__scenes button { background: none; border: 0; cursor: pointer; min-height: 44px; padding: 0 10px; opacity: 0.72; }
.hero__scenes button:hover { opacity: 1; }
.hero__scenes button[aria-pressed='true'] { opacity: 1; text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
@media (max-width: 640px) {
  .hero { min-height: 600px; }
  .hero__bar { flex-direction: column; align-items: flex-start; gap: 0; }
  .hero__credit { display: block; }
  .hero__credit::before { content: ''; }
  .hero__scenes { margin-left: -10px; }
}

/* ---------- her voice, set like a film subtitle ---------- */
.subtitle { margin: 0; background: var(--screen); color: #f4efe6; text-align: center; padding: clamp(48px, 7vw, 96px) var(--g); }
.subtitle blockquote { margin: 0 auto; max-width: 36em; }
.subtitle blockquote p { margin: 0; text-wrap: balance; font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.4; }
.subtitle .subtitle__tr { margin-top: 0.5rem; font-style: italic; font-size: clamp(1.05rem, 1.8vw, 1.3rem); opacity: 0.78; }
.subtitle figcaption { margin-top: 1.4rem; font-size: 0.85rem; opacity: 0.62; }

/* ---------- content blocks with marginal headings ---------- */
.block { display: grid; grid-template-columns: minmax(10rem, 2.4fr) minmax(0, 7.6fr); column-gap: var(--g); max-width: var(--max); margin: 0 auto; padding: clamp(80px, 9vw, 128px) var(--g) 0; }
.block > h2 { grid-column: 1; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.1; font-weight: 400; letter-spacing: -0.01em; border-top: 3px double #c38f37; padding-top: 0.6rem; align-self: start; }
.block__body { grid-column: 2; min-width: 0; }
@media (max-width: 820px) {
  .block { grid-template-columns: minmax(0, 1fr); padding-top: 72px; }
  .films__count, .films .block__body { grid-column: 1; grid-row: auto; }
  .block > h2, .block__body { grid-column: 1; }
  .block > h2 { margin-bottom: 1.2rem; }
}

.bio__text p { max-width: 36em; hyphens: auto; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 2.4rem; margin: 2.6rem 0 0; max-width: 46rem; }
.facts dt { font-size: 0.85rem; color: var(--muted); }
.facts dd { margin: 0.1rem 0 0; font-size: 1rem; line-height: 1.45; }
@media (max-width: 560px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* roles as the cast list of a playbill */
.cast { list-style: none; margin: 0; padding: 0; }
.cast__row { margin: 0 0 2.6rem; }
.cast__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.6rem; margin: 0; }
.cast__role { font-size: clamp(1.4rem, 2.1vw, 1.85rem); line-height: 1.2; font-weight: 400; flex: 0 1 auto; }
.cast__row--now .cast__role { color: var(--red); }
.cast__dots { flex: 1 1 2rem; min-width: 2rem; border-bottom: 2px dotted rgba(31, 26, 23, 0.45); transform: translateY(-0.28em); }
.cast__work { font-size: 1.05rem; min-width: 0; text-align: right; }
.cast__orig { color: var(--ink-2); display: block; font-size: 0.9em; }
.cast__note { margin: 0.45rem 0 0; max-width: 38em; font-size: 1rem; color: var(--ink-2); }
.cast__press { list-style: none; margin: 0.9rem 0 0; padding: 0; max-width: 40em; font-size: 0.95rem; }
.cast__press li { margin: 0 0 0.45rem; }
.cast__press cite { font-style: normal; color: var(--ink-2); }
@media (max-width: 720px) {
  .cast__line { flex-wrap: wrap; gap: 0.1rem 0.6rem; }
  .cast__dots { display: none; }
  .cast__work { white-space: normal; flex-basis: 100%; }
}

/* filmography */
.films__count { grid-column: 1; grid-row: 2; align-self: start; font-size: 0.95rem; color: var(--ink-2); margin: 0.4rem 0 1rem; }
.films .block__body { grid-row: 1 / span 2; }
.timeline { margin: 0 0 2.4rem; }
.timeline__grid {
  --bar: calc(var(--stack, 13) * 16px + 4px); /* squares are at most 14px plus a 2px gap */
  display: grid; grid-template-columns: repeat(var(--years, 56), minmax(9px, 1fr)); column-gap: 2px; align-items: start;
  padding: 0 4px 1.9rem; overflow-x: auto; overflow-y: hidden;
  background: linear-gradient(var(--ink), var(--ink)) left calc(100% - 1.9rem + 1px) / 100% 1px no-repeat; /* baseline */
}
.tl-year { grid-column: var(--col); grid-row: 1; height: var(--bar); display: flex; flex-direction: column-reverse; gap: 2px; justify-content: flex-start; align-items: center; background: none; border: 0; padding: 0; position: relative; cursor: pointer; }
.tl-empty { cursor: default; }
.tl-sq { display: block; width: 100%; max-width: 14px; aspect-ratio: 1; }
.tl-film { background: var(--red); }
.tl-tv { background: var(--ink); }
.tl-stage { background: #8a7d6e; }
.tl-year:hover .tl-sq, .tl-year[aria-pressed='true'] .tl-sq, .tl-year:focus-visible .tl-sq { outline: 2px solid var(--ink); outline-offset: 1px; }
.tl-year:focus-visible { outline: none; }
.tl-year:focus-visible::before { content: attr(data-year); position: absolute; top: 0; left: 50%; transform: translateX(-50%); font-size: 0.75rem; background: var(--paper); padding: 0 2px; }
.tl-label { position: absolute; bottom: -1.6rem; left: 0; font-size: 0.75rem; color: var(--ink-2); font-variant-numeric: lining-nums; }
.timeline figcaption { font-size: 0.85rem; color: var(--ink-2); margin-top: 0.6rem; max-width: 46rem; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; margin-top: 0.5rem; }
.tl-key { display: inline-flex; align-items: center; gap: 0.4rem; }
.tl-key .tl-sq { width: 0.7rem; }
@media (max-width: 700px) {
  /* scrolls sideways; the fade on the right says there is more */
  .timeline__grid { --bar: calc(var(--stack, 13) * 13px + 4px); grid-template-columns: repeat(var(--years, 56), 11px); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .timeline figcaption { margin-top: 0.6rem; }
}
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.1rem; margin: 0 0 1.2rem; font-size: 0.98rem; }
.filters button { background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; color: var(--ink-2); }
.filters button[aria-pressed='true'] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.filters__year { display: inline-flex; align-items: center; gap: 0.2rem; margin-left: 0.6rem; font-weight: 600; }
.filters__year[hidden] { display: none; }
.filters__clear { font-weight: 400; text-decoration: underline; }
.decade { border-top: 2px solid var(--ink); }
.decade[hidden] { display: none; }
.decade summary { display: flex; align-items: baseline; gap: 0.8rem; min-height: 48px; padding: 0.5rem 0; cursor: pointer; list-style: none; }
.decade summary::-webkit-details-marker { display: none; }
.decade summary::after { content: '+'; margin-left: auto; font-size: 1.2rem; color: var(--ink-2); }
.decade[open] summary::after { content: '–'; }
.decade__name { font-weight: 600; font-size: 1.4rem; }
.decade__n { font-size: 0.88rem; color: var(--ink-2); }
.credits { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.credit { display: grid; grid-template-columns: 5.4rem minmax(0, 2fr) minmax(0, 3fr); column-gap: 1rem; padding: 0.45rem 0; border-top: 1px solid var(--rule); font-size: 0.9rem; line-height: 1.4; color: var(--ink-2); align-items: baseline; }
.credit[hidden] { display: none; }
.credit__year { white-space: nowrap; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.credit__title { font-size: 1.08rem; color: var(--ink); }
.credit__orig { display: block; font-style: italic; font-size: 0.88em; color: var(--ink-2); }
@media (max-width: 760px) {
  .credit { grid-template-columns: 4.4rem minmax(0, 1fr); }
  .credit__meta { grid-column: 2; }
}

/* news */
.news__list { list-style: none; margin: 0; padding: 0; }
.news__list li { margin: 0 0 1.05rem; max-width: 38em; }
.news__list time { font-weight: 600; }
.news__list time::after { content: ' –'; font-weight: 400; }

/* photographs as a contact sheet */
.sheet__strip { grid-column: 2 / -1; list-style: none; margin: 0 calc(-1 * var(--g)) 0 0; padding: 0 var(--g) 10px 0; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; }
.sheet__strip li { flex: 0 0 auto; scroll-snap-align: start; }
.sheet__strip figure { margin: 0; }
.sheet__link { display: block; background: #ddd3c4; }
.sheet__link img { height: clamp(280px, 34vw, 430px); width: auto; }
.sheet figcaption { font-size: 0.85rem; line-height: 1.4; color: var(--ink-2); margin-top: 0.5rem; max-width: 18rem; }
@media (max-width: 820px) {
  .sheet__strip { grid-column: 1; margin-right: calc(-1 * var(--g)); }
  .sheet__link img { height: 300px; }
}

/* contact, set like end credits */
.credits-roll { margin-top: clamp(96px, 10vw, 144px); background: var(--screen); color: #f4efe6; text-align: center; padding: clamp(80px, 11vw, 150px) var(--g) 40px; }
.credits-roll h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.8rem; }
.credits-roll__note { opacity: 0.78; max-width: 26em; margin: 0 auto; }
.credits-roll dl { margin: 2.8rem auto 0; max-width: 30rem; }
.credits-roll dl div { margin: 0 0 1.5rem; }
.credits-roll dt { font-size: 0.82rem; opacity: 0.62; }
.credits-roll dd { margin: 0.1rem 0 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.credits-roll a { color: inherit; }
.credits-roll a:hover { color: #e9b9a3; }
.credits-roll__end { margin-top: 5rem; font-size: 0.82rem; opacity: 0.62; }
.credits-roll__end p { margin: 0.3rem 0; }
.credits-roll__end a { display: inline-block; padding: 10px 2px; }

/* lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: var(--paper); color: var(--ink); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: var(--paper); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.lightbox img { max-height: calc(100dvh - 130px); max-width: min(calc(100vw - 140px), 1000px); width: auto; height: auto; }
.lightbox figcaption { font-size: 0.88rem; color: var(--ink-2); text-align: center; padding: 0 1rem; }
.lightbox button { background: none; border: 0; cursor: pointer; font-size: 1.5rem; line-height: 1; min-width: 48px; min-height: 48px; }
.lightbox__close { position: absolute; top: max(8px, env(safe-area-inset-top)); right: 8px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 6px; } .lightbox__nav--next { right: 6px; }
@media (max-width: 640px) {
  .lightbox img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 170px); }
  .lightbox__nav { top: auto; bottom: max(12px, env(safe-area-inset-bottom)); transform: none; }
}

/* 404 */
.nf { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; text-align: center; }
.nf__code { font-size: clamp(4rem, 18vw, 9rem); line-height: 1; color: var(--red); margin: 0 0 1rem; }
.nf h1 { font-size: 1.8rem; margin-bottom: 0.6rem; }
.nf h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* touch: year columns wide enough to hit */
@media (pointer: coarse) {
  .timeline__grid { grid-template-columns: repeat(var(--years, 56), 24px); }
}

/* photographs: all five in a row on wide screens */
@media (min-width: 1200px) {
  .sheet__strip { flex-wrap: wrap; overflow: visible; margin-right: 0; padding-right: 0; }
  .sheet__link img { height: clamp(260px, 18vw, 340px); }
}

/* end credits: role and name either side of a centre line */
.credits-roll dl div { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.2rem; align-items: baseline; margin: 0 0 0.8rem; }
.credits-roll dt { text-align: right; font-size: 0.95rem; font-style: italic; }
.credits-roll dd { text-align: left; margin: 0; }
.credits-roll dl { max-width: 40rem; }
@media (max-width: 460px) {
  .credits-roll dl div { grid-template-columns: minmax(0, 1fr); text-align: center; margin-bottom: 1.3rem; }
  .credits-roll dt, .credits-roll dd { text-align: center; }
}
