/* Jeanne Quillardieu, site 1 : les œuvres (la galerie, puis une page par toile) */

/* ---------- The gallery ---------- */

.oe-gallery { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.oe-gallery .room__head { margin-bottom: clamp(2.5rem, 4.5vw, 4rem); }

.oe-tools {
  max-width: 82rem;
  margin: 0 auto clamp(3.5rem, 7vw, 6rem);
}
.oe-tools .filters { margin: 0; }
.oe-tools .filters + .filters { border-top: 0; padding-top: 0; }
.oe-tools .filters:first-child { border-bottom: 0; padding-bottom: .5rem; }
.oe-sort__note {
  font-size: .95rem;
  color: var(--ink-2);
}
.oe-ruler {
  --cm: clamp(2.5px, .28vw, 4.4px);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-left: auto;
  font-size: .85rem;
  color: var(--ink-2);
}
.oe-ruler__bar {
  display: block;
  width: calc(50 * var(--cm));
  height: .5rem;
  border: 1px solid var(--ink-2);
  border-top: 0;
}

a.work__canvas { cursor: pointer; }
.oe-wall .work .cartel__title { font-size: 1.32rem; }

/* the price list */
.oe-table {
  width: 100%;
  max-width: 82rem;
  margin: 0 auto;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.oe-table th,
.oe-table td {
  padding: .75rem 1rem .75rem 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: baseline;
  font-weight: 400;
}
.oe-table tbody tr:last-child th,
.oe-table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.oe-table thead th {
  padding-top: 0;
  border-top: 0;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.oe-table tbody th {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.15;
}
.oe-table tbody th a { text-decoration-color: var(--line); }
.oe-table tbody th a:hover { text-decoration-color: currentColor; }
.oe-table__n { color: var(--ink-2); width: 5.5rem; white-space: nowrap; }
.oe-table td { color: var(--ink-2); white-space: nowrap; }
.oe-table .oe-table__price { text-align: right; padding-right: 0; color: var(--ink); font-weight: 500; }
.oe-table thead th:last-child { text-align: right; padding-right: 0; }
.oe-table__vendue .oe-table__price,
.oe-table__commande .oe-table__price { color: var(--ink-2); font-weight: 400; }

/* ---------- A work: the painting first ---------- */

.oe-piece {
  padding: clamp(.75rem, 2.5vh, 2rem) var(--side) clamp(1.75rem, 4.5vh, 3.25rem);
}
.oe-piece__canvas {
  width: min(100%, calc((100svh - var(--hdr) - 8.5rem) * var(--r)));
  aspect-ratio: var(--r);
  margin: 0 auto;
}
.oe-piece__canvas svg {
  width: 100%;
  height: 100%;
  box-shadow: var(--hang);
}

/* cartel and her words */
.oe-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: 2.5rem clamp(3rem, 6vw, 6rem);
  width: min(82rem, 100% - 2 * var(--side));
  margin: 0 auto;
}
.oe-cartel .cartel__title {
  font-size: clamp(2.25rem, 3.6vw, 3.1rem);
  line-height: 1.02;
  margin-top: .35rem;
}
.oe-cartel__lines { margin-top: .9rem; }
.oe-cartel__lines span { display: block; }
.oe-cartel__price { margin-top: .9rem; font-size: 1.1rem; }
.oe-cartel .btn { margin-top: 1.4rem; }

.oe-kicker {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.oe-words__text {
  margin-top: .9rem;
  max-width: 38rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  line-height: 1.3;
  text-wrap: pretty;
}
.oe-words__text p { display: inline; }
.oe-words__text p + p::before { content: ' '; }

/* the blocks that follow: a heading on the left, the matter on the right */
.oe-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: 1.75rem clamp(3rem, 6vw, 6rem);
  width: min(82rem, 100% - 2 * var(--side));
  margin: clamp(4.5rem, 8vw, 7rem) auto 0;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}
.oe-h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -.01em;
}
.oe-block__lede {
  margin-top: .8rem;
  max-width: 26rem;
  color: var(--ink-2);
}
.oe-block__more { margin-top: 1rem; }

/* to scale */
.oe-scale__fig { margin: 0; }
.oe-scale__svg {
  width: 100%;
  height: auto;
}
.oe-scale__t text {
  font-family: var(--sans);
  font-size: 6.2px;
  fill: var(--ink-2);
  letter-spacing: .02em;
}

/* the invoice and the certificate */
.oe-papers__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.oe-paper {
  padding: 1.6rem 1.7rem 1.5rem;
  background: var(--paper);
  box-shadow: 0 .5px 0 rgba(22, 21, 19, .08), 2px 5px 14px -6px rgba(48, 36, 24, .25);
  font-size: .93rem;
  line-height: 1.5;
}
.oe-paper__kind {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.oe-paper__from {
  margin-top: .7rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.oe-invoice__lines { margin: .4rem 0 0; }
.oe-invoice__lines div {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 1rem;
  padding: .45rem 0;
  border-bottom: 1px dotted rgba(22, 21, 19, .22);
}
.oe-invoice__lines dt { color: var(--ink-2); }
.oe-invoice__lines dd { margin: 0; }
.oe-invoice__total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .3rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.oe-paper__note { margin-top: .9rem; color: var(--ink-2); font-size: .88rem; }
.oe-cert { text-align: center; }
.oe-cert__thumb {
  width: min(9rem, calc(7rem * var(--r)));
  aspect-ratio: var(--r);
  height: auto;
  margin: 1rem auto 1.1rem;
  box-shadow: 0 .5px 0 rgba(22, 21, 19, .1), 1px 3px 6px -2px rgba(48, 36, 24, .3);
}
.oe-cert p:not(.oe-paper__kind):not(.oe-paper__note):not(.oe-cert__sign) { text-align: left; }
.oe-cert__sign {
  margin-top: 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  line-height: 1;
  text-align: right;
  transform: rotate(-3deg);
}
.oe-cert .oe-paper__note { text-align: right; }

/* reserve */
.oe-reserve__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.oe-terms { margin: 0; font-size: .95rem; }
.oe-terms div { padding: .7rem 0; border-top: 1px solid var(--line); }
.oe-terms div:last-child { border-bottom: 1px solid var(--line); }
.oe-terms dt { font-weight: 500; }
.oe-terms dd { margin: .15rem 0 0; color: var(--ink-2); }

/* reproduction */
.oe-repro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.oe-repro__text .repro__kind { margin-top: 0; }
.oe-repro__title {
  margin-top: .2rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.12;
}
.oe-repro__what { margin-top: .6rem; font-size: .95rem; }
.oe-repro__ship { font-size: .95rem; color: var(--ink-2); }
.oe-repro__text .btn { margin-top: 1rem; }

/* commission */
.oe-commission__body { max-width: 36rem; }
.oe-commission__prices { margin-top: 1.25rem; }

/* previous, all, next */
.oe-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 1.5rem 2rem;
  width: min(82rem, 100% - 2 * var(--side));
  margin: clamp(5rem, 9vw, 8rem) auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}
.oe-pager a { text-decoration: none; }
.oe-pager__k {
  display: block;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.oe-pager__t {
  display: block;
  margin-top: .3rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.1;
}
.oe-pager a:hover .oe-pager__t,
.oe-pager__all:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.oe-pager__all {
  font-size: .95rem;
  font-weight: 500;
  text-decoration: underline !important;
  text-underline-offset: .25em;
  padding-bottom: .2rem;
}
.oe-pager__next { text-align: right; }

/* ---------- Responsive ---------- */

@media (max-width: 62rem) {
  .oe-intro,
  .oe-block,
  .oe-reserve__grid,
  .oe-repro__grid { grid-template-columns: minmax(0, 1fr); }
  .oe-block__lede { max-width: 36rem; }
  .oe-ruler { margin-left: 0; }
}

@media (max-width: 40rem) {
  .oe-piece { padding: .25rem 0 1.5rem; }
  .oe-piece__canvas { width: min(100%, calc((100svh - var(--hdr) - 7rem) * var(--r))); }
  .oe-piece__canvas svg { box-shadow: none; }
  .oe-papers__grid { grid-template-columns: minmax(0, 1fr); }
  .oe-paper { padding: 1.3rem 1.2rem 1.2rem; }
  .oe-scale__t text { font-size: 10px; }
  .oe-pager { grid-template-columns: minmax(0, 1fr); }
  .oe-pager__next { text-align: left; }
  .oe-pager__all { order: 3; }
  .oe-tools .filters:first-child { padding-bottom: .9rem; }
  .oe-tools .filters + .filters { padding-top: .9rem; border-top: 1px solid var(--line); }

  .oe-table thead { display: none; }
  .oe-table tr {
    display: grid;
    grid-template-columns: 3.4rem auto minmax(0, 1fr) auto;
    column-gap: .6rem;
    row-gap: .15rem;
    padding: .7rem 0;
    border-top: 1px solid var(--line);
  }
  .oe-table tbody tr:last-child { border-bottom: 1px solid var(--line); }
  .oe-table th,
  .oe-table td,
  .oe-table tbody tr:last-child th,
  .oe-table tbody tr:last-child td { padding: 0; border: 0; }
  .oe-table__n { grid-row: 1; grid-column: 1; width: auto; font-size: .88rem; padding-top: .3rem !important; }
  .oe-table tbody th { grid-row: 1; grid-column: 2 / 5; font-size: 1.3rem; }
  .oe-table tbody td:nth-child(3) { grid-row: 2; grid-column: 2; font-size: .93rem; }
  .oe-table tbody td:nth-child(4) { grid-row: 2; grid-column: 3; font-size: .93rem; }
  .oe-table .oe-table__price { grid-row: 2; grid-column: 4; font-size: .93rem; }
}
