/* A framed harbour illustration on the same paper as the collection. */
.tide-entry {
  --cover-height: clamp(18rem, 42vw, 46rem);
  --arrival-height: clamp(28rem, 64svh, 48rem);
  position: relative;
  isolation: isolate;
  background: var(--paper);
  margin-inline: var(--gutter);
}
.tide-entry > .collection { margin-inline: calc(-1 * var(--gutter)); }
.tide-world { position: absolute; inset: 0 0 auto; height: var(--cover-height); pointer-events: none; }
.tide-stick { position: relative; height: 100%; overflow: clip; }
.tide-plane { position: absolute; inset: 0; }
.header { border-bottom: 1px solid var(--rule); }
.tide-entry .edition-cover {
  height: auto;
  min-height: 0;
  padding-top: var(--cover-height);
  background: transparent;
  color: var(--ink);
}
.tide-entry .edition-cover::after { content: none; }
.tide-entry .flight-view { height: var(--cover-height); }
.tide-entry .flight-dock {
  position: relative;
  inset: auto;
  padding-block: .65rem;
  border-bottom: 1px solid var(--rule);
}
.flight-caption .print-label { color: var(--ink); }
#flight-help, #flight-keys { font-size: .925rem; }
#flight-motion {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--rule);
}
#flight-motion:enabled:hover { color: var(--paper); background: var(--ink); }

#collection { position: relative; z-index: 1; padding-top: 0; }
.collection-arrival {
  min-height: var(--arrival-height);
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5vw;
  color: var(--ink);
}
.arrival-title { padding-left: clamp(0rem, 3.6vw, 4rem); }
.arrival-title .print-label { margin-bottom: clamp(1.5rem, 3vw, 3.25rem); }
.arrival-title h2 { font-size: clamp(4.5rem, 8.4vw, 10rem); line-height: .85; letter-spacing: -.05em; }
.collection-arrival .object-one { grid-column: auto; grid-row: auto; width: clamp(15rem, 29vw, 31rem); justify-self: center; }
.collection-arrival .object-photo { background: transparent; aspect-ratio: 1; overflow: clip; }
.arrival-medallion {
  display: block;
  position: absolute;
  inset: -27%;
  pointer-events: none;
  filter: drop-shadow(0 1.15rem 1rem rgb(30 24 16 / .3));
}
.arrival-medallion img { clip-path: url(#round-medallion); }
.collection-arrival .photo-action {
  bottom: .35rem;
  right: auto;
  left: 50%;
  font-size: .8rem;
  white-space: nowrap;
  mix-blend-mode: normal;
  transform: translateX(-50%);
  text-shadow: 0 1px 5px #302820;
}
.collection-arrival .object figcaption {
  margin-inline: auto;
  max-width: 21rem;
  padding-top: 1.15rem;
}
.collection-arrival .index { color: inherit; }
.object-contours { position: absolute; width: 0; height: 0; pointer-events: none; }
.objects { padding-top: clamp(4.5rem, 15svh, 11rem); }
.objects .object-interlude { grid-column: 2 / 7; grid-row: 1; align-self: center; margin: 0; }
.objects .object-two { grid-column: 8 / 12; grid-row: 1; margin: 0; }
.object-two .object-photo { background: transparent; }
.object-two .object-photo img { clip-path: url(#half-medallion); scale: 1.26; }
.object-two .photo-action, .object-three .photo-action, .object-four .photo-action {
  color: var(--ink);
  mix-blend-mode: normal;
}
.object-three .object-photo, .object-four .object-photo { background: transparent; aspect-ratio: 1; }
.object-three .object-photo img { clip-path: url(#paired-hoops-outline); }
.object-four .object-photo img { clip-path: url(#open-hoop-outline); }
.objects .object-three { grid-area: 3 / 2 / auto / 6; margin-top: 0; }
.objects .object-four { grid-area: 3 / 8 / auto / 13; margin-top: clamp(3.5rem, 10vw, 10rem); }

/* Let the cropped paper print share the margin and colour of the surrounding sheet. */
.harbour-spread { position: relative; margin: clamp(5rem, 11vw, 12rem) calc(-1 * var(--gutter)); grid-template-columns: minmax(0, .9fr) minmax(0, 2.2fr); gap: 0; }
.harbour-caption { border: none; padding: 0 1rem 0 var(--gutter); }
.harbour-spread .plate-open { background: transparent; mix-blend-mode: multiply; aspect-ratio: 1.98; }
.harbour-spread .plate-open img {
  mask-image: linear-gradient(90deg, transparent, #000 16%),
    linear-gradient(180deg, transparent, #000 12%, #000 84%, transparent);
  mask-composite: intersect;
}
.harbour-spread .plate-enlarge { right: var(--gutter); background: #f2eee8cd; }

#main .editorial {
  position: relative;
  color: var(--ink);
  background: transparent;
  padding-top: clamp(6.5rem, 14vw, 14rem);
  padding-bottom: clamp(4rem, 10vw, 10rem);
}
.editorial .relief-field { opacity: .35; mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.editorial-word { top: 0; left: var(--gutter); color: #5f574e; font-size: clamp(6rem, 16vw, 16rem); }
.editorial-large { grid-column: 2 / 8; }
.editorial-studies { grid-column: 9 / 13; margin-top: clamp(4.5rem, 11vw, 13rem); }
.editorial-bracelet { width: 94%; }
.editorial-bracelet .photo { aspect-ratio: 1.34; }
.editorial-small { width: 61%; margin: clamp(3rem, 7vw, 8rem) 0 0 auto; background: transparent; box-shadow: none; }
.editorial-small figcaption, .editorial-side { color: var(--ink); }
.editorial-side { opacity: .75; }

.atlas { padding-bottom: clamp(4.5rem, 9vw, 10rem); }
.atlas .section-top { margin-bottom: clamp(2.5rem, 5vw, 5.5rem); }
.atlas-places {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: .1rem clamp(1.25rem, 2.3vw, 2.8rem);
  margin-bottom: clamp(1.25rem, 3vw, 2.7rem);
}
.atlas-places .print-label { color: #686057; }
.atlas-places :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .875rem;
  text-decoration: underline;
  text-decoration-color: #877e6c80;
  text-underline-offset: .4em;
}
.atlas-places :is(a, button):hover { text-decoration-color: currentColor; }
.sanctuary-spread {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(44rem, 111svh, 82rem);
  padding: 0;
  margin-bottom: clamp(4rem, 10vw, 11rem);
  background: transparent;
}
.sanctuary-spread .plate-open {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background: transparent;
}
.sanctuary-spread .plate-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 56%;
  mask-image: linear-gradient(180deg, transparent, rgb(0 0 0 / .15) 4%, rgb(0 0 0 / .65) 12%, #000 24%, #000 74%, rgb(0 0 0 / .78) 84%, rgb(0 0 0 / .22) 95%, transparent),
    linear-gradient(165deg, transparent, #000 16%, #000 84%, rgb(0 0 0 / .15));
  mask-composite: intersect;
}
.sanctuary-caption {
  z-index: 1;
  position: relative;
  align-self: center;
  width: fit-content;
  margin: 0 var(--gutter);
  display: block;
  color: var(--paper);
  text-shadow: 0 1px 10px #1a1612;
  pointer-events: none;
}
.sanctuary-caption h3 { max-width: 8ch; font-size: clamp(3.75rem, 6.3vw, 7.65rem); line-height: .9; }
.sanctuary-caption p { margin-top: 1.5rem; color: var(--paper); }
.sanctuary-spread .plate-enlarge { right: var(--gutter); bottom: 25%; }
.sanctuary-spread .plate-open:focus-visible { outline-color: var(--ink); outline-offset: -5px; }

.ring-section, .author, .footer { background: var(--paper); color: var(--ink); }
.author { padding-top: clamp(3.5rem, 8vw, 9rem); border-top: 1px solid var(--rule); }
.author > .eyebrow, .author .author-name { color: #5c564e; }
.author .contact-link { border-color: var(--ink); }
.footer { border-top: 1px solid var(--rule); }
.footer :is(a, button) { color: var(--ink); }

@media (max-width: 640px) {
  .tide-entry { --cover-height: clamp(19rem, 94vw, 32rem); --arrival-height: auto; }
  #flight-help, #flight-keys { font-size: .845rem; }
  .collection-arrival {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    justify-items: start;
    align-content: center;
    gap: clamp(1rem, 4svh, 2.2rem);
    padding-block: 3rem;
  }
  .arrival-title { padding-left: 0; }
  .arrival-title .print-label { font-size: .73rem; margin-bottom: 1rem; }
  .arrival-title h2 { font-size: clamp(3.75rem, 15vw, 6rem); }
  .collection-arrival .object-one { justify-self: end; width: min(69vw, 19rem); margin-right: 3vw; }
  .collection-arrival .object figcaption { font-size: .82rem; padding-top: .7rem; }
  .objects { padding-top: clamp(5rem, 13svh, 9rem); }
  .objects .object-interlude { grid-area: 1 / 1 / auto / -1; text-align: left; }
  .objects .object-two { grid-area: 2 / 3 / auto / 9; margin-top: 1.5rem; }
  .objects .object-three { grid-area: 4 / 1 / auto / 7; }
  .objects .object-four { grid-area: 5 / 3 / auto / 9; margin-top: 4.8rem; }
  .harbour-spread { grid-template-columns: 1fr; gap: 1.5rem; margin: 6rem calc(-1 * var(--gutter)); }
  .harbour-caption { margin: 0 var(--gutter); padding: 0; }
  .harbour-spread .plate-open { aspect-ratio: 1.6; }
  .harbour-spread .plate-open img { mask-image: linear-gradient(180deg, transparent, #000 14%, #000 88%, transparent); }
  .harbour-spread .plate-enlarge { bottom: 14%; }
  .object-interlude p { font-size: clamp(2.35rem, 10vw, 4rem); }
  #main .editorial { padding-top: 4.7rem; padding-bottom: 3.5rem; row-gap: 1.8rem; }
  .editorial-word { top: 0; }
  .editorial-large { grid-column: 2 / 9; }
  .editorial-studies { display: flex; gap: 7vw; align-items: start; grid-column: 1 / -1; margin-top: 0; }
  .editorial-bracelet { width: 56%; margin-top: 2rem; }
  .editorial-small { width: 34%; margin: 0; }
  .editorial-side { bottom: 56%; }
  .atlas .section-top { margin-bottom: 1.5rem; }
  .atlas-places { justify-content: start; gap: 0 .9rem; margin-bottom: .5rem; }
  .atlas-places .print-label { flex-basis: 100%; margin-bottom: .25rem; }
  .atlas-places :is(a,button) { font-size: .84rem; }
  .sanctuary-spread { min-height: max(36rem, 98svh); margin-bottom: 3.8rem; }
  .sanctuary-spread .plate-open img { object-position: 58% 52%; }
  .sanctuary-caption { align-self: end; margin-bottom: 29%; }
  .sanctuary-caption h3 { font-size: clamp(3.2rem, 13.6vw, 5rem); }
  .sanctuary-caption p { margin-top: .9rem; }
  .sanctuary-spread .plate-enlarge { right: var(--gutter); bottom: 20%; }
  .author { padding-top: 4.5rem; }
}

/* The opening stays quiet while the harbour responds to a gesture. */
.flight-view { cursor: default; }
.flight-dock { flex-direction: row; align-items: center; justify-content: space-between; }
.flight-view:focus-visible { outline-offset: -5px; }
.flight-caption #flight-keys { color: var(--ink); }

#object.ring-section {
  display: block; position: relative; margin: 0;
  padding: clamp(4rem, 9vw, 9.5rem) var(--gutter) clamp(6.5rem, 14vw, 14rem);
}
.bench-sheet {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem) clamp(.6rem, 1.45vw, 1.5rem); max-width: 84rem; margin: 0 auto;
}
.bench-copy { grid-area: 1 / 1 / 2 / 7; }
.bench-copy h2 { font-size: clamp(3.6rem, 7.2vw, 7.4rem); line-height: .98; margin: 1.35rem 0; }
.bench-copy > p:last-child { max-width: 23em; font: 400 clamp(1.16rem, 1.55vw, 1.52rem)/1.32 var(--serif); }
.study-oblique { grid-area: 1 / 7 / 3 / 13; }
.study-front { grid-area: 2 / 1 / 3 / 4; }
.study-profile { grid-area: 2 / 4 / 3 / 7; margin-top: 2rem; }
.bench-study button {
  display: block; position: relative; width: 100%; aspect-ratio: 1.48; cursor: zoom-in;
}
.study-oblique button { aspect-ratio: 1.13; }
.bench-study button span {
  position: absolute; inset: 0;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent),
    linear-gradient(to bottom, transparent, #000 8%, #000 88%, transparent);
  mask-composite: intersect;
}
.bench-study button { mix-blend-mode: multiply; overflow: hidden; }
.bench-study img {
  position: absolute; top: 50%; left: 50%; width: 170%; height: auto; max-width: none;
  transform: translate(-50%, -51%);
}
.study-oblique img {
  width: 154%; transform: translate(-50%, -53%);
  mask-image: radial-gradient(ellipse 38% 34% at 50% 54%, #000 70%, transparent 100%);
}
.study-front img {
  filter: brightness(1.09);
  mask-image: radial-gradient(ellipse 33% 25% at 50% 51%, #000 72%, transparent 100%);
}
.study-profile img {
  filter: brightness(1.14);
  mask-image: radial-gradient(ellipse 20.8% 27.6% at 49% 51.8%, #000 85%, transparent 100%);
}
.bench-study figcaption { padding-top: .7rem; text-align: center; color: #514a43; font-size: .875rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: .45rem 1.4rem; }
.footer nav a { min-height: 2.75rem; display: inline-flex; align-items: center; justify-self: auto; }

.print-viewer {
  border: 0; color: var(--ink); padding: 0; background: var(--paper);
  width: min(87rem, calc(100vw - 3rem)); max-width: none; max-height: none; overflow: visible;
  height: min(62rem, calc(100svh - 2rem)); margin: auto;
}
.print-viewer::backdrop { background: rgb(242 238 232 / .97); }
.print-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.print-close {
  margin: 0 0 .5rem auto; display: inline-flex; align-items: center; gap: .7rem; min-height: 2.75rem;
  padding-inline: .5rem; font-size: .95rem;
}
.print-close span { font-size: 1.55rem; line-height: 1; }
.print-figure { display: grid; grid-template-rows: minmax(0,1fr) auto; min-height: 0; }
.print-figure button { position: relative; overflow: hidden; width: 100%; height: 100%; cursor: zoom-in; touch-action: manipulation; }
.print-figure img { width: 100%; height: 100%; object-fit: contain; transform-origin: var(--zx,50%) var(--zy,50%); }
.print-figure button[aria-pressed='true'] { cursor: zoom-out; touch-action: none; }
.print-figure button[aria-pressed='true'] img { transform: scale(2.15); }
.print-figure figcaption { display: flex; gap: .5rem 2rem; justify-content: space-between; flex-wrap: wrap; align-items: baseline; padding: 1.15rem .15rem; }
.print-figure h2 { font: 400 clamp(1.6rem, 2.6vw, 2.8rem)/1 var(--serif); letter-spacing: -.025em; }
.print-figure p { font: 400 .875rem/1.45 Arial, sans-serif; color: #514a43; max-width: 54ch; }

@media (max-width: 640px) {
  .flight-dock { align-items: end; }
  .tide-entry .flight-words { bottom: clamp(7.4rem, 15svh, 9rem); }
  #object.ring-section { padding-block-start: 4.25rem; }
  .bench-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.65rem .9rem; }
  .bench-copy { grid-area: 1 / 1 / 2 / 3; }
  .bench-copy h2 { margin: 1rem 0; }
  .study-oblique { grid-area: 2 / 1 / 3 / 3; justify-self: center; width: 82%; }
  .study-front { grid-area: 3 / 1 / 4 / 2; }
  .study-profile { grid-area: 3 / 2 / 4 / 3; margin: 0; }
  .bench-study figcaption { padding-top: .4rem; }
  .footer nav { grid-row: 1 / 3; grid-column: 2; justify-self: end; align-content: start; justify-content: end; }
  .print-viewer { width: calc(100vw - 1.5rem); height: calc(100svh - 1rem); }
  .print-figure figcaption { display: block; padding: 1.15rem .25rem; }
  .print-figure p { margin-top: .45rem; }
}

.print-figure button { display: grid; place-items: center; }
.print-figure img { width: auto; height: auto; max-width: 100%; max-height: 100%; min-height: 0; }
