/* Jacob van Doorn - site styles.
   Colours and type are the tokens below: change them here. The recent-work area (recent.html
   and the home-page band) is the same site on black, by way of the .dark tokens further down. */
:root {
  --paper: #ffffff;
  --card: #f3f2ef;
  --ink: #171614;
  --muted: #6e6a64;
  --caption: #3b3834;       /* captions under images: darker than muted on white (Anthony, 1 Nov) */
  --line: #e2e0db;
  --accent: #8a6b3d;        /* bronze: eyebrows, focus rings, small details */
  --accent-deep: #6f5530;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --wide: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- Header -------------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px 40px;
  flex-wrap: wrap;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 26px var(--gutter);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  font: 400 24px/1.1 var(--display);
  letter-spacing: .01em;
}
.logo .mark { height: 46px; width: auto; flex: none; }
.site-footer .logo .mark { height: 28px; }
.logo small {
  display: block;
  margin-top: 5px;
  font: 500 11px/1.4 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav { display: flex; flex-wrap: wrap; gap: 6px clamp(18px, 3vw, 32px); }
.nav a {
  font: 500 13px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---- Common blocks --------------------------------------------------------- */
.section { max-width: var(--wide); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter); }
.section.narrow { max-width: 760px; }
.section.tight { padding-top: clamp(32px, 5vw, 64px); }
.center { text-align: center; }
.intro { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.eyebrow {
  margin: 0 0 16px;
  font: 500 11px/1.4 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 5.2vw, 58px); }
h2 { font-size: clamp(28px, 3.8vw, 40px); }
h3 { font-size: 24px; font-weight: 400; }
p { margin: 0 0 18px; }
.lead { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2vw, 24px); line-height: 1.45; }
cite { font-style: italic; }

/* Text still to come from Jacob */
.tbc { color: var(--muted); font-style: italic; }
.tbc::before {
  content: "To follow";
  display: inline-block;
  margin-right: 10px;
  padding: 2px 8px;
  font: 500 10px/1.7 var(--sans);
  font-style: normal;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  vertical-align: 3px;
}

.button {
  display: inline-block;
  padding: 15px 30px;
  font: 500 12px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
}
.button:hover { opacity: .88; }
.button.ghost { color: var(--ink); background: transparent; }
.button.ghost:hover { color: var(--paper); background: var(--ink); opacity: 1; }
.text-link {
  font: 500 12px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
}
.text-link:hover { color: var(--accent-deep); }

/* ---- Hero ---------------------------------------------------------------- */
.hero { max-width: var(--wide); margin: 0 auto; padding: clamp(24px, 4vw, 56px) var(--gutter) 0; }
.hero img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--card); }
.hero figcaption { padding-top: 12px; font: 400 15px/1.6 var(--sans); color: var(--caption); }
/* a single painting at the top of the home page: shown whole, centred, inside the thin black line */
.hero.painting { text-align: center; }
.hero.painting img {
  width: auto;
  max-width: 100%;
  max-height: 76vh;
  aspect-ratio: auto;
  object-fit: initial;
  margin: 0 auto;
  background: var(--paper);
  padding: clamp(10px, 1.4vw, 16px);
  border: 2px solid var(--ink);
}

/* ---- Gallery ------------------------------------------------------------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { margin: 0; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head .text-link { margin-bottom: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(32px, 4vw, 56px) 32px; }
.work { margin: 0; }
/* each work hangs in a 4:5 space, so mixed proportions sit in a calm row */
.work-open {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}
.work-open img {
  display: block;
  max-width: 92%;
  max-height: 92%;
  width: auto;
  height: auto;
  background: var(--paper);                 /* on the white pages: a thin black line... */
  padding: clamp(10px, 1.4vw, 16px);        /* ...with white between it and the painting */
  border: 2px solid var(--ink);
  transition: transform .35s ease;
}
.work-open:hover img { transform: scale(1.015); }
.work figcaption { padding-top: 14px; text-align: center; }
.work-title { display: block; font: 400 20px/1.3 var(--display); }
.work-meta { display: block; margin-top: 4px; font: 400 15px/1.6 var(--sans); color: var(--caption); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 44px; }
.filters[hidden] { display: none; }   /* one collection needs no filter */
.filters button {
  padding: 10px 16px;
  font: 500 12px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}
.filters button:hover { color: var(--ink); border-color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }

/* ---- Collection tiles ---------------------------------------------------- */
/* auto-fill keeps empty columns, so a single collection takes one column, not the whole row */
.series { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 32px; }
.series a { display: block; text-decoration: none; }
.series img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  background: var(--paper); padding: clamp(10px, 1.4vw, 16px); border: 2px solid var(--ink);
  transition: opacity .25s;
}
.series a:hover img { opacity: .9; }
.series span { display: block; margin-top: 14px; font: 400 22px/1.3 var(--display); }
.series small { display: block; font: 400 13px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--caption); }

/* ---- Bands --------------------------------------------------------------- */
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band + .band { border-top: 0; }

/* ---- Dark area: recent work on black, each work in a white frame ----------- */
.dark {
  --paper: #000000;
  --card: #111111;
  --ink: #f3f1ec;
  --muted: #a39e95;
  --caption: #a39e95;
  --line: #262626;
  --accent: #c9a86a;
  --accent-deep: #e0c28a;
  background: var(--paper);
  color: var(--ink);
}
.band.dark { background: var(--paper); border-color: var(--line); }
.dark .work-open img {
  background: #000;                         /* a black gap between the painting... */
  border-color: #fff;                       /* ...and a thin white line around it */
}
.dark .photo-slot { border-color: #333; }

/* ---- Exhibition notice --------------------------------------------------- */
.show { max-width: 760px; margin: 0 auto; text-align: center; }
.show h2 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 14px; }
.show .lead { margin-bottom: 12px; }
.show .text-link { display: inline-block; margin-top: 6px; }
.cv strong { font-weight: 500; }
/* photographs of the show: the wide one across the top, the two upright ones beneath */
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0 32px; }
.photos figure { margin: 0; }
.photos .wide { grid-column: 1 / -1; }
.photos img { display: block; width: 100%; background: var(--card); }
.photos figcaption { padding-top: 8px; font: 400 15px/1.6 var(--sans); color: var(--caption); }

/* ---- Film ---------------------------------------------------------------- */
.film { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-play { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.video-play img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .25s; }
.video-play:hover img { opacity: 1; }
.video-icon {
  position: absolute; inset: 0; margin: auto;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  border: 2px solid #fff;
  pointer-events: none;
}
.video-icon::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-40%, -50%);
  border-left: 24px solid #fff;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

/* ---- About --------------------------------------------------------------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.photo-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  padding: 24px;
  text-align: center;
  font: 500 12px/1.6 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--card);
  border: 1px dashed #c9c4b8;
}
.portrait { margin: 0; }
/* the portrait's top edge sits level with the top of the capital J beside it: the heading's
   line box starts above its letters, so the portrait is pushed down by that amount */
.about .portrait { padding-top: .65em; }
.about h1 { margin-top: 0; }
.portrait img { display: block; width: 100%; box-shadow: 0 14px 34px rgba(23, 22, 20, .14); }
.portrait figcaption { padding-top: 10px; font: 400 15px/1.6 var(--sans); color: var(--caption); }
.about h2 { margin-top: 48px; font-size: clamp(24px, 3vw, 30px); }
.cv { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.cv li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cv .year { font: 400 14px/1.7 var(--sans); color: var(--muted); }
.pull { margin: 28px 0; padding-left: 22px; border-left: 2px solid var(--accent); font: 300 clamp(22px, 2.2vw, 26px)/1.35 var(--display); font-style: italic; }
.pull p { margin: 0; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .section { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; }
.site-footer .logo { font-size: 18px; }
.site-footer p { margin: 0; font: 400 13px/1.8 var(--sans); color: var(--muted); }
.site-footer a { color: var(--ink); }

/* ---- Lightbox ------------------------------------------------------------ */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(10, 10, 10, .97);
  color: #f1efe9;
}
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: rgba(10, 10, 10, .97); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 18px; padding: 56px 0 24px; max-height: 100dvh; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 210px); width: auto; object-fit: contain; }
.lightbox img { background: #000; padding: clamp(10px, 1.2vw, 16px); border: 2px solid #fff; }
.lightbox figcaption { text-align: center; }
.lightbox .tbc { color: #b3aea4; }
.lightbox .tbc::before { color: #c9a86a; border-color: #c9a86a; }
.lb-title { display: block; font: 400 24px/1.3 var(--display); }
.lb-meta { display: block; margin: 4px 0 14px; font: 400 12px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #b3aea4; }
.lb-enquire { font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; text-decoration: none; border-bottom: 1px solid #fff; padding-bottom: 4px; }
.lightbox button { background: none; border: 0; color: #f1efe9; cursor: pointer; font-family: var(--sans); }
.lb-prev, .lb-next { font-size: 54px; line-height: 1; height: 100%; opacity: .7; }
.lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { position: absolute; top: 12px; right: 18px; font-size: 40px; line-height: 1; opacity: .8; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header .inner { justify-content: center; text-align: center; }
  .nav { justify-content: center; }
  .about, .film, .photos { grid-template-columns: 1fr; }
  .photo-slot { aspect-ratio: 3 / 2; }
  .lightbox[open] { grid-template-columns: 40px 1fr 40px; }
  .lb-prev, .lb-next { font-size: 40px; }
}
