/* The centered cream sheet and its painted side margins share the available width. */
html {
  --paper: #f4eee4;
  --text-leading: 1.25;
  --caption-leading: 1.2;
  --paragraph-gap: .75em;
  --work-row-gap: 4.6cqw;
  --divider-scale: 1.5;
  --paper-texture: url('/assets/02/art-paper.webp?v=525f4cc1265b3338');
  --paper-tile-width: clamp(500px, 60vw, 760px);
  --paper-tile-size: var(--paper-tile-width) calc(var(--paper-tile-width) * 333 / 500);
  --sheet-width: 1048px;
  --min-margin: clamp(10px, 2vw, 24px);
  position: relative;
  min-height: 100%;
  scrollbar-gutter: stable;
  background-color: var(--paper);
  background-image: var(--paper-texture);
  background-position: center top;
  background-size: var(--paper-tile-size);
  background-repeat: repeat;
}
/* Align both copies of the paper to the page bottom so its edges join at the footer. */
html::before, footer.dark {
  --page-gutter: max(var(--min-margin), (var(--canvas-width) - var(--sheet-width)) / 2);
  --strip-width: min(281px, calc(var(--page-gutter) * .69));
  --strip-size: var(--strip-width) max(360px, calc(var(--strip-width) * 4853 / 684));
  --painted-sides:
    url('/assets/02/peaces-23-left.webp?v=c5617bb99ba2f74e') left bottom / var(--strip-size) repeat-y,
    url('/assets/02/peaces-23-right.webp?v=12088369ada32338') right bottom / var(--strip-size) repeat-y;
}
html::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  --canvas-width: 100cqw;
  background: var(--painted-sides), linear-gradient(to bottom,
    #24211d calc(1px * var(--divider-scale) - .5px),
    transparent calc(1px * var(--divider-scale) + .5px));
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  width: calc(100% - 2 * var(--min-margin));
  max-width: var(--sheet-width);
  margin: 0 auto;
  container-type: inline-size;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Scale only the painted line so the half pixel survives on standard-density screens. */
header nav::after, footer.light::before, dl::before, .obs-collection h2::before,
.benefits::before, .directions .welcome::after, .aboutbody article section::after {
  transform: scaleY(var(--divider-scale));
  transform-origin: top;
  pointer-events: none;
}
dl, footer.light { position: relative; }
dl::before, footer.light::before {
  content: ""; position: absolute; inset: 0 0 auto; border-top: 1px solid #beb8ac;
}
footer.light::before { border-color: #bdb7ab; }
header {
  height: 7.05cqw;
  flex: none;
}
@media (min-width: 761px) {
  header { padding: 0 3.85% 0 4.05%; }
  header .brand { width: 34%; }
  header nav {
    width: 57.5%;
    justify-content: flex-end;
    align-self: stretch;
    position: relative;
    gap: .3cqw;
    padding-top: 1.4cqw;
    padding-inline-end: 1.2cqw;
  }
  header nav::after {
    content: ""; position: absolute; inset: auto 0 0; border-bottom: 1px solid #cecabe;
    transform-origin: bottom;
  }
  header nav a { font-size: 1.28cqw; padding: .15em .6em; }
}
@media (max-width: 760px) {
  html { --text-leading: 1.4; --work-row-gap: 1.5rem; }
  header { height: clamp(66px, 13vw, 82px); }
  header .toggle { min-height: 44px; }
  header nav { background: var(--paper) var(--paper-texture) center top / var(--paper-tile-size) repeat; }
}
.gallery-hero-bleed {
  margin-inline: calc((100% - var(--canvas-width)) / 2);
  overflow-x: clip;
}
.gallery-hero { position: relative; width: 100cqw; margin-inline: auto; height: 61.2cqw; }
.gallery-hero h1 { position: absolute; top: 3.23cqw; left: 7.73%; width: 38.45%; }
.gallery-portrait { position: absolute; width: 45.95%; right: 4.37%; top: 3.15cqw; }
.gallery-portrait img { width: 100%; }
.gallery-portrait::after, .feature-paper::after {
  --brush-join: 2.1cqw;
  content: "";
  position: absolute;
  top: 0;
  left: calc(100% - var(--brush-join));
  height: 98%;
  aspect-ratio: 3200 / 1105;
  min-width: calc(var(--canvas-width) / 2);
  /* Keep the torn seam at its natural scale when the outer gutter grows. */
  border-image: url('/assets/02/peaces_main-24.webp?v=b507604854d96a2a') 0 0 0 4% fill / 0 0 0 calc(2 * var(--brush-join)) stretch;
  pointer-events: none;
}
.feature-paper::after { --brush-join: 1.35cqw; top: 3%; height: 97%; }
.character-note { position: absolute; left: 11.35%; top: 26cqw; width: 12.2%; }
.gallery-intro { position: absolute; left: 24.95%; top: 27.9cqw; width: 24.5%; margin: 0; font-size: 1.065cqw; font-weight: bold; line-height: var(--text-leading); }
.feature-paper {
  position: absolute; left: 44.6%; top: 40.6cqw; width: 51%; height: 20.15cqw;
  background: url('/assets/04/peaces_2-02.webp?v=37d4f6bc1be2aa7d') center / 100% auto no-repeat;
  color: #f5f1e6;
}
.feature-paper p { margin: 2.4cqw 0 0 26.4%; width: 30%; font-size: 1.01cqw; line-height: var(--text-leading); }
.feature-paper a { display: flex; align-items: center; justify-content: space-between; width: 55%; margin: 2.5cqw 0 0 26%; padding: 1.25cqw 1.65cqw; background: #ffb511; color: #16120f; font-size: 1.58cqw; text-decoration: none; text-transform: uppercase; line-height: 1.15; }
.feature-paper a img { width: 1.3cqw; }
.feature-paper .underline { width: 38%; margin-left: 27%; }
.obsession-heading { position: absolute; top: 35.45cqw; left: 23.3%; width: 37.36%; pointer-events: none; }
.gallery-content { padding: 0 5.45%; }
.catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 1.35%; }
.series-tiles {
  scroll-margin-top: clamp(12px, 4.4cqw, 46px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2.7%) / 3);
  column-gap: 1.35%;
  align-items: start;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  scrollbar-color: #211b17 var(--paper);
}
.series-tiles.has-scroll-controls { scrollbar-width: none; }
.series-tiles.has-scroll-controls::-webkit-scrollbar { display: none; }
.series-frame { position: relative; }
.series-frame button:not([hidden]) {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: min(5.45cqw, 52px);
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
}
.series-frame .series-back { right: 100%; }
.series-frame .series-forward { left: 100%; }
.series-frame button img { width: 32px; height: auto; }
.series-frame .series-back img { transform: scaleX(-1); }
@media (forced-colors: active) {
  .series-frame button { background: Canvas; border: 1px solid ButtonText; }
  .series-frame button img { display: none; }
  .series-back::before { content: "←"; }
  .series-forward::before { content: "→"; }
}
.series-tile { position: relative; display: block; scroll-snap-align: start; color: #f5f1e6; text-decoration: none; }
.series-tiles:focus { outline: none; }
.series-tile:focus-visible { outline: 3px solid #876500; outline-offset: -3px; }
.series-frame:has(.series-tiles:focus-visible) > button img { scale: 1.12; }
.series-tile > img:first-child { width: 100%; }
.series-tile strong,.series-tile small { position: absolute; left: 8%; }
.series-tile strong { bottom: 15.8%; text-transform: uppercase; font: 900 4.05cqw/.86 Heavy,sans-serif; letter-spacing: -.045em; transform: scaleX(.64); transform-origin: bottom left; }
.series-tile small { top: 86%; font-size: 1.18cqw; line-height: var(--caption-leading); }
.series-tile .tile-arrow { position: absolute; width: 8.5%; bottom: 6.5%; right: 7.2%; }
.gallery-toolbar { display: flex; align-items: flex-start; position: relative; margin-top: 10.35cqw; height: 7.4cqw; }
.gallery-toolbar h2 { flex: 0 0 29%; margin-left: -2.9%; }
.gallery-toolbar h2 img { width: 100%; }
.collection-filters { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex: 1; gap: .25cqw; padding-top: 1cqw; padding-left: 3.8cqw; }
.collection-filters :is(button,select,summary) {
  border: 0; background: transparent; color: #16130e;
  font-family: Gothic,sans-serif; font-size: 1.27cqw; padding: .3em .45em;
}
.collection-filters > [aria-pressed=true],
.status-filter:has(select:not([data-empty])) details:not([open]) > summary {
  background: url('/assets/04/peaces_2-12.webp?v=16830571b30ca2aa') center / 100% 100% no-repeat;
}
.status-filter { position: relative; -webkit-tap-highlight-color: transparent; }
.status-filter summary {
  display: flex; align-items: center; justify-content: space-between; gap: .5em;
  min-inline-size: 7em; list-style: none; cursor: pointer;
}
.status-filter summary::-webkit-details-marker { display: none; }
.status-filter summary::after {
  content: ""; width: .45em; height: .45em;
  border: solid currentColor; border-width: 0 .12em .12em 0; transform: rotate(45deg);
}
.status-filter details[open] summary::after { transform: rotate(225deg); }
.status-options {
  position: absolute; inset-block-start: 100%; inset-inline: 0; z-index: 1;
  display: grid; background-color: var(--paper);
}
.status-options button { text-align: start; }
.status-options button:is(:hover,[aria-pressed=true]) { font-weight: bold; }
.status-filter :is(summary,button):focus-visible { outline: none; font-weight: bold; font-style: italic; }
.collection-link { margin: 0 0 1em; }
.catalog-grid { position: relative; row-gap: var(--work-row-gap); }
.catalog-grid > article, .obs-grid > article { container-type: inline-size; }
.catalog-work { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.catalog-work > img, .catalog-work > .series-print { flex: none; }
.catalog-work > img { width: 100%; aspect-ratio: 1.25; object-fit: cover; }
.caption strong,.caption b { font-family: Gothic,sans-serif; font-weight: bold; line-height: 1.1; letter-spacing: -.045em; }
.caption strong { font-size: 2.35cqw; }
.caption b { font-size: 1.85cqw; text-align: right; }
.caption small { font-size: 1.13cqw; }
.caption em { justify-self: end; padding: 0 .7em; font: bold 1.12cqw/1.25 Gothic,sans-serif; background: url('/assets/04/peaces_2-13.webp?v=81d431775443572b') center / 100% 100% no-repeat; }
[data-status="Sold"] .caption em { background-image: url('/assets/03/peaces_3-10.webp?v=67553a73d63c489c'); }
/* Caption sizes follow the width of one painting in the Selected Works close-up. */
.catalog-work .caption {
  flex:1; display:grid; grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"title status" "series price";
  align-items:baseline; align-content:start; column-gap:1.2cqw; margin:2.43cqw .55cqw 0;
  color:#171516; font-family:Gothic,sans-serif;
}
.catalog-work .caption strong, .catalog-work .caption b { letter-spacing:normal; }
.catalog-work .caption strong {
  grid-area:title; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
  font-size:max(16px,9.08cqw); line-height:1;
}
.catalog-work .caption b, .catalog-work .caption:not(:has(b))::after {
  grid-area:price; font-weight:700; font-size:max(13px,6.81cqw); line-height:1;
}
/* Use the same price baseline for sold cards and keep the empty space decorative. */
.catalog-work .caption:not(:has(b))::after { content:"\00a0"; visibility:hidden; }
.catalog-work .caption small { grid-area:series; font-size:max(12px,4.13cqw); line-height:var(--caption-leading); }
.catalog-work .caption em {
  grid-area:status; text-align:center; font-size:max(13.44px,4.984cqw);
  line-height:var(--caption-leading); padding:0 .88em; margin-right:-.27em;
}
.catalog-work p {
  display:flex; flex-wrap:wrap; align-items:baseline; gap:.3em 5.1cqw;
  margin:4.85cqw .55cqw 0; color:#171516;
  font:400 max(13px,5.02cqw)/var(--caption-leading) Gothic,sans-serif;
}
.catalog-work p span + span {
  border-inline-start:1px solid #97918a; padding-inline-start:5.1cqw; line-height:inherit;
}
@container (max-width:200px) {
  .catalog-work .caption {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto 1fr auto auto;
    grid-template-areas:"title" "series" "status" "price"; row-gap:.18em;
  }
  .catalog-work .caption em { margin-right:0; }
  .catalog-work p { display:grid; gap:.2em; }
  .catalog-work p span + span { border:0; padding:0; line-height:inherit; }
}
.catalog-count { text-align: right; margin: 1em 0 0; font-size: max(12px,1.15cqw); }
@media(max-width:760px) {
  .gallery-hero { height: auto; display: grid; grid-template-columns: 1fr 1fr; padding: 1rem 5.45% 0; align-items: center; }
  .gallery-hero h1,.character-note,.gallery-intro,.obsession-heading { position: static; }
  .gallery-portrait,.feature-paper { position: relative; inset: auto; }
  .gallery-portrait::after { --brush-join: 3.5cqw; }
  .gallery-hero h1 { grid-column: 1/3; width: 69%; }
  .character-note { width: 57%; margin: -4% auto 0; }
  .gallery-intro { width: 100%; font-size: .9rem; }
  .gallery-intro .intro-break { display: none; }
  .gallery-portrait { grid-column: 1/3; width: 85%; margin: 1rem 0 0 auto; }
  .feature-paper { grid-column: 1/3; width: 86%; min-height: 9.5rem; height: auto; margin-left: auto; padding: 1.25rem .6rem 1rem 19%; background-size: 100% 100%; }
  .feature-paper p,.feature-paper a { width: 100%; margin: 0; font-size: .8rem; }
  .feature-paper a { margin-top: .7rem; padding: .7rem; }
  .feature-paper a img { width: 1rem; }
  .feature-paper .underline { width: 60%; margin-left: .5rem; }
  .obsession-heading { position: absolute; top: auto; left: 5%; bottom: 5rem; width: 43%; }
  .series-tiles { grid-auto-columns: min(82%,19rem); column-gap: .75rem; margin-top: .7rem; }
  .series-frame:has(.has-scroll-controls) { margin-inline: max(0px, calc(44px - 5.45cqw)); }
  .series-frame button:not([hidden]) { width: 44px; }
  .series-frame button img { width: 28px; }
  .series-tile { container-type: inline-size; }
  .series-tile strong { font-size: 14cqw; }
  .series-tile small { font-size: max(11px,4.1cqw); }
  .gallery-toolbar { height: auto; margin: 2rem 0 1rem; display: block; }
  .gallery-toolbar h2 { width: 52%; }
  .collection-filters { flex-wrap: wrap; justify-content: flex-start; gap: .3rem; }
  .collection-filters :is(button,select,summary) { font-size: .85rem; padding: .5rem; }
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: .7rem; }
  .caption strong { font-size: 1rem; }
  .caption b { font-size: .85rem; }
  .caption small,.caption em { font-size: .69rem; }
}

.series-tile:not(.composed-tile)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(transparent 47%, rgba(0,0,0,.88) 99%);
  mask: var(--tile-image) center / 100% 100% no-repeat;
}
.series-tile[href="/series/obsession/"] { --tile-image: url('/assets/04/peaces_2-08.webp?v=5b06b5eee0c6509e'); }
.series-tile[href="/series/alice-in-wonderland/"] { --tile-image: url('/assets/04/peaces_2-09.webp?v=3386a8d026602fc7'); }
.series-tile[href="/series/other-worlds/"] { --tile-image: url('/assets/04/peaces_2-10.webp?v=3fc34debb3b4fddb'); }
.series-tile strong,.series-tile small,.series-tile .tile-arrow { z-index: 1; }
@media(max-width:760px) {
  .feature-paper { grid-row: 4; padding-top: 2.75rem; }
  .obsession-heading { position: relative; grid-area: 4 / 1 / 5 / 3; align-self: start; left: auto; bottom: auto; width: 44%; margin-top: -9%; }
}
/* Obsession, measured against the approved series-3 sheet. */
.series-breadcrumb {
  display: flex;
  align-items: center;
  gap: .3em;
  padding: max(8px, 1.8cqw) 4.7% max(4px, .5cqw);
  font-size: clamp(15px, 1.45cqw, 18px);
  line-height: 1.35;
}
.series-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.series-breadcrumb a:is(:hover, :focus-visible) { text-decoration: underline; }

.obs-intro #open-series-story { text-transform: none; -webkit-tap-highlight-color: transparent; }
html:has(#series-story[open]) { overflow: hidden; }
#series-story[open] {
  display: block; place-items: normal; width: min(96vw, 900px); height: fit-content; max-height: calc(100dvh - 1.5rem);
  margin: auto; padding: 0; border: 0; overflow: auto; overscroll-behavior: contain;
  background: transparent; color: #f5f1e6;
}
#series-story::backdrop {
  background: rgb(244 238 228 / 20%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.story-paper {
  container-type: inline-size; position: relative; isolation: isolate; width: 100%; padding-bottom: 7%;
}
.story-background {
  position: absolute; z-index: -1; top: 0; right: 0; width: 100%; height: 100%;
  max-width: none; pointer-events: none;
}
.story-tools {
  position: sticky; top: 0; z-index: 1; height: 0;
  display: flex; justify-content: flex-end; padding-right: 8%; pointer-events: none;
}
#close-series-story {
  display: grid; place-items: center; width: 44px; height: 44px;
  margin-top: clamp(4px, 3.7cqi, 32px); padding: 0; border: 0; border-radius: 50%;
  background: #18120f; color: #ffb511; pointer-events: auto;
}
#close-series-story img { width: clamp(28px, 3.7cqi, 38px); }
#close-series-story:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.story-mast { position: relative; height: 45cqi; }
.story-mast h2 { position: absolute; width: 67%; left: 22%; top: 10.6cqi; margin: 0; }
.collection-0 .story-mast h2 { left: 26%; width: 65.5%; }
.collection-1 .story-mast h2 { left: 24%; top: 3.2cqi; width: 67.5%; }
.story-mast img { display: block; width: 100%; height: auto; }
.story-tagline { position: absolute; left: 21%; top: 32.5cqi; width: 30%; margin: 0; }
.collection-1 .story-tagline { top: 34.6cqi; }
.story-copy { margin: 0 13% 0 21%; font: 400 clamp(16px, 2cqi, 19px)/var(--text-leading) Gothic,sans-serif; }
.story-copy p { margin: 0; }
.story-copy p + p { margin-top: var(--paragraph-gap); }
@media (max-width: 600px) {
  #series-story[open] { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); }
  .story-paper { padding-bottom: 2.5rem; }
  .story-background { width: 116%; }
  .story-tools { padding-right: 4%; }
  .story-mast { height: auto; padding-top: 48px; }
  .story-paper .story-mast h2 { position: static; width: 85%; margin-left: 9%; }
  .story-paper .story-tagline { position: relative; inset: auto; width: 51%; margin: -12% 0 1.2rem 10%; }
  .story-copy { margin-inline: 10% 8%; font-size: 1rem; }
}

.obs-banner { position: relative; height: 50.65cqw; }
.obs-banner::before {
  content: "";
  position: absolute;
  inset: 0 calc((100cqw - var(--canvas-width)) / 2) auto 0;
  height: 36.1cqw;
  /* Keep the torn left edge on the sheet and carry the ink to the right viewport edge. */
  border-image: url('/assets/02/peaces_main-24.webp?v=b507604854d96a2a') 0 4% 0 4% fill / 0 0 0 4cqw round stretch;
  pointer-events: none;
}
.obs-banner h1 { position: absolute; z-index: 1; top: 3.05cqw; left: 8%; width: 50.5%; margin: 0; }
.obs-note { position: absolute; z-index: 1; width: 16.5%; top: 16.4cqw; left: 8.3%; }
.obs-portrait { position: absolute; width: 53.846%; right: 0; top: .15cqw; pointer-events: none; }
.obs-intro { position: absolute; left: 13.1%; top: 37.6cqw; width: 27.6%; }
.obs-intro p { margin: 0 0 1.55cqw .4cqw; width: 93%; font: bold 1.12cqw/var(--text-leading) Gothic,sans-serif; }
.obs-intro .button { display: flex; width: 100%; justify-content: space-between; padding: 1.35cqw 1.6cqw; font: 1.52cqw/1.1 Gothic,sans-serif; }
.obs-sheet #works { min-height: 0; padding: 0 5.4% 0 4.7%; }
.obs-sheet #works h2 {
  position: relative; margin: 0; max-width: none; padding: 0; background: transparent;
}
.obs-collection h2::before { content: ""; position: absolute; top: 50%; left: 2%; right: 0; border-top: 1px solid #d5d1c6; }
.obs-collection h2 img { position: relative; width: 48%; margin-left: .7%; }
.obs-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 2%; row-gap: var(--work-row-gap); }
.series-print { display: block; aspect-ratio: 5 / 4; overflow: hidden; }
.series-print img { width: 100%; height: 100%; object-fit: cover; }
/* These prepared thumbnails include a paper edge within the image itself. */
.series-print .inset-print { transform: scale(1.10); }
.obs-sheet { padding-bottom: 10.5cqw; }
@media (max-width:760px) {
  .obs-banner { display: grid; grid-template-columns: 43% 57%; align-items: start; height: auto; }
  .obs-banner::before { height: 44cqw; }
  .obs-banner h1 { width: 53%; left: 4%; top: 4cqw; }
  .obs-note { width: 23%; left: 7%; top: 21cqw; }
  .obs-portrait { position: relative; grid-column: 2; width: 100%; }
  .obs-intro { position: relative; grid-column: 1/-1; top: auto; left: auto; width: auto; margin: .4rem 6% 1rem; }
  .obs-intro p { width: auto; max-width: 36em; font-size: .94rem; margin: 0 0 .7rem; }
  .obs-intro .button { width: fit-content; min-height: 44px; font-size: .88rem; padding: .8rem 1rem; }
  .obs-collection h2 img { width: 65%; }
  .obs-grid { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: .8rem; }
}
@media (min-width:761px) {
  .obs-banner::before { height: 35.8cqw; }
  body:has(.obs-sheet) footer.dark { min-height: 20.8cqw; }
}
