/* Art Cross Cultures: home page.
   Layout: bands of faces. Faces are divided by 1px ribs, bands by 2px rails. */

@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("../assets/fonts/albertsans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --day: #ffffff;
  --unlit: #f4f1eb;
  --ink: #1a1a1a;
  --ink-2: #4b4844;
  --hair: #cfc9bf;
  --lacquer: #9b3d2e;
  --on-lacquer-2: #f8e3dd;
  --night: #0c0b0a;
  --on-night: #ffffff;
  --on-night-2: #d9d2c6;
  --rib-night: #57524b;
  --glow: #e0a45a;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Albert Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --data: var(--text);   /* years, places, dates, credits, states: the text face, small and quiet. There is no third typeface */

  /* display in three steps, one text size, one small size for data */
  --fs-display: clamp(3.25rem, 5.42vw, 4.875rem);
  --fs-title: clamp(2.125rem, 3.05vw, 2.75rem);
  --fs-sub: 1.375rem;
  --fs-text: 1rem;
  --fs-data: 0.8125rem;

  --pad: clamp(1.25rem, 3.3vw, 3rem);
  --line: 1px solid var(--ink);   /* the one line down each page: the edge of the first column */
  --rib: 1px solid var(--hair);   /* every other divider between faces: thin and light */
  --rail: 1px solid var(--hair);  /* between bands */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --calm: cubic-bezier(.4, 0, .2, 1);   /* the sheets over the dark face: an even glide, no quick start */
  --head: clamp(3.25rem, 6.1vw, 5.75rem);   /* above a band's heading and below its last line */
  --in: 1.5rem;   /* the one text edge: where text begins after the ink line and after the edge of each of the four parts */
  /* home: text that stands beside a band's heading shares the baseline of the heading's first line */
  --drop: calc(var(--fs-title) * .885 - 1.0625rem);       /* running text */
  --drop-sub: calc(var(--fs-title) * .885 - 1.3125rem);   /* a name in the title step */
  --say: clamp(26rem, 31vw, 31.25rem);
  --top-h: 4.5rem;
  --h1-top: clamp(2rem, 9vh, 5.5rem);   /* from the bar to the page's h1: the same on every page */
  /* where the title of a sheet stands (home, Projects): on the baseline of the page's h1 beside it */
  --name-top: calc(var(--top-h) + var(--h1-top) + var(--fs-display) * .845 - var(--fs-title) * .885);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink) var(--day); scrollbar-width: thin; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background: var(--day); color: var(--ink); font: 400 var(--fs-text)/1.55 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--lacquer); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.night :focus-visible, .glow :focus-visible, .lacquer :focus-visible { outline-color: #fff; }
.defs { position: absolute; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 40; padding: .75rem 1rem; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- from page to page: a short even cross-fade where the browser can do it ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .btn, .ico, .link, .top nav a, .glow .name a, .partner h2 a { transition: none; }
}

/* ---------- type ---------- */
h1, h2, .name, blockquote p, .panel .t { font-family: var(--display); font-weight: 300; font-variation-settings: "opsz" 144; }
h1 { font-size: var(--fs-display); line-height: .98; letter-spacing: -0.02em; }
h1 span { display: block; }
h2 { font-size: var(--fs-title); line-height: 1.06; letter-spacing: -0.015em; text-wrap: balance; }
h3, h4, .who, tbody th, .spine .t, .ruled dt { font-family: var(--display); font-weight: 380; font-size: var(--fs-sub); line-height: 1.2; font-variation-settings: "opsz" 48; letter-spacing: -0.005em; }
h3, h4, .ruled dt { text-wrap: balance; }
p { max-width: 62ch; text-wrap: pretty; }
.data { font: 400 var(--fs-data)/1.5 var(--data); letter-spacing: .01em; color: var(--ink-2); }
b, dt { font-weight: 500; }
.soft { color: var(--ink-2); }

/* place, date, credit: a list that wraps without leaving a separator at a line end */
.meta { display: flex; flex-wrap: wrap; column-gap: 1.5ch; overflow: hidden; }
.meta > span { position: relative; }
.nb { white-space: nowrap; }
.meta > span + span::before { content: "\00B7"; position: absolute; left: -.93ch; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: .75rem; min-height: 3rem; padding: 0 1.375rem; background: var(--ink); color: #fff; font-weight: 500; text-decoration: none; transition: background-color .45s var(--calm), color .45s var(--calm); }
.btn:hover { background: var(--lacquer); }
.btn:active { transform: translateY(1px); }
.btn { white-space: nowrap; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: var(--unlit); }
.ico { width: 1rem; height: 1rem; flex: none; transition: transform .45s var(--calm); }
.btn:hover .ico { transform: translateX(4px); }
.link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .375rem; transition: color .4s var(--calm), text-decoration-color .4s var(--calm); }
.link:hover { color: var(--lacquer); }
.lacquer .link:hover { color: var(--on-lacquer-2); }
.acts-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; max-width: none; }
.acts-row .link { display: inline-flex; align-items: center; min-height: 2.75rem; }

.state { display: flex; align-items: center; gap: .5rem; }
.state i { width: .5rem; height: .5rem; flex: none; background: var(--lacquer); }
.night .state, .glow .state { color: var(--on-night); }
.night .state i, .glow .state i { background: var(--glow); }

/* ---------- header ---------- */
.top { position: absolute; z-index: 20; top: 0; left: 0; width: var(--say); height: var(--top-h); padding: 0 clamp(1.5rem, 2.8vw, 2.5rem) 0 clamp(2rem, 3.3vw, 3rem); display: flex; align-items: center; justify-content: space-between; }
.mark { display: flex; align-items: center; min-height: 2.75rem; color: var(--ink); }
.mark svg { height: 2.375rem; width: auto; aspect-ratio: 227 / 132; }
.top nav { display: flex; gap: 1.125rem; }
.top nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: transparent; text-underline-offset: .375rem; transition: text-decoration-color .4s var(--calm); }
.top nav a:hover, .top nav a[aria-current] { text-decoration-color: currentColor; }
.top .give { color: var(--lacquer); }
/* once the first face has left the screen the navigation becomes a bar: paper runs across the window behind it,
   and the mark and the menu stay exactly where they stood */
.is-past .top { position: fixed; }
.is-past .top::before { content: ""; position: fixed; z-index: -1; top: 0; left: 0; right: 0; height: var(--top-h); background: var(--day); border-bottom: var(--rib); }
@media (prefers-reduced-motion: no-preference) { .is-past .top { animation: appear .3s var(--ease); } }
@keyframes appear { from { opacity: 0; } }

/* ---------- 1. opening band ---------- */
.face { position: relative; min-width: 0; }
.lantern { display: flex; min-height: clamp(40rem, 100vh, 62.5rem); min-height: clamp(40rem, 100svh, 62.5rem); border-bottom: var(--rail); }
.lantern > .face { border-right: var(--rib); }
.lantern > .say { border-right: var(--line); }
.lantern > .face:last-child { border-right: 0; }

.say { flex: 0 0 var(--say); display: flex; flex-direction: column; padding: var(--top-h) clamp(1.5rem, 2.8vw, 2.5rem) 0 clamp(2rem, 3.3vw, 3rem); }
.say h1 { margin-top: var(--h1-top); }
.say .lede { margin-top: 2.75rem; max-width: 34ch; color: var(--ink-2); }
.say .acts-row { margin-top: 2.5rem; }

/* photograph faces: the picture runs to the ribs, the caption sits on paper below it */
.lit { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lantern > .lit { flex: 1 1 0; }
.lit picture { display: block; min-height: 0; }
.lit img { width: 100%; height: 100%; object-fit: cover; }
/* from tablet width the opening band is at least one screen tall and grows with its text:
   its photographs fill the height the band has and never set it */
@media (width >= 47.5em) {
  .lantern > .lit > picture { position: relative; }
  .lantern > .lit > picture > img { position: absolute; inset: 0; }
  .lantern > .lit > img { height: 0; min-height: 100%; }
}
/* a caption begins on the text edge, like every other text of its face */
.cap { display: grid; gap: .25rem; align-content: start; max-width: none; padding: .875rem var(--in) 1rem; background: var(--day); line-height: 1.35; }
.cap b { text-wrap: balance; }
/* a plain caption says what is shown and where, in one small quiet line under the picture: no rule above it,
   no second line. Where the band's heading already names the place, the caption says what is shown and no more.
   When and by whom the photographs were taken stands once, in the footer. */
.cap:has(> b:first-child + .meta:last-child), .cap:has(> b:only-child) { display: block; padding-block: .5625rem .6875rem; font-size: var(--fs-data); line-height: 1.5; letter-spacing: .01em; color: var(--ink-2); }
.cap:has(> b:first-child + .meta:last-child) > b, .cap:has(> b:only-child) > b { font-weight: 400; color: var(--ink); text-wrap: wrap; }
.cap > b + .meta { display: inline; overflow: visible; color: inherit; }
.cap > b + .meta > span::before, .cap > b + .meta > span + span::before { content: "\00B7"; position: static; margin-inline: .5ch; }
.lantern:not(.sub) .cap { min-height: 3.875rem; }
/* in the narrow faces of the home page's and the project page's opening band the place stands on a second line of its own;
   wide photographs keep the one line */
.lantern:not(.sub) .cap:has(> b:first-child + .meta:last-child) > b { display: block; }
.lantern:not(.sub) .cap > b + .meta > span:first-child::before { content: none; }

/* the current cycle: the one dark face */
.glow { flex: 1.2 1 0; display: flex; flex-direction: column; background: var(--night); color: var(--on-night); }
.glow .state { padding: 1.75rem var(--in) 0; max-width: none; }
.glow .lamp { flex: 1 1 0; min-height: 0; width: 100%; object-fit: cover; object-position: 50% 40%; -webkit-mask-image: linear-gradient(to bottom, transparent, var(--ink) 14%, var(--ink) 70%, transparent); mask-image: linear-gradient(to bottom, transparent, var(--ink) 14%, var(--ink) 70%, transparent); }
.glow .title { padding: 0 var(--in) 1.5rem; display: grid; gap: .625rem; }
.glow .name { font-size: var(--fs-title); line-height: 1; letter-spacing: -0.02em; }
.glow .name a { text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: transparent; text-underline-offset: .5rem; transition: text-decoration-color .45s var(--calm); }
.glow .name a::after { content: ""; position: absolute; inset: 0; }
.glow:hover .name a { text-decoration-color: currentColor; }
.glow .when, .glow .blurb { color: var(--on-night-2); }
.glow .when span { display: block; }
.glow .cap, .night .cap { background: var(--night); }
.glow .cap:has(> b:first-child + .meta:last-child), .night .cap:has(> b:first-child + .meta:last-child) { color: var(--on-night-2); }
.glow .cap:has(> b:first-child + .meta:last-child) > b, .night .cap:has(> b:first-child + .meta:last-child) > b { color: var(--on-night); }
.glow .cap .data, .night .cap .data { color: var(--on-night-2); }
.glow > :not(.panel) { transition: filter .7s var(--calm); }

/* announced cycles: narrow faces. While a spine is consulted one sheet of paper lies over the dark face.
   The paper belongs to the face, not to a cycle: it stays where it is while the pointer goes from spine to spine
   and only the writing on it changes, so the dark face never shows through between two cycles */
.unlit { background: var(--unlit); }
.spine { flex: 0 0 3rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 1.75rem 0 1.5rem; color: var(--ink); text-decoration: none; transition: background-color .5s var(--calm), color .5s var(--calm); }
.spine.basel { flex-basis: 6rem; }
.spine > span { position: relative; writing-mode: vertical-rl; white-space: nowrap; }
.spine .y { order: -1; }
.spine .t { line-height: 1; }
.spine .s { color: var(--ink-2); }
.spine .y, .spine .s { transition: color .5s var(--calm); }
.glow::after { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--unlit); opacity: 0; pointer-events: none; transition: opacity .7s var(--calm); }
/* the title of a sheet stands on the line of the page's h1, as a cycle's name does on Projects */
.panel { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; gap: .875rem; padding: var(--name-top) var(--in) 1.5rem; color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .7s var(--calm); }
.panel p { max-width: none; }
.panel .t { font-size: var(--fs-title); line-height: 1.06; letter-spacing: -0.015em; text-wrap: balance; }
.panel .d { color: var(--ink-2); }
.panel .st { margin-top: auto; }

.spine:focus-visible { outline: 2px solid #fff; outline-offset: -5px; background: var(--ink); color: #fff; }
.spine:focus-visible .y, .spine:focus-visible .s { color: var(--on-night-2); }
/* while a sheet lies there, the writing that leaves is gone before the writing that arrives can be read;
   when the sheet itself leaves, its writing goes with it at the paper's pace */
.lantern:has(.spine:focus-visible) .glow::after { opacity: 1; }
.lantern:has(.spine:focus-visible) .panel { transition-duration: .25s; }
.lantern:has(.spine[data-panel="basel"]:focus-visible) #p-basel,
.lantern:has(.spine[data-panel="2028"]:focus-visible) #p-2028,
.lantern:has(.spine[data-panel="2029"]:focus-visible) #p-2029,
.lantern:has(.spine[data-panel="2030"]:focus-visible) #p-2030 { opacity: 1; transition-duration: .6s; transition-delay: .2s; }
.lantern:has(.spine:focus-visible) .glow > :not(.panel) { filter: brightness(.3); }
@media (hover: hover) {
  .spine:hover { background: var(--ink); color: #fff; }
  .spine:hover .y, .spine:hover .s { color: var(--on-night-2); }
  .lantern:has(.spine:hover) .glow::after { opacity: 1; }
  /* the pointer outranks keyboard focus, so two cycles are never written on the one sheet */
  .lantern:has(.spine:hover) .panel:is(#p-basel, #p-2028, #p-2029, #p-2030) { opacity: 0; transition-duration: .25s; transition-delay: 0s; }
  .lantern:has(.spine[data-panel="basel"]:hover) #p-basel,
  .lantern:has(.spine[data-panel="2028"]:hover) #p-2028,
  .lantern:has(.spine[data-panel="2029"]:hover) #p-2029,
  .lantern:has(.spine[data-panel="2030"]:hover) #p-2030 { opacity: 1; transition-duration: .6s; transition-delay: .2s; }
  .lantern:has(.spine:hover) .glow > :not(.panel) { filter: brightness(.3); }
}
/* put away with Escape */
.lantern.sheets-off .panel, .lantern.sheets-off .glow::after { opacity: 0 !important; }
.lantern.sheets-off .glow > :not(.panel) { filter: none !important; }
.lantern.sheets-off .say { border-right-color: var(--ink) !important; }

@media (prefers-reduced-motion: no-preference) {
  .glow .lamp { animation: light-on 2.4s .4s var(--ease) backwards; }
  .glow .state i { animation: ember 2.4s .4s var(--ease) backwards; }
}
@keyframes light-on { from { filter: brightness(.16) saturate(.35); } }
@keyframes ember { from { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .panel, .glow::after, .glow > :not(.panel), .spine, .spine .y, .spine .s { transition: none; } }

/* ---------- bands ---------- */
.band { display: grid; border-bottom: var(--rail); }
.band > .face { padding: var(--pad); border-right: var(--rib); }
.band > .face:last-child { border-right: 0; }
.band .lit { padding: 0; }
.band .face:not(.lit) > * + * { margin-top: 1.25rem; }
.band .face:not(.lit) > h2 + * { margin-top: 2rem; }

/* a fact list: term, value in mono below, rows divided by a hair rule */
.facts dl > div { padding: 1rem 0 1.125rem; border-top: 1px solid var(--hair); }
.facts dl > div:first-child { border-top: 0; padding-top: 0; }
.facts dd { margin-top: .125rem; }

/* a ruled list: a name in the title step, its text beside it. Hair rules stand between the rows only:
   none above the first row, none after the last */
.ruled > div { display: grid; grid-template-columns: minmax(10rem, .42fr) 1fr; gap: .25rem 2rem; align-items: baseline; padding: 1.5rem 0 1.625rem; border-top: 1px solid var(--hair); }
.ruled > div:first-child { border-top: 0; padding-top: 0; }
.ruled > div:last-child { padding-bottom: 0; }
.ruled dt { font-weight: 380; }
.ruled dd { color: var(--ink-2); max-width: 58ch; }
.ruled dd a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .375rem; }
.ruled dd a:hover { color: var(--lacquer); }

/* night: where the current cycle glows */
.night { background: var(--night); color: var(--on-night); }
.band.night > .face { border-right-color: var(--rib-night); }
@media (prefers-reduced-motion: no-preference) {
  .js .kindle .lit img { transition: filter 2.2s var(--ease); }
  .js .kindle .lit + .lit img { transition-delay: .3s; }
  .js .kindle .seen img { transition-delay: .6s; }
  .js .kindle:not(.is-lit) .lit img { filter: brightness(.16) saturate(.35); }
  .js .kindle .state i { transition: opacity 2.2s var(--ease); }
  .js .kindle:not(.is-lit) .state i { opacity: .3; }
}

/* an act: its name, its years, what it holds (project page) */
.acts .intro { display: flex; flex-direction: column; }
.act > * + * { margin-top: .5rem; }
.act > .data + p { margin-top: .875rem; }
.act > .state { margin-top: 1.25rem; }
.act p:not(.data) { color: var(--ink-2); max-width: 48ch; }

/* a closing band: photograph, text, the ask (the other pages) */
.support { grid-template-columns: 1.5fr 1fr .8fr; }
.support .lit img { object-position: 50% 35%; }
.support .face:not(.lit) { padding-block: var(--head); display: flex; flex-direction: column; }
.support .face > .acts-row { margin-top: auto; padding-top: 2rem; }
.partner p:not(.acts-row) { color: var(--ink-2); }
.partner h2 a { display: inline-block; padding-block: .25rem; margin-block: -.25rem; text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: transparent; text-underline-offset: .5rem; transition: text-decoration-color .45s var(--calm); }
.partner h2 a:hover { text-decoration-color: currentColor; }
.lacquer { background: var(--lacquer); color: #fff; }
.lacquer .fine { color: var(--on-lacquer-2); }
.lacquer ::selection { background: #fff; color: var(--lacquer); }

/* ---------- the grid of the bands ----------
   One grid for every band of every page. The first column is as wide as the first face of the opening, so that
   face's line runs on down the page; a band's heading stands in it. The rest is four equal parts, and what a band
   holds stands on them: a photograph fills whole parts, and every text begins the same short step after a part's edge. */
.grid > .head { display: flex; flex-direction: column; padding-block: var(--head); }
/* a photograph that keeps its own proportions sets the least height of its band; where the band is taller,
   the photograph fills its face down to the caption, so no empty paper is left under a caption */
.band > .lit > img { align-self: stretch; }
@media (width >= 62.5em) {
  .grid { grid-template-columns: var(--say) repeat(4, minmax(0, 1fr)); }
  .grid > .head { grid-column: 1; border-right: var(--line); }
}
@media (width >= 62.5em) and (width < 80em) { :root { --in: 1.25rem; } }

/* four people: a portrait, a name, a role and one small line each, one to a part (About) */
.people .head > p:not(.acts-row) { color: var(--ink-2); }
.people .head > .data { margin-top: auto; padding-top: 2rem; }
.people > .person { grid-template-rows: auto 1fr; border-right: 0; }
.people > .person:not(:last-child)::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 1px; background: var(--hair); }
.person img { aspect-ratio: 3 / 4; height: auto; }
.person .cap { gap: .125rem; padding: 1.25rem var(--in) 1.5rem; }

/* ---------- the home page below its opening ----------
   The opening is the statement, three lit faces and the spines of the cycles. Below it every band stands on the grid:
   Light on Paper as one block, the programme, who we are beside one photograph, the invitation beside the ask. */
.programme .head > p:not(.acts-row) { color: var(--ink-2); }

/* 2. Light on Paper, one block: the project stands in the first column from top to bottom,
   beside it its lanterns and, below them, its three acts */
.lop h2 { font-size: var(--fs-display); line-height: .98; letter-spacing: -0.02em; }
.lop .story > .state { margin-top: 1rem; }
.lop .story > .lede { max-width: 46ch; margin-top: 2.25rem; color: var(--on-night); }
.lop .story > p:not(.lede):not(.state) { max-width: 52ch; color: var(--on-night-2); }
.lop .journey h3 { font-family: var(--display); font-weight: 300; font-size: var(--fs-title); line-height: 1.06; letter-spacing: -0.015em; font-variation-settings: "opsz" 144; }
.lop > .seen { grid-template-rows: auto 1fr; }
.lop > .seen img { aspect-ratio: 4 / 5; height: auto; object-position: 50% 20%; }   /* where the face is lower than the crop, the fish and Gu's face stay in */
.lop > .act { display: flex; flex-direction: column; padding: 3.25rem var(--in) 2rem; }
.band.lop .act > * + * { margin-top: .5rem; }
.band.lop .act > .data + p { margin-top: .875rem; }
.band.lop .act > .state { margin-top: auto; padding-top: 1.25rem; align-items: flex-start; }
.lop .act > .state i { margin-top: .3125rem; }   /* stays beside the first line when the line breaks */
.lop .act:not(.later) > p:not(.state) { color: var(--on-night-2); }
.band.lop > .later { color: var(--ink); border-color: var(--hair); }   /* paper beside night: its dividers are the light ones */
.lop > .later > .state { color: var(--ink-2); }
.lop > .more { grid-column: 1 / -1; margin: 0; padding: var(--pad); }

/* 3. programme: one cycle to a row, a column to each part */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1.375rem 1.25rem 1.5rem 0; text-align: left; vertical-align: baseline; }
thead th { font-weight: 500; padding-top: 0; padding-bottom: 1rem; }
tbody tr { border-top: 1px solid var(--hair); }
tbody th .data { display: block; margin-top: .25rem; }
tbody th a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .375rem; }
tbody th a:hover { color: var(--lacquer); }
tbody td { color: var(--ink-2); }
tbody td b { display: block; color: var(--ink); }
td.st { white-space: nowrap; }
td.st i { display: inline-block; width: .5rem; height: .5rem; margin-right: .5rem; background: var(--lacquer); }
.is-current .data { color: var(--ink); }

/* 4. who we are beside one photograph, 5. the invitation beside the ask */
.we > .lit { grid-template-rows: 1fr auto; }
.we > .lit img { aspect-ratio: 3 / 2; height: auto; }
.join > .body { display: flex; flex-direction: column; padding: 1.5rem var(--pad) clamp(2.5rem, 8vw, 4rem); }
.we > .head > p:not(.acts-row) { color: var(--ink-2); }
.join > .body > p:not(.acts-row) { max-width: 46ch; }
.band.join .body > .acts-row, .band.join .lacquer > .acts-row { margin-top: 2.25rem; }
.join > .lacquer { display: flex; flex-direction: column; padding-block: clamp(2.5rem, 8vw, 4rem); }
.panel .d { max-width: 46ch; }
@media (width >= 62.5em) {
  .programme .table { grid-column: 2 / -1; }

  .lop { grid-template-rows: minmax(clamp(32rem, 46vw, 52rem), auto) auto; }
  .lop > .lit { grid-column: span 2; min-height: 0; }
  .lop > .lit:not(.seen) img { height: 0; min-height: 100%; }   /* the row sets the height, the picture fills it */
  .lop > .lit:nth-of-type(2) { border-right: 0; }
  .lop .journey { grid-row: 2; padding-top: 3.25rem; }
  .lop > .seen, .lop > .act { grid-row: 2; border-top: 1px solid var(--rib-night); }
  .lop > .act { padding-top: calc(3.25rem + var(--drop-sub)); }
  .lop > .seen { grid-column: 2; }
  .lop > .later { border-top-color: var(--ink); }
  .lop > .later + .later { border-right: 0; }
  .lop > .more { grid-column: 1; grid-row: 2; align-self: end; padding: 0 var(--pad) 2rem; }

  .we > .lit { grid-column: 2 / -1; border-right: 0; }
  .join > .body { grid-column: 2 / span 2; padding: var(--head) var(--in); border-right: 0; }
  .band.join .body > p:first-child { margin-top: var(--drop); }   /* on the baseline of the heading beside it */
  .join > .lacquer { grid-column: 4 / span 2; padding: var(--head) var(--in); }
  .band.join .body > .acts-row, .band.join .lacquer > .acts-row { margin-top: auto; padding-top: 2.5rem; }
}
@media (width >= 80em) {
  /* from 1280px text stands on the four parts */
  .programme .table { padding: var(--head) 0; }
  table { table-layout: fixed; }
  th, td { padding-left: var(--in); padding-right: 0; }
  thead th { padding-top: var(--drop); }
  td.st, thead th:last-child { padding-right: var(--pad); }
  .lop > .seen img { aspect-ratio: 2 / 3; }   /* the whole crop: the fish, the raised hand, Gu */
  /* acts whose state runs to two lines keep the first lines level */
  .lop .act > .state { min-height: 3.5rem; }
  .we { grid-template-rows: minmax(clamp(28rem, 36vw, 42rem), auto); }
  .we > .lit { grid-template-rows: minmax(0, 1fr) auto; }
  .we > .lit img { aspect-ratio: auto; height: 0; min-height: 100%; object-position: 50% 54%; }   /* every head keeps its room, the lanterns stay in the hands */
}
/* 1000 to 1279: the parts pair up */
@media (width >= 62.5em) and (width < 80em) {
  .lop { grid-template-rows: minmax(clamp(28rem, 46vw, 36rem), auto) auto auto; }
  .lop .journey { grid-row: 2 / span 2; }
  .lop > .seen { grid-column: 2 / span 2; }
  .lop > .act { grid-column: span 2; }
  .lop > .act:not(.later) { border-right: 0; }
  .lop > .later { grid-row: 3; }
  .lop > .more { grid-row: 3; }

  .programme .table { padding: var(--head) 0; }
  th:first-child, td:first-child { padding-left: var(--in); }
  th:last-child, td:last-child { padding-right: var(--pad); }
}
@media (width < 62.5em) {
  .band.join > .head { border-bottom: 0; padding-bottom: 0; }   /* a heading and its text stay one block */
}
@media (width >= 47.5em) and (width < 62.5em) {
  /* the invitation beside the ask */
  .band.join > .body { grid-column: 1; border-bottom: 0; }
  .band.join > .lacquer { grid-column: 2; }
  .band.join .body > .acts-row, .band.join .lacquer > .acts-row { margin-top: auto; padding-top: 2.5rem; }
}

/* ---------- footer ---------- */
.foot .quote { padding: clamp(4rem, 9vw, 8rem) var(--pad); border-bottom: var(--rail); }
.foot blockquote p { font-size: var(--fs-display); line-height: 1.06; letter-spacing: -0.02em; max-width: 22ch; }
.foot .quote figcaption { margin-top: 2rem; color: var(--ink-2); }
.foot .cols { display: grid; grid-template-columns: 1.25fr repeat(3, .8fr) .8fr; gap: 2.5rem var(--pad); padding: clamp(3.25rem, 6.5vw, 5.25rem) var(--pad); }
.foot .mark { align-self: start; justify-self: start; }
.foot .mark svg { height: 3.5rem; }
.foot h2 { font: 500 var(--fs-text)/1.55 var(--text); letter-spacing: 0; font-variation-settings: normal; color: var(--ink-2); margin-bottom: .5rem; }
.foot .col p { line-height: 1.9; }
footer.foot .link { font-weight: 400; }
.foot .credits { max-width: none; margin-inline: var(--pad); padding: 0 0 var(--pad); line-height: 1.8; }
/* from 1000px the footer stands on the lines of the page: the mark under the first face, the address on the text edge.
   From 1280px each of its columns has a part of its own */
@media (width >= 62.5em) {
  .foot .cols { grid-template-columns: var(--say) repeat(3, auto); justify-content: start; column-gap: 0; padding-inline: 0; }
  .foot .mark { margin-left: var(--pad); }
  .foot .col { padding-inline: var(--in) 1.25rem; }   /* as everywhere: text begins a short step after the edge */
  .foot .col:last-child { padding-right: var(--in); }
}
@media (width >= 80em) {
  .foot .cols { grid-template-columns: var(--say) repeat(4, minmax(0, 1fr)); }
  .foot .col { padding-inline: var(--in) 0; }
}

/* ---------- consent: a strip of paper at the foot of the window, asked once (js/consent.js) ---------- */
body { padding-bottom: var(--consent-h, 0px); }   /* while the strip is shown the footer can still be scrolled clear of it */
.consent { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .875rem 2rem; padding: 1rem var(--pad); background: var(--day); border-top: 1px solid var(--ink); }
.consent p { max-width: 72ch; }
.consent-acts { display: flex; gap: .75rem; }
button.btn, button.link { font: inherit; border: 0; border-radius: 0; cursor: pointer; }
button.link { padding: 0; background: none; color: inherit; text-align: left; }
.btn.plain { background: var(--day); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.plain:hover { background: var(--unlit); }
@media (width < 47.5em) {
  .consent { grid-template-columns: minmax(0, 1fr); padding-block: .875rem; }
  .consent-acts .btn { flex: 1 1 0; justify-content: center; }
}

/* ---------- 760 to 1279: the same row of faces under a bar, with one photograph ---------- */
@media (width < 80em) {
  /* the bar stands above the opening here, so the h1 begins one short step under it; a sheet's title keeps the h1's line */
  :root { --top-h: 4rem; --say: clamp(17.5rem, 34vw, 27rem); --h1-top: clamp(1.5rem, 3.5vw, 2.5rem); --name-top: calc(var(--h1-top) + var(--fs-display) * .845 - var(--fs-title) * .885); }
  .top, .is-past .top { position: sticky; width: auto; padding: 0 var(--pad); background: var(--day); border-bottom: var(--rib); animation: none; }
  .is-past .top::before { content: none; }
  .lantern { min-height: clamp(30rem, calc(100vh - var(--top-h)), 62.5rem); min-height: clamp(30rem, calc(100svh - var(--top-h)), 62.5rem); }
  /* the h1 and the introduction begin on the edge of the mark above them and of the headings below */
  .say { padding: var(--h1-top) clamp(1rem, 2vw, 1.5rem) 1.5rem var(--pad); }
  .say h1 { margin-top: 0; }
  .say .lede { margin-top: 1.5rem; }
  .say .acts-row { margin-top: 1.5rem; }
  .lantern > .gu { display: none; }
  .glow { flex-grow: 1.25; }
  .glow .blurb { display: none; }
  .glow .state, .glow .title, .panel { padding-inline: 1.25rem; }
  .home .lantern .cap, .partner.lantern .cap, .donate.lantern .cap { padding-inline: .75rem; }   /* narrow photograph faces */
  .spine { flex-basis: 2.75rem; }
  .spine.basel { flex-basis: 3.5rem; }
}

/* ---------- below 1000: bands stack ---------- */
@media (width < 62.5em) {
  .band { grid-template-columns: 1fr 1fr; }
  .band > .face { grid-column: 1 / -1; border-right: 0; border-bottom: var(--rib); }
  .band > .face:last-child { border-bottom: 0; }
  .band.night > .face { border-bottom-color: var(--rib-night); }
  .facts dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--pad); }
  .facts dl > div:nth-child(2) { border-top: 0; padding-top: 0; }

  /* a band's heading and what it holds stay one block, so no rule falls between them */
  :root { --in: var(--pad); }
  .grid > .head { padding-block: clamp(3rem, 9vw, 4.75rem) var(--pad); }
  .people .head > .data { padding-top: 0; margin-top: 1rem; }
  .programme .head, .lop .journey { border-bottom: 0; padding-bottom: 0; }
  .lop .journey { padding-block: clamp(2rem, 6vw, 3rem) 1.5rem; }
  .lop > .lit:not(.seen) { grid-column: auto; }
  .lop > .lit:nth-of-type(1) { border-right: 1px solid var(--rib-night); }
  .lop > .lit:not(.seen) img { aspect-ratio: 4 / 5; }
  .lop > .act { padding: 1.5rem var(--pad) var(--pad); }
  .lop > .later { border-bottom-color: var(--ink); }
  .programme .table { padding-block: 1.5rem clamp(3rem, 9vw, 4.75rem); }

  .people > .person { grid-column: auto; }
  .people > .person:nth-of-type(even)::after { display: none; }
  .people > .person:nth-last-of-type(-n + 2) { border-bottom: 0; }

  .support .lit img { aspect-ratio: 16 / 9; }
  .support .face > .acts-row { margin-top: 2rem; padding-top: 0; }

  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .mark { grid-column: 1 / -1; }
}

/* ---------- 760 to 999: bands keep columns ---------- */
@media (width >= 47.5em) and (width < 62.5em) {
  /* home: the first act stands beside its photograph, the two acts ahead side by side */
  .lop > .seen { grid-column: 1; border-right: 1px solid var(--rib-night); }
  .lop > .act { grid-column: auto; }
  .lop > .later:not(.later + .later) { border-right: var(--rib); }
  /* the sheet covers the photograph face too, so its lines never have to break; it carries the rib itself while it is shown */
  .glow::after { left: calc(-80% - 2px); border-left: var(--rib); }
  .panel { left: calc(-80% - 2px); border-left: 1px solid transparent; }
  .say { transition: border-color .7s var(--calm); }
  .lantern:has(.spine:focus-visible) .say { border-right-color: transparent; }
  .people { grid-template-columns: repeat(4, 1fr); }
  .people > .person { border-bottom: 0; }
  .people > .person:nth-of-type(even):not(:last-child)::after { display: block; }
  .support .partner { grid-column: 1; border-right: var(--rib); border-bottom: 0; }
  .support .lacquer { grid-column: 2; }
}
@media (hover: hover) and (width >= 47.5em) and (width < 62.5em) { .lantern:has(.spine:hover) .say { border-right-color: transparent; } }

/* ---------- phone: faces turn from columns into rows ---------- */
@media (width < 47.5em) {
  :root { --top-h: 3.75rem; }
  /* one inset on a phone: everything begins 16px from the edge of the screen */
  .top, .is-past .top, .consent { padding-inline: 1rem; }
  .mark svg { height: 2rem; }
  .top nav { gap: .875rem; }
  .lantern { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }
  .lantern > .face { border-bottom: var(--rib); }
  .say { grid-column: 1 / -1; padding: 1.75rem 1rem; border-right: 0 !important; }

  .glow { grid-column: 1 / -1; order: 1; border-right: 0 !important; }
  .glow .lamp { flex: none; aspect-ratio: 1; height: auto; object-position: 50% 44%; }   /* square: the whole lantern, from its roof to the foot of its body */
  .glow .state, .glow .title { padding-inline: 1rem; }
  .glow .title { padding-top: .5rem; }
  .glow .blurb { display: block; }
  .panel, .glow::after { display: none; }
  /* no sheet here, so the dark face keeps its light when a row is pointed at */
  .lantern:has(.spine:hover) .glow > :not(.panel), .lantern:has(.spine:focus-visible) .glow > :not(.panel) { filter: none; }

  .lantern > .lit { order: 2; }
  .lantern > .gu { display: grid; border-right: 0; }
  .lantern > .lit img { aspect-ratio: 4 / 5; height: auto; }
  .home .lantern .cap, .partner.lantern .cap, .donate.lantern .cap { padding-inline: 1rem; }

  .spine, .spine.basel { grid-column: 1 / -1; order: 3; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: .125rem .875rem; min-height: 4rem; padding: .875rem 1rem 1rem; border-right: 0 !important; }
  .spine > span { writing-mode: horizontal-tb; white-space: normal; }
  .spine .t { flex: 0 0 100%; order: -1; line-height: 1.2; }
  .spine .y { order: 0; }
  .spine:last-child { border-bottom: 0; }

  .band > .face, .foot .quote, .foot .cols { padding-inline: 1rem; }
  .band .lit { padding-inline: 0; }
  .foot .credits { margin-inline: 1rem; padding-bottom: 1.5rem; }
  .facts dl { grid-template-columns: 1fr; }
  .ruled > div { grid-template-columns: 1fr; }
  .facts dl > div:nth-child(2) { border-top: 1px solid var(--hair); padding-top: .75rem; }
  :root { --in: 1rem; }
  .lop > .act, .lop > .more { padding-inline: 1rem; }

  table, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; padding: 1.125rem 0 1.25rem; }
  tbody tr:first-child { border-top: 0; padding-top: 0; }
  th, td { padding: 0; }
  tbody th, tbody td.st { grid-column: 1 / -1; }

  .foot .cols { grid-template-columns: 1fr; gap: 2rem; }
}
@media (width < 22.5em) { .top, .is-past .top { padding-inline: .75rem; } .top nav { gap: .375rem; } .mark svg { height: 1.75rem; } }

@media print {
  .top, .is-past .top { position: static; width: auto; border-bottom: 0; animation: none; }
  .is-past .top::before { content: none; }
  .lantern { min-height: 0; }
  .skip { display: none; }
  .kindle .lit img, .glow .lamp { filter: none !important; animation: none !important; }
  /* browsers leave backgrounds out of a print: dark and lacquer faces print as ink on paper */
  .night, .night *, .glow, .glow *, .lacquer, .lacquer * { background: none !important; color: var(--ink) !important; }
  .btn, .btn.light, .btn:hover, .btn.light:hover { background: none; color: var(--ink); border: 1px solid var(--ink); }
  .state i, td.st i { background: var(--ink) !important; }
  .panel, .glow::after, .consent { display: none; }
  body { padding-bottom: 0; }
}

/* high-contrast modes drop backgrounds: buttons keep an outline, state squares keep their fill */
@media (forced-colors: active) {
  .btn { border: 1px solid ButtonText; }
  .btn.plain { box-shadow: none; }
  .state i, td.st i { forced-color-adjust: none; background: CanvasText; }
}

/* beyond 1920px the page keeps its width and stands on the same white paper between two ribs */
@media (width > 120em) {
  html { background: var(--day); }
  body { position: relative; max-width: 120rem; margin-inline: auto; border-inline: var(--rib); }
  .is-past .top { left: calc(50% - 60rem + 1px); }   /* inside the two ribs */
  .is-past .top::before { left: calc(50% - 60rem + 1px); right: auto; width: calc(120rem - 2px); }
  .consent { left: calc(50% - 60rem + 1px); right: auto; width: calc(120rem - 2px); }
}
