/* Lightbeam. Committed light palette because the wordmark is dark.
   Every page is one block set in the middle of the viewport. Home carries the
   full logo; inner pages carry the mark alone. */
:root {
  --paper: #fbfaf9;
  --ink: #1c1a19;
  --ink-soft: #55504d;
  --ink-faint: #9a948f;
  --rule: #e4e0dc;
  --accent: #e8502e;
  color-scheme: light;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 3rem;
}

/* ---------- shared centred frame ---------- */

.home-wrap,
.page-wrap {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 3.5rem;
  /* The footer is absolutely positioned at the bottom of this box. Without
     reserved space it lands on the last line once the content outgrows the
     viewport, so keep a footer-sized gutter below the content. */
  padding-bottom: 6rem;
}

.logo {
  display: block;
  width: clamp(11rem, 44vw, 16rem);
  max-width: 100%;
  height: auto;
}

.mark {
  display: block;
  width: 2.6rem;
  max-width: 100%;
  height: auto;
}

.email {
  margin: 0;
  font-size: clamp(1rem, 3.4vw, 1.18rem);
  font-weight: 500;
  letter-spacing: -0.012em;
  word-break: break-word;
}

.email a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.08em;
}

.email a:hover { color: var(--accent); }

.more {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.more a { color: var(--ink-faint); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 0.2em; }
.more a:hover { color: var(--accent); border-bottom-color: var(--accent); }

footer {
  position: absolute;
  bottom: max(0rem, env(safe-area-inset-bottom, 0px));
  left: 0; right: 0;
  text-align: center;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  color: var(--ink-faint);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

footer p { margin: 0; }

footer p a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 0.12em; }
footer p a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 1.15rem;
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.pages a { color: var(--ink-faint); text-decoration: none; }
.pages a:hover { color: var(--accent); }
.pages a[aria-current="page"] { color: var(--ink); }

/* ---------- home ---------- */

.home-wrap { text-align: center; }

.home-wrap main {
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.1rem;
}

.home-wrap h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.1rem, 3.8vw, 1.4rem);
  letter-spacing: -0.016em;
  line-height: 1.3;
  color: var(--ink-soft);
  text-wrap: balance;
}

/* ---------- inner pages ---------- */

.page-wrap main {
  max-width: 31rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.page-wrap .mark { margin-bottom: 1.4rem; }

.page-wrap p { margin: 0; }

.page-wrap .lede { font-size: 1.1rem; line-height: 1.55; letter-spacing: -0.006em; }

.page-wrap .soft { color: var(--ink-soft); }

.page-wrap .meta { color: var(--ink-faint); font-size: 0.88rem; }

/* ---------- team ---------- */

.bios { display: flex; flex-direction: column; gap: 2rem; }

.bios h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.25;
}

.bios .role {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-faint);
}

.bios .bio { margin: 0.65rem 0 0; color: var(--ink-soft); line-height: 1.58; }

/* ---------- films ---------- */

.work-wrap {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  gap: 3.5rem;
}

/* Long page: the footer flows after the content instead of being pinned,
   so tall poster rows can never slide underneath it. */
.work-wrap footer {
  position: static;
  margin-top: auto;
  padding-top: 1rem;
}

.work-wrap main {
  max-width: 50rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.films {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.films li {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: 2.25rem;
  align-items: start;
}

.films img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 1px solid var(--rule);
}

.films h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.films .meta { margin: 0.3rem 0 0; font-size: 0.8rem; color: var(--ink-faint); letter-spacing: 0.02em; }

.films .honours { margin: 0.85rem 0 0; font-size: 0.93rem; line-height: 1.5; color: var(--ink-soft); max-width: 30rem; }

.films .watch {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.films .watch a {
  color: var(--ink-faint);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.18em;
}

.films .watch a:hover { color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 36rem) {
  .films li { grid-template-columns: 1fr; gap: 1.1rem; }
  .films img { max-width: 15rem; }
  .films h2 { font-size: 1.15rem; }
}

.next {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.next a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 0.2em; }
.next a:hover { color: var(--accent); }

.back { margin-top: 0.5rem; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.back a { color: var(--ink-faint); text-decoration: none; }
.back a:hover { color: var(--accent); }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
