/* Gorgazzo: a gallery for one spring.
   White walls, one typeface, hierarchy from size and grey. The pictures carry the colour;
   the only hue in the interface is the deep blue over the mouth of the shaft. */

@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
/* Review alternatives, loaded only when chosen with ?font= */
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --paper: #FFFFFF;
  --ink: #111111;
  --ink-2: #6B6B6B;
  --wall: #F2F2F0;
  --line: #E3E3E0;
  --accent: #0A6787;
  --accent-soft: #D6E6EC;
  --band: #EEF1EA;

  --sans: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --pad: clamp(1rem, 2.4vw, 2rem);
  --max: 90rem;
  --measure: 38rem;
  --head-h: 3.5rem;

  --t-xs: 0.8125rem;
  --t-s: 0.875rem;
  --t-m: 1.0625rem;
  --t-l: clamp(1.1875rem, 1.05rem + 0.55vw, 1.375rem);
  --t-xl: clamp(1.5rem, 1.15rem + 1.2vw, 1.875rem);
  --t-2xl: clamp(1.875rem, 1.2rem + 2.6vw, 2.75rem);
  --t-3xl: clamp(2.5rem, 1.45rem + 4vw, 4rem);
}
:root[data-font="figtree"] { --sans: "Figtree", "Avenir Next", Arial, system-ui, sans-serif; }
:root[data-font="instrument"] { --sans: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif; }

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101111;
    --ink: #ECECEA;
    --ink-2: #A0A09D;
    --wall: #1B1C1C;
    --line: #2B2C2C;
    --accent: #6CC3DE;
    --accent-soft: #17303A;
    --band: #172019;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 1.5rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-m)/1.65 var(--sans);
  font-optical-sizing: auto;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; }
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }
b, strong { font-weight: 500; }
i, em { font-style: italic; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
::selection { background: var(--accent-soft); }

.shell, .wrap.wide {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap { max-width: var(--measure); }
.skip { position: absolute; left: -999rem; top: 0; z-index: 50; padding: 0.75rem 1rem; background: var(--paper); color: var(--ink); font-size: var(--t-s); }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- header: a name on the left, the rooms on the right ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
}
.site-head-in {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  max-width: var(--max); min-height: var(--head-h); margin-inline: auto; padding-inline: var(--pad);
}
.brand { font-size: 1rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.nav-inline { display: none; gap: 1.5rem; }
.lang { margin-left: auto; font-size: var(--t-s); line-height: 1.2; color: var(--ink-2); text-decoration: none; }
.lang:hover { color: var(--ink); }
.site-head-in { column-gap: 1.25rem; }
.nav-inline a { font-size: var(--t-s); line-height: 1.2; color: var(--ink); text-decoration: none; }
.nav-inline a:hover { color: var(--ink-2); }
.nav-inline a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.45em; }
.menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; min-height: 2.75rem;
  padding: 0 0.75rem; margin-right: -0.75rem; font-size: var(--t-s); color: var(--ink);
}
.menu summary::-webkit-details-marker { display: none; }
.menu nav {
  position: fixed; left: 0; right: 0; top: var(--head-h);
  display: grid; padding: 0.75rem var(--pad) 1.75rem;
  background: var(--paper);
  box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--ink) 18%, transparent);
}
.menu nav a { padding: 0.45rem 0; font-size: var(--t-xl); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.menu nav a[aria-current] { color: var(--ink-2); }
@media (min-width: 76rem) {
  .nav-inline { display: flex; margin-left: auto; }
  .lang { margin-left: 0.5rem; }
  .menu { display: none; }
}

/* ---------- home: masthead over one picture, caption in the lower left ---------- */
.mast-wrap { --mast-k: 5.13; container-type: inline-size; overflow-x: clip; max-width: var(--max); margin: 0 auto; padding: clamp(0.25rem, 1vw, 0.75rem) var(--pad) 0; }
:root[data-font="figtree"] .mast-wrap { --mast-k: 5.37; }
:root[data-font="instrument"] .mast-wrap { --mast-k: 5.34; }
.mast {
  margin: 0 0 0 -0.03em;
  font-size: calc(100cqi / var(--mast-k));
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mast-sub { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 2rem; margin: 1rem 0 0; font-size: var(--t-s); line-height: 1.4; color: var(--ink-2); }

.hero-art { max-width: var(--max); margin: clamp(1.75rem, 4vw, 3rem) auto 0; padding-inline: var(--pad); }
.hero-art figure { display: none; margin: 0; }
:root:not([data-hero]) .hero-riva, [data-hero="riva"] .hero-riva, [data-hero="water"] .hero-water, [data-hero="sorgenti"] .hero-sorgenti { display: grid; }
.hero-art figure { --hw: min(78%, 22rem); grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 0.9rem; }
.hero-art img { display: block; width: var(--hw); height: auto; background: var(--wall); }
.hero-art .hero-sorgenti { --hw: 100%; }
.hero-art figcaption { justify-self: start; font-size: var(--t-xs); line-height: 1.5; color: var(--ink-2); }
.hero-art figcaption .t { display: block; color: var(--ink); }
@media (min-width: 48rem) {
  .hero-art figure { --hw: min(30vw, 27rem); grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: var(--pad); align-items: end; }
  .hero-art .hero-sorgenti { --hw: min(58vw, 56rem); }
  .hero-art img { grid-column: 2; grid-row: 1; }
  .hero-art figcaption { grid-column: 1; grid-row: 1; max-width: 16rem; }
}

.home-lede-wrap { max-width: var(--max); margin: clamp(4rem, 9vw, 8rem) auto 0; padding-inline: var(--pad); }
.home-lede { max-width: 31em; margin: 0; font-size: var(--t-2xl); line-height: 1.22; letter-spacing: -0.03em; }
@media (min-width: 64rem) { .home-lede { margin-left: 25%; } }

/* section heads on the home page */
.sec { max-width: var(--max); margin: clamp(5rem, 11vw, 9.5rem) auto 0; padding-inline: var(--pad); }
.sec-h { margin: 0 0 0.6rem; font-size: var(--t-xl); line-height: 1.2; letter-spacing: -0.025em; }
.sec-p { max-width: 34rem; margin: 0 0 clamp(1.75rem, 3.5vw, 2.75rem); color: var(--ink-2); }

/* the same spring, 1872 and today */
.pair { display: grid; gap: 2.5rem; margin: 0; }
.pair figure { margin: 0; }
.pair img { display: block; width: 100%; height: auto; background: var(--wall); }
@media (min-width: 48rem) {
  .pair { grid-template-columns: 1.501fr 1.778fr; gap: var(--pad); align-items: end; }
}

/* wall labels: under every picture on the site */
.label { margin-top: 0.85rem; font-size: var(--t-xs); line-height: 1.5; color: var(--ink-2); }
.label .t { display: block; font-size: var(--t-s); color: var(--ink); }
.label a { color: inherit; }

/* the chapters as rooms */
.qindex { list-style: none; margin: 0; padding: 0; display: grid; gap: 3.25rem var(--pad); }
.qindex a { display: grid; gap: 0.9rem; color: var(--ink); text-decoration: none; }
.qindex .pic { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--wall); }
.qindex .pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qindex .txt { display: grid; gap: 0.3rem; align-content: start; }
.qindex .go { font-size: var(--t-s); color: var(--ink-2); }
.qindex .q { font-size: var(--t-xl); line-height: 1.18; letter-spacing: -0.025em; }
.qindex .a { max-width: 30rem; font-size: var(--t-m); line-height: 1.55; color: var(--ink-2); }
.qindex a:hover .q, .qindex a:focus-visible .q { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
.credits { max-width: 52rem; margin: 2.75rem 0 0; font-size: var(--t-xs); line-height: 1.55; color: var(--ink-2); }
@media (min-width: 48rem) {
  .qindex { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 4.5rem; }
  .qindex .first { grid-column: 1 / -1; }
  .qindex .first a { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--pad); align-items: end; }
  .qindex .first .pic { aspect-ratio: 4 / 3; }
  .qindex .first .q { font-size: var(--t-2xl); line-height: 1.1; letter-spacing: -0.035em; }
  .qindex .first .a { font-size: var(--t-l); line-height: 1.45; }
}
@media (min-width: 64rem) {
  .qindex { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* the quotation */
.pull { max-width: var(--max); margin: clamp(6rem, 13vw, 11rem) auto 0; padding-inline: var(--pad); }
.pull figure { margin: 0; }
.pull blockquote { margin: 0; padding: 0; border: 0; }
.pull blockquote p { max-width: 24em; margin: 0; font-size: var(--t-2xl); line-height: 1.2; letter-spacing: -0.03em; font-style: normal; }
.pull figcaption { margin-top: 1.5rem; font-size: var(--t-s); color: var(--ink-2); }
@media (min-width: 64rem) { .pull figure { margin-left: 25%; } }

/* the short version */
.home-short { max-width: var(--max); margin: clamp(6rem, 12vw, 10rem) auto 0; padding-inline: var(--pad); }
.home-short section { max-width: none; padding: 0; }
.home-short h2 { margin: 0 0 1rem; font-size: var(--t-xl); line-height: 1.2; letter-spacing: -0.025em; }
.home-short section > p, .home-short .points { max-width: var(--measure); }
.home-short .more { max-width: var(--measure); padding: 0; margin: 2rem 0 0; }
@media (min-width: 64rem) {
  .home-short section { display: grid; grid-template-columns: 25% minmax(0, var(--measure)); }
  .home-short section > h2 { grid-row: 1 / span 3; padding-right: var(--pad); }
  .home-short .more { margin-left: 25%; }
}

/* ---------- chapter opener: title, deck, then the picture on the wall ---------- */
.chead { max-width: var(--max); margin: 0 auto; padding: clamp(2.75rem, 7vw, 6rem) 0 0; }
.chead .shell { max-width: none; }
.ctitle { margin: 0; font-size: var(--t-3xl); line-height: 1.02; letter-spacing: -0.045em; }
.deck { max-width: 32em; margin: 1.1rem 0 0; font-size: var(--t-l); line-height: 1.45; letter-spacing: -0.012em; color: var(--ink-2); text-wrap: pretty; }
@media (min-width: 64rem) { .ctitle, .deck { margin-left: 25%; } }

.lead-art { max-width: var(--max); margin: clamp(2.5rem, 5vw, 4.5rem) auto 0; padding-inline: var(--pad); }
.lead-art figure { margin: 0; }
.lead-art img { display: block; width: 100%; height: auto; background: var(--wall); }
.lead-art.photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--focus, 50% 50%); }
.lead-art.painting figure { display: table; margin: 0 auto; }
.lead-art.painting img { width: auto; max-width: calc(min(100vw, var(--max)) - 2 * var(--pad)); max-height: 72svh; }
.lead-art.painting .label { display: table-caption; caption-side: bottom; }
@media (min-width: 48rem) {
  .lead-art.photo img { aspect-ratio: 16 / 8; max-height: 82svh; }
}

/* ---------- chapter layout: rooms list on the left, reading on the right ---------- */
.chapter { margin-top: clamp(2.75rem, 6vw, 5rem); }
.chapter main { min-width: 0; }
.chapter main > section { max-width: none; padding: 0; }
.chapter main > section > :where(p, ul, ol, dl, blockquote, h2, h3, .chart-note, .about, .steps, .captions, .links, .glossary, .toc) { max-width: var(--measure); }
.chapter main > section + section { margin-top: clamp(4.5rem, 8vw, 7rem); }
.chapter h2 { margin: 0 0 1.1rem; font-size: var(--t-xl); line-height: 1.2; letter-spacing: -0.025em; }
.chapter h3 { margin: 2.75rem 0 0.75rem; font-size: var(--t-l); line-height: 1.3; letter-spacing: -0.015em; }

.onpage { margin: 0 0 3rem; }
.onpage-h { display: none; }
.onpage ul {
  display: flex; gap: 1.5rem; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 0.25rem; list-style: none;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.onpage ul::-webkit-scrollbar { display: none; }
.onpage li { flex: none; }
.onpage a { display: block; padding: 0.55rem 0; font-size: var(--t-s); line-height: 1.3; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.onpage a:hover, .onpage a[aria-current] { color: var(--ink); }
.cite-toggle {
  min-height: 2.75rem; margin: 0.25rem 0 0; padding: 0; border: 0; background: none; cursor: pointer;
  font: 400 var(--t-s)/1.3 var(--sans); color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}
.cite-toggle:hover { text-decoration-color: currentColor; }
@media (min-width: 64rem) {
  .chapter { display: grid; grid-template-columns: 25% minmax(0, 1fr); }
  .onpage { position: sticky; top: calc(var(--head-h) + 2rem); align-self: start; margin: 0; padding-right: var(--pad); max-height: calc(100vh - var(--head-h) - 4rem); overflow-y: auto; }
  .onpage-h { display: block; margin: 0 0 0.5rem; font-size: var(--t-s); color: var(--ink); }
  .onpage ul { display: block; margin: 0 0 1rem; padding: 0; overflow: visible; }
  .onpage a { padding: 0.28rem 0; white-space: normal; }
  .onpage a[aria-current]::before { content: ""; display: inline-block; width: 0.75rem; height: 1px; margin: 0 0.5rem 0.3em 0; background: currentColor; vertical-align: middle; }
}

/* ---------- reading components: space instead of rules ---------- */
.tn { color: var(--ink-2); }
.chapter blockquote { margin: 2rem 0 2.25rem; padding: 0; border: 0; }
.chapter blockquote p { margin: 0; font-size: var(--t-l); line-height: 1.45; letter-spacing: -0.012em; }

.points { list-style: none; margin: 1.5rem 0 1.75rem; padding: 0; display: grid; gap: 1.15rem; }
.points li { margin: 0; }
.points li:not(:has(> .lead)) { position: relative; padding-left: 1.4rem; }
.points li:not(:has(> .lead))::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 0.7rem; height: 1px; background: var(--ink-2); }
.points .lead { display: block; margin-bottom: 0.2rem; font-size: var(--t-s); font-weight: 500; line-height: 1.4; color: var(--ink); }
.steps { margin: 1.5rem 0 1.75rem; padding-left: 1.4rem; }
.steps li { margin: 0 0 1rem; padding-left: 0.35rem; }
.steps li::marker { font-size: var(--t-s); color: var(--ink-2); }
.steps .lead, .steps li > b:first-child { font-size: var(--t-s); }

.timeline, .facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 1.75rem 0 2.25rem; }
.timeline dt, .facts dt { margin: 0; padding-top: 0.9rem; font-size: var(--t-s); line-height: 1.45; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.timeline dd, .facts dd { margin: 0.1rem 0 0; font-size: var(--t-m); line-height: 1.55; }
.timeline dt:first-child, .facts dt:first-child { padding-top: 0; }
.facts dd { font-size: var(--t-l); font-weight: 300; line-height: 1.35; letter-spacing: -0.015em; }
.facts .src, .facts .cite { display: block; font-size: var(--t-xs); font-weight: 400; letter-spacing: 0; }
@media (min-width: 40rem) {
  .timeline { grid-template-columns: 7rem minmax(0, 1fr); column-gap: 1.75rem; }
  .facts { grid-template-columns: 11rem minmax(0, 1fr); column-gap: 1.75rem; }
  .timeline dt, .timeline dd, .facts dt, .facts dd { padding-top: 0.85rem; margin: 0; }
  .timeline dt:nth-of-type(1), .timeline dd:nth-of-type(1), .facts dt:nth-of-type(1), .facts dd:nth-of-type(1) { padding-top: 0; }
  .facts dt { padding-top: 1.05rem; }
  .facts dt:nth-of-type(1) { padding-top: 0.2rem; }
}

.glossary { margin: 1.5rem 0 0; display: grid; gap: 1.1rem; }
.glossary div { padding: 0; }
.glossary dt { font-style: italic; }
.glossary dd { margin: 0.1rem 0 0; color: var(--ink-2); }
.glossary .where { display: block; font-size: var(--t-xs); color: var(--ink-2); }
@media (min-width: 48rem) { .chapter main > section > .glossary { max-width: none; grid-template-columns: 1fr 1fr; column-gap: var(--pad); } }

.links { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1rem; }
.links li { display: grid; gap: 0.1rem; }
.links span { font-size: var(--t-xs); color: var(--ink-2); }

.captions { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.captions li { font-size: var(--t-m); line-height: 1.55; }
.what { display: block; margin-bottom: 0.1rem; font-size: var(--t-xs); color: var(--ink-2); }
.credit { color: var(--ink-2); }
.about p { color: var(--ink-2); }
.panel-photo { margin: 2rem 0 2.5rem; }
.panel-photo img { display: block; width: 100%; height: auto; background: var(--wall); }
.panel-photo figcaption { margin-top: 0.85rem; font-size: var(--t-xs); color: var(--ink-2); }

.band { margin-top: clamp(4.5rem, 8vw, 7rem); padding: 2rem clamp(1.25rem, 3vw, 2.5rem) 2.25rem; background: var(--band); }
.chapter main > .band { max-width: calc(var(--measure) + 5rem); }
.band h2 { margin-top: 0; }
.band + section { margin-top: clamp(4.5rem, 8vw, 7rem); }

a.src { color: var(--ink-2); }
a.src:hover { color: var(--ink); }

/* sources in the text: off by default */
.cite { display: none; }
.show-cites .cite { display: inline; color: var(--ink-2); }
.show-cites .facts .cite { display: block; }

/* ---------- figures and charts ---------- */
.fig-head { display: block; margin-bottom: 0.75rem; }
.fig-title { display: block; font-size: var(--t-s); font-weight: 500; line-height: 1.4; }
.fig-sub { display: block; font-size: var(--t-xs); line-height: 1.45; color: var(--ink-2); }
.depth-chart, .geo, .depths { max-width: 44rem; margin: 2.25rem 0 2.5rem; }
.chapter main > section > .depth-chart { max-width: 31rem; }
.depth-chart svg, .geo svg { display: block; width: 100%; height: auto; margin-top: 0.75rem; }
.depth-chart text { font-family: var(--sans); font-size: 12.5px; fill: var(--ink-2); }
.depth-chart .d-val { font-size: 14px; font-weight: 500; fill: var(--ink); }
.depth-chart .grid { stroke: var(--line); stroke-width: 1; }
.depth-chart .axis { stroke: var(--ink-2); stroke-width: 1; }
.depth-chart .ref { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.depth-chart .rec { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.depth-chart .dot { fill: var(--ink); }
.depth-chart .accent { stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; }
.depth-chart .dot-accent { fill: var(--accent); }
.chart-note { margin: 0.9rem 0 0; font-size: var(--t-xs); line-height: 1.55; color: var(--ink-2); }

.meter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.meter-list li { display: grid; grid-template-columns: 3rem 1fr auto; column-gap: 0.75rem; align-items: baseline; }
.yr, .val { font-variant-numeric: tabular-nums; }
.yr { font-size: var(--t-s); color: var(--ink-2); }
.who { font-size: var(--t-s); line-height: 1.4; }
.val { font-size: var(--t-s); font-weight: 500; text-align: right; white-space: nowrap; }
.bar { grid-column: 2 / 4; height: 6px; margin-top: 0.5rem; background: var(--wall); }
.bar > span { display: block; height: 100%; width: calc(var(--d) / 222 * 100%); background: var(--accent); }
.note { grid-column: 2 / 4; margin-top: 0.4rem; font-size: var(--t-xs); line-height: 1.45; color: var(--ink-2); }

.geo text { font-family: var(--sans); font-size: 11.5px; fill: var(--ink-2); }
.geo .em { fill: var(--ink); font-weight: 500; }
.geo .inband { fill: #fff; font-size: 10.5px; font-weight: 500; stroke-width: 2.8px; stroke-linejoin: round; paint-order: stroke; }
.geo .on-lime { stroke: rgba(16, 52, 22, 0.75); }
.geo .on-cong { stroke: rgba(8, 38, 66, 0.75); }
.geo .grid { stroke: var(--line); stroke-width: 0.75; }
.geo .fault { stroke: var(--ink); stroke-width: 1.5; fill: none; stroke-linejoin: round; }
.geo .leader { stroke: var(--ink-2); stroke-width: 0.75; }
.geo .spring { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.geo figcaption { margin-top: 1.1rem; font-size: var(--t-s); line-height: 1.55; }
.geo figcaption p { margin-bottom: 0.6em; }
.legend { list-style: none; margin: 0.9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem 1.25rem; font-size: var(--t-xs); line-height: 1.4; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 0.5rem; }
.legend svg { width: 24px; height: 14px; flex: none; }

.sources ul { margin: 0 0 1.2em; padding-left: 1.15rem; font-size: var(--t-s); }
.sources li { margin: 0 0 0.4rem; }
.sources li::marker { color: var(--ink-2); }

/* ---------- the gallery: works hung on a white wall, labels beneath ---------- */
.chapter main > section > .gallery { max-width: none; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1rem; margin: 1.75rem 0 3.5rem; }
.g-item { margin: 0; }
.g-open {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; background: transparent; cursor: zoom-in;
}
.g-open img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; }
.g-miss {
  display: none; position: absolute; inset: 0; align-items: center; justify-content: center; padding: 0.75rem;
  background: var(--wall); font-size: var(--t-xs); line-height: 1.4; color: var(--ink-2); text-align: center;
}
.g-off .g-open { cursor: default; }
.g-off img { display: none; }
.g-off .g-miss { display: flex; }
.g-item figcaption { margin-top: 0.85rem; font-size: var(--t-xs); line-height: 1.5; color: var(--ink-2); }
.g-title { display: block; margin-bottom: 0.05rem; font-size: var(--t-s); line-height: 1.4; color: var(--ink); }
.g-host { display: block; }
@media (min-width: 48rem) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4rem var(--pad); }
  .g-open { aspect-ratio: 5 / 4; }
}
@media (min-width: 80rem) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* the viewing room */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--paper); color: var(--ink);
}
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox::backdrop { background: var(--paper); }
.lb-fig { display: table; margin: auto; padding-top: var(--pad); }
.lb-img { display: block; width: auto; height: auto; max-width: calc(100vw - 2 * var(--pad)); max-height: calc(100dvh - 11rem); }
.lb-cap { display: table-caption; caption-side: bottom; margin: 0; padding-top: 0.85rem; font-size: var(--t-xs); line-height: 1.5; color: var(--ink-2); }
.lb-cap .g-title { color: var(--ink); }
.lb-bar { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem var(--pad) calc(0.6rem + env(safe-area-inset-bottom)); }
.lb-bar button {
  min-width: 2.75rem; min-height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer;
  font: 400 var(--t-s)/1 var(--sans); color: var(--ink);
}
.lb-bar button:hover { text-decoration: underline; text-underline-offset: 0.25em; }

/* ---------- previous / next ---------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); max-width: none; margin: clamp(6rem, 11vw, 9rem) 0 0; }
.pager a { display: block; font-size: var(--t-l); line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; text-wrap: balance; }
.pager a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.pager span { display: block; margin-bottom: 0.4rem; font-size: var(--t-s); letter-spacing: 0; color: var(--ink-2); }
.pg-next { text-align: right; }
@media (min-width: 48rem) { .pager a { font-size: var(--t-xl); } }

/* ---------- footer ---------- */
.site-foot { margin-top: clamp(6rem, 12vw, 10rem); padding: 2.5rem 0 3.5rem; font-size: var(--t-s); line-height: 1.55; color: var(--ink-2); }
.site-foot .shell { display: grid; gap: 1.5rem; }
.site-foot p { max-width: 36rem; margin: 0; }
.foot-brand a { font-size: 1rem; color: var(--ink); text-decoration: none; }
.foot-links { display: grid; grid-template-columns: repeat(2, max-content); gap: 0.3rem 2.5rem; margin: 0; padding: 0; list-style: none; }
.foot-links a { color: var(--ink); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-small { font-size: var(--t-xs); }
@media (min-width: 64rem) {
  .site-foot .shell { grid-template-columns: 25% minmax(0, 36rem) 1fr; column-gap: var(--pad); row-gap: 1.25rem; }
  .foot-brand { grid-column: 1; grid-row: 1 / span 2; }
  .site-foot .shell > p:not(.foot-brand):not(.foot-small):not(.made-by) { grid-column: 2; grid-row: 1; }
  .site-foot .shell > p.made-by { grid-column: 2; grid-row: 3; }
  .foot-small { grid-column: 2; grid-row: 2; }
  .foot-links { grid-column: 3; grid-row: 1 / span 2; justify-self: end; align-self: start; }
}

/* home: the way into the descent, the painted spring behind it */
.teaser { position: relative; isolation: isolate; overflow: hidden; margin: clamp(5rem, 11vw, 9.5rem) 0 0; background: #06171c; color: #F3F8F9; }
.teaser-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.001); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.teaser-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(2, 12, 16, 0.9) 0%, rgba(2, 12, 16, 0.62) 34%, rgba(2, 12, 16, 0.12) 64%, rgba(2, 12, 16, 0) 78%), linear-gradient(to bottom, rgba(2, 12, 16, 0.35), transparent 22%); }
.teaser a { display: grid; align-content: end; gap: 0.9rem; min-height: clamp(36rem, 92vh, 56rem); max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad) clamp(3.5rem, 7vw, 6rem); color: inherit; text-decoration: none; }
.teaser .n { font-size: clamp(5.5rem, 2.5rem + 13vw, 15rem); font-weight: 300; line-height: 0.88; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35); }
.teaser .h { margin-top: 1.25rem; font-size: var(--t-xl); line-height: 1.2; letter-spacing: -0.025em; }
.teaser .t { max-width: 32em; font-size: var(--t-m); line-height: 1.55; color: rgba(243, 248, 249, 0.9); }
.teaser .go { margin-top: 0.5rem; font-size: var(--t-s); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.teaser a:hover .go, .teaser a:focus-visible .go { text-decoration-thickness: 2px; }
.teaser:hover .teaser-img, .teaser:focus-within .teaser-img { transform: scale(1.035); }
.teaser-credit { position: absolute; right: var(--pad); bottom: 1rem; margin: 0; max-width: 60%; font-size: 0.6875rem; line-height: 1.4; text-align: right; color: rgba(243, 248, 249, 0.6); }
@media (min-width: 64rem) { .teaser .h, .teaser .t, .teaser .go { margin-left: 25%; } }
@media (max-width: 47.99rem) {
  .teaser-img { object-position: 68% 50%; }
  .teaser a { min-height: clamp(34rem, 100svh, 46rem); padding-bottom: 4rem; }
  .teaser-credit { left: var(--pad); right: auto; max-width: none; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .teaser-img { transition: none; } .teaser:hover .teaser-img { transform: none; } }

/* the narrowest phones: keep the header on one line */
@media (max-width: 22.5rem) {
  .site-head-in { column-gap: 0.6rem; }
  .brand, .lang, .menu summary { font-size: 0.8125rem; }
  .menu summary { padding: 0 0.5rem; margin-right: -0.5rem; }
}

/* Created by Ornate Werks: the panther from ornatewerks.com and the spaced wordmark */
.ow-credit { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; }
.ow-pre { margin-right: 0.2rem; font-size: var(--t-xs); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.ow-mark { display: block; flex: none; width: auto; height: 26px; }
.ow-name { font-size: 12.5px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; }
.ow-credit:hover .ow-name, .ow-credit:focus-visible .ow-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.35em; }
.made-by { margin-top: 0.75rem; }
.menu nav a.ow-credit { display: flex; justify-self: start; margin-top: 1rem; padding: 1.1rem 0 0.2rem; font-size: var(--t-s); letter-spacing: 0; }
.menu nav a.ow-credit .ow-name { font-size: 12.5px; }
.ow-head { display: none; color: var(--ink); }
.ow-head .ow-mark { height: 22px; }
.ow-head:hover { opacity: 0.7; }
@media (min-width: 76rem) { .ow-head { display: block; margin-left: 0.25rem; } }
.page-dive .ow-head, .page-dive .menu nav a.ow-credit { color: #F1F6F7; }
.page-dive .menu nav .ow-pre { color: rgba(241, 246, 247, 0.65); }
