body[data-page=art] {
  --paper: #f7ebdb url("assets/art-rag-paper.webp") repeat;
  --bg: #f7ebdb;
  --fg: #40291c;
  --muted: #79604d;
  --line: #d9c4af;
  --lime: #91461f;
  --art-header-height: clamp(66px, 5.6vw, 98px);
  background: var(--bg);
  color: var(--fg);
}

/* The masthead and cover share the same paper stock. */
body[data-page=art] header {
  position: sticky;
  top: 0;
  height: var(--art-header-height);
  padding: 0 3.8%;
  gap: clamp(12px, 1.5vw, 30px);
  background: var(--paper);
  border: 0;
  box-shadow: none;
  color: var(--fg);
}
body[data-page=art] .brand { gap: clamp(12px, 1.3vw, 24px); }
body[data-page=art] .brand-mark { color: var(--fg); }
body[data-page=art] .brand-type { border-left: 1px solid #9d8066; padding-left: clamp(12px, 1.2vw, 24px); }
body[data-page=art] .brand .brand-name {
  font: 500 clamp(.875rem, 1.15vw, 1.3rem)/1.2 Georgia, serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}
body[data-page=art] header nav,
body[data-page=art] header .primary-nav-links {
  gap: clamp(16px, 2.65vw, 52px);
  font: 400 clamp(1rem, 1.4vw, 1.6rem)/1.3 Georgia, serif;
  color: var(--fg);
}
body[data-page=art] .primary-nav-links,
body[data-page=art] .nav-contact {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}
body[data-page=art] .nav-contact span { display: none; }
body[data-page=art] nav a[aria-current=page] {
  color: var(--fg);
  text-decoration-color: var(--lime);
  text-underline-offset: .55em;
  text-decoration-thickness: 2px;
}

.art-cover {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--paper);
}
.art-spread::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/art-copper-lines.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.art-spread {
  position: relative;
  isolation: isolate;
  width: min(100%, 2050px);
  min-height: max(calc(100svh - var(--art-header-height)), min(46vw, 920px));
  margin: 0 auto;
  padding: clamp(35px, 3vw, 62px) 3.8% clamp(60px, 5vw, 100px);
  display: grid;
  grid-template-columns: minmax(0, 29fr) minmax(0, 71fr);
  align-items: center;
}
.art-opening-copy { position: relative; z-index: 2; }
:is(#art-universe-title, .art-finale) {
  margin: 0;
  font: 400 clamp(3.8rem, 6.8vw, 8.6rem)/.99 Georgia, 'Times New Roman', serif;
  letter-spacing: -.06em;
  color: var(--fg);
  text-shadow: none;
}
:is(#art-universe-title, .art-finale) em {
  display: block;
  color: #783f23;
  font: italic .97em/1.1 Georgia, 'Times New Roman', serif;
  letter-spacing: -.065em;
}
html[lang=en] :is(#art-universe-title, .art-finale) { font-size: clamp(3.2rem, 5.35vw, 6.8rem); }
html[lang=de] :is(#art-universe-title, .art-finale) { font-size: clamp(3.2rem, 5.6vw, 7rem); }
.art-explore {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-height: 44px;
  margin-top: clamp(24px, 3.2vw, 62px);
  color: var(--lime);
  border-bottom: 2px solid currentColor;
  font: 400 clamp(1.15rem, 1.78vw, 2.1rem)/1.25 Georgia, serif;
}
.art-explore svg { width: .9em; height: .9em; flex: none; }
.art-explore:hover { color: #58290e; }
.art-prints { position: relative; width: 100%; aspect-ratio: 1.83; }
.art-print-set { position: absolute; inset: 0; }
.art-print {
  --angle: 0deg;
  --lift: 0px;
  position: absolute;
  padding: clamp(4px, .48vw, 9px);
  margin: 0;
  border: 1px solid #d8c4a9;
  background: var(--paper);
  aspect-ratio: .78;
  box-shadow: 4px 15px 18px -8px #50362064, 2px 3px 5px #50362025;
  color: var(--fg);
  cursor: pointer;
  transform: translateY(var(--lift)) rotate(var(--angle));
  transition: transform .25s ease, box-shadow .25s ease;
}
.art-print img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.print-left { --angle: -8deg; z-index: 1; width: 35.5%; left: 1%; top: 2%; }
.print-centre { --angle: 5.5deg; z-index: 3; width: 39%; left: 28%; top: 10%; }
.print-right { --angle: 9deg; z-index: 2; width: 35.5%; right: 1%; top: 4%; }
.print-title {
  position: absolute;
  inset: auto clamp(4px, .48vw, 9px) clamp(4px, .48vw, 9px);
  padding: .55em .85em;
  background: #fcf1e1f5;
  font: italic 400 clamp(.85rem, 1.15vw, 1.4rem)/1.25 Georgia, serif;
  text-align: left;
  opacity: 0;
  transition: opacity .2s;
}
@media (hover: hover) and (pointer: fine) {
  .art-print:hover { --lift: -8px; z-index: 4; }
  .art-print:hover .print-title { opacity: 1; }
}
.art-print:focus-visible { --lift: -6px; z-index: 5; }
.art-print:focus-visible .print-title { opacity: 1; }
.art-cover :focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.print-switch {
  position: absolute;
  right: 4%;
  bottom: clamp(6px, 1.4vw, 26px);
  display: flex;
  gap: 3px;
}
.print-switch button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.print-switch button::after {
  content: "";
  width: 70%;
  height: 2px;
  background: #a98e74;
}
.print-switch button[aria-pressed=true]::after { background: #743b1e; height: 3px; }
.art-cover [hidden] { display: none; }
body[data-page=art] #works { scroll-margin-top: var(--art-header-height); }
body[data-page=art] #works .section-heading h2 { font-family: Georgia, serif; font-weight: 400; }

@media (max-width: 1150px) {
  body[data-page=art] header nav { top: 100%; background: var(--paper); }
  body[data-page=art] header .primary-nav-links { flex-direction: column; gap: 0; }
}
@media (max-width: 720px) {
  body[data-page=art] .brand .brand-name { font-size: clamp(.7rem, 2.7vw, 1rem); letter-spacing: .13em; }
  .art-spread::before { background-size: 172% 75%; background-position: 47% 90%; }
  .art-spread {
    min-height: calc(94svh - var(--art-header-height));
    grid-template-columns: 1fr;
    align-content: center;
    gap: clamp(22px, 6vw, 42px);
    padding: clamp(26px, 6vw, 44px) 6% 64px;
  }
  :is(#art-universe-title, .art-finale) { font-size: clamp(3.3rem, 13vw, 5.8rem); }
  html[lang=en] :is(#art-universe-title, .art-finale),
  html[lang=de] :is(#art-universe-title, .art-finale) { font-size: clamp(3.1rem, 11.8vw, 5.4rem); }
  .art-explore { margin-top: .55rem; font-size: clamp(1.1rem, 4.4vw, 1.55rem); }
  .art-prints { width: 100%; aspect-ratio: 1.45; }
  .art-print { aspect-ratio: .70; }
  .print-left { width: 37%; top: 8%; }
  .print-centre { width: 42%; left: 28%; top: 12%; }
  .print-right { width: 36%; top: 10%; }
  .print-switch { right: 6%; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .art-print, .print-title { transition: none; }
  .art-print:hover, .art-print:focus-visible { --lift: 0px; }
}

.art-headlines { position: relative; }
.art-finale { position: absolute; inset: 0; pointer-events: none; }
.art-cover.has-depth {
  /* The extra distance is the camera track. The spread stays under the masthead. */
  height: calc(var(--spread-height) + var(--flight-distance));
  overflow-anchor: none;
}
.art-cover.has-depth .art-spread {
  overflow: clip;
  position: sticky;
  top: var(--art-header-height);
}
.art-cover.has-depth .art-prints {
  perspective: 1050px;
  transform-style: preserve-3d;
}
.art-cover.has-depth .art-print-set { display: contents; }
.art-cover.has-depth .art-print { transition: box-shadow .2s ease; backface-visibility: hidden; }
.art-cover.has-depth .art-print[data-featured] .print-title { opacity: 1; }
.art-motion-controls {
  position: absolute;
  z-index: 6;
  left: 3.8%;
  bottom: clamp(6px, 1.4vw, 26px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 36px);
  font: 400 .875rem/1.25 Georgia, serif;
  color: #654932;
}
.art-scroll-hint, #art-motion { display: inline-flex; align-items: center; gap: .55em; }
.art-scroll-hint svg { width: .9em; height: 1.15em; }
.art-cover:not(.has-depth) .art-scroll-hint { display: none; }
#art-motion {
  min-height: 44px;
  padding: 0 .65rem;
  border: 0;
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
#art-motion::before {
  content: "";
  width: 8px;
  height: 11px;
  border-inline: 2px solid currentColor;
  box-sizing: border-box;
}
#art-motion[aria-pressed=true]::before {
  border: 5px solid transparent;
  border-left: 8px solid currentColor;
  border-right: 0;
}
.art-progress { position: absolute; inset: auto 0 0; height: 2px; pointer-events: none; }
.art-progress span { display: block; height: 100%; background: #9b552d; transform: scaleX(0); transform-origin: left; }
@media (max-width: 720px) {
  .art-motion-controls { left: 5%; bottom: 8px; gap: 6px; }
  .art-scroll-hint { max-width: 9em; }
  .art-cover.has-depth .art-prints { perspective: 780px; }
}
@media (max-width: 360px) { .art-scroll-hint span { display: none; } }
@media (orientation: landscape) and (max-height: 600px) {
  .art-cover.has-depth .art-spread {
    min-height: calc(100svh - var(--art-header-height));
    grid-template-columns: minmax(0, 34fr) minmax(0, 66fr);
    padding-block: 10px 44px;
    gap: 0;
  }
  .art-cover.has-depth .art-prints {
    width: min(100%, calc(155svh - 180px));
    aspect-ratio: 1.83;
    justify-self: center;
  }
  .art-cover.has-depth :is(#art-universe-title, .art-finale) { font-size: clamp(2.5rem, 5.8vw, 4.6rem); }
  .art-cover.has-depth .art-explore { margin-top: .5rem; }
}
