@font-face {
  font-family: "Gloock";
  src: url("/fonts/gloock-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

@view-transition { navigation: auto; }

:root {
  --salon: #7A1D1F;
  --wall: var(--salon);
  --ink: #F6E9D2;

  --display: "Gloock", Georgia, "Times New Roman", serif;
  --text: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --step-3: clamp(2.25rem, 1.6rem + 3vw, 4rem);
  --step-4: clamp(3.25rem, 1.5rem + 8.5vw, 10rem);
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background-color: var(--wall);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.55;
  transition: background-color .7s ease, color .7s ease;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 50;
  padding: .5rem 1rem; background: #F6E9D2; color: #2A2118;
}
.skip:focus { top: 1rem; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: 1.25rem calc(var(--gutter) + 2.5rem) 1.25rem var(--gutter);
  pointer-events: none;
  background: linear-gradient(to bottom, var(--wall) 45%, transparent);
  transition: transform .25s ease;
}
.nav.tuck { transform: translateY(-110%); }
.nav:focus-within { transform: none; }
.nav a { pointer-events: auto; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav-home { font-family: var(--display); font-size: var(--step-1); }
.nav-links { display: flex; gap: clamp(.75rem, 2.5vw, 2.25rem); flex-wrap: wrap; }

/* The front wall, hung salon-style */
.front { height: 280vh; position: relative; }
.front-stick {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; background: var(--salon); color: #F6E9D2;
}
.salon {
  --W: max(108vw, 172vh);
  --cell: calc(var(--W) / 16);
  --wy: -40%;
  position: absolute; left: 50%; top: 50%;
  translate: -50% var(--wy);
  width: var(--W);
  display: grid;
  grid-template-columns: repeat(16, var(--cell));
  grid-auto-rows: var(--cell);
}
.sal {
  grid-column: var(--dc) / span var(--dw);
  grid-row: var(--dr) / span var(--dh);
  display: grid; place-items: center;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  padding: calc(var(--cell) * .09);
  min-width: 0; min-height: 0;
}
.sal img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .35), 0 14px 26px -6px rgba(0, 0, 0, .55);
}
.sal.is-cut img { box-shadow: none; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .45)); }
a.sal { transition: transform .3s ease; }
a.sal:hover { transform: scale(1.04); }
.salon-hero img { box-shadow: 0 2px 3px rgba(0, 0, 0, .35), 0 20px 40px -8px rgba(0, 0, 0, .6); }
a.salon-hero:hover { transform: none; }
.salon-name { padding: calc(var(--cell) * .12) 0 0; text-align: center; place-items: start center; grid-template-rows: auto auto; align-content: start; }
.salon-name h1 {
  font-family: var(--display); font-weight: 400;
  font-size: calc(var(--cell) * .9); line-height: 1; letter-spacing: -.01em;
  white-space: nowrap;
}
.salon-name p { margin-top: .4rem; font-size: var(--step-1); }
.text-btn {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px;
  margin-left: .75em;
}

/* Room titles */
.room-head {
  max-width: 1800px; margin-inline: auto;
  padding: clamp(6rem, 22vh, 13rem) var(--gutter) clamp(1rem, 4vh, 3rem);
}
.room-head h2 { font-family: var(--display); font-weight: 400; font-size: var(--step-4); line-height: 1; letter-spacing: -.01em; }
.room-head p { margin-top: 1rem; font-size: var(--step-2); line-height: 1.2; max-width: 30ch; }

/* The wall */
.hang {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.5vw, 3rem);
  align-items: end;
  max-width: 1800px;
  margin-inline: auto;
  padding: clamp(4rem, 13vh, 8rem) var(--gutter);
}
.piece { display: block; grid-row: 1; }
.piece img {
  width: 100%; height: auto;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .3), 0 28px 56px -12px rgba(0, 0, 0, .5);
}
.piece.is-cut img, .work-art.is-cut img { box-shadow: none; filter: drop-shadow(0 24px 24px rgba(0, 0, 0, .35)); }
.placard { grid-row: 1; padding-bottom: .25rem; }
.placard h3, .work-placard h1 {
  font-family: var(--display); font-weight: 400;
  font-size: var(--step-2); line-height: 1.08;
}
.placard h3 a { text-decoration: none; }
.placard h3 a:hover { text-decoration: underline; }
.note { margin-top: .75rem; font-size: var(--step-1); line-height: 1.35; max-width: 26ch; }
.meta { margin-top: 1rem; max-width: 30ch; }
.meta span { display: block; }

.pos-a .piece { grid-column: 1 / span 7; max-width: 84vh; justify-self: start; }
.pos-a .placard { grid-column: 8 / span 4; }
.pos-b .piece { grid-column: 6 / span 7; max-width: 84vh; justify-self: end; }
.pos-b .placard { grid-column: 2 / span 4; }
.pos-c .piece { grid-column: 3 / span 5; max-width: 70vh; justify-self: start; }
.pos-c .placard { grid-column: 8 / span 4; }

/* The one crooked frame */
.crooked img { transform: rotate(var(--tilt, -1.6deg)); transition: transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.crooked:hover img, .crooked:focus-visible img { transform: rotate(0); }

/* Collections */
.collection {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 1.5vw, 1.5rem); align-items: start;
  max-width: 1800px; margin-inline: auto;
  padding: clamp(1rem, 3vh, 2rem) var(--gutter) clamp(5rem, 14vh, 9rem);
}
.collection li:nth-child(even) { margin-top: clamp(1rem, 3vw, 3rem); }
.collection a { display: block; }
.collection img { width: 100%; height: auto; transition: transform .25s ease; box-shadow: 0 2px 3px rgba(0, 0, 0, .3), 0 18px 32px -10px rgba(0, 0, 0, .5); }
.collection a:hover img, .collection a:focus-visible img { transform: translateY(-.5rem); }
.room-links { display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; font-size: var(--step-1) !important; margin-top: 1.25rem !important; max-width: none !important; }
.foot-links { display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; }

/* Artist and collect */
.artist h2, .collect h2 { font-family: var(--display); font-weight: 400; font-size: var(--step-3); line-height: 1.04; }
.artist {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.5vw, 3rem);
  max-width: 1800px; margin-inline: auto;
  padding: clamp(5rem, 14vh, 9rem) var(--gutter);
}
.artist-side { grid-column: 1 / span 5; }
.artist-portrait { width: min(100%, 26rem); height: auto; margin-bottom: 2.25rem; box-shadow: 0 2px 3px rgba(0, 0, 0, .3), 0 18px 32px -10px rgba(0, 0, 0, .45); }
.artist-body { grid-column: 7 / span 5; }
.artist-body p { max-width: 62ch; }
.artist-body p + p { margin-top: 1.1em; }
.artist-body .lead { font-size: var(--step-2); line-height: 1.22; font-family: var(--display); }

.collect { padding: clamp(5rem, 16vh, 10rem) var(--gutter); }
.collect-inner { max-width: 1800px; margin-inline: auto; }
.collect h2 { font-size: var(--step-4); line-height: .98; max-width: 11ch; }
.collect p { margin-top: 1.75rem; max-width: 46ch; font-size: var(--step-1); line-height: 1.4; }
.big-link {
  display: inline-block; margin-top: 2rem; padding: .85rem 1.5rem;
  background: var(--ink); color: var(--wall);
  text-decoration: none; font-weight: 600; font-size: var(--step-1);
}
.big-link:hover { text-decoration: underline; }

.foot {
  display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  padding: 2rem var(--gutter) 2.5rem;
}

/* The light switch, on the wall by the door */
.switch {
  position: fixed; right: var(--gutter); top: 1.3rem; z-index: 40;
  width: 18px; height: 28px; padding: 0;
  background: var(--wall); color: var(--ink);
  border: 1px solid currentColor; border-radius: 3px;
  cursor: pointer; transition: background-color .7s ease, color .7s ease, transform .25s ease;
}
.switch.tuck { transform: translateY(-5rem); }
.dark .switch.tuck, .switch:focus-visible { transform: none; }
.switch::before { content: ""; position: absolute; inset: -8px -13px; }
.switch span {
  position: absolute; left: 5px; top: 4px; width: 6px; height: 10px;
  background: currentColor; transition: transform .12s ease;
}
.dark .switch span { transform: translateY(8px); }
.close-up .switch { display: none; }
.dark-room {
  position: fixed; inset: 0; z-index: 30; pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity .18s linear, visibility .18s;
  background: radial-gradient(circle max(38vmin, 13rem) at var(--tx, 50%) var(--ty, 50%), transparent 30%, rgba(0, 0, 0, .6) 68%, rgba(0, 0, 0, .975) 100%);
}
.dark .dark-room { opacity: 1; visibility: visible; }

/* Step closer */
.closer { display: block; width: 100%; padding: 0; background: none; border: 0; cursor: zoom-in; color: inherit; }
.closeup {
  position: fixed; inset: 0; z-index: 28; overflow: hidden;
  background: var(--wall); cursor: zoom-out; touch-action: none;
  animation: wall-in .5s ease;
}
.closeup.leaving { background: transparent; transition: background-color .4s ease; }
.closeup img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; }
.step-back {
  position: absolute; left: var(--gutter); bottom: 1.5rem;
  font: inherit; padding: .4rem 1rem; cursor: pointer;
  background: var(--wall); color: var(--ink); border: 1px solid currentColor;
}
@keyframes wall-in { from { background-color: transparent; } }

.noted {
  position: fixed; z-index: 60; padding: .35rem .7rem; white-space: nowrap;
  background: var(--ink); color: var(--wall); pointer-events: none;
}

/* Only printed */
.catalogue-title { display: none; }

/* The empty wall */
.eyes { width: clamp(9rem, 26vw, 17rem); margin-bottom: 2.5rem; }
.pupil { fill: #000; transition: transform .18s ease-out; }
.eye { transform-box: fill-box; transform-origin: center; animation: blink 5.5s infinite; }
.eye + .eye { animation-delay: .04s; }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97.5% { transform: scaleY(.05); } }

/* Single piece page */
.work {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.5vw, 3rem);
  align-items: center;
  padding: 5rem var(--gutter) 3rem;
  max-width: 1800px; margin-inline: auto;
}
.work-art { grid-column: 1 / span 7; }
.work-art img {
  width: auto; max-width: 100%; max-height: 84vh; height: auto; margin-inline: auto;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .3), 0 28px 56px -12px rgba(0, 0, 0, .5);
}
.work-placard { grid-column: 8 / span 5; }
.work-placard h1 { font-size: var(--step-3); }
.work-placard .note { max-width: 30ch; }
.work-placard .big-link { margin-top: 1.5rem; }
.pager { display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; margin-top: 2.5rem; }

.lost {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; padding: var(--gutter);
}
.lost h1 { font-family: var(--display); font-weight: 400; font-size: var(--step-4); line-height: 1; max-width: 12ch; }
.lost p { margin-top: 1.5rem; font-size: var(--step-1); }

@media (max-width: 760px) {
  .nav-home { display: none; }
  .nav { justify-content: flex-end; font-size: .875rem; }
  .salon {
    --W: 112vw; --cell: calc(var(--W) / 9); --wy: -44.4%;
    grid-template-columns: repeat(9, var(--cell));
  }
  .sal {
    grid-column: var(--mc) / span var(--mw);
    grid-row: var(--mr) / span var(--mh);
  }
  .desk-only { display: none; }
  .salon-name h1 { font-size: calc(var(--cell) * 1.05); }
  .salon-name p { font-size: var(--step-0); }
  .hang { display: block; padding-block: 3.5rem; }
  .piece { margin-bottom: 1.5rem; }
  .pos-a .piece, .pos-b .piece, .pos-c .piece { max-width: none; }
  .note { max-width: none; }
  .collection { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .artist { display: block; }
  .artist-portrait { width: 72%; }
  .artist-body { margin-top: 2rem; }
  .work { display: block; padding-top: 4.5rem; }
  .work-placard { margin-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .front { height: 100vh; height: 100svh; }
  body, .nav, .crooked img, a.sal, .collection img { transition: none; }
  a.sal:hover, .collection a:hover img { transform: none; }
  @view-transition { navigation: none; }
  .eye { animation: none; }
  .pupil { transition: none; }
}

/* Press print and the site sets itself as a paper catalogue. */
@media print {
  @page { size: A4; margin: 16mm; }
  html { --wall: #fff !important; --ink: #111 !important; }
  body { background: #fff; color: #111; transition: none; }
  .nav, .skip, .switch, .dark-room, .front, .collect, .foot, .room-links, .noted { display: none !important; }
  .catalogue-title { display: flex; flex-direction: column; justify-content: center; height: 250mm; break-after: page; font-size: 13pt; }
  .catalogue-name { font-family: var(--display); font-size: 52pt; line-height: 1; margin-bottom: 6mm; }
  section { break-before: page; }
  .catalogue-title + section { break-before: auto; }
  .room-head { padding: 0 0 8mm; break-after: avoid; }
  .room-head h2 { font-size: 40pt; }
  .room-head p { font-size: 14pt; max-width: none; }
  .hang { display: block; padding: 0; break-inside: avoid; }
  .hang + .hang { break-before: page; }
  .piece, .pos-a .piece, .pos-b .piece, .pos-c .piece { max-width: none; margin-bottom: 6mm; justify-self: stretch; }
  .piece img, .collection img { box-shadow: none; filter: none; transform: none !important; }
  .piece img { width: auto; max-width: 100%; max-height: 175mm; margin-inline: auto; }
  .placard h3 { font-size: 18pt; }
  .note { font-size: 12pt; max-width: none; }
  .collection { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; gap: 4mm; }
  .collection li:nth-child(even) { margin-top: 0; }
  .collection li { break-inside: avoid; }
  .artist { display: block; padding: 0; max-width: none; }
  .artist-body { margin-top: 8mm; font-size: 11pt; }
  a { text-decoration: none; }
}
