@font-face {
  font-family: Instrument;
  src: url('/assets/serif.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  font-style: italic;
  src: url('/assets/italic.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: DM;
  font-weight: 400 700;
  src: url('/assets/sans.woff2') format('woff2');
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #faf8f1;
  --ink: #1d3b33;
  --copy: #30453d;
  --muted: #53675e;
  --line: #c9d0c4;
  --clay: #994a37;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 DM, Arial, sans-serif;
}
* { box-sizing: border-box; }
body, figure, h1, h2, p { margin: 0; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--clay); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1240px, calc(100% - clamp(40px, 9vw, 144px))); margin-inline: auto; }
.skip { position: absolute; top: -5em; left: 14px; z-index: 4; padding: 8px 12px; background: var(--paper); }
.skip:focus { top: 10px; }
.mast { height: 80px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 35px/1 Instrument, Georgia, serif; letter-spacing: -.035em; }
.brand img { width: 36px; }
.map-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 40px; padding: 7px 16px; border-radius: 100px; border: 1px solid #a2b1a5;
  font-size: 14px; font-weight: 550; text-decoration: none;
}
.map-link span { font: 18px/1 Arial, sans-serif; }
.map-link:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.opener { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: clamp(36px, 6vw, 96px); padding: clamp(40px, 5.8vw, 80px) 0 clamp(32px, 4.1vw, 57px); }
h1 { font: 400 clamp(76px, 7.6vw, 115px)/.91 Instrument, Georgia, serif; letter-spacing: -.048em; }
h1 em { margin-inline-end: .05em; color: var(--clay); font-weight: 400; }
.preface { max-width: 450px; padding-bottom: 3px; }
.preface > p { font: 400 clamp(22px, 2.1vw, 30px)/1.26 Instrument, Georgia, serif; letter-spacing: -.008em; }
.byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; margin-top: 21px; font-size: 13px; color: var(--muted); }
.byline a { color: var(--ink); font-weight: 600; }
.byline .dot { color: var(--clay); }
.hero > img { width: 100%; background: #5a8074; }
figcaption { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 9px; }
.hero figcaption { display: flex; justify-content: space-between; gap: 18px; }
.hero figcaption a { flex-shrink: 0; font-weight: 550; color: var(--ink); }
.reading { display: grid; grid-template-columns: minmax(145px, 1fr) minmax(0, 800px) minmax(0, .38fr); column-gap: clamp(26px, 4vw, 68px); margin-top: clamp(65px, 8vw, 110px); padding-bottom: 68px; }
.margin nav { position: sticky; top: 34px; padding: 7px 0; display: grid; gap: 7px; justify-items: start; }
.margin h2 { margin-bottom: 3px; font: 600 13px/1.4 DM, Arial, sans-serif; color: var(--ink); }
.margin a { font-size: 13px; text-decoration: none; color: var(--muted); }
.margin a:hover, .margin a[aria-current] { color: var(--clay); text-decoration: underline; }
.chapters { min-width: 0; }
.chapters section { scroll-margin-top: 25px; }
.chapters section + section { margin-top: clamp(53px, 6.3vw, 88px); border-top: 1px solid var(--line); padding-top: clamp(32px, 3.5vw, 46px); }
.chapters h2 { margin: 0 0 21px; font: 400 clamp(39px, 3.9vw, 56px)/1 Instrument, Georgia, serif; letter-spacing: -.028em; text-wrap: balance; }
.chapters p { max-width: 65ch; font-size: 17px; line-height: 1.7; color: var(--copy); }
.chapters p + p { margin-top: 15px; }
.chapters figure { margin: 26px 0; }
.chapters figure > img { width: 100%; }
.camera > img { border: 1px solid #d9ddcf; background: #f5f2e8; }
.engineering-plate > img { border: 1px solid #d9ddcf; background: #f5f2e8; }
.water-controls:not([hidden]) { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 10px; }
.water-controls button {
  min-height: 40px; padding: 6px clamp(9px, 1.6vw, 18px); border: 1px solid var(--line);
  border-radius: 4px; background: transparent; color: var(--ink); font: 550 13px/1.2 DM, Arial, sans-serif; cursor: pointer;
}
.water-controls button[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.water-controls button:hover { border-color: var(--ink); }
.water-view { margin: 0 0 10px; }
.water-view img { width: 100%; background: #eeeae0; }
.water-view span { display: block; padding: 9px 12px; color: var(--ink); background: #eeefe6; font-size: 13px; }
.water-study:not(:has(.water-controls[hidden])) .water-view span { min-height: 4.5em; }
.water-view[hidden] { display: none; }
.compare-frame { position: relative; }
.compare-frame img { width: 100%; }
.compare-frame .drawing, .compare-frame .capture { position: relative; }
.compare-frame:not(.ready) { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.image-tag {
  position: absolute; top: 12px; padding: 4px 10px; border-radius: 3px;
  background: #faf8f1f2; color: var(--ink); font-size: 12px; font-weight: 600; pointer-events: none;
}
.capture .image-tag { left: 12px; }
.drawing .image-tag { right: 12px; }
.compare-frame.ready { --split: 46%; aspect-ratio: 1120/630; }
.ready .drawing, .ready .capture { position: absolute; inset: 0; }
.ready .capture { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.ready .drawing { clip-path: inset(0 0 0 var(--split)); }
.divider { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; transform: translateX(-50%); background: white; box-shadow: 0 0 3px #172f2a77; pointer-events: none; }
.divider span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-content: center; width: 39px; height: 39px; border-radius: 50%;
  box-shadow: 0 1px 6px #172f2a65; background: var(--paper); color: var(--ink);
  font: 24px/1 Arial, sans-serif; white-space: pre;
}
.compare-frame input {
  margin: 0; position: absolute; inset: 0; height: 100%; width: 100%; padding: 0; opacity: 0;
  appearance: none; cursor: ew-resize; touch-action: pan-y; outline-offset: -3px;
}
.compare-frame input::-webkit-slider-runnable-track { height: 100%; }
.compare-frame input::-webkit-slider-thumb { appearance: none; width: 1px; height: 100%; }
.compare-frame input::-moz-range-track { height: 100%; }
.compare-frame input::-moz-range-thumb { width: 1px; border: 0; }
.compare-frame:has(input:focus-visible) { outline: 3px solid var(--clay); outline-offset: 3px; }
.compare-frame:has(input:focus-visible) .divider span { outline: 2px solid var(--clay); }
.source { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; color: var(--muted); font-size: 11px; }
.source img, .data img { display: inline-block; width: 72px; }
.zoom-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.zoom-frame { position: relative; }
.zoom-frame.nested::after { content: ''; position: absolute; width: 25%; height: 25%; box-sizing: border-box; top: 37.5%; left: 37.5%; border: 2px solid #fff8e5; box-shadow: 0 0 0 1px #293e3777; }
.zoom-strip span { display: block; padding-top: 7px; font-size: 13px; font-weight: 600; }
#credits h2 { font-size: clamp(34px, 3vw, 44px); }
#credits p { font-size: 15px; }
.data { margin-top: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.data summary { padding: 13px 0; width: fit-content; cursor: pointer; font-size: 14px; font-weight: 600; }
.data[open] { padding-bottom: 16px; }
.data img { vertical-align: middle; }
#credits .data p { font-size: 13px; }
.foot { margin-top: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.foot .map-link { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.foot .map-link:hover { background: #36564b; }
.back-top { font-size: 13px; }
@media (max-width: 940px) {
  .reading { grid-template-columns: 140px 1fr; }
  .opener { grid-template-columns: 1.12fr .88fr; gap: 28px; }
}
@media (max-width: 740px) {
  .mast { height: 64px; }
  .brand { font-size: 31px; }
  .brand img { width: 31px; }
  .opener { grid-template-columns: 1fr; gap: 21px; padding: 36px 0 27px; }
  h1 { font-size: clamp(64px, 12vw, 88px); }
  .preface { max-width: 510px; padding: 0; }
  .preface > p { font-size: clamp(22px, 4.5vw, 26px); }
  .byline { margin-top: 15px; }
  .reading { display: block; margin-top: 32px; }
  .margin nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 15px 0; border-block: 1px solid var(--line); margin-bottom: 39px; }
  .margin h2 { flex: 0 0 100%; }
  .margin a { padding-block: 3px; text-decoration: underline; }
  .chapters p { font-size: 16px; }
}
@media (max-width: 480px) {
  .hero > img { aspect-ratio: 1.55; object-fit: cover; object-position: 54% 50%; }
  .hero figcaption { display: block; }
  .hero figcaption a { display: inline-block; margin-left: 4px; }
  figcaption { font-size: 12px; }
  .image-tag { font-size: 11px; top: 7px; padding: 3px 7px; }
  .capture .image-tag { left: 7px; }
  .drawing .image-tag { right: 7px; }
  .zoom-strip { gap: 5px; }
  .zoom-strip span { font-size: 11px; line-height: 1.3; }
  .map-link { min-height: 40px; padding-inline: 12px; gap: 10px; font-size: 13px; }
}
