/* marksugi.com
   Ground, ink, one accent. Archivo (condensed for display), Newsreader for wall text, IBM Plex Mono for labels. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; 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; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ground: #F5F4F0;
  --ink: #111110;
  --muted: #5C5B57;
  --rule: #D9D7D0;
  --accent: #D23008;
  --d-ground: #0D0D0C;
  --d-ink: #ECEAE4;
  --d-muted: #A3A19A;
  --d-rule: #2E2D2A;

  --sans: "Archivo", "Arial Narrow", "Helvetica Neue", Helvetica, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad: 48px;
  --gutter: 24px;
  --max: 1600px;
}
/* dark mode: the moon at the top right switches it, and the choice is kept on the browser. The page takes the dark room's tokens;
   the viewing room (white by day) goes dark too. */
html[data-theme="dark"] { --ground: #0D0D0C; --ink: #ECEAE4; --muted: #A3A19A; --rule: #2E2D2A; color-scheme: dark; }
html[data-theme="dark"] body.light, html[data-theme="dark"] .vr-overlay { --d-ground: #0D0D0C; --d-ink: #ECEAE4; --d-muted: #A3A19A; --d-rule: #2E2D2A; }
html[data-theme="dark"] img.ph, html[data-theme="dark"] .light img.ph, html[data-theme="dark"] .vr-overlay img.ph, html[data-theme="dark"] .gal .frame { background: #1B1B19; }
html[data-theme="dark"] .gal-sort a:hover { border-bottom-color: var(--rule); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--ground); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.muted { color: var(--muted); }
.sq { display: inline-block; width: 10px; height: 10px; background: var(--accent); flex: none; }
.sq.open { background: transparent; border: 1px solid currentColor; }
.display { font-weight: 800; font-stretch: 62%; letter-spacing: -0.01em; text-transform: uppercase; line-height: 0.86; }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px; background: var(--ink); color: var(--ground); border: 1px solid var(--ink); font-size: 15px; font-weight: 600; transition: background .15s, color .15s; }
.btn:hover { background: transparent; color: var(--ink); }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--ground); }
.btn.inv { background: var(--ground); color: var(--ink); border-color: var(--ground); }
.btn.inv:hover { background: transparent; color: var(--ground); }
.btn svg { flex: none; }

/* image loading: hold the shape, then appear */
img.ph { background: #E4E2DB; opacity: 0; transition: opacity .35s ease; }
img.ph.in { opacity: 1; }
.dark img.ph { background: #1B1B19; }
@media (prefers-reduced-motion: reduce) { img.ph { transition: none; } html { scroll-behavior: auto; } }

/* ---------------------------------------------------------------- header */
.site-head { border-bottom: 1px solid var(--ink); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
/* the name: heavy block letters, tight and lowercase, in the manner of a museum wordmark */
.wordmark { font-weight: 850; font-stretch: 100%; font-size: 24px; line-height: 1; letter-spacing: -0.035em; padding: 14px 0; white-space: nowrap; }
.wordmark:hover { text-decoration: none; }
/* the name; the small [esc to gallery] tag lives in the viewing room header: the Escape key (or a click on it) leaves for the grid */
.brand { display: flex; align-items: center; gap: 14px; }
.esc-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; line-height: 1; color: #2E9BDD; padding: 5px 6px; border: 1px solid #89CFF0; box-shadow: 0 0 10px rgba(137, 207, 240, 0.55); text-shadow: 0 0 6px rgba(137, 207, 240, 0.8); transition: color .15s, border-color .15s, box-shadow .15s; }
.esc-tag:hover, .esc-tag:focus-visible { text-decoration: none; color: #1B86C8; border-color: #5FB8EA; box-shadow: 0 0 14px rgba(137, 207, 240, 0.9); }
.site-nav { display: flex; align-items: center; gap: 40px; }
.site-nav a { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; padding: 14px 0; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-nav a[aria-current="page"] { font-weight: 600; }
/* the hidden tab: shown while Shift is held with the pointer over the tabs, or when it is the current page */
.site-nav a.hidden-tab, .site-foot nav a.hidden-tab { display: none; }
.site-nav.reveal a.hidden-tab, .site-nav a.hidden-tab[aria-current="page"] { display: flex; }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 0 0 16px; background: none; border: 0; font-size: 14px; font-weight: 600; }
/* top right: the count and the moon (and, on a phone, the Menu button) */
.head-tools { display: flex; align-items: center; gap: 18px; flex: none; }
/* the moon: plain by day; at night it is lit from behind with a purple glow that breathes slowly */
.theme-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; background: none; border: 0; color: var(--ink); border-radius: 50%; }
.theme-btn svg { display: block; position: relative; transition: color .3s, filter .3s, transform .3s; }
.theme-btn::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: radial-gradient(circle, rgba(150, 80, 255, 0.55), rgba(150, 80, 255, 0.18) 45%, rgba(150, 80, 255, 0) 70%); opacity: 0; transition: opacity .3s; }
.theme-btn:hover svg { transform: rotate(-15deg); filter: drop-shadow(0 0 6px rgba(150, 80, 255, 0.7)); }
.theme-btn:hover::before { opacity: .6; }
html[data-theme="dark"] .theme-btn { color: #E6D9FF; }
html[data-theme="dark"] .theme-btn::before { opacity: 1; animation: moon-halo 3.4s ease-in-out infinite; }
html[data-theme="dark"] .theme-btn svg { filter: drop-shadow(0 0 5px rgba(185, 120, 255, 0.95)) drop-shadow(0 0 14px rgba(125, 55, 235, 0.75)); animation: moon-glow 3.4s ease-in-out infinite; }
@keyframes moon-glow { 0%, 100% { filter: drop-shadow(0 0 5px rgba(185, 120, 255, 0.95)) drop-shadow(0 0 14px rgba(125, 55, 235, 0.75)); } 50% { filter: drop-shadow(0 0 7px rgba(200, 145, 255, 1)) drop-shadow(0 0 22px rgba(135, 65, 245, 0.95)); } }
@keyframes moon-halo { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.25); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html[data-theme="dark"] .theme-btn::before, html[data-theme="dark"] .theme-btn svg { animation: none; } }

/* ---------------------------------------------------------------- hero */
.hero { padding: 56px 0 120px; }
.hero-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-eyebrow > span:first-child { display: flex; align-items: center; gap: 10px; }
.hero-title { margin: 28px 0 0; font-size: clamp(72px, 22.2vw, 320px); line-height: 0.84; }
.hero-title span { display: block; white-space: nowrap; width: max-content; }
.hero-title span + span { margin-left: clamp(0px, 23.75vw, 342px); }
.hero-body { margin-top: 48px; align-items: stretch; }
.hero-side { grid-column: 1 / span 3; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.hero-side .top { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.walltext { font-family: var(--serif); font-size: 21px; line-height: 1.42; text-wrap: pretty; }
.hero-pic { grid-column: 4 / span 9; margin-right: calc(var(--pad) * -1); position: relative; display: block; }
.hero-pic img { width: 100%; }
.hero-pic .tag { position: absolute; top: -14px; left: 24px; padding: 8px 12px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }
.closed-note { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.4; color: var(--muted); }

/* tombstone label */
.label { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.label .n, .label .p { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.label .n { letter-spacing: 0.06em; }
.label .t { font-size: 17px; font-weight: 600; line-height: 1.25; }
.hero-side .label { margin-top: 0; border-top: 1px solid var(--ink); padding-top: 14px; }

/* ---------------------------------------------------------------- the wall */
.wall { padding: 0 0 140px; }
.bar { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; border-top: 1px solid var(--ink); padding-top: 20px; margin-bottom: 64px; }
.bar h2, .bar h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.hang-row { align-items: start; margin-bottom: 96px; }
.hang-row:last-child { margin-bottom: 0; }
.piece { display: block; }
.piece img { width: 100%; transition: opacity .2s; }
.piece:hover img.in { opacity: .86; }
.piece:hover .t { text-decoration: underline; text-underline-offset: 4px; }
.seq { margin: 24px 0 120px; }
.seq .bar { margin-bottom: 32px; }
.seq .bar p { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.4; }
.seq-grid { display: grid; column-gap: var(--gutter); row-gap: 40px; }
.wall-end { display: flex; justify-content: flex-end; margin-top: 64px; }

/* ---------------------------------------------------------------- exhibitions */
.shows { padding: 0 0 140px; }
.shows-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 40px; }
.shows-head h2 { font-size: clamp(64px, 8.4vw, 120px); line-height: 0.9; }
.shows-head p { max-width: 340px; margin-bottom: 8px; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.4; }
.show { align-items: center; border-top: 1px solid var(--ink); padding: 26px 0; }
.show:last-child { border-bottom: 1px solid var(--ink); }
.show .st { grid-column: 1 / span 2; display: flex; align-items: center; gap: 10px; }
.show .ti { grid-column: 3 / span 6; font-size: clamp(40px, 5.6vw, 80px); line-height: 1; font-weight: 800; font-stretch: 62%; text-transform: uppercase; transition: transform .2s ease; }
.show .pl { grid-column: 9 / span 3; font-size: 15px; line-height: 1.45; color: var(--muted); }
.show .th { grid-column: 12 / span 1; justify-self: end; width: 90px; height: 60px; object-fit: cover; }
.show.dim .st { color: var(--muted); }
.show:hover .ti { transform: translateX(12px); }
@media (prefers-reduced-motion: reduce) { .show:hover .ti { transform: none; } }

/* ---------------------------------------------------------------- explore band */
.band { background: var(--ink); color: var(--ground); padding: 96px 0 88px; }
.band .grid12 { align-items: end; }
.band .word { grid-column: 1 / span 7; display: block; font-size: clamp(96px, 16.6vw, 240px); line-height: 0.8; font-weight: 800; font-stretch: 62%; letter-spacing: -0.01em; white-space: nowrap; padding-bottom: 20px; }
.band .say { grid-column: 9 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.band .say p { font-family: var(--serif); font-size: 22px; line-height: 1.4; text-wrap: pretty; }
.strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
.strip a { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; }

@media (hover: none) { .hover-only { display: none; } }

/* ---------------------------------------------------------------- footer */
.site-foot .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 40px; padding-bottom: 48px; }
.site-foot .who { display: flex; flex-direction: column; gap: 8px; }
.site-foot .who small { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.site-foot nav { display: flex; gap: 32px; }
.site-foot nav a { font-size: 14px; font-weight: 500; padding: 14px 0; }
.site-foot nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-foot .reach { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
.site-foot .reach a:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-explore .site-foot, .page-gallery .site-foot { border-top: 1px solid var(--ink); }

/* ---------------------------------------------------------------- explore (index) */
.ex-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 40px; }
.ex-head h1 { font-size: clamp(96px, 13.9vw, 200px); line-height: 0.8; font-weight: 800; font-stretch: 62%; letter-spacing: -0.01em; padding-bottom: 16px; }
.ex-head .tally { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.ex-tools { position: sticky; top: 0; z-index: 5; background: var(--ground); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.ex-tools .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.chips { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 11px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 0; background: transparent; font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.chip:hover { background: var(--ink); color: var(--ground); }
.ex-opts { display: flex; align-items: center; gap: 20px; flex: none; }
.ex-opts label { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.ex-opts select { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 6px 2px; min-height: 32px; }
.seg { display: flex; align-items: center; gap: 14px; }
.seg button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 0 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); min-height: 44px; }
.seg button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.ex-body { padding-top: 32px; padding-bottom: 96px; align-items: start; }
.ex-list { grid-column: 1 / span 8; }
.ex-list .cols, .row { display: flex; align-items: center; padding: 0 12px; }
.ex-list .cols { height: 40px; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.row { min-height: 52px; border-bottom: 1px solid var(--rule); }
.c-ti { flex: 1; min-width: 0; }
.c-pl { width: 220px; flex: none; }
.c-yr { width: 80px; flex: none; }
.c-ro { width: 190px; flex: none; }
.row .c-yr, .row .c-ro { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; color: var(--muted); }
.row .c-ti { font-size: 19px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 16px; }
.row .c-pl { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 16px; }
.row.on, .row:focus-visible { background: var(--ink); color: var(--ground); }
.row.on .c-yr, .row.on .c-ro, .row.on .c-pl, .row:focus-visible .c-yr, .row:focus-visible .c-ro, .row:focus-visible .c-pl { color: #C9C7C0; }
.ex-peek { grid-column: 9 / span 4; position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; }
.ex-peek .frame { display: block; background: #E4E2DB; }
.ex-peek .frame img { width: 100%; }
.ex-peek .label { margin-top: 0; }
.ex-peek .label .t { font-size: 22px; font-weight: 700; line-height: 1.2; }
.ex-peek .btn { align-self: flex-start; min-height: 48px; font-size: 14px; }
.ex-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 40px var(--gutter); align-items: start; }
.ex-grid .label .t { font-size: 15px; }
.ex-grid .label { margin-top: 10px; gap: 2px; }
.ex-empty { grid-column: 1 / -1; padding: 64px 0; font-family: var(--serif); font-style: italic; font-size: 22px; }

/* ---------------------------------------------------------------- viewing room */
/* The room's own tokens (--d-*) were set for a dark room. body.light turns them white, so every rule below serves either room. */
body.dark { background: var(--d-ground); color: var(--d-ink); }
.dark :focus-visible { outline-color: var(--d-ink); }
body.light, .vr-overlay { --d-ground: #FFFFFF; --d-ink: #111110; --d-muted: #5C5B57; --d-rule: #E4E2DB; background: var(--d-ground); color: var(--d-ink); }
.light :focus-visible, .vr-overlay :focus-visible { outline-color: var(--d-ink); }
.light img.ph, .vr-overlay img.ph { background: #EFEEEA; }
/* the room opened in place over a grid */
.vr-overlay { position: fixed; inset: 0; z-index: 40; overflow-y: auto; -webkit-overflow-scrolling: touch; }
html.vr-open { overflow: hidden; }
.vr { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 0 var(--pad); }
.vr-head { flex: none; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--d-rule); }
.vr-head a { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; padding: 14px 0; min-width: 0; }
.vr-head a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vr-head a:hover { text-decoration: underline; text-underline-offset: 5px; }
.vr-left { display: flex; align-items: center; gap: 28px; min-width: 0; }
.vr-head .wordmark { font-size: 22px; }
.vr-head .esc-tag { padding: 5px 6px; font-size: 11px; font-weight: 400; min-width: 0; }
.vr-head .ctx { color: var(--d-muted); }
.vr-head .exit { gap: 10px; padding: 0 16px; min-height: 40px; border: 1px solid var(--d-rule); transition: background .15s, color .15s, border-color .15s; }
.vr-right { display: flex; align-items: center; gap: 14px; flex: none; }
.vr-head .theme-btn { color: var(--d-ink); }
.vr-head .exit:hover { text-decoration: none; background: var(--d-ink); color: var(--d-ground); border-color: var(--d-ink); }
.vr-head .count { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--d-muted); flex: none; }
.vr-mid { display: flex; align-items: center; gap: 18px; flex: none; }
.vr-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 318px; column-gap: var(--gutter); padding: 36px 0 28px; align-items: start; }
.vr-stage { display: flex; align-items: flex-start; justify-content: flex-start; min-width: 0; -webkit-user-select: none; user-select: none; }
.vr-stage img { width: auto; max-width: 100%; max-height: calc(100vh - 64px - 104px - 64px); max-height: calc(100dvh - 64px - 104px - 64px); }
/* the photograph is a control: an arrow cursor says which way a click will go */
@media (hover: hover) and (pointer: fine) {
  /* a glowing orb says which way a click will go: white back, baby blue forward. One soft outer glow and a core, nothing else. */
  .vr-stage[data-side="to-prev"] { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cdefs%3E%3CradialGradient id='g' gradientUnits='userSpaceOnUse' cx='24' cy='24' r='24'%3E%3Cstop offset='0' stop-color='%23FFFFFF' stop-opacity='0.75'/%3E%3Cstop offset='0.5' stop-color='%23FFFFFF' stop-opacity='0.28'/%3E%3Cstop offset='1' stop-color='%23FFFFFF' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='24' cy='24' r='24' fill='url(%23g)'/%3E%3Ccircle cx='24' cy='24' r='6' fill='%23FFFFFF' stroke='%23000000' stroke-width='1.2' stroke-opacity='0.55'/%3E%3C/svg%3E") 24 24, w-resize; }
  .vr-stage[data-side="to-next"] { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cdefs%3E%3CradialGradient id='g' gradientUnits='userSpaceOnUse' cx='24' cy='24' r='24'%3E%3Cstop offset='0' stop-color='%2389CFF0' stop-opacity='0.75'/%3E%3Cstop offset='0.5' stop-color='%2389CFF0' stop-opacity='0.28'/%3E%3Cstop offset='1' stop-color='%2389CFF0' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='24' cy='24' r='24' fill='url(%23g)'/%3E%3Ccircle cx='24' cy='24' r='6' fill='%2389CFF0' stroke='%231C7FC2' stroke-width='1.2' stroke-opacity='0.7'/%3E%3C/svg%3E") 24 24, e-resize; }
}
.vr-side { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; align-self: stretch; }
.vr-side .top { display: flex; flex-direction: column; gap: 22px; }
.vr-no { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.vr-side h1 { font-size: 30px; line-height: 1.12; font-weight: 700; text-wrap: balance; }
.facts { border-top: 1px solid var(--d-rule); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; margin: 0; }
.facts div { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--d-rule); }
.facts dt { width: 76px; flex: none; color: var(--d-muted); }
.facts dd { margin: 0; }
.facts dd i { font-style: italic; }   /* a mushroom's scientific name */
.facts a { text-decoration: underline; text-underline-offset: 3px; }
.vr-note { font-family: var(--serif); font-size: 18px; line-height: 1.45; color: var(--d-muted); text-wrap: pretty; }
.vr-note i { font-style: italic; }
/* the sources beneath a caption, one per line, in small type */
.vr-refs { margin: -8px 0 0; padding: 0; list-style: none; font-size: 11px; line-height: 1.45; color: var(--d-muted); }
.vr-refs li + li { margin-top: 5px; }
/* a line under the references: who took the picture, when it was not me */
.vr-credit { margin: -4px 0 0; font-size: 11px; line-height: 1.45; color: var(--d-muted); }
.vr-nav { display: flex; gap: 12px; position: fixed; right: var(--pad); bottom: 132px; width: 318px; z-index: 20; background: var(--d-ground); }
.vr-side { padding-bottom: 76px; }
@media (max-width: 820px) { .vr-side { padding-bottom: 0; } }
.vr-nav a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border: 1px solid var(--d-ink); font-size: 14px; font-weight: 600; transition: background .15s, color .15s; }
.vr-nav a.next, .vr-nav a:hover { background: var(--d-ink); color: var(--d-ground); }
.vr-nav a.next:hover { background: transparent; color: var(--d-ink); }
.vr-strip { flex: none; display: flex; align-items: center; gap: 24px; min-height: 104px; border-top: 1px solid var(--d-rule); }
.vr-strip .thumbs { flex: 1; display: flex; align-items: center; gap: 10px; overflow-x: auto; padding: 8px 4px; scrollbar-width: thin; scrollbar-color: var(--d-rule) transparent; }
.vr-strip .thumbs a { flex: none; display: block; height: 48px; opacity: .55; transition: opacity .15s; }
.vr-strip .thumbs a:hover, .vr-strip .thumbs a[aria-current="true"] { opacity: 1; }
.vr-strip .thumbs a[aria-current="true"] { outline: 2px solid var(--accent); outline-offset: 3px; }
.vr-strip .thumbs img { height: 48px; width: auto; max-width: none; }
.vr-strip .where { flex: none; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--d-muted); }

/* ---------------------------------------------------------------- gallery: five to a row */
.gal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 28px 0 20px; border-bottom: 1px solid var(--ink); }
.gal-head > span:first-child { display: flex; align-items: center; gap: 10px; padding-bottom: 2px; }
/* top right: the count, then the orders (newest, country) and the four elements */
.gal-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.gal-sort { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; }
.gal-sort a { padding: 2px 0; border-bottom: 2px solid transparent; }
.gal-sort a:hover { text-decoration: none; border-bottom-color: var(--rule); }
.gal-sort a[aria-current] { font-weight: 500; color: var(--ink); border-bottom-color: var(--ink); }
.gal-group { grid-column: 1 / -1; margin: 24px 0 -16px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.gal-group:first-child { margin-top: 0; }
.gal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px var(--gutter); padding: 32px 0 120px; }
.gal .cell { display: block; scroll-margin-top: 120px; }
.gal .frame { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #E4E2DB; }
.gal .frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.gal .cell:hover img.in { opacity: .86; }
.gal .cell:hover .t { text-decoration: underline; text-underline-offset: 4px; }
.gal .label { margin-top: 10px; gap: 2px; }
.gal .label .t { font-size: 14px; }
.gal .label .p { font-size: 11px; }
.gal .label .k { font-size: 12px; color: var(--ink); }   /* the cloud type, between the place and the year */
.gal-empty { grid-column: 1 / -1; padding: 48px 0; font-family: var(--serif); font-style: italic; font-size: 22px; }
.gal .cell.was, .gal .cell:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; }

.wordmark { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* ---------------------------------------------------------------- the world (rest on the name, press Shift + M) */
html.atlas-open { overflow: hidden; }
/* a dark room around the Blue Marble; the map is drawn on a canvas, the places listed beside it */
.atlas { --w-ground: #070C14; --w-ink: #E9E6DC; --w-muted: #94A0AE; --w-rule: #1F2A38; position: fixed; inset: 0; z-index: 50; background: var(--w-ground); color: var(--w-ink); overflow-y: auto; padding: 32px var(--pad); font-family: var(--sans); }
.atlas ::selection { background: var(--w-ink); color: var(--w-ground); }
.atlas :focus-visible { outline-color: var(--w-ink); }
.atlas-in { max-width: 1480px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; gap: 28px; }
.atlas-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--w-rule); padding-bottom: 20px; }
.atlas-head h2 { font-size: clamp(64px, 9vw, 120px); line-height: 0.86; background: linear-gradient(90deg, #5FA8E6, #7FC48F 50%, #E2C27A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.atlas-head .mono { margin-top: 12px; color: var(--w-muted); }
.atlas-close { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; background: transparent; color: var(--w-ink); border: 1px solid var(--w-rule); }
.atlas-close:hover { background: var(--w-ink); color: var(--w-ground); border-color: var(--w-ink); }
.atlas-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.map-wrap { position: relative; width: 100%; }
canvas.map { display: block; width: 100%; height: auto; aspect-ratio: 2.0546 / 1; -webkit-user-select: none; user-select: none; }
canvas.map.over { cursor: pointer; }
.map-tip { position: absolute; width: 150px; transform: translate(-50%, calc(-100% - 14px)); pointer-events: none; background: var(--w-ink); color: var(--w-ground); padding: 5px; }
.map-tip img { display: block; width: 100%; height: 96px; object-fit: cover; }
.map-tip span { display: block; padding: 6px 2px 2px; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-tip::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.map-tip.below { transform: translate(-50%, 14px); }
.map-tip.below::after { bottom: auto; top: -4px; }
.atlas-list { margin: 0; padding: 0; list-style: none; max-height: 70vh; overflow-y: auto; border-top: 1px solid var(--w-ink); scrollbar-width: thin; scrollbar-color: var(--w-rule) transparent; }
.atlas-list a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--w-rule); font-size: 14px; font-weight: 600; min-height: 40px; align-items: center; }
.atlas-list a .n { font-family: var(--mono); font-size: 12px; color: var(--w-muted); }
.atlas-list a:hover, .atlas-list a.lit { background: var(--w-ink); color: var(--w-ground); text-decoration: none; }
.atlas-list a:hover .n, .atlas-list a.lit .n { color: #4A5260; }
.atlas-foot { color: var(--w-muted); border-top: 1px solid var(--w-rule); padding-top: 16px; margin-top: auto; }
@media (max-width: 1100px) {
  .atlas-body { grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; }
}
@media (max-width: 820px) {
  .atlas { padding: 20px var(--pad); }
  .atlas-in { gap: 20px; }
  .atlas-head { align-items: flex-start; padding-bottom: 14px; }
  .atlas-head .mono { font-size: 11px; margin-top: 8px; }
  .atlas-body { display: flex; flex-direction: column; }
  .atlas-list { max-height: none; }
}

/* ---------------------------------------------------------------- plain pages */
.plain { padding: 96px 0 140px; }
.plain h1 { font-size: clamp(72px, 14vw, 200px); }
.plain p { margin-top: 32px; max-width: 34em; font-family: var(--serif); font-size: 21px; line-height: 1.42; }
.plain .btn { margin-top: 32px; }
noscript p { padding: 48px var(--pad); font-family: var(--serif); font-size: 19px; max-width: 40em; }

/* ---------------------------------------------------------------- medium screens */
@media (max-width: 1100px) {
  :root { --pad: 32px; }
  .hero-side { grid-column: 1 / span 4; }
  .hero-pic { grid-column: 5 / span 8; }
  .c-ro { display: none; }
  .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--gutter); }
  .ex-list { grid-column: 1 / span 7; }
  .ex-peek { grid-column: 8 / span 5; }
  .c-pl { width: 170px; }
  .show .st { grid-column: 1 / span 3; }
  .show .ti { grid-column: 4 / span 6; }
  .show .pl { grid-column: 10 / span 3; }
  .show .th { display: none; }
}

/* ---------------------------------------------------------------- small screens */
@media (max-width: 820px) {
  :root { --pad: 20px; --gutter: 12px; }
  .site-head .wrap { min-height: 60px; flex-wrap: wrap; }
  .wordmark { font-size: 22px; }
  .tally-top { display: none; }
  .menu-btn { display: flex; }
  .site-nav { display: none; order: 2; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 0 20px; border-top: 1px solid var(--ink); }
  .head-tools { order: 1; gap: 6px; }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 20px; font-weight: 600; line-height: 1.2; padding: 10px 0; }   /* the open menu on a phone: the tabs a touch smaller than the name */

  .hero { padding: 28px 0 64px; }
  .hero-eyebrow { font-size: 11px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-title { margin-top: 18px; font-size: clamp(64px, 28vw, 200px); line-height: 0.86; }
  .hero-title span + span { margin-left: clamp(0px, 12vw, 96px); }
  .hero-body { display: flex; flex-direction: column; margin-top: 28px; }
  .hero-pic { order: -1; margin: 0 calc(var(--pad) * -1); }
  .hero-pic .tag { left: var(--pad); }
  .hero-side { gap: 28px; margin-top: 24px; }
  .hero-side .top { gap: 24px; align-items: stretch; }
  .hero-side .btn { justify-content: space-between; }
  .walltext { font-size: 19px; line-height: 1.45; }

  .wall { padding-bottom: 72px; }
  .bar { margin-bottom: 40px; padding-top: 16px; }
  .hang-row { display: flex; flex-direction: column; gap: 48px; margin-bottom: 48px; }
  .hang-row .piece { margin-top: 0 !important; width: 100%; }
  .hang-row .piece.b { width: 74%; align-self: flex-end; }
  .hang-row .piece.c { width: 86%; }
  .hang-row .piece.bleed { width: auto; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
  .hang-row .piece.bleed .label { padding: 0 var(--pad); }
  .seq { margin: 8px 0 64px; }
  .seq .bar { flex-direction: column; gap: 6px; margin-bottom: 16px; }
  .seq .bar p { font-size: 18px; }
  .seq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; row-gap: 24px; }
  .seq-grid .label .n, .seq-grid .label .p { display: none; }
  .seq-grid .label .t { font-size: 14px; }
  .wall-end { margin-top: 48px; }
  .wall-end .btn { width: 100%; justify-content: space-between; }

  .shows { padding-bottom: 72px; }
  .shows-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
  .show { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 0; }
  .show .st { font-size: 11px; }
  .show .ti { font-size: clamp(36px, 10.8vw, 56px); }
  .show .pl { font-size: 14px; }
  .show:hover .ti { transform: none; }

  .band { padding: 56px 0; }
  .band .grid12 { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
  .band .word { font-size: clamp(88px, 30vw, 200px); padding-bottom: 12px; }
  .band .say { gap: 24px; align-self: stretch; }
  .band .say p { font-size: 19px; }
  .band .say .btn { width: 100%; justify-content: space-between; }
  .strip { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 32px; }
  .strip a:nth-child(n+7) { display: none; }

  .site-foot .wrap { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 28px; padding-bottom: 36px; }
  .site-foot nav { gap: 24px; }
  .site-foot .reach { align-items: flex-start; }

  .ex-head { flex-direction: column; align-items: flex-start; padding-top: 28px; padding-bottom: 24px; }
  .ex-head .tally { align-items: flex-start; text-align: left; }
  .ex-tools .wrap { flex-direction: column; align-items: stretch; gap: 0; padding-right: 0; }
  .chips { padding-right: var(--pad); }
  .ex-opts { justify-content: space-between; padding: 4px var(--pad) 8px 0; border-top: 1px solid var(--rule); }
  .ex-body { display: block; padding-top: 24px; padding-bottom: 64px; }
  .ex-peek { display: none; }
  .c-yr, .c-pl { display: none; }
  .row.on { background: transparent; color: inherit; }
  .row .c-ti { white-space: normal; padding: 10px 0; }
  .row .c-ti { font-size: 17px; }
  .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gutter); }

  .vr-main { display: flex; flex-direction: column; gap: 24px; padding: 20px 0 24px; }
  .vr-stage { margin: 0 calc(var(--pad) * -1); justify-content: center; }
  .vr-stage img { max-height: 70vh; }
  .vr-side h1 { font-size: 26px; }
  /* Previous and Next sit in a fixed bar along the bottom of the screen, so the thumb finds them in the same place every time */
  .vr { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .vr-nav { position: fixed; left: 0; right: 0; bottom: 0; width: auto; z-index: 20; gap: 0; padding-bottom: env(safe-area-inset-bottom); background: var(--d-ground); border-top: 1px solid var(--d-rule); }
  .vr-nav a { min-height: 58px; border: 0; }
  .vr-nav a.prev { border-right: 1px solid var(--d-rule); }
  .vr-strip { min-height: 84px; }
  .vr-strip .where { display: none; }
  .vr-head .ctx { display: none; }
  .vr-head .exit span { display: none; }
  .vr-head .esc-tag { display: none; }
  .vr-head .exit { padding: 0 12px; }
  .gal-head { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 0 16px; }
  .gal-tools { align-items: flex-start; }
  .gal-sort { justify-content: flex-start; gap: 6px 14px; }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--gutter); padding: 20px 0 64px; }
  .plain { padding: 56px 0 96px; }
}
