@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfaf8;
  --ink: #1b1a19;
  --muted: #77716a;
  --line: #e6e1da;
  --mat: #f1eee9;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --shadow: 0 1px 2px rgba(30, 25, 20, .08), 0 14px 30px -18px rgba(30, 25, 20, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p a, .prose a { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
em { font-style: italic; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* ---------- header / footer */
header.site {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  padding: 1.6rem var(--pad);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
}
header.site .name {
  font-family: var(--serif); font-size: 1.75rem; font-weight: 500; letter-spacing: .01em;
}
header.site nav { display: flex; gap: clamp(1rem, 2.5vw, 2.2rem); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
header.site nav a { color: var(--muted); transition: color .2s; white-space: nowrap; }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--ink); }
header.site nav .lang { color: var(--ink); }

footer.site {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: 8rem; padding: 2rem var(--pad) 2.5rem;
  border-top: 1px solid var(--line);
  font-size: .78rem; letter-spacing: .06em; color: var(--muted);
}
footer.site a:hover { color: var(--ink); }

main { padding: 0 var(--pad); }

/* ---------- wall labels */
.label { display: flex; flex-direction: column; gap: .1rem; font-size: .8rem; color: var(--muted); }
.label .t { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink); line-height: 1.3; }
.label .n { font-size: .75rem; }

/* ---------- home */
/* Home and About: the header floats over a full-bleed close-up of a painting. */
.overlay header.site { position: absolute; inset: 0 0 auto; background: none; backdrop-filter: none; }
.overlay header.site .name { color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.home header.site .name { visibility: hidden; }
.overlay header.site nav a { color: rgba(255, 255, 255, .85); text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.overlay header.site nav a:hover, .overlay header.site nav a[aria-current] { color: #fff; }

.hero {
  position: relative; overflow: hidden;
  height: 100svh; min-height: 520px;
  margin: 0 calc(-1 * var(--pad));
  color: #fff; background: #2a2622;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {             /* keeps the white type readable over any painting */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(15, 12, 10, .62) 0%, rgba(15, 12, 10, .18) 45%, rgba(15, 12, 10, 0) 70%),
    linear-gradient(to bottom, rgba(15, 12, 10, .28), rgba(15, 12, 10, 0) 22%);
}
.hero-text {
  position: absolute; z-index: 1; left: var(--pad); right: var(--pad); bottom: clamp(4.5rem, 12vh, 8rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero h1 { font-size: clamp(3.4rem, 9vw, 8.5rem); font-weight: 500; line-height: .95; letter-spacing: -.01em; }
.hero .tagline {
  margin: 1.2rem 0 0; max-width: 32ch;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.9rem); line-height: 1.3;
}
.hero-credit, .hero-down {
  position: absolute; z-index: 1; bottom: 1.8rem;
  font-size: .75rem; letter-spacing: .08em; color: rgba(255, 255, 255, .8);
}
.hero-credit { right: var(--pad); }
.hero-credit em { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0; }
.hero-down { left: var(--pad); text-transform: uppercase; letter-spacing: .16em; }
.hero-short { height: 62svh; min-height: 420px; }
.hero-short .hero-text { bottom: clamp(3.5rem, 9vh, 6rem); }
.hero-credit:hover, .hero-down:hover { color: #fff; }

.series-index { padding-top: 5rem; }
.series-index h2, .about h2 {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2.5rem;
}
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 4rem 2.5rem; }
.tile { display: grid; gap: .25rem; }
.tile .mat {
  aspect-ratio: 4 / 5; background: var(--tint, var(--mat));
  display: flex; align-items: center; justify-content: center;
  padding: 14%; margin-bottom: 1rem; overflow: hidden;
}
.tile .mat img {
  max-height: 100%; width: auto; object-fit: contain; box-shadow: var(--shadow);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.tile:hover .mat img { transform: scale(1.035); }
.tile-t { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; }
.tile-m { font-size: .78rem; letter-spacing: .06em; color: var(--muted); }

.teaser { max-width: 46rem; margin: 10rem auto 0; text-align: center; }
.teaser blockquote { margin: 0 0 2rem; }
.teaser p { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.45; margin: 0; }
.more { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: .2rem; }

/* ---------- series pages */
.subnav {
  display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; padding: .5rem 0 0;
  font-size: .78rem; letter-spacing: .08em; color: var(--muted);
}
.subnav a:hover, .subnav a[aria-current] { color: var(--ink); }
.subnav a[aria-current] { border-bottom: 1px solid var(--ink); }

.series-head { max-width: 46rem; padding: 6rem 0 5rem; }
.series-head h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.series-head .years { margin: .6rem 0 2rem; font-size: .8rem; letter-spacing: .14em; color: var(--muted); }
.series-head .intro { font-size: 1.02rem; max-width: 40rem; margin: 0; }

.works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 5rem clamp(2rem, 4vw, 4.5rem);
  align-items: end;
}
.works figure { margin: 0; display: grid; gap: 1.1rem; scroll-margin-top: 8rem; }
.works .frame {
  aspect-ratio: 1; display: flex; align-items: flex-end; justify-content: center;
  cursor: zoom-in;
}
.works .frame img {
  max-height: 100%; width: auto; max-width: 100%;
  box-shadow: var(--shadow);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s;
}
.works .frame:hover img { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(30,25,20,.08), 0 24px 40px -22px rgba(30,25,20,.45); }
.works figcaption { text-align: center; }

/* ---------- lightbox */
dialog.lb {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--ink);
}
dialog.lb[open] { display: grid; place-items: center; animation: fade .25s ease; }
dialog.lb::backdrop { background: transparent; }
dialog.lb figure { margin: 0; display: grid; gap: 1.2rem; justify-items: center; padding: 4rem 5rem 3rem; }
dialog.lb img {
  max-width: calc(100vw - 10rem); max-height: calc(100vh - 12rem);
  width: auto; height: auto; box-shadow: var(--shadow);
  transition: opacity .25s;
}
dialog.lb img.loading { opacity: .25; }
dialog.lb figcaption { text-align: center; }
dialog.lb button {
  position: fixed; background: none; border: 0; padding: 1rem; cursor: pointer;
  font: 300 1.8rem/1 var(--sans); color: var(--muted); transition: color .2s;
}
dialog.lb button:hover { color: var(--ink); }
.lb-close { top: .8rem; right: 1.2rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: fixed; top: 1.9rem; left: 2rem; font-size: .75rem; letter-spacing: .12em; color: var(--muted); }
@keyframes fade { from { opacity: 0; } }

/* ---------- about */
.about {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: start; padding: 7rem 0 8rem;
}
.prose { max-width: 38rem; }
.prose p { margin: 0 0 1.2rem; font-size: 1.02rem; }
.portrait { margin: 0; display: grid; gap: 1rem; max-width: 34rem; justify-self: end; }
.portrait img { width: 100%; box-shadow: var(--shadow); }

/* Full-bleed colour bands */
.band { margin: 0 calc(-1 * var(--pad)); padding: clamp(5rem, 10vw, 8rem) var(--pad); }
.band h2 {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  margin: 0 0 2.5rem;
}
.band-ink { --ink-bg: #1f2a44; background: var(--ink-bg); color: #efe8dc; }
.band-ink h2, .band-ink .sig { color: #a9b3c9; }
.band-dark { background: #1d1b19; color: #efe8dc; }
.band-dark h2, .band-dark p { color: #a49d94; }

.statement { display: grid; justify-items: center; text-align: left; }
.statement h2 { justify-self: center; }
.statement .pull {
  max-width: 22ch; margin: 0 0 4rem; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.1;
}
.statement .prose { max-width: 42rem; }
.statement .prose p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.55; }
.statement .sig { font-style: italic; font-size: 1.2rem; }

.contact {
  display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem); align-items: center; justify-content: center;
}
.contact > img { width: 100%; filter: grayscale(1) contrast(1.05); }
.contact h2 { margin-bottom: 1.2rem; }
.contact p { margin: 0 0 .5rem; }
.contact .mail { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 3rem); color: #efe8dc; }
.contact .mail a { border-bottom: 1px solid rgba(239, 232, 220, .3); }
.contact .mail a:hover { border-color: #efe8dc; }
.about-page footer.site {
  margin-top: 0; background: #1d1b19; color: #8a847c; border-top-color: rgba(255, 255, 255, .1);
}
.about-page footer.site a:hover { color: #efe8dc; }

/* ---------- small screens */
@media (max-width: 760px) {
  header.site { flex-direction: column; align-items: flex-start; gap: .4rem; padding-block: 1.1rem; }
  header.site .name { font-size: 1.5rem; }
  .home header.site { flex-direction: row; justify-content: flex-end; }
  .hero { height: 88svh; }
  .hero-credit { right: auto; left: var(--pad); bottom: 1.4rem; }
  .hero-down { display: none; }
  .about { grid-template-columns: 1fr; padding: 4rem 0 5rem; }
  .portrait { justify-self: stretch; }
  .contact { grid-template-columns: 1fr; text-align: center; }
  .contact > img { max-width: 16rem; justify-self: center; }
  .works { gap: 4rem; }
  dialog.lb figure { padding: 3.5rem 1rem 2rem; }
  dialog.lb img { max-width: calc(100vw - 2rem); max-height: calc(100svh - 11rem); }
  .lb-prev, .lb-next { top: auto; bottom: .5rem; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
