/* ------------------------------------------------------------------
   STYLES
   Concept: an exhibition catalogue.
   - The image decides the layout: every image keeps its own proportions
     and runs to the edge of the screen. Nothing is cropped into cards.
   - Text is set like a wall label: one typeface, two sizes, no ornament.
   - Layout idea: a narrow label column on the left, the work on the right.
   To restyle the site, change the tokens in :root.
------------------------------------------------------------------- */
/* Font: Instrument Sans (SIL Open Font License), hosted with the site, no Google request */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(fonts/instrument-sans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(fonts/instrument-sans-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; }

:root {
  color-scheme: light;
  --ground: #e3e7e9;      /* cool grey page */
  --ink: #10151b;         /* text */
  --soft: #55606b;        /* secondary text */
  --line: #bfc7cc;        /* hairlines */
  --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --size: 1rem;           /* reading size */
  --small: 0.875rem;      /* label size */
  --gutter: clamp(16px, 3.2vw, 44px);
  --label: clamp(180px, 22vw, 320px);   /* width of the label column */
  --gap: clamp(72px, 11vw, 168px);      /* space between works */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--size);
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover, .prose a, .contact a, .video-line a { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, p, ul, ol, figure { margin: 0; }
h1, h2 { font-size: inherit; font-weight: 500; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
.soft { color: var(--soft); }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 10; padding: 8px 12px; background: var(--ground); color: var(--ink); }
.skip-link:focus-visible { top: 12px; }
main:focus { outline: none; }
.noscript { padding: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* missing image */
.ph {
  display: block; padding: 40px 16px; border: 1px dashed var(--line);
  font-size: var(--small); color: var(--soft); overflow-wrap: anywhere;
}

/* ---------- header ---------- */
.site-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px;
  padding: 20px var(--gutter) 18px;
}
.site-name { font-weight: 500; margin-right: auto; }
.site-nav { display: flex; gap: 22px; }
.site-nav a[aria-current="page"] { text-decoration-color: currentColor; }
/* language: one small globe at the top right; the list opens under it */
.lang { position: relative; display: flex; align-self: baseline; }
.lang-toggle { display: inline-flex; align-items: baseline; gap: 3px; font-size: var(--small); letter-spacing: 0.04em; color: var(--soft); }
.lang-caret { font-size: 0.7em; }
.lang-toggle:hover, .lang-toggle[aria-expanded="true"] { color: var(--ink); }
.lang-list {
  position: absolute; top: calc(100% + 10px); right: -5px; z-index: 5;
  display: grid; gap: 2px; padding: 8px 14px;
  background: var(--ground); border: 1px solid var(--line);
  font-size: var(--small); white-space: nowrap;
}
.lang-list button { color: var(--soft); padding: 3px 0; }
.lang-list button:hover, .lang-list button[aria-current="true"] { color: var(--ink); }
@media (max-width: 520px) {
  .site-head { gap: 6px 14px; }
  .site-nav { gap: 14px; }
}

/* ---------- the label (title, year, medium) ---------- */
.label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.label-title { font-size: clamp(1.25rem, 1.9vw, 1.625rem); font-weight: 500; line-height: 1.18; letter-spacing: -0.01em; text-wrap: balance; margin-bottom: 8px; }
.label-line { font-size: var(--small); color: var(--soft); }

/* ---------- home: the works, one after another ---------- */
.page-works { padding-top: clamp(24px, 5vw, 72px); }
.works { display: grid; gap: var(--gap); }
/* each project: the image at full width, the label set over it on a dark fade */
.entry-link { display: block; position: relative; text-decoration: none; overflow: hidden; background: #0d0b09; }
.entry-image img { display: block; width: 100%; max-height: 88vh; object-fit: cover; }
.entry-link::after { content: ""; position: absolute; inset: 65% 0 0 0; background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.5)); pointer-events: none; }
.entry-label { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(14px, 2.2vw, 28px); z-index: 1; color: #fff; }
.entry-label .label-title { font-size: clamp(1.0625rem, 1.6vw, 1.375rem); letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 2px; }
.entry-label .label-line { font-size: 0.8125rem; color: rgba(255,255,255,0.8); }
.entry-link:hover .label-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
@media (max-width: 520px) {
  .entry-label { bottom: 10px; }
  .entry-label .label-title { font-size: 0.9375rem; }
  .entry-label .label-line { font-size: 0.6875rem; }
}

/* ---------- work page ---------- */
.page-work { display: grid; gap: clamp(40px, 6vw, 88px); }
.lead img { width: 100%; max-height: 88vh; object-fit: contain; object-position: left top; }
.split {
  display: grid;
  grid-template-columns: var(--label) minmax(0, 1fr);
  gap: 16px var(--gutter);
  padding: 0 var(--gutter);
  align-items: start;
}
.split-head { font-size: var(--small); color: var(--soft); font-weight: 400; padding-top: 3px; }
.prose { display: grid; gap: 1em; max-width: 64ch; font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.55; }
@media (max-width: 720px) { .split { grid-template-columns: minmax(0, 1fr); } }

.videos { display: grid; max-width: 64ch; border-top: 1px solid var(--line); }
.video { border-bottom: 1px solid var(--line); }
.video-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; padding: 10px 0; }
.video-line > span { margin-right: auto; }
.text-btn { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.text-btn[disabled] { color: var(--soft); text-decoration: none; cursor: default; }
.video-frame { aspect-ratio: 16 / 9; margin-bottom: 12px; background: var(--ink); }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* images of a work: each at its own proportions */
.plates { display: grid; gap: clamp(40px, 6vw, 88px); }
.plate { display: grid; gap: 10px; justify-items: start; }
.plate > img { max-height: 92vh; width: auto; }
.plate figcaption { font-size: var(--small); color: var(--soft); max-width: 64ch; padding: 0 var(--gutter); }
.plate-blend { padding: 0 var(--gutter); }
.plate-blend figcaption { padding: 0; }
.plate-blend img { mix-blend-mode: multiply; }
.set { display: grid; gap: 4px; width: 100%; }
.set img { width: 100%; }
.set-row { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; }
.set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.set-stack { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .set-grid.set-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .set-row { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
}

/* two-column rows: credits, exhibitions, CV */
.rows { border-top: 1px solid var(--line); max-width: 80ch; font-size: var(--small); }
.rows li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2px 20px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rows-a { color: var(--soft); }
.rows-year li { grid-template-columns: 6rem minmax(0, 1fr); }
.rows-year .rows-a { font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .rows li, .rows-year li { grid-template-columns: minmax(0, 1fr); } }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 var(--gutter); }
.pager a { display: grid; gap: 2px; text-decoration: none; }
.pager a:hover span:last-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.pager-next { text-align: right; }
.pager-dir { font-size: var(--small); color: var(--soft); }

/* ---------- about, contact, legal ---------- */
.page-about, .page-contact, .page { display: grid; gap: clamp(40px, 6vw, 72px); }
.page-about, .page-contact, .page:not(.page-works):not(.page-work) { padding-top: clamp(24px, 5vw, 72px); }
.subnav { display: flex; gap: 18px; font-size: var(--small); }
.subnav a { color: var(--soft); }
.subnav a[aria-current="page"] { color: var(--ink); text-decoration-color: currentColor; }
.bio { display: grid; gap: 28px; }
.portrait { display: block; max-width: 240px; }
.contact { display: grid; gap: 8px; }
/* email and social links share one size and weight */
.contact-mail, .contact p + p { font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; overflow-wrap: anywhere; }

/* ---------- cover ---------- */
/* One object in an empty field. It is kept at a modest size and set slightly
   left of centre and a little above the middle of the screen. The cover takes the whole first screen, so no work
   shows until the visitor scrolls or uses the menu. */
.cover {
  height: calc(100vh - 56px); height: calc(100svh - 56px);
  min-height: 300px;
  margin-bottom: var(--gap);
  display: grid; align-items: center; justify-items: center;
  padding: 0 var(--gutter) 6vh;
}
.cover-image { display: block; width: clamp(190px, 27vw, 400px); cursor: pointer; position: relative; left: -3.5vw; }
.cover-image img { width: 100%; mix-blend-mode: multiply; }
@media (max-width: 720px) {
  .cover { padding-bottom: 9vh; }
  .cover-image { width: 62vw; left: 3vw; }
}
.page-works:has(.cover) { padding-top: 0; gap: 0; }
.site-head.on-cover .site-name { visibility: hidden; }   /* the chip carries the name */

/* ---------- footer ---------- */
.site-foot {
  display: grid; grid-template-columns: var(--label) minmax(0, 1fr) auto; gap: 20px var(--gutter);
  margin-top: var(--gap); padding: 20px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  font-size: var(--small);
}
.foot-col { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.foot-end { align-items: flex-end; }
@media (max-width: 720px) { .site-foot { grid-template-columns: minmax(0, 1fr); } .foot-end { align-items: flex-start; } }
