:root {
  --bg: #d9d5ca;
  --text: #0038ff;
  --muted: #0038ff;
  --line: #b3bde8;
  --still: #c9c5ba;
  --link: #0038ff;
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.55;
}

.wrap {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 3rem;
  max-width: 78rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

header .name {
  display: block;
  margin: 0 0 2rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  line-height: 1.3;
}

nav ul { list-style: none; margin: 0; padding: 0; }
nav li { margin: 0 0 0.5rem; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover,
nav a[aria-current="page"] { color: var(--text); }

nav a[aria-current="page"] { border-bottom: 1px solid var(--text); }

main { max-width: 38rem; }

main h1 {
  font-size: 0.8rem;
  font-weight: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2rem;
}

.statement p {
  font-size: 1.35rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

h2 {
  font-size: 0.8rem;
  font-weight: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 3rem 0 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }

.film {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1.25rem;
  margin: 0 0 2rem;
}

.still {
  aspect-ratio: 16 / 10;
  background: var(--still);
  overflow: hidden;
}

.still img { display: block; width: 100%; height: 100%; object-fit: cover; }

.film h3 {
  font-size: 1.1rem;
  font-weight: normal;
  font-style: italic;
  margin: 0 0 0.15rem;
}

.film p { margin: 0 0 0.35rem; font-size: 0.95rem; }
.film .meta { color: var(--muted); font-size: 0.85rem; }

a { color: var(--link); text-underline-offset: 0.2em; }

.contact p { margin: 0 0 0.75rem; }

.portrait {
  display: block;
  width: 100%;
  max-width: 16rem;
  height: auto;
  margin: 0 0 1.5rem;
}

footer {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

@media (max-width: 44rem) {
  .wrap { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.5rem; }
  header .name { margin-bottom: 1rem; }
  nav ul { display: flex; gap: 1.25rem; flex-wrap: wrap; }
  nav li { margin: 0; }
  .film { grid-template-columns: 1fr; gap: 0.75rem; }
  .still { max-width: 20rem; }
  .statement p { font-size: 1.2rem; }
}

.still-link { display: block; text-decoration: none; }
.film h3 a { color: inherit; text-decoration: none; }
.film h3 a:hover { text-decoration: underline; }

main.filmpage { max-width: none; }
.back { margin: 0 0 1.5rem; font-size: 0.85rem; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--text); }

.filmpage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.filmpage-image img { display: block; width: 100%; height: auto; }
.filmpage-text h1 {
  font-size: 1.5rem;
  font-weight: normal;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  margin: 0 0 0.35rem;
  line-height: 1.25;
}
.filmpage-text .en { margin: 0 0 0.75rem; font-size: 0.95rem; color: var(--muted); }
.filmpage-text .meta { margin: 0 0 0.25rem; color: var(--muted); font-size: 0.85rem; }
.filmpage-text .synopsis { margin: 0 0 1rem; font-size: 1rem; line-height: 1.6; }
.filmpage-text .synopsis.first { margin-top: 1.5rem; }
.filmpage-text h2 { margin: 2rem 0 0.75rem; }
.screenings { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.screenings li { margin: 0 0 0.35rem; }

@media (max-width: 44rem) {
  .filmpage-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 2.5rem;
  align-items: start;
}
.bio-grid img { display: block; width: 100%; height: auto; }
.bio-text p { margin: 0 0 1.1rem; font-size: 1rem; line-height: 1.65; }
@media (max-width: 44rem) {
  .bio-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .bio-grid img { max-width: 16rem; }
}

/* Titles use the serif; everything else uses the sans set on body. */
header .name,
.film h3,
.filmpage-text h1,
.filmpage-text .en {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  letter-spacing: normal;
}
header .name { letter-spacing: 0.08em; }

/* Home page */
main.home { max-width: none; }
.hero { display: block; width: 100%; height: auto; margin: 0 0 1.5rem; background: var(--still); }
.home .statement { text-align: center; }
.home .statement p span { display: block; }
.home .statement p { max-width: none; font-size: 1.05rem; text-wrap: balance; margin: 0 auto 1.25rem; }

/* Films gallery */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main.gallery { max-width: none; }
.filters { margin: 0 0 2.5rem; font-size: 0.9rem; letter-spacing: 0.02em; }
.filters a { text-decoration: none; }
.filters a:hover, .filters a[aria-current="true"] { text-decoration: underline; text-underline-offset: 0.25em; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2.5rem; }
.card[hidden] { display: none; }
.card a { display: block; text-decoration: none; }
.card .still { aspect-ratio: 16 / 10; max-width: none; }
.card .ctitle {
  display: block;
  margin-top: 0.7rem;
  text-align: center;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-style: italic;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
@media (max-width: 30rem) { .grid { grid-template-columns: 1fr; } }

/* About page and CV */
main.aboutpage h2.cv-title { margin: 4rem 0 0.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-weight: 600; }
.cv-section { margin: 0 0 2rem; max-width: 46rem; }
.cv-section h2 { margin: 2rem 0 0.75rem; padding-top: 0; border-top: 0; font-weight: 800; font-size: 0.9rem; letter-spacing: 0.08em; }
.cv-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; margin: 0 0 0.45rem; font-size: 0.95rem; line-height: 1.5; }
.cv-date { white-space: nowrap; }
@media (max-width: 44rem) {
  .cv-row { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.75rem; }
  .cv-date { white-space: normal; }
}
