/* Archive tab (operator 2026-10-10): photographs in the main column, words (articles, timeline, about) in a
   side tab on the right; on narrow screens the side tab slides in from a handle on the right edge. Tokens follow
   the v3 home page (atelier light: ivory, stone, cordovan, mocha, ink; Newsreader + Hanken Grotesk). */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/versions/v3/fonts/newsreader-latin.woff2") format("woff2");
  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: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/versions/v3/fonts/newsreader-latin-ext.woff2") format("woff2");
  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: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url("/versions/v3/fonts/newsreader-italic-latin.woff2") format("woff2");
  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: "Hanken Grotesk"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("/versions/v3/fonts/hanken-grotesk-latin.woff2") format("woff2");
  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: "Hanken Grotesk"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("/versions/v3/fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  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; }

:root {
  --ivory: #efe9e1;
  --stone: #d8cec1;
  --cordovan: #5b2a2e;
  --mocha: #4b3a30;
  --ink: #1e1a17;
  --muted: #6f625a;
  --panel: #e7dfd4;
  --line: rgba(30, 26, 23, 0.14);
  --edge: rgba(30, 26, 23, 0.24);
  /* the site's two faces carry Latin only; Korean (titles, saved copies) falls to the system's Korean faces */
  --display: "Newsreader", "Noto Serif KR", "AppleMyungjo", Georgia, "Times New Roman", serif;
  --text: "Hanken Grotesk", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --bar-h: 66px;
  --side-w: clamp(340px, 31vw, 460px);
  --gutter: clamp(16px, 3.2vw, 44px);
  color-scheme: light;
}

html { background: var(--ivory); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 15px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
html.side-locked { overflow: hidden; }
img { max-width: 100%; }
a { color: var(--cordovan); text-decoration-thickness: 1px; text-underline-offset: 4px; }
button { font: inherit; color: inherit; }
:where(a, button, [tabindex]):focus-visible { outline: 2px solid var(--cordovan); outline-offset: 3px; }
[hidden] { display: none !important; }

/* header, the home page's menu without its admin tools */
.bar {
  position: sticky; top: 0; z-index: 20; box-sizing: border-box; height: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0; border-bottom: 1px solid var(--line);
  background: rgba(239, 233, 225, 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.brand { color: var(--ink); font: 400 21px/1 var(--display); letter-spacing: 0.06em; text-decoration: none; white-space: nowrap; }
.bar-nav { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.bar-nav::-webkit-scrollbar { display: none; }
.bar-nav a {
  padding: 6px 0; border-bottom: 1px solid transparent; color: var(--ink);
  font: 500 12.5px/1 var(--text); letter-spacing: 0.08em; text-decoration: none; white-space: nowrap;
}
.bar-nav a:hover { color: var(--cordovan); }
.bar-nav a[aria-current="page"] { color: var(--cordovan); border-bottom-color: currentColor; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w); align-items: start; }

/* photographs */
.pictures { min-width: 0; padding: clamp(22px, 2.6vw, 40px) var(--gutter) 96px; }
/* a short head, so the groups below start on the first screen */
.intro h1 {
  margin: 0; max-width: 20em; text-wrap: balance;
  font: 300 clamp(28px, 2.9vw, 42px)/1.08 var(--display); letter-spacing: -0.015em; font-variation-settings: "opsz" 60;
}
.lede { margin: 8px 0 0; max-width: 90ch; color: var(--mocha); font: 400 16.5px/1.55 var(--display); }

.series { margin-top: 30px; scroll-margin-top: calc(var(--bar-h) + 12px); }
.row-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin-bottom: 14px; }
.row-text { min-width: 0; flex: 1 1 22rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.series-title { margin: 0; font: 400 clamp(22px, 2vw, 28px)/1.15 var(--display); letter-spacing: -0.01em; }
.series-blurb { margin: 6px 0 0; max-width: 68ch; color: var(--mocha); font: 400 15px/1.55 var(--display); }
.see-all {
  padding: 9px 14px; border: 1px solid var(--edge); border-radius: 999px; background: transparent; cursor: pointer;
  font: 500 13px/1 var(--text); letter-spacing: 0.02em;
}
.see-all:hover { border-color: var(--ink); }
/* the row: a few photos at one shape, cropped to fill; See all swaps in the whole group at natural shapes */
.row-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 14px; }
.tile.fixed { margin: 0; }
.tile.fixed .tile-frame { aspect-ratio: var(--aspect); }
.tile.fixed .tile-frame img, .tile.fixed .tile-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.motion-video { background: var(--stone); }
.all-grid { margin-top: 2px; }
/* the closing band: the smaller groups beside the list of articles */
.closing-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px 36px; margin-top: 34px; align-items: start; }
.closing-band .series { margin-top: 0; }
.small-grid { margin-top: 12px; max-width: 260px; }
.small-grid .tile { margin-bottom: 0; }
.press-list { margin: 10px 0 0; padding: 0; list-style: none; }
.press-list li + li { border-top: 1px solid var(--line); }
.press-item { display: block; width: 100%; padding: 11px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.press-outlet { display: block; color: var(--muted); font: 500 12px/1.4 var(--text); letter-spacing: 0.01em; }
.press-title { display: block; margin-top: 3px; color: var(--ink); font: 400 17px/1.3 var(--display); text-wrap: pretty; }
.press-item:hover .press-title { color: var(--cordovan); }
.grid { columns: 3 230px; column-gap: 18px; }
.tile { margin: 0 0 22px; break-inside: avoid; }
.tile-button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.tile-frame { position: relative; overflow: hidden; background: var(--stone); }
.tile-frame img { display: block; width: 100%; height: auto; transition: opacity 700ms ease; }
.tile-frame .tile-night {
  position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity 650ms ease var(--delay, 0ms);
}
.tile.is-flash .tile-night { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .tile.has-night .tile-button:hover .tile-night { opacity: 1; transition-delay: 0ms; }
}
.tile-caption { margin: 8px 1px 0; color: var(--muted); font: 400 12.5px/1.4 var(--text); }

/* STARSHOT under a flash: the one moving moment on the page. The section is a full-width panel at all times so
   that only its colours change when the switch is pressed. */
.series.has-flash {
  margin-inline: calc(-1 * var(--gutter)); padding: 20px var(--gutter) 22px;
  transition: background-color 700ms ease, color 700ms ease;
}
.flash-switch {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 15px 9px 11px; border: 1px solid var(--edge);
  border-radius: 999px; background: transparent; cursor: pointer; font: 500 13px/1 var(--text); letter-spacing: 0.02em;
  transition: border-color 700ms ease, color 700ms ease;
}
.flash-switch .bulb {
  width: 10px; height: 10px; border-radius: 50%; background: var(--stone); box-shadow: inset 0 0 0 1px var(--edge);
  transition: background-color 400ms ease, box-shadow 600ms ease;
}
.series.night { background: var(--ink); color: var(--ivory); }
.series.night .series-blurb, .series.night .tile-caption { color: rgba(239, 233, 225, 0.72); }
.series.night .flash-switch { border-color: rgba(239, 233, 225, 0.45); }
.series.night .flash-switch .bulb { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16), 0 0 18px 5px rgba(255, 255, 255, 0.55); }
.series.night .tile-frame { background: #2a2420; }
/* photographs that are not about the light (street and studio shots) step back; flash shots stay lit */
.series.night .tile:not(.has-night, .is-lit) .tile-frame img { opacity: 0.36; }

.load-error { margin-top: 40px; color: var(--cordovan); font: 500 15px/1.5 var(--text); }

/* the side tab */
.side {
  position: sticky; top: var(--bar-h); box-sizing: border-box; display: flex; flex-direction: column;
  height: calc(100vh - var(--bar-h)); height: calc(100dvh - var(--bar-h));
  border-left: 1px solid var(--line); background: var(--panel); outline: none;
}
.side-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 12px clamp(18px, 2vw, 28px) 0; border-bottom: 1px solid var(--line);
}
.side-tabs { display: flex; gap: 22px; }
.side-tabs [role="tab"] {
  margin-bottom: -1px; padding: 12px 0 13px; border: 0; border-bottom: 2px solid transparent; background: none;
  color: var(--muted); cursor: pointer; font: 500 13.5px/1 var(--text); letter-spacing: 0.02em;
}
.side-tabs [role="tab"]:hover { color: var(--ink); }
.side-tabs [aria-selected="true"] { color: var(--ink); border-bottom-color: var(--cordovan); }
.side-tabs [role="tab"] span { margin-left: 3px; color: var(--muted); font-weight: 400; }
.side-close { display: none; }
.side-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px clamp(18px, 2vw, 28px) 56px; }

.article-list { margin: 0; padding: 0; list-style: none; }
.article-list li + li { border-top: 1px solid var(--line); }
.article-item { display: block; width: 100%; padding: 18px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.article-meta { display: block; color: var(--muted); font: 500 12px/1.45 var(--text); letter-spacing: 0.01em; }
.article-title { display: block; margin-top: 6px; color: var(--ink); font: 400 19px/1.25 var(--display); text-wrap: pretty; }
.article-dek { display: block; margin-top: 6px; color: var(--mocha); font: 400 14px/1.5 var(--text); }
.article-item:hover .article-title { color: var(--cordovan); }

.reader { padding: 14px 0 8px; }
.reader-back {
  padding: 8px 0; border: 0; background: none; color: var(--cordovan); cursor: pointer;
  font: 500 12.5px/1 var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.reader-meta { margin: 16px 0 0; color: var(--muted); font: 500 12.5px/1.6 var(--text); }
.reader h2:focus { outline: none; }
.reader h2 { margin: 10px 0 0; text-wrap: balance; font: 400 27px/1.15 var(--display); letter-spacing: -0.01em; }
.reader-dek { margin: 10px 0 0; color: var(--mocha); font: italic 400 17px/1.5 var(--display); }
.reader-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.reader-actions a {
  padding: 10px 14px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink);
  font: 500 13px/1 var(--text); text-decoration: none;
}
.reader-actions a:first-child { background: var(--ink); color: var(--ivory); }
.reader-actions a:hover { border-color: var(--cordovan); }
.reader-actions a:first-child:hover { background: var(--cordovan); color: var(--ivory); }
.reader-body p { max-width: 62ch; margin: 16px 0 0; font: 400 16.5px/1.62 var(--display); }
.reader-quote { margin: 26px 0 0; padding: 2px 0 2px 18px; border-left: 2px solid var(--cordovan); }
.reader-quote blockquote { margin: 0; }
.reader-quote p { margin: 0; font: italic 400 17.5px/1.55 var(--display); }
.reader-quote figcaption { margin-top: 8px; color: var(--muted); font: 500 12px/1.4 var(--text); }
.reader-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 26px; }
.reader-photos button { padding: 0; border: 0; background: var(--stone); cursor: zoom-in; }
.reader-photos img { display: block; width: 100%; height: auto; }
.reader-facts { margin: 26px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; }
.reader-facts li { padding: 3px 0; font: 400 14px/1.5 var(--text); }
.reader-notes p { margin: 10px 0 0; color: var(--muted); font: 400 13px/1.55 var(--text); }
.reader-local { margin: 22px 0 0; color: var(--mocha); font: 400 14px/1.6 var(--text); }
.reader-saved { margin: 10px 0 0; color: var(--muted); font: 400 12.5px/1.5 var(--text); }

.timeline { margin: 0; padding: 14px 0 0 4px; list-style: none; }
.timeline li { position: relative; padding: 0 0 26px 20px; border-left: 1px solid var(--edge); }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before {
  content: ""; position: absolute; left: -4px; top: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--cordovan);
}
.tl-date { color: var(--muted); font: 500 12px/1.4 var(--text); letter-spacing: 0.01em; }
.tl-title { margin: 4px 0 0; font: 400 17px/1.3 var(--display); text-wrap: pretty; }
.tl-detail { margin: 6px 0 0; color: var(--mocha); font: 400 13.5px/1.5 var(--text); }
.tl-links { margin: 8px 0 0; color: var(--muted); font: 400 12.5px/1.65 var(--text); }

.about p { max-width: 62ch; margin: 16px 0 0; font: 400 16px/1.62 var(--display); }
.about h2 { margin: 32px 0 0; color: var(--mocha); font: 500 13px/1.3 var(--text); letter-spacing: 0.02em; }
.about h2 + p { margin-top: 8px; color: var(--mocha); font: 400 14px/1.6 var(--text); }

.side-handle, .side-backdrop { display: none; }

/* photograph viewer */
.viewer {
  box-sizing: border-box; width: min(1120px, 94vw); max-width: none; max-height: 94vh; max-height: 94dvh;
  padding: 0; border: 0; background: var(--ivory); color: var(--ink); overflow: auto;
}
.viewer::backdrop { background: rgba(20, 17, 15, 0.84); }
/* one definite cell, so a tall photo is held to the frame instead of growing the row past the controls */
.viewer-frame {
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; overflow: hidden;
  height: min(76vh, 880px); height: min(76dvh, 880px); background: var(--ink);
}
.viewer-frame img { grid-area: 1 / 1; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-night { opacity: 0; transition: opacity 500ms ease; }
.viewer.is-flash .viewer-night { opacity: 1; }
.viewer-copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 18px 16px; }
.viewer-caption { margin: 0; font: 400 18px/1.35 var(--display); }
.viewer-credit { margin: 4px 0 0; color: var(--muted); font: 400 12.5px/1.5 var(--text); }
.viewer-credit button { padding: 0; border: 0; background: none; color: var(--cordovan); cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.viewer-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.viewer-controls button {
  padding: 9px 13px; border: 1px solid var(--edge); border-radius: 999px; background: transparent; cursor: pointer;
  font: 500 13px/1 var(--text);
}
.viewer-controls button:hover { border-color: var(--ink); }
.viewer-controls [aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--ivory); }

/* narrow screens: the side tab waits behind a handle on the right edge */
@media (max-width: 1099px) {
  .layout { display: block; }
  .side {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(92vw, 460px); height: auto;
    padding-top: env(safe-area-inset-top, 0px); box-shadow: -18px 0 42px rgba(30, 26, 23, 0.18);
    transform: translateX(100%); visibility: hidden;
    transition: transform 320ms var(--ease-out), visibility 0s linear 320ms;
  }
  .side.is-open { transform: none; visibility: visible; transition: transform 320ms var(--ease-out), visibility 0s; }
  .side-close {
    display: inline-block; margin-bottom: 9px; padding: 7px 12px; border: 1px solid var(--edge); border-radius: 999px;
    background: transparent; cursor: pointer; font: 500 12.5px/1 var(--text);
  }
  .side-scroll { padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)); }
  .side-handle {
    display: block; position: fixed; right: 0; top: 50%; z-index: 30; translate: 0 -50%;
    padding: 18px 10px; border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px;
    background: var(--panel); box-shadow: -4px 0 18px rgba(30, 26, 23, 0.08); cursor: pointer;
    writing-mode: vertical-rl; font: 500 13px/1 var(--text); letter-spacing: 0.08em;
  }
  .side-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(30, 26, 23, 0.32); }
  .pictures { padding-right: calc(var(--gutter) + 28px); }
}
@media (max-width: 640px) {
  :root { --bar-h: 58px; }
  .brand { font-size: 19px; }
  .bar-nav { gap: 14px; }
  .bar-nav a { font-size: 11.5px; letter-spacing: 0.06em; }
  .grid { columns: 2 140px; column-gap: 12px; }
  .tile { margin-bottom: 16px; }
  .row-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .closing-band { grid-template-columns: 1fr; }
  .viewer { width: 100vw; max-height: 100dvh; }
  .viewer-frame { height: 62dvh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
}

/* saved copies (archive/saved/<id>/), written by tools/press/build.py */
.saved-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 58px;
  padding: 0 var(--gutter); border-bottom: 1px solid var(--line);
}
.saved-bar nav { display: flex; gap: 18px; }
.saved-bar nav a, .saved-brand { color: var(--ink); text-decoration: none; }
.saved-bar nav a { font: 500 12.5px/1 var(--text); letter-spacing: 0.04em; }
.saved-brand { font: 400 20px/1 var(--display); letter-spacing: 0.06em; }
.saved-main { box-sizing: border-box; max-width: 780px; margin: 0 auto; padding: 32px var(--gutter) 88px; }
.saved-note { padding: 14px 18px; border-left: 2px solid var(--cordovan); background: var(--panel); font: 400 13.5px/1.6 var(--text); }
.saved-note p { margin: 0; }
.saved-note p + p { margin-top: 8px; color: var(--mocha); overflow-wrap: anywhere; }
.saved-outlet { margin: 34px 0 0; color: var(--muted); font: 500 13px/1.5 var(--text); }
.saved-article h1 { margin: 10px 0 0; text-wrap: balance; font: 500 30px/1.32 var(--display); letter-spacing: -0.005em; }
.saved-sub { margin: 8px 0 0; color: var(--mocha); font: 500 16px/1.5 var(--text); }
.saved-text { margin-top: 24px; }
.saved-text p { margin: 0 0 16px; font: 400 17px/1.8 var(--text); overflow-wrap: break-word; }
html[lang="en"] .saved-text p { font-family: var(--display); line-height: 1.65; }
.saved-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 28px; }
.saved-photos figure { margin: 0; }
.saved-photos img { display: block; width: 100%; height: auto; background: var(--stone); }
.saved-photos figcaption { margin-top: 6px; color: var(--muted); font: 400 12px/1.4 var(--text); overflow-wrap: anywhere; }
.lost-box {
  display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 12px; border: 1px dashed var(--edge);
  color: var(--muted); font: 400 13px/1.45 var(--text); text-align: center;
}
.saved-shot { margin-top: 30px; font: 400 14px/1.6 var(--text); }
