/* Vasilis Flouris — palette taken from Baltic fog long exposures */
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin.woff2) format("woff2-variations"), url(/fonts/archivo-latin.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: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-ext.woff2) format("woff2-variations"), url(/fonts/archivo-latin-ext.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;
}

:root {
  --fog: #dde1e0;      /* page */
  --mist: #eceeed;     /* raised surfaces */
  --ink: #1a2125;      /* text, letterbox */
  --steel: #56626a;    /* secondary text */
  --rule: #b4bcbf;     /* dividers */
  --sodium: #d4842a;   /* streetlamp: focus, play, hover */

  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --measure: 38rem;

  /* type scale (perfect fourth) */
  --s-1: 0.8125rem;
  --s0: 1.0625rem;
  --s1: 1.4rem;
  --s2: 1.9rem;
  --s3: 2.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--s0);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--sodium); }
:focus-visible { outline: 3px solid var(--sodium); outline-offset: 3px; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--gutter); top: 0.5rem; background: var(--ink); color: var(--fog); padding: 0.5rem 1rem; z-index: 10; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.25rem var(--gutter);
}
.wordmark {
  font-weight: 600; font-stretch: 75%; font-size: var(--s1); letter-spacing: 0.01em;
  text-decoration: none;
}
.site-head nav { display: flex; gap: 1.5rem; font-size: var(--s0); }
.site-head nav a { text-decoration: none; padding-block: 0.25rem; border-bottom: 1px solid transparent; }
.site-head nav a:hover { border-bottom-color: var(--sodium); }
.site-head nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* ---------- display type: the title card ---------- */
.display {
  margin: 0;
  font-stretch: 62%;
  font-weight: 200;
  font-size: clamp(3.75rem, 14.5vw, 13.5rem);
  line-height: 0.82;
  letter-spacing: -0.015em;
}
.display-page { font-size: clamp(3.25rem, 11vw, 9.5rem); }
@media (max-width: 63.99em) { .title-card .display { font-size: 19.5vw; } }

/* ---------- opening: cinemascope frame ---------- */
.screen {
  background: var(--ink);
  padding-block: clamp(1.25rem, 6vw, 5.5rem);
}
.screen img {
  width: 100%;
  aspect-ratio: 2.39 / 1;
  object-fit: cover;
  animation: fade-up-from-black 2.4s cubic-bezier(.2,.6,.2,1) both;
}
@keyframes fade-up-from-black { from { opacity: 0; } to { opacity: 1; } }

.title-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 3rem;
  padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) 0;
}
.title-card .display { margin-top: -0.06em; }
.intro { max-width: var(--measure); }
.role { font-size: var(--s1); font-stretch: 85%; font-weight: 500; line-height: 1.3; margin-bottom: 0.6em; }
@media (min-width: 64em) {
  .title-card { grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 1fr); align-items: end; }
}

.button {
  display: inline-block;
  background: var(--ink); color: var(--fog);
  padding: 0.8rem 1.4rem;
  text-decoration: none; font-weight: 500;
  border-radius: 2px;
}
.button:hover { background: #2b363c; }

/* ---------- sections ---------- */
.block { padding: clamp(3.5rem, 9vw, 7.5rem) var(--gutter) 0; }
.block-tight { padding-top: clamp(2rem, 5vw, 3.5rem); }
.section-title {
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  font-stretch: 75%; font-weight: 300;
  font-size: var(--s3); line-height: 1;
}
.section-title a { text-decoration: none; }
.section-title a:hover { text-decoration: underline; text-decoration-color: var(--sodium); }

.page-head { padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) 0; }
.crumb { font-size: var(--s-1); color: var(--steel); margin-bottom: 0.75rem; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.lede { max-width: var(--measure); font-size: var(--s1); line-height: 1.4; margin-top: 1.5rem; color: var(--ink); }

/* ---------- video player ---------- */
.player {
  position: relative; display: block;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}
.player img, .player iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0;
}
.play {
  position: absolute; left: 1rem; bottom: 1rem;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: rgba(26, 33, 37, 0.72);
  transition: background-color .2s;
}
.play::after {
  content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 0.6rem 0 0.6rem 1rem;
  border-color: transparent transparent transparent var(--fog);
}
.player:hover .play, .player:focus-visible .play { background: var(--sodium); }

/* ---------- credits ---------- */
.film-title {
  margin: 1rem 0 0.15rem;
  font-stretch: 80%; font-weight: 500; font-size: var(--s1); line-height: 1.2;
}
.film-note { color: var(--steel); margin: 0 0 0.75rem; }
.credits { margin: 0.75rem 0 0; font-size: 0.9375rem; line-height: 1.45; }
.credits div { display: grid; grid-template-columns: minmax(8.5rem, 11rem) 1fr; gap: 1rem; padding: 0.3rem 0; border-top: 1px solid var(--rule); }
.credits dt { color: var(--steel); }
.credits dd { margin: 0; }

/* home: selected films */
.picks { display: grid; gap: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 48em) { .picks { grid-template-columns: 1fr 1fr; } }

/* category page: film list */
.films { display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
.film { display: grid; gap: 0.5rem 2.5rem; }
@media (min-width: 60em) {
  .film { grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); align-items: start; }
  .film .film-title { margin-top: -0.2rem; }
}

/* ---------- category index ---------- */
.cats { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.cats li { border-top: 1px solid var(--rule); padding: 1.1rem 0 1.25rem; }
.cats a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1.5rem; text-decoration: none; }
.cat-name { font-stretch: 62%; font-weight: 200; font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 0.95; }
.cats a:hover .cat-name { text-decoration: underline; text-decoration-color: var(--sodium); text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.cat-count { color: var(--steel); font-size: var(--s0); }
.cat-lede { margin: 0.35rem 0 0; max-width: var(--measure); color: var(--steel); }

/* ---------- photography tiles ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); }
@media (min-width: 60em) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tiles a { display: block; text-decoration: none; }
.tiles img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--mist); }
.tile-name { display: block; margin-top: 0.7rem; font-stretch: 80%; font-weight: 500; font-size: var(--s1); line-height: 1.2; }
.tile-count { display: block; color: var(--steel); font-size: var(--s-1); }
.tiles a:hover .tile-name { text-decoration: underline; text-decoration-color: var(--sodium); }

/* ---------- gallery wall ---------- */
.wall { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: clamp(0.75rem, 2vw, 1.5rem); }
@media (min-width: 40em) { .wall { columns: 2; } }
@media (min-width: 64em) { .wall { columns: 3; } }
.wall li { break-inside: avoid; margin-bottom: clamp(0.75rem, 2vw, 1.5rem); }
.wall a { display: block; background: var(--mist); }
.wall img { width: 100%; }

/* lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: var(--ink); color: var(--fog);
}
.lightbox::backdrop { background: var(--ink); }
.lightbox figure { margin: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; padding: 3.5rem var(--gutter) 1rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); margin: auto; object-fit: contain; }
.lightbox figcaption { text-align: center; color: #b9c2c6; font-size: var(--s-1); padding-top: 0.75rem; min-height: 2.5em; }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--fog); font: inherit; cursor: pointer; padding: 0.75rem 1rem;
}
.lightbox button:hover { color: var(--sodium); }
.lb-close { top: 0.5rem; right: 0.5rem; }
.lb-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.5rem; top: 50%; transform: translateY(-50%); }

/* ---------- contact ---------- */
.contact-mail {
  display: inline-block;
  font-stretch: 62%; font-weight: 300;
  font-size: clamp(2.25rem, 7.5vw, 5.5rem); line-height: 1;
  text-decoration: underline; text-decoration-color: var(--sodium); text-decoration-thickness: 2px; text-underline-offset: 0.12em;
  overflow-wrap: anywhere;
}
.contact-meta { max-width: 28rem; margin-top: 2.5rem; }
.contact-social, .foot-social { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* ---------- footer ---------- */
.site-foot {
  margin-top: clamp(5rem, 12vw, 9rem);
  background: var(--ink); color: var(--fog);
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) 2.5rem;
}
.site-foot a:hover { text-decoration-color: var(--sodium); }
.foot-lead { font-size: var(--s1); font-stretch: 85%; margin-bottom: 0.5rem; }
.foot-mail { font-stretch: 62%; font-weight: 300; font-size: clamp(2rem, 6vw, 4rem); line-height: 1.05; overflow-wrap: anywhere; }
.foot-meta { margin: 2.5rem 0 0; color: #a7b1b5; font-size: var(--s-1); }

/* ---------- developing print: thumbnails turn from b&w to colour ---------- */
.tile-frame { display: block; overflow: hidden; background: var(--mist); }
/* computers: on hover / keyboard focus */
@media (hover: hover) and (pointer: fine) {
  .develop img {
    filter: grayscale(1) brightness(0.9);
    transition: filter 0.6s ease, transform 0.8s cubic-bezier(.2,.7,.2,1);
  }
  .develop:hover img, .develop:focus-visible img,
  a:hover > .develop img, a:focus-visible > .develop img {
    filter: none;
    transform: scale(1.035);
  }
  /* galleries stay in colour; only a gentle zoom */
  .wall a { overflow: hidden; }
  .wall img { transition: transform 0.8s cubic-bezier(.2,.7,.2,1); }
  .wall a:hover img, .wall a:focus-visible img { transform: scale(1.035); }
}
/* phones and tablets: colour develops as the photo reaches the middle of the screen */
@media (hover: none) {
  .js .develop img {
    filter: grayscale(1) brightness(0.9);
    transition: filter 1.2s ease;
  }
  .js .develop.in-view img { filter: none; }
}

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