@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: 'Inter';
  src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-wght-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  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: 'Inter';
  src: url('/fonts/inter-latin-ext-wght-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  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;
}

/* Only used by the home page intro. */
@font-face {
  font-family: 'EB Garamond';
  src: url('/fonts/EBGaramond.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Swap the typeface here. */
  --font: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
  --bg: #ffffff;
  --ink: #1a1917;
  --muted: #8a867e;
  --line: #ececec;
  --pad: clamp(20px, 4vw, 56px);
  --gap: clamp(8px, 1.2vw, 18px);
  --space: clamp(48px, 9vw, 128px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
p a { border-bottom: 1px solid var(--line); }
img { display: block; width: 100%; height: auto; background: var(--line); }
h1, h2 { font-weight: 400; margin: 0; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--pad);
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; }
.wordmark .icon { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--line); }
.site-footer { padding: var(--space) var(--pad) 32px; font-size: 12px; letter-spacing: 0.02em; color: var(--muted); text-align: center; }
.empty { text-align: center; color: var(--muted); padding: 18vh var(--pad); }
.preview-note { text-align: center; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* Home intro: heading and drawing share the width equally, at every screen size. */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(16px, 4vw, 64px);
  max-width: 1500px;
  margin-inline: auto;
  padding: 0 var(--pad) 84px; /* bottom padding mirrors the header, so the content sits at the true centre */
  /* Together with the 84px header the intro takes 80% of the screen, so the albums peek in below it. */
  min-height: calc(80vh - 84px);
  min-height: calc(80svh - 84px);
}
.intro h1 {
  font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
  font-size: clamp(24px, 4vw, 64px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
/* The drawing is small (574px wide), so it sits centred in its half at a size where it stays sharp. */
.intro img { background: none; mix-blend-mode: multiply; width: min(100%, 320px); justify-self: center; }

/* Home */
.albums {
  list-style: none;
  margin: 0;
  padding: clamp(24px, 6vw, 80px) var(--pad) 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 7vw, 110px) clamp(24px, 5vw, 80px);
  max-width: 1500px;
  margin-inline: auto;
}
/* Album thumbnail: a small collage of its photographs (cover first). */
.albums .cover { aspect-ratio: 3 / 2; overflow: hidden; display: grid; gap: 4px; grid-template-columns: 1fr; grid-template-rows: 1fr; transition: opacity 0.4s; }
.albums .cover.n0 { background: var(--line); }
.albums .cover.n2 { grid-template-columns: 1fr 1fr; }
.albums .cover.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.albums .cover.n3 img:first-child { grid-row: 1 / 3; }
.albums .cover.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.albums .cover img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.albums a:hover .cover { opacity: 0.86; }
.albums h2 { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; margin-top: 16px; line-height: 1.25; }
.albums .count { font-size: 13px; color: var(--muted); }

/* Album */
.album-head { text-align: center; padding: clamp(40px, 9vw, 120px) var(--pad) clamp(40px, 7vw, 96px); }
.album-head h1 { font-size: clamp(34px, 6vw, 72px); font-weight: 500; line-height: 1.05; letter-spacing: -0.035em; }
.folder-head { padding-bottom: clamp(8px, 2vw, 24px); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { margin: 0 0.6em; }
.album-desc { max-width: 34em; margin: 24px auto 0; color: var(--muted); }
.album-desc p { margin: 0 0 0.8em; }

.block { margin: 0 auto var(--gap); }
.block.text, .block.split { margin-block: var(--space); }
.photo { margin: 0; min-width: 0; cursor: zoom-in; }
.photo figcaption { font-size: 13px; color: var(--muted); padding: 10px 2px 0; line-height: 1.4; }
.cap-title { font-style: normal; color: var(--ink); margin-right: 0.6em; }

.row { display: flex; gap: var(--gap); align-items: flex-start; justify-content: center; }
/* A photograph on its own never grows taller than the screen. */
.row:not(.w-full) .photo:only-child, .split-photo .photo { max-width: calc(90vh * var(--ar)); }
.split-photo .photo { margin-inline: auto; }
.row.w-wide { max-width: 1600px; padding-inline: var(--pad); }
.row.w-narrow { max-width: calc(760px + 2 * var(--pad)); padding-inline: var(--pad); margin-block: var(--space); }
.row.w-narrow.align-left { margin-left: max(0px, calc((100vw - 1600px) / 2)); }
.row.w-narrow.align-right { margin-right: max(0px, calc((100vw - 1600px) / 2)); }

.text { max-width: calc(32em + 2 * var(--pad)); padding-inline: var(--pad); font-size: 18px; }
.text.align-center { text-align: center; }
.text.align-right { text-align: right; }
.text.align-left { margin-left: max(0px, calc((100vw - 1600px) / 2)); }
.text.align-right { margin-right: max(0px, calc((100vw - 1600px) / 2)); }
.text h2, .split h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 0.5em; }
.text p, .split p { margin: 0 0 1em; }

.split { display: flex; align-items: center; gap: clamp(28px, 6vw, 96px); max-width: 1600px; padding-inline: var(--pad); }
.split.flip { flex-direction: row-reverse; }
.split-photo { flex: 1.4; min-width: 0; }
.split-photo .photo { flex: none !important; }
.split-text { flex: 1; max-width: 26em; }

@media (max-width: 700px) {
  body { font-size: 16px; }
  .albums { grid-template-columns: 1fr; }
  .row, .split, .split.flip { flex-direction: column; }
  .row .photo { flex: none !important; width: 100%; }
  .split-photo { width: 100%; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 10;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 16px 20px;
}
.lightbox[hidden] { display: none; }
.lightbox img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; background: none; }
.lightbox .lb-caption { min-height: 54px; padding-top: 14px; text-align: center; font-size: 14px; max-width: 46em; line-height: 1.4; }
.lightbox .lb-desc { color: var(--muted); }
.lightbox .lb-meta { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--muted); cursor: pointer;
  font-family: var(--font); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding: 18px var(--pad);
}
.lightbox button:hover { color: var(--ink); }
.lb-close { top: 8px; right: 0; }
.lb-prev { left: 0; top: 0; bottom: 0; width: 22vw; text-align: left; cursor: w-resize !important; }
.lb-next { right: 0; top: 60px; bottom: 0; width: 22vw; text-align: right; cursor: e-resize !important; }
.lb-count { position: absolute; top: 26px; left: var(--pad); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }

