/* Andrei Pinter Photography
   Black is the viewing wall, the photographs supply the colour, and each place lends its own accent. */
/* Fonts are served from this site (SIL Open Font License, see fonts/) */
@font-face { font-family: "Big Shoulders Display"; src: url(fonts/big-shoulders-display.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
:root {
  --night: #000;
  --paper: #eeece6;
  --ash: #9a978f;
  --smoke: #171716;
  --line: rgba(238, 236, 230, .14);
  --accent: #e0c285;
  --pad: clamp(16px, 4vw, 56px);
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { background: var(--night); color: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--night); font: 400 1.0625rem/1.6 var(--serif); font-optical-sizing: auto; }
a { color: inherit; }
img { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 99; background: var(--paper); color: #000; padding: 8px 12px; }
.skip:focus { top: 12px; }
#view:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 120px var(--pad); }

/* ---------- top bar ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: max(18px, env(safe-area-inset-top)) var(--pad) 18px; transition: background-color .4s, backdrop-filter .4s; }
.bar.solid { background: rgba(0, 0, 0, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.name { font: 700 1.45rem/1 var(--display); letter-spacing: .01em; text-decoration: none; }
.bar nav { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.bar nav a { font-size: 1rem; text-decoration: none; color: rgba(238, 236, 230, .78); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.bar nav a:hover { color: var(--paper); }
.bar nav a[aria-current="page"] { color: var(--paper); border-color: var(--accent); }

/* ---------- home: the place index over a full-bleed photograph ---------- */
.stage { position: fixed; inset: 0; z-index: 0; background: #000; visibility: hidden; }
body.home .stage { visibility: visible; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05);
  transition: opacity 1.3s var(--ease), transform 8s var(--ease); }
.stage img.on { opacity: 1; transform: scale(1); }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.74) 0%, rgba(0,0,0,.42) 30%, rgba(0,0,0,0) 60%),
              linear-gradient(0deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,0) 26%),
              linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 14%); }

.index { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 92px var(--pad) 150px; }
.index ol { list-style: none; margin: 0; padding: 0; }
.index li { line-height: .9; }
.place { display: inline-flex; align-items: flex-start; gap: .14em; text-decoration: none;
  font-family: var(--display); font-size: clamp(2.5rem, min(6.4vh, 9vw), 6.6rem); font-weight: 250; letter-spacing: .004em;
  color: rgba(238, 236, 230, .5); text-shadow: 0 1px 28px rgba(0, 0, 0, .45); transition: color .5s var(--ease), font-weight .5s var(--ease); }
.place .n { font-size: .27em; font-weight: 500; letter-spacing: .04em; line-height: 1; margin-top: .42em; font-variant-numeric: tabular-nums; opacity: .85; }
.place.on, .place:focus-visible { color: var(--accent); font-weight: 780; }
.place:focus-visible { outline-offset: 6px; }
body.intro .index li { opacity: 0; }
body.lit .index li { opacity: 1; transition: opacity .9s var(--ease); transition-delay: calc(var(--i) * 55ms + 250ms); }

.wall { position: fixed; z-index: 2; right: var(--pad); bottom: max(26px, env(safe-area-inset-bottom)); max-width: 24rem; text-align: right; pointer-events: none; }
.wall p { margin: 0; }
.wall .t { font-size: 1.06rem; line-height: 1.35; }
.wall .s { font-size: .9rem; color: rgba(238, 236, 230, .7); }
.wall .go { pointer-events: auto; display: inline-block; margin-top: 10px; font-size: .95rem; text-decoration: none; border-bottom: 1px solid var(--accent); }

/* ---------- place page ---------- */
.cover { position: relative; height: min(84vh, 980px); min-height: 440px; overflow: hidden; background: var(--c, #111); }
.cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s var(--ease); }
.cover img.in { opacity: 1; }
.cover::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, #000 0%, rgba(0,0,0,.5) 26%, rgba(0,0,0,0) 58%), linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 18%); }
.ptitle { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: .02em; margin: 0;
  font: 800 clamp(4rem, 14vw, 14.5rem)/.8 var(--display); letter-spacing: -.004em; color: var(--paper); overflow-wrap: anywhere; }
.pmeta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; padding: 30px var(--pad) 0; color: var(--ash); }
.pmeta .count { color: var(--paper); font-size: 1.12rem; }
.coords { font: 500 1rem/1 var(--display); letter-spacing: .07em; color: var(--accent); }
.cities { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 18px var(--pad) 0; margin: 0; list-style: none; }
.cities button { font-size: 1rem; color: var(--ash); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.cities button:hover { color: var(--paper); }
.cities button[aria-pressed="true"] { color: var(--paper); border-color: var(--accent); }
.cities .k { font: 500 .8em var(--display); letter-spacing: .05em; margin-left: .35em; opacity: .8; }

.grid { padding: 22px var(--pad) 10px; }
.row { display: flex; gap: 6px; margin-bottom: 6px; }
.tile { display: block; flex: none; position: relative; overflow: hidden; background: var(--c, #151515); }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease); }
.tile img.in { opacity: 1; }
.tile:focus-visible { outline-offset: -3px; }

.next { display: block; text-decoration: none; padding: 14vh var(--pad) 12vh; }
.next small { display: block; font: italic 400 1.05rem var(--serif); color: var(--ash); margin-bottom: .3em; }
.next b { display: block; font: 250 clamp(3.2rem, 11vw, 10rem)/.85 var(--display); color: rgba(238,236,230,.55); transition: color .5s var(--ease), font-weight .5s var(--ease); }
.next:hover b, .next:focus-visible b { color: var(--accent); font-weight: 780; }

/* ---------- all photographs ---------- */
.page-head { padding: 132px var(--pad) 8px; }
.page-head h1 { margin: 0; font: 800 clamp(3.4rem, 10vw, 9rem)/.85 var(--display); letter-spacing: -.004em; }
.page-head p { margin: 30px 0 0; color: var(--ash); max-width: 38rem; }
.year { display: flex; align-items: baseline; gap: 18px; padding: 56px var(--pad) 0; margin: 0; font: 300 clamp(2.4rem, 6vw, 4.6rem)/1 var(--display); }
.year small { font: 400 1rem var(--serif); color: var(--ash); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); padding: 140px var(--pad) 40px; align-items: start; }
.about .lede { font-size: clamp(1.45rem, 2.4vw, 2.05rem); line-height: 1.38; font-weight: 300; margin: 0 0 1.2em; max-width: 30ch; }
.about p { max-width: 36rem; }
.about blockquote { margin: 2.2em 0 0; font-style: italic; font-size: 1.2rem; color: rgba(238,236,230,.85); }
.about blockquote cite { display: block; margin-top: .4em; font-style: normal; font-size: .95rem; color: var(--ash); }
.figures { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 40px; margin: 0 0 40px; }
.figures div { display: flex; flex-direction: column; }
.figures dt { order: 2; color: var(--ash); font-size: .95rem; }
.figures dd { order: 1; margin: 0; font: 700 clamp(2.6rem, 5vw, 4rem)/1 var(--display); }
.about h2 { font: 600 1.5rem/1.2 var(--display); letter-spacing: .02em; margin: 2.2em 0 .6em; }
.about h2:first-child { margin-top: 0; }
.links { list-style: none; margin: 0; padding: 0; }
.links li { border-top: 1px solid var(--line); }
.links li:last-child { border-bottom: 1px solid var(--line); }
.links a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; text-decoration: none; }
.links a span:last-child { color: var(--ash); font-size: .92rem; }
.links a:hover span:first-child { color: var(--accent); }
.about .portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--c, #111); margin-bottom: 22px; }

footer.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 28px var(--pad) max(32px, env(safe-area-inset-bottom)); color: var(--ash); font-size: .92rem; border-top: 1px solid var(--line); }
footer.foot nav { display: flex; gap: 22px; }
footer.foot a { text-decoration: none; }
footer.foot a:hover { color: var(--paper); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 60; background: #000; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lb[hidden] { display: none; }
.lb-frame { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0;
  padding: max(20px, env(safe-area-inset-top)) clamp(8px, 6vw, 96px) 6px; touch-action: pan-y; }
.lb-frame img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; opacity: 0; transition: opacity .45s var(--ease); background: var(--c, #0d0d0d); }
.lb-frame img.in { opacity: 1; }
.lb-nav { position: absolute; top: 0; bottom: 0; width: clamp(48px, 7vw, 96px); display: flex; align-items: center; justify-content: center; color: rgba(238,236,230,.7); transition: opacity .4s, color .2s; }
.lb-nav:hover { color: var(--paper); }
.lb-nav svg { width: 18px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.lb-prev { left: 0; } .lb-next { right: 0; }
.lb.idle .lb-nav { opacity: 0; }
.lb-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 10px 36px; padding: 14px var(--pad) max(18px, env(safe-area-inset-bottom)); }
.lb-label p { margin: 0; }
.lb-title { font-size: 1.12rem; line-height: 1.3; }
.lb-sub { font-size: .93rem; color: var(--ash); }
.lb-gear { text-align: right; font-size: .86rem; line-height: 1.45; color: var(--ash); }
.lb-gear span { display: block; }
.lb-tools { display: flex; align-items: baseline; gap: 22px; }
.lb-count { font: 500 1rem var(--display); letter-spacing: .06em; color: var(--ash); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-close { font-size: 1rem; border-bottom: 1px solid var(--accent); padding: 2px 0; }
body.lb-open { overflow: hidden; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .bar { padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: 14px; }
  .name { font-size: 1.25rem; }
  .bar nav { gap: 14px; }
  .bar nav a { font-size: .92rem; }
  .bar nav a[data-nav="all"] .long { display: none; }
  body.home { overflow: hidden; }
  .index { position: fixed; inset: 0; display: block; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain;
    padding: 46svh var(--pad) 50svh;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 70%, transparent 84%);
            mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 70%, transparent 84%); }
  .index li { line-height: 1.02; scroll-snap-align: center; }
  .place { font-size: clamp(2.6rem, 12.5vw, 4rem); }
  .wall { left: var(--pad); right: var(--pad); text-align: left; max-width: none; }
  .cover { height: 64vh; min-height: 360px; }
  .about { grid-template-columns: 1fr; padding-top: 110px; }
  .figures { gap: 8px 28px; }
  .lb-bar { grid-template-columns: 1fr auto; }
  .lb-gear { display: none; }
  .lb-nav { display: none; }
  .lb-frame { padding: max(12px, env(safe-area-inset-top)) 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .stage img { transform: none; }
}
