:root {
  --bg: #000;
  --fg: #e4e6f2;
  --heading: #c4cddc;
  --muted: #8a8f9c;
  --line: #1c1d22;
  --card: #111215;
  --accent: #e8a33d;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --header-h: 64px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fbfaf7;
  --fg: #1b1c20;
  --heading: #2b2e36;
  --muted: #6b6f78;
  --line: #e7e4dd;
  --card: #efece6;
  --accent: #c2761c;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.7 var(--serif);
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s, color .2s;
}
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
img { display: block; max-width: 100%; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--bg); padding: 4px 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-left)); }
@media (min-width: 768px) { .wrap { padding: 0 48px; } }

/* header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(8px);
  transition: transform .3s ease;
}
.site-header.hide { transform: translateY(-100%); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.logo { font: 400 30px/1 var(--serif); text-decoration: none; letter-spacing: -.02em; }
.logo .dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 22px; font: 400 13px/1 var(--sans); }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.theme-toggle { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; margin-left: 4px; display: grid; }
.theme-toggle:hover { color: var(--fg); }

main.wrap { padding-top: calc(var(--header-h) + 40px); min-height: 80vh; }

/* home */
.tagline { font: 400 12px/1.5 var(--sans); letter-spacing: .02em; color: var(--muted); margin: 0 0 56px; }
.year { margin-bottom: 72px; }
.year h2, .related h2 {
  font: 500 15px/1 var(--serif); letter-spacing: .05em; color: var(--heading); margin: 0 0 32px;
}
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
@media (min-width: 900px) { .grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; } }
.thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--card); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s, transform .5s ease; }
.thumb:hover img { opacity: .82; transform: scale(1.02); }

/* page titles */
.crumbs { font: 400 12px/1 var(--sans); color: var(--muted); margin-bottom: 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; color: var(--fg); }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { opacity: .6; }
.page-title { font: 400 32px/1.15 var(--serif); letter-spacing: -.01em; margin: 0 0 24px; color: var(--fg); }
.lede { max-width: 560px; margin: 0 0 48px; }

/* photo page */
.photo-page { margin: 0 auto; width: min(100%, calc(72vh * var(--ratio)), 900px); }
.photo-page h1 { font: 400 22px/1.2 var(--serif); margin: 0 0 14px; }
.photo-page figure { margin: 0; }
.zoom { all: unset; cursor: zoom-in; display: block; width: 100%; }
.zoom img { width: 100%; height: auto; background: var(--card); }
.zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.meta {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 24px;
  font: 400 12px/1.5 var(--sans); margin: 16px 0 0;
}
.meta div:not(.map) { grid-column: 1; display: flex; gap: 10px; }
.meta dt { color: var(--muted); width: 56px; flex: none; }
.meta dd { margin: 0; }
.meta a { text-decoration: none; }
.meta a:hover { text-decoration: underline; }
.meta .map { grid-column: 2; grid-row: 1; }
.meta .map a { color: var(--muted); }
.description { font-size: 15px; color: var(--muted); margin: 24px 0 0; }

.arrow {
  position: fixed; top: 50%; transform: translateY(-50%);
  font: 300 36px/1 var(--sans); color: var(--muted); text-decoration: none;
  padding: 24px 14px; transition: color .15s;
}
.arrow:hover { color: var(--fg); }
.arrow.prev { left: 4px; }
.arrow.next { right: 4px; }
@media (max-width: 700px) {
  .arrow { position: static; transform: none; display: inline-block; padding: 16px 8px; }
}

.related { margin-top: 96px; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.96);
  display: grid; place-items: center; cursor: zoom-out; padding: 20px;
  animation: fade .2s ease;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
@keyframes fade { from { opacity: 0; } }

/* collections */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--card); text-decoration: none; }
.card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); transition: filter .3s, transform .5s; }
.card:hover img { filter: brightness(.85); transform: scale(1.03); }
.card span { position: absolute; left: 12px; bottom: 10px; color: #fff; font: 500 13px/1 var(--sans); }
.card em { position: absolute; right: 12px; bottom: 10px; color: rgba(255,255,255,.7); font: 400 11px/1 var(--sans); font-style: normal; }

/* about / contact */
.prose { max-width: 640px; }
.prose p { margin: 0 0 1.2em; }
.portrait { float: right; width: min(42%, 260px); margin: 4px 0 16px 28px; }
@media (max-width: 600px) { .portrait { float: none; width: 100%; margin: 0 0 24px; } }

/* 404 */
.notfound { text-align: center; padding: 60px 0; }
.notfound .big { font: 400 160px/1 var(--serif); color: var(--line); margin: 0 0 -60px; }
.notfound .lede { margin: 0 auto; }

/* footer */
.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font: 400 12px/1 var(--sans); color: var(--muted);
  padding-top: 64px; padding-bottom: 40px; margin-top: 64px;
}
.footer-links { display: flex; gap: 18px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--fg); }
