/* Jeanne Quillardieu, site 1 : les œuvres d'abord */

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-normal-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-italic-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/work-sans-normal-300_700.woff2) format('woff2');
}

:root {
  --wall: #f6f4ef;
  --paper: #fcfbf7;
  --ink: #161513;
  --ink-2: #55514a;
  --line: rgba(22, 21, 19, .16);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --side: clamp(1.25rem, 5.5vw, 5rem);
  --hdr: 4.75rem;
  --hang: 0 .5px 0 rgba(22, 21, 19, .10), 1px 2px 3px rgba(48, 36, 24, .12), 7px 16px 30px -12px rgba(48, 36, 24, .38);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: var(--side);
  top: -4rem;
  z-index: 10;
  background: var(--ink);
  color: var(--wall);
  padding: .6rem 1rem;
  text-decoration: none;
}
.skip:focus { top: .75rem; }

[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.pencil {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  fill: #8a847a;
}

/* ---------- Header ---------- */

.site-head {
  display: flex;
  align-items: center;
  gap: 1rem 2.5rem;
  min-height: var(--hdr);
  padding: .9rem var(--side);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  margin-right: auto;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
}
.brand a {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand__job {
  font-size: .9rem;
  color: var(--ink-2);
  letter-spacing: .01em;
  white-space: nowrap;
}
.menu-toggle { display: none; }
.site-nav { order: 1; }
.head-tel { order: 2; }
.site-nav ul {
  display: flex;
  gap: 1.9rem;
  list-style: none;
}
.site-nav a,
.head-tel {
  font-size: .95rem;
  text-decoration: none;
  padding-block: .4rem;
}
.site-nav a:hover,
.head-tel:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.head-tel {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Opening painting ---------- */

.opening {
  display: grid;
  grid-template-columns: auto minmax(13rem, 15rem);
  justify-content: center;
  align-content: center;
  align-items: end;
  column-gap: clamp(2rem, 3.5vw, 3.5rem);
  min-height: min(calc(100svh - var(--hdr)), 62rem);
  padding: clamp(1rem, 3.5vh, 2.75rem) var(--side) clamp(1.5rem, 4.5vh, 3.25rem);
}
.opening__canvas {
  margin: 0;
  height: min(calc(100svh - var(--hdr) - 6.5rem), calc((100vw - 2 * var(--side) - 18.5rem) * .81), 56rem);
  aspect-ratio: 100 / 81;
}
.opening__canvas svg {
  width: 100%;
  height: 100%;
  box-shadow: var(--hang);
}
.opening__cartel { padding-bottom: .25rem; }
.opening__cartel .cartel__title { font-size: 2rem; }
.opening__line {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .95rem;
  color: var(--ink-2);
}

/* ---------- Cartels ---------- */

.cartel { font-size: .95rem; line-height: 1.45; }
.cartel__n {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.cartel__title {
  margin-top: .2rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.32rem;
  line-height: 1.12;
  letter-spacing: -.005em;
}
.cartel__meta { margin-top: .3rem; color: var(--ink-2); }
.cartel__price {
  margin-top: .35rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.cartel__price .sold-dot {
  display: inline-block;
  width: .55em; height: .55em;
  margin-right: .45em;
  border-radius: 50%;
  background: var(--ink);
  vertical-align: .05em;
}
.cartel__status { color: var(--ink-2); }
.cartel__act {
  display: inline-block;
  margin-top: .35rem;
  padding: .45rem 0;
  border: 0;
  background: none;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
  cursor: pointer;
}
.cartel__act:hover { text-decoration-thickness: 2px; }
.cartel__act[aria-disabled='true'] { text-decoration: none; color: var(--ink-2); cursor: default; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  margin-top: 1.1rem;
  padding: .85rem 1.35rem;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--wall); }
.btn--solid { background: var(--ink); color: var(--wall); }
.btn--solid:hover { background: #33302b; }
.btn-text {
  padding: .5rem 0;
  border: 0;
  background: none;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: .25em;
  cursor: pointer;
}

/* ---------- Sections ---------- */

.room {
  padding: clamp(5rem, 10vw, 9rem) var(--side) 0;
}
.room__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.5rem 4rem;
  align-items: end;
  max-width: 82rem;
  margin: 0 auto clamp(3rem, 6vw, 5.5rem);
}
.room__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.015em;
}
.room__lede {
  max-width: 34rem;
  color: var(--ink-2);
}
.room__lede p + p { margin-top: .6rem; }

/* ---------- The wall ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.75rem;
  max-width: 82rem;
  margin: 0 auto clamp(3.5rem, 7vw, 6rem);
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.filters__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1.25rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.filters__group legend {
  float: left;
  margin-right: .5rem;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.filters button {
  padding: .45rem 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  font-size: .95rem;
  color: var(--ink-2);
  cursor: pointer;
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed='true'] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.filters__count {
  margin-left: auto;
  font-size: .95rem;
  color: var(--ink-2);
}

.wall {
  --cm: clamp(2.5px, .28vw, 4.4px);
  --cartel-room: 12.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: clamp(1.5rem, 4.4vw, 4.5rem);
  row-gap: var(--cartel-room);
  max-width: 86rem;
  margin: 0 auto;
  padding-bottom: var(--cartel-room);
  list-style: none;
}
.work {
  position: relative;
  width: max(calc(var(--w) * var(--cm)), 13rem);
}
.work[hidden] { display: none; }
.work__canvas {
  display: block;
  width: calc(var(--w) * var(--cm));
  aspect-ratio: var(--w) / var(--h);
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.work__canvas svg {
  width: 100%;
  height: 100%;
  box-shadow: var(--hang);
  transition: box-shadow .3s, transform .3s;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .work__canvas:hover svg {
    transform: translateY(-2px);
    box-shadow: 0 .5px 0 rgba(22, 21, 19, .1), 2px 4px 6px rgba(48, 36, 24, .12), 10px 22px 40px -14px rgba(48, 36, 24, .45);
  }
}
.work .cartel {
  position: absolute;
  left: 0;
  top: calc(100% + 1.1rem);
  width: 100%;
}
.wall__empty {
  max-width: 82rem;
  margin: 0 auto 6rem;
  text-align: center;
  color: var(--ink-2);
}

/* buying terms under the wall */
.terms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 3rem;
  max-width: 82rem;
  margin: 0 auto;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}
.terms h3 {
  margin-bottom: .45rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.15;
}
.terms p { font-size: .98rem; color: var(--ink-2); }

/* ---------- Reproductions ---------- */

.repros {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3.5rem clamp(1.5rem, 3vw, 3rem);
  max-width: 82rem;
  margin: 0 auto;
  list-style: none;
}
.sheet {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  box-shadow: 0 .5px 0 rgba(22, 21, 19, .08), 2px 4px 10px -4px rgba(48, 36, 24, .22);
}
.repro__kind {
  margin-top: 1.25rem;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.repro h3 {
  margin-top: .2rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.12;
}
.repro__from { margin-top: .2rem; font-size: .95rem; color: var(--ink-2); }
.repro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.repro .sheet { align-self: stretch; }
.repro .btn { margin-top: auto; }
.repro__prices {
  align-self: stretch;
  margin: .7rem 0 1.25rem;
  list-style: none;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
}
.repro__prices li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .3rem 0;
  border-top: 1px solid var(--line);
}
.repro__prices li:last-child { border-bottom: 1px solid var(--line); }

.order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2rem 4rem;
  max-width: 82rem;
  margin: clamp(4rem, 7vw, 6rem) auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.order__intro h3,
.form-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.1;
}
.order__intro p { margin-top: .7rem; color: var(--ink-2); max-width: 26rem; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .3rem; }
.field > span,
.choice legend {
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: .6rem .75rem;
  border: 1px solid rgba(22, 21, 19, .32);
  border-radius: 0;
  background: var(--paper);
  font-size: 1rem;
}
.field textarea { min-height: 5.5rem; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; }
.choice {
  display: grid;
  gap: .35rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.choice legend { margin-bottom: .35rem; padding: 0; }
.choice label {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  font-size: .98rem;
  cursor: pointer;
}
.choice input { accent-color: var(--ink); width: 1rem; height: 1rem; flex: none; transform: translateY(.12rem); }
.form__total {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.form__total strong { font-weight: 600; }
.form .btn { justify-self: start; margin-top: .2rem; }

.done {
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.done__head {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.15;
}
.done__what { margin-top: .5rem; }
.done__call { margin-top: .5rem; color: var(--ink-2); }
.done .btn-text { margin-top: .6rem; }

/* ---------- Interlude ---------- */

.light {
  padding: clamp(7rem, 15vw, 13rem) var(--side) clamp(2rem, 6vw, 4rem);
}
.light blockquote {
  max-width: 54rem;
  margin: 0 auto;
  text-align: center;
}
.light blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.9rem, 3.7vw, 3.25rem);
  line-height: 1.18;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.light .nw { white-space: nowrap; }
.light__by {
  margin-top: 1.6rem;
  text-align: center;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- Portraits ---------- */

.portraits {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3rem clamp(3rem, 6vw, 6rem);
  max-width: 82rem;
  margin: 0 auto;
}
.formats {
  --cm: clamp(1.9px, .22vw, 3.4px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 2.75rem clamp(1.25rem, 3vw, 2.75rem);
  list-style: none;
}
.format__canvas {
  width: calc(var(--w) * var(--cm));
  aspect-ratio: var(--w) / var(--h);
  background: #efe9dd;
  box-shadow: var(--hang);
}
.format__canvas--blank { background: #ede6d8; }
.format__canvas svg { width: 100%; height: 100%; }
.format__open { display: block; padding: 0; border: 0; cursor: zoom-in; }
.format__label {
  margin-top: .9rem;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.format__label strong { font-weight: 500; display: block; }
.format__label span { color: var(--ink-2); }
.example {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  max-width: 30rem;
  font-size: .95rem;
  color: var(--ink-2);
}
.example strong { color: var(--ink); font-weight: 500; }
.steps {
  list-style: none;
  counter-reset: step;
  margin-bottom: 1.6rem;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  padding: .85rem 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.1;
}
.portrait-facts { margin-bottom: 2rem; color: var(--ink-2); }
.portrait-facts p + p { margin-top: .5rem; }

/* ---------- Exhibitions ---------- */

.shows {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem clamp(3rem, 6vw, 6rem);
  max-width: 82rem;
  margin: 0 auto;
}
.shows h3 {
  margin-bottom: 1rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.shows ol { list-style: none; }
.show {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: .25rem 1.5rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.shows ol .show:last-child { border-bottom: 1px solid var(--line); }
.show__when {
  font-size: .95rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.show__title {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.1;
}
.show__where { margin-top: .25rem; }
.show__dates { margin-top: .25rem; color: var(--ink-2); }
.show--next .show__title { font-size: 2.1rem; }

/* ---------- Studio ---------- */

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem clamp(3rem, 6vw, 6rem);
  max-width: 82rem;
  margin: 0 auto;
}
.studio__painting { --cm: clamp(7.2px, .78vw, 11px); }
.studio__painting .work__canvas { width: min(100%, calc(46 * var(--cm))); cursor: zoom-in; }
.studio__painting .cartel { margin-top: 1.1rem; }
.studio__info > p + p { margin-top: .7rem; }
.studio__hours {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.15;
}
.studio__addr { font-style: normal; margin-top: 1.4rem; }
.studio__addr a { font-variant-numeric: tabular-nums; }
.saturdays {
  margin: 1.75rem 0 2.5rem;
  list-style: none;
}
.saturdays li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.saturdays li:last-child { border-bottom: 1px solid var(--line); }
.saturdays li span:last-child { color: var(--ink-2); text-align: right; }
.studio__since { color: var(--ink-2); }

/* ---------- Footer ---------- */

.site-foot {
  margin-top: clamp(6rem, 12vw, 10rem);
  padding: 3rem var(--side) 3.5rem;
  border-top: 1px solid var(--line);
  font-size: .95rem;
}
.site-foot__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem 3rem;
  max-width: 82rem;
  margin: 0 auto;
}
.site-foot__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.9rem;
  line-height: 1;
}
.site-foot p { color: var(--ink-2); }
.site-foot h2 {
  margin-bottom: .4rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.site-foot address { font-style: normal; }
.site-foot__legal {
  max-width: 82rem;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  color: var(--ink-2);
}
.site-foot__legal ul { display: flex; gap: 1.5rem; list-style: none; }

/* ---------- Viewer (a work opened large) ---------- */

.viewer {
  width: min(84rem, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  background: var(--wall);
  color: var(--ink);
  overflow: auto;
}
.viewer::backdrop { background: rgba(22, 21, 19, .62); }
@media (prefers-reduced-motion: no-preference) {
  .viewer[open] { animation: viewer-in .28s ease-out; }
  @keyframes viewer-in { from { opacity: 0; transform: translateY(8px); } }
}
.viewer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 23rem;
  min-height: min(46rem, calc(100dvh - 2rem));
}
.viewer__wall {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 4rem);
}
.viewer__wall svg {
  width: min(100%, calc((100dvh - 11rem) * var(--r, 1.25)));
  aspect-ratio: var(--r, 1.25);
  height: auto;
  box-shadow: var(--hang);
}
.viewer__side {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1.25rem 2rem 2rem;
  border-left: 1px solid var(--line);
}
.viewer__bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.viewer__bar .btn-text { font-weight: 400; }
.viewer .cartel__title { font-size: 2.1rem; }
.viewer__invoice {
  margin-top: 1rem;
  padding: .9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
  color: var(--ink-2);
}
.viewer__invoice strong { color: var(--ink); font-weight: 500; }
.viewer__action { margin-top: 1.25rem; }
.viewer__action .form-title { font-size: 1.5rem; }
.viewer__note { color: var(--ink-2); font-size: .95rem; }
.viewer__note + .btn { margin-top: .9rem; }

/* ---------- Responsive ---------- */

@media (max-width: 75rem) {
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .repros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 72rem) {
  .site-head { flex-wrap: wrap; row-gap: .25rem; }
  .menu-toggle {
    display: inline-block;
    order: 2;
    padding: .55rem 0;
    border: 0;
    border-bottom: 1px solid var(--ink);
    background: none;
    font-size: .95rem;
    font-weight: 500;
    cursor: pointer;
  }
  .head-tel { order: 1; }
  .site-nav { order: 3; flex-basis: 100%; }
  .site-nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: .5rem 0 .75rem;
  }
  .site-nav.is-open ul { display: flex; }
  .site-nav li a {
    display: block;
    padding: .7rem 0;
    border-top: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 1.6rem;
    line-height: 1.1;
  }
}

@media (max-width: 68rem) {
  .opening {
    --cw: min(calc((100svh - var(--hdr) - 15rem) * 1.2346), 64rem);
    grid-template-columns: min(100%, var(--cw));
    row-gap: 1.5rem;
  }
  .opening__canvas {
    height: auto;
    width: 100%;
  }
  .opening__cartel { width: 100%; max-width: 34rem; }
}

@media (max-width: 62rem) {
  .room__head { grid-template-columns: minmax(0, 1fr); }
  .order,
  .portraits,
  .shows,
  .studio { grid-template-columns: minmax(0, 1fr); }
  .viewer__grid { grid-template-columns: minmax(0, 1fr); }
  .viewer__side { border-left: 0; border-top: 1px solid var(--line); }
  .viewer__wall svg { width: min(100%, calc((70dvh - 4rem) * var(--r, 1.25))); }
}

@media (max-width: 40rem) {
  :root { --hdr: 6.25rem; }
  body { font-size: 1.0625rem; }
  .site-head { padding-top: .8rem; padding-bottom: .6rem; column-gap: 1rem; }
  .brand { flex-direction: column; align-items: flex-start; gap: .3rem; flex-basis: 100%; }
  .brand a { font-size: 1.85rem; }
  .head-tel { margin-right: auto; }
  .opening { padding-top: .5rem; }
  .opening__canvas {
    width: calc(100% + 2 * var(--side));
    margin-inline: calc(-1 * var(--side));
  }
  .opening__canvas svg { box-shadow: none; }
  .opening__cartel .cartel__title { font-size: 1.75rem; }
  .filters { gap: .75rem 1.5rem; }
  .filters__group legend { float: none; width: 100%; margin-bottom: .1rem; }
  .filters__count { margin-left: 0; }
  .wall {
    --cartel-room: 0;
    align-items: flex-start;
    justify-content: space-between;
    column-gap: 1rem;
    row-gap: 3rem;
    padding-bottom: 0;
  }
  .work { width: max(calc(var(--w) * var(--cm)), 9.4rem); }
  .work .cartel { position: static; margin-top: .9rem; }
  .cartel__title { font-size: 1.22rem; }
  .terms { grid-template-columns: minmax(0, 1fr); margin-top: 4.5rem; }
  .repros { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .show { grid-template-columns: minmax(0, 1fr); }
  .site-foot__grid { grid-template-columns: minmax(0, 1fr); }
  .viewer {
    width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
  }
  .viewer__wall { padding: 1rem; }
  .viewer__side { padding: 1rem 1.25rem 2rem; }
  .viewer .cartel__title { font-size: 1.8rem; }
}

/* ---------- the pages of the site (grow 1) ---------- */
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.foot-nav { margin-top: 32px; padding-top: 20px; border-top: 1px solid currentColor; display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; align-items: baseline; }
.foot-nav h2 { margin: 0; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-nav a { color: inherit; text-underline-offset: 4px; }
.cartel__more { display: inline-block; margin-top: 4px; color: inherit; text-underline-offset: 4px; }
.more-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 40px auto 0; max-width: 1200px; padding: 16px clamp(20px, 4vw, 48px) 0; border-top: 1px solid rgba(22,21,19,.2); }
.more-links a { color: var(--ink); text-underline-offset: 5px; }
@media (max-width: 720px) { .foot-nav { grid-template-columns: 1fr; } }
