/* Céleste collection plates. Neutral grounds extend from the photograph into its label. */
.celeste {
  --cc-night: #101a26;
  --cc-mist: #e6e8e5;
  --cc-ink: #19232b;
  --cc-rim: #72818c60;
}
.cc-width { width: min(89%, 1380px); margin-inline: auto; }
.cc-tabs { display: flex; gap: clamp(16px,3vw,48px); flex-wrap: wrap; padding-block: 19px; border-bottom: 1px solid var(--cc-rim); }
.cc-tabs a, .cc-link,.cc-small,.cc-index small,.cc-category-index small,.cc-more summary,.cc-letters { font-family: var(--sans); }
.cc-tabs a { font-size: .78rem; color: #c4cdd5; letter-spacing: .055em; text-decoration: none; }
.cc-tabs a[aria-current], .cc-tabs a:hover { color: #fff; text-decoration: underline; text-underline-offset: .35em; }
.cc-small { margin: 0 0 1rem; text-transform: uppercase; letter-spacing: .17em; font-size: .68rem; line-height: 1.45; font-weight: 600; }
.cc-intro,.cc-section-head,.cc-note,.cc-links,.cc-record,.cc-directory-row { display: grid; gap: clamp(20px,5vw,88px); }
.cc-intro { grid-template-columns: minmax(0,1.3fr) minmax(210px,.55fr); align-items: end; padding: clamp(52px,6.5vw,100px) 0 clamp(38px,4.3vw,75px); }
.celeste .cc-intro h1,.celeste .cc-title h1,.celeste .cc-cover h1,.celeste .cc-work h1 {
  font-family: var(--cl-display,var(--sans)); font-weight: 400; letter-spacing: -.077em; line-height: .98; text-wrap: balance; overflow-wrap: anywhere;
}
.celeste .cc-intro h1 { font-size: clamp(4rem,7.8vw,8.6rem); }
.cc-intro h1 em { font-family: var(--serif); font-weight: 400; letter-spacing: -.06em; }
.cc-intro > p,.cc-title > p:last-of-type:not(.cc-small),.cc-cover-text > p:last-child,.cc-description,.cc-note > p {
  font: 400 clamp(1.04rem,1.37vw,1.35rem)/1.57 var(--sans);
  max-width: 44ch; margin: 1.3rem 0 0; text-wrap: pretty;
}
.cc-intro > p { max-width: 32ch; margin: 0 0 5px; color: #d2dce2; }
.cc-index-jump { display:block; margin-top:16px; }
.cc-panorama { position: relative; margin: 0; background: #111a21; }
.cc-panorama img { width: 100%; height: clamp(320px,46vw,730px); object-fit: cover; object-position: 50% 57%; }
.cc-panorama figcaption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 5.5%; border-block: 1px solid var(--cc-rim); font: .78rem/1.5 var(--sans); letter-spacing: .05em; }
.cc-link { width: fit-content; font-size: .83rem; font-weight: 500; line-height: 1.55; text-decoration: underline; text-underline-offset: .26em; text-decoration-thickness: 1px; }
.cc-pale { background: var(--cc-mist); color: var(--cc-ink); padding-block: clamp(42px,6.4vw,100px); }
.cc-block { padding-block: clamp(38px,5.3vw,82px); }
.cc-catalogue .cc-block + .cc-block { border-top: 1px solid var(--cc-rim); }
.cc-section-head { grid-template-columns: minmax(0,1fr) auto; align-items: baseline; margin: 0 0 clamp(24px,3vw,45px); }
.celeste .cc-section-head h2,.celeste .cc-links h2,.celeste .cc-note h2 { font-size: clamp(2.15rem,4vw,4.7rem); line-height: 1.04; }
.cc-editions,.cc-ribbon { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(18px,2.6vw,48px); }
.cc-ribbon:has(> :only-child) { grid-template-columns: minmax(0,1fr); max-width: 760px; }
.cc-ribbon:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2,minmax(0,1fr)); }
.cc-card a,.cc-edition,.cc-plate a,.cc-index a,.cc-category-index a { display: block; text-decoration: none; color: inherit; }
.cc-plate { margin: 0; min-width: 0; }
.cc-card .cc-plate,.cc-edition .cc-plate { background: #d9dddb; aspect-ratio: 1.42; overflow: hidden; }
.cc-card .cc-plate img,.cc-edition .cc-plate img { width: 100%; height: 100%; object-fit: cover; }
.cc-plate.cc-light,.cc-work.cc-light,.cc-cover.cc-light { background: #ebedeb; color: var(--cc-ink); }
.cc-plate.cc-light img,.cc-light .cc-work-figure img,.cc-cover.cc-light .cc-plate img { object-fit: contain; mix-blend-mode: multiply; }
.cc-plate.cc-dark { background: #0b0c0d; }
.cc-plate.cc-dark img,.cc-cover.cc-dark .cc-plate img,.cc-work.cc-dark .cc-work-figure img { object-fit: contain; }
.cc-card .cc-caption,.cc-edition > div { padding: 16px 0 3px; }
.cc-caption .cc-small { margin-bottom: 7px; font-size: .63rem; }
.celeste .cc-card h3,.celeste .cc-edition h3 { font: 400 clamp(1.55rem,2.35vw,2.65rem)/1.08 var(--serif); letter-spacing: -.04em; }
.cc-edition > div > p { font: .92rem/1.57 var(--sans); margin: .75rem 0 0; max-width: 41ch; }
.cc-card a:hover h3,.cc-edition:hover h3,.cc-index a:hover span,.cc-category-index a:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.cc-index,.cc-category-index { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: clamp(26px,5vw,82px); }
.cc-index li { min-width: 0; }
.cc-index a,.cc-category-index a { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; border-top: 1px solid var(--cc-rim); padding: 13px 0; }
.cc-index span,.cc-category-index span { font: 400 clamp(1.17rem,1.55vw,1.65rem)/1.2 var(--serif); overflow-wrap: anywhere; }
.cc-index small,.cc-category-index small { font-size: .69rem; line-height: 1.45; text-align: right; max-width: 41%; flex-shrink: 0; }
.cc-more { margin-top: 35px; }
.cc-more summary { cursor: pointer; padding: 12px 0; font-size: .88rem; }
.cc-search [hidden] { display:none !important; }
.cc-search form { max-width:46rem; }
.cc-search label,.cc-results-count,.cc-search button { font: .84rem/1.5 var(--sans); }
.cc-search-field { display:flex; border-bottom:1px solid currentColor; align-items:center; margin-top:6px; }
.cc-search-field input { width:100%; min-width:0; background:transparent; border:0; border-radius:0; padding:8px 0; color:inherit; font:1.35rem/1.4 var(--sans); }
.cc-search button { background:transparent; border:0; color:inherit; text-decoration:underline; text-underline-offset:4px; padding:7px 0; cursor:pointer; }
.cc-search-field button { white-space:nowrap; }
.cc-search .cc-more { margin-top:10px; }
.cc-results-count:not(:empty) { margin:21px 0 16px; }
.cc-results-count:empty { display:none; }
.cc-search [data-more-works] { margin-top:16px; }
.cc-room-works { border-top:1px solid var(--cc-rim); }
.cc-title { padding-block: clamp(54px,8vw,128px); }
.celeste .cc-title h1 { font-size: clamp(3.3rem,7.5vw,7.8rem); max-width: 19ch; }
.cc-title > .cc-link { display: inline-block; margin-top: 18px; }
.cc-edition-index .cc-editions { row-gap: clamp(44px,5.5vw,85px); }
.cc-cover,.cc-work { display: grid; grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr); align-items: center; gap: clamp(25px,4vw,80px); padding: clamp(40px,5vw,85px) 5.5%; }
.cc-cover { min-height: min(610px,65vw); }
.celeste .cc-cover h1,.celeste .cc-work h1 { font-size: clamp(2.85rem,5.7vw,6.4rem); }
.cc-cover .cc-plate a { width: 100%; }
.cc-cover .cc-plate img { width: 100%; max-height: 550px; object-fit: contain; }
.cc-cover .cc-plate figcaption,.cc-work-figure figcaption { padding: 12px 0; font: .71rem/1.5 var(--sans); }
.cc-cover.cc-dark,.cc-work.cc-dark { background:#101113; color: #eeefed; }
.cc-note { grid-template-columns: minmax(0,.8fr) minmax(0,1fr); align-items: center; padding-block: clamp(52px,7vw,102px); border-top: 1px solid var(--cc-rim); }
.cc-note > p { margin: 0; }
.cc-links,.cc-record { grid-template-columns: minmax(0,.7fr) minmax(0,1fr); align-items: start; padding-block: clamp(32px,4vw,70px); border-top: 1px solid var(--cc-rim); }
.cc-links > div { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; align-self: center; }
.cc-letters { display: flex; flex-wrap: wrap; gap: 3px; padding-bottom: 25px; }
.cc-letters a { display: grid; place-items: center; width: 35px; height: 38px; font-size: .85rem; text-decoration: underline; text-underline-offset: 4px; }
.cc-directory-row { grid-template-columns: max(8%,65px) 1fr; border-top: 1px solid var(--cc-rim); padding: 24px 0 35px; scroll-margin-top: 75px; }
.celeste .cc-directory-row h2 { font: 400 clamp(2.9rem,4.7vw,5.2rem)/.98 var(--serif); }
.cc-work { padding-block: clamp(55px,7vw,100px); }
.cc-work .cc-link { display: inline-block; }
.cc-work h1 + .cc-link { margin-top: 16px; }
.cc-work .cc-description { max-width: 40ch; }
.cc-work-figure { margin: 0; }
.cc-work-figure figcaption { padding-right:95px; color:inherit; }
.cc-zoom { position:relative; display:block; color:inherit; background:transparent; width:100%; padding:0; border:0; cursor:zoom-in; }
.cc-zoom span { display:block; padding-top:8px; text-align:right; font:.71rem/1.5 var(--sans); text-decoration:underline; text-underline-offset:3px; }
.cc-work-figure img { width: 100%; max-height: 65vh; object-fit: contain; }
.cc-work-figure.cc-vignette { justify-self:center; max-width:100%; }
.cc-work-figure.cc-vignette img { width:auto; max-width:100%; object-fit:contain; }
.cc-work-figure.cc-vignette figcaption { padding-right:0; }
.cc-work.cc-contextual { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }
.cc-work.cc-text-only { display: block; max-width: 1180px; }
.cc-work.cc-text-only h1 { max-width: 17ch; }
.cc-actions { display: flex; align-items: center; flex-wrap: wrap; margin-top: clamp(22px,3.1vw,48px); gap: 16px 24px; }
.cc-actions .save-work { border: 1px solid currentColor; color: inherit; background: transparent; }
.cc-actions .save-work[aria-pressed="true"] { background: #495868; color: white; border-color: #495868; }
.cc-record dl { margin: 0; font-family: var(--sans); }
.cc-record dl > div { display:grid; grid-template-columns: minmax(100px, .6fr) minmax(0,1fr); gap: 15px; border-top: 1px solid var(--cc-rim); padding: 13px 0; }
.cc-record dt,.cc-record dd { font-size: .84rem; line-height: 1.5; margin: 0; }
.cc-record dt { opacity: .78; }
@media(max-width: 860px) {
  .cc-work,.cc-cover,.cc-work.cc-contextual { grid-template-columns: 1fr 1fr; gap: 25px; }
  .cc-intro { grid-template-columns: 1.1fr .7fr; }
  .cc-directory-row .cc-index { grid-template-columns: 1fr; }
}
@media(max-width: 650px) {
  .cc-width { width: 89.5%; }
  .cc-tabs { gap: 12px 20px; padding-block: 13px; }
  .cc-tabs a { font-size: .72rem; }
  .cc-intro,.cc-cover,.cc-work,.cc-work.cc-contextual,.cc-note,.cc-links,.cc-record { grid-template-columns: 1fr; gap: 22px; }
  .cc-intro > p { max-width: 35ch; }
  .cc-panorama img { height: auto; min-height: 230px; object-fit: cover; }
  .cc-editions,.cc-ribbon,.cc-ribbon:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; gap: 30px; }
  .cc-card .cc-plate,.cc-edition .cc-plate { aspect-ratio: 1.56; }
  .cc-section-head { gap: 10px; }
  .cc-section-head .cc-link { max-width: 12ch; text-align: right; }
  .cc-index,.cc-category-index { grid-template-columns: 1fr; }
  .cc-work-figure img,.cc-cover .cc-plate img { max-height: 430px; }
  .cc-directory-row { grid-template-columns: 31px minmax(0,1fr); gap: 13px; padding-top: 19px; }
  .cc-directory-row .cc-index a { align-items: start; flex-direction: column; gap: 3px; padding: 9px 0; }
  .cc-directory-row .cc-index small { max-width: 100%; text-align: left; }
  .cc-work { padding-block: 45px; }
}

/* Keep the plate near the work's name when the catalogue is held in one hand. */
@media (max-width: 650px) {
  .cc-work:not(.cc-text-only) { gap: 0; padding-block: 28px 34px; }
  .cc-work:not(.cc-text-only) .cc-work-text { display: contents; }
  .cc-work:not(.cc-text-only) .cc-work-text > .cc-small:first-child { order: 0; margin: 0 0 10px; }
  .cc-work:not(.cc-text-only) .cc-work-text > h1 { order: 1; }
  .cc-work:not(.cc-text-only) .cc-work-text > .cc-link,
  .cc-work:not(.cc-text-only) .cc-work-text > .cc-small:not(:first-child) { order: 2; margin: 10px 0 0; }
  .cc-work:not(.cc-text-only) .cc-work-figure { order: 3; margin-top: 22px; }
  .cc-work:not(.cc-text-only) .cc-work-text > .cc-description { order: 4; margin-top: 16px; }
  .cc-work:not(.cc-text-only) .cc-actions { order: 5; margin-top: 20px; gap: 16px; }
}
