/* Layout concept: a white-walled gallery. Works hang on the wall at their true relative size, each with a small museum label. One navy room for the artists. */
:root {
  color-scheme: light;
  --wall: #F6F5F2;
  --panel: #FFFFFF;
  --ink: #0F0C22;
  --soft: #55525F;
  --line: #DEDCE3;
  --navy: #140E45;
  --logo-navy: #120F3D;
  --orange: #E58343;
  --orange-ink: #1B0F05;
  --cream: #E8E0B7;
  --on-navy: #F3F0E2;
  --on-navy-soft: #B9B5CF;
  --display: "Oranienbaum", "Didot", "Times New Roman", serif;
  --body: "Archivo Narrow", "Arial Narrow", "Segoe UI", sans-serif;
  --gutter-l: max(clamp(16px, 4vw, 64px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 64px), env(safe-area-inset-right, 0px));
  --hang: 0 1px 2px rgba(15, 12, 34, .18), 0 10px 18px -6px rgba(15, 12, 34, .22), 0 34px 60px -24px rgba(15, 12, 34, .34);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--wall); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--panel); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; line-height: 1.02; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
#main:focus { outline: none; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 60; padding: 10px 16px; background: var(--navy); color: var(--on-navy); }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.band { padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.inner { max-width: 1400px; margin-inline: auto; }

.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--panel); border-bottom: 1px solid var(--line); }
.top .inner { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; padding-block: 12px; }
.mark { display: flex; align-items: center; gap: 12px; }
.mark img { width: 42px; height: 42px; border-radius: 3px; }
.mark b { display: block; font-family: var(--display); font-weight: 400; font-size: 27px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.mark small { display: block; margin-top: 3px; font-size: 13px; letter-spacing: .1em; color: var(--soft); text-transform: uppercase; }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a { padding-block: 8px; font-size: 17px; color: var(--soft); border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.nav .sell { padding: 8px 16px; color: var(--ink); border: 1px solid var(--ink); }
.nav .sell:hover { background: var(--ink); color: var(--panel); }

/* The big pictures */
.hero { position: relative; background: var(--panel); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.slide-copy { display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding-block: 40px 88px; padding-left: max(var(--gutter-l), calc((100vw - 1400px) / 2)); padding-right: 40px; min-width: 0; }
.lede { font-size: 18px; color: var(--soft); max-width: 26em; margin-bottom: auto; padding-bottom: 28px; }
.eyebrow { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.slide-copy h2 { font-size: clamp(44px, 6.1vw, 104px); line-height: .98; }
.slide-artist { font-size: 21px; }
.slide-facts { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 17px; font-variant-numeric: tabular-nums; }
.slide-facts b { font-weight: 600; }
.slide-links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; margin-top: 6px; }
.slide-art { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 5vw, 76px); background: var(--wall); min-height: clamp(420px, 62vh, 720px); min-width: 0; }
.slide-art a { display: block; }
.slide-art img { max-height: clamp(340px, 54vh, 620px); width: auto; box-shadow: var(--hang); }
.btn { display: inline-block; padding: 13px 24px; background: var(--orange); color: var(--orange-ink); font-weight: 600; font-size: 17px; text-align: center; }
.btn:hover { background: #EE9458; }
.textlink { font-size: 17px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.textlink:hover { color: var(--soft); }
.hero-controls { position: absolute; left: max(var(--gutter-l), calc((100vw - 1400px) / 2)); bottom: 28px; display: flex; align-items: center; gap: 6px; }
.dot { display: grid; place-items: center; width: 26px; height: 32px; }
.dot::before { content: ""; width: 18px; height: 2px; background: var(--line); }
.dot[aria-current="true"]::before { background: var(--ink); }
.arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); font-size: 19px; background: var(--panel); text-align: center; }
.arrow:hover { border-color: var(--ink); }
.arrow.first { margin-left: 12px; }

/* Sections */
.section { padding-block: clamp(56px, 7vw, 104px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(26px, 3.5vw, 44px); }
.section-head h1, .section-head h2 { font-size: clamp(38px, 4.6vw, 70px); }
.section-head p { color: var(--soft); max-width: 34em; margin-top: 8px; }

/* The wall: true relative size */
.wall { background: var(--wall); border-block: 1px solid var(--line); padding-bottom: 24px; }
.wall-scroll { overflow-x: auto; scrollbar-width: thin; }
.wall-row { display: flex; align-items: flex-end; gap: clamp(44px, 6vw, 92px); width: max-content; min-height: 560px; padding-block: 56px 16px; padding-inline: var(--gutter-l) var(--gutter-r); }
.hung { align-items: flex-start; display: flex; flex-direction: column; gap: 22px; flex: none; }
.hung img { width: auto; height: auto; max-width: calc(var(--long) * var(--cm)); max-height: calc(var(--long) * var(--cm)); box-shadow: var(--hang); transition: transform .35s ease; }
.hung:hover img { transform: translateY(-4px); }
.hung-label { display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; min-height: 50px; width: max-content; max-width: 240px; }
.hung-label b { font-weight: 600; }
.ruler { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--soft); }
.ruler i { display: block; width: calc(50 * var(--cm, 5.4px)); height: 7px; border: 1px solid var(--soft); border-top: 0; }

/* Catalogue cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: clamp(36px, 4vw, 56px) clamp(20px, 2.6vw, 36px); align-items: start; }
.card { display: block; width: 100%; min-width: 0; }
.frame { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 11%; background: var(--panel); overflow: hidden; margin-bottom: 14px; }
.frame img { max-height: 100%; width: auto; box-shadow: var(--hang); transition: transform .35s ease; }
.card:hover .frame img { transform: scale(1.025); }
.lotno { font-size: 14px; letter-spacing: .06em; color: var(--soft); }
.who { font-family: var(--display); font-size: 25px; line-height: 1.08; text-transform: uppercase; margin-top: 3px; overflow-wrap: anywhere; }
.what { color: var(--soft); font-style: italic; overflow-wrap: anywhere; }
.price { margin-top: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.when { font-size: 15px; color: var(--soft); font-variant-numeric: tabular-nums; }
.sold-tag { margin-top: 10px; font-weight: 600; }
.sort { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 16px; color: var(--soft); align-items: center; }
.sort button { padding-block: 3px; border-bottom: 1px solid transparent; }
.sort button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }

/* The navy room */
.room { background: var(--navy); color: var(--on-navy); }
.room .section-head p { color: var(--on-navy-soft); }
.artist-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 36px; }
.artist-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.avatar { width: 124px; height: 124px; border-radius: 50%; object-fit: cover; flex: none; }
.artist-card h3 { font-size: 34px; }
.artist-card p { color: var(--on-navy-soft); max-width: 30em; }
.artist-card span { font-size: 15px; color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.room .artist-card:hover h3 { color: var(--cream); }

.page-artists .artist-card p { color: var(--soft); }
.page-artists .artist-card span { color: var(--ink); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 36px clamp(28px, 4vw, 64px); list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--ink); padding-top: 14px; min-width: 0; }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 54px; line-height: 1; display: block; margin-bottom: 18px; }
.steps h3 { font-size: 27px; margin-bottom: 8px; }
.steps p { color: var(--soft); max-width: 30em; }

/* For artists */
.invite { background: var(--cream); }
.invite .inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px 56px; align-items: end; }
.invite h2 { font-size: clamp(38px, 5vw, 78px); }
.invite p { max-width: 32em; margin-bottom: 18px; }
.btn.dark { background: var(--navy); color: var(--on-navy); }
.btn.dark:hover { background: #241C66; }

/* Lot page */
.crumb { display: flex; justify-content: space-between; gap: 16px; padding-block: 20px 0; font-size: 16px; }
.lot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; padding-block: 22px clamp(56px, 7vw, 96px); }
.stage { display: flex; align-items: center; justify-content: center; padding: clamp(24px, 6vw, 88px); background: var(--panel); min-width: 0; }
.stage button { display: block; cursor: zoom-in; }
.stage img { max-height: 76vh; width: auto; box-shadow: var(--hang); }
.lot-side { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.lot-side h1 { font-size: clamp(40px, 4.6vw, 68px); }
.lot-side .work { font-size: 21px; font-style: italic; margin-top: 8px; }
.lot-side .spec { color: var(--soft); }
.bidbox { background: var(--panel); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.bidbox .now { font-size: 15px; color: var(--soft); }
.bidbox .amount { font-family: var(--display); font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.bidbox .closes { border-top: 1px solid var(--line); padding-top: 12px; font-variant-numeric: tabular-nums; }
.bidbox .closes b { font-weight: 600; display: block; }
.bidbox .btn { width: 100%; }
.small { font-size: 15px; color: var(--soft); }
.about { display: flex; gap: 16px; align-items: center; width: 100%; padding-block: 14px; border-block: 1px solid var(--line); }
.about img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: none; }
.about b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; text-transform: uppercase; line-height: 1.1; }

/* Artist page */
.profile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px clamp(24px, 4vw, 56px); align-items: center; padding-block: 34px clamp(40px, 5vw, 72px); }
.profile .avatar { width: clamp(120px, 15vw, 210px); height: clamp(120px, 15vw, 210px); }
.profile h1 { font-size: clamp(46px, 7vw, 112px); }
.profile p { font-size: 20px; color: var(--soft); max-width: 34em; margin-block: 12px 18px; }

/* Search */
.searchbox { width: 100%; max-width: 760px; padding: 12px 0; background: none; border: 0; border-bottom: 2px solid var(--ink); font: inherit; font-family: var(--display); font-size: clamp(28px, 4vw, 48px); color: var(--ink); border-radius: 0; }
.searchbox:focus { outline: none; border-bottom-color: var(--orange); box-shadow: 0 2px 0 var(--orange); }
.searchbox::placeholder { color: #8C8996; }

.foot { background: var(--logo-navy); color: var(--on-navy); padding-block: 48px; }
.foot .inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px 56px; align-items: center; }
.foot img { width: 170px; }
.foot p { max-width: 30em; color: var(--on-navy-soft); }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot a:hover { text-decoration: underline; }

.lightbox { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 28px; background: rgba(15, 12, 34, .93); width: 100%; cursor: zoom-out; }
.lightbox img { max-height: calc(100vh - 56px); width: auto; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(92vw, 520px); padding: 13px 18px; background: var(--ink); color: var(--panel); font-size: 16px; text-align: center; }

@media (max-width: 860px) {
  .top .inner { padding-block: 8px 0; gap: 2px 12px; }
  .mark img { width: 34px; height: 34px; }
  .mark b { font-size: 22px; }
  .mark small { font-size: 12px; }
  .nav { order: 3; width: 100%; margin: 0; gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 16px; }
  .nav .sell { padding: 8px 0; border: 0; border-bottom: 2px solid transparent; color: var(--soft); }
  .slide { grid-template-columns: minmax(0, 1fr); }
  .slide-art { order: -1; min-height: 0; padding: 30px 20px; }
  .slide-art img { max-height: 340px; }
  .slide-copy { padding: 22px var(--gutter-r) 78px var(--gutter-l); justify-content: flex-start; }
  .lede { display: none; }
  .wall-row { min-height: 420px; padding-block: 40px 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
  .who { font-size: 20px; }
  .lot, .invite .inner { grid-template-columns: minmax(0, 1fr); }
  .lot-side { position: static; }
  .stage img { max-height: 60vh; }
  .profile { grid-template-columns: minmax(0, 1fr); }
  .foot .inner { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hung img, .frame img { transition: none; }
}

.status { padding-block: 80px; color: var(--soft); text-align: center; }
.flat { margin-bottom: 0; }
.flat-bottom { padding-bottom: 0; }
.flat-top { padding-top: 0; }
.part { padding-bottom: clamp(56px, 6vw, 88px); }
.big { font-size: clamp(44px, 7vw, 104px); }
.lede-p { margin-top: 14px; font-size: 20px; color: var(--soft); max-width: 34em; }
.gap { margin-top: 24px; }
.coming { padding-block: clamp(90px, 16vw, 220px); }
.preview-note { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 50; width: max-content; max-width: calc(100vw - 32px); margin: 0; padding: 7px 14px; background: var(--orange); color: var(--orange-ink); font-size: 13px; font-weight: 600; text-align: center; pointer-events: none; }
.prose { white-space: pre-line; overflow-wrap: anywhere; }
.results { margin-top: 44px; }
.found { margin-bottom: 56px; }
.searchbox { display: block; margin-top: 6px; }
.frame .small { text-align: center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(26px, 3vw, 40px); }
.chip { padding: 7px 15px; font-size: 16px; color: var(--soft); background: var(--panel); border: 1px solid var(--line); }
.chip small { font-size: 13px; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="true"] { color: var(--panel); background: var(--ink); border-color: var(--ink); }
.type-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 clamp(28px, 4vw, 64px); }
.type-index a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 14px; border-top: 1px solid var(--line); }
.type-index b { font-family: var(--display); font-weight: 400; font-size: 27px; line-height: 1.1; text-transform: uppercase; }
.type-index span { font-size: 15px; color: var(--soft); white-space: nowrap; }
.type-index a:hover b { color: var(--soft); }
.stage-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs button { width: 84px; height: 84px; padding: 8px; background: var(--panel); border: 1px solid transparent; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
/* The sliding cover: it stays pinned while the page below slides up over it. */
.cover { position: sticky; top: var(--top-height, 0px); z-index: 0; height: min(calc(100vh - var(--top-height, 0px)), 900px); overflow: hidden; background: var(--navy); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 12, 34, .72), rgba(15, 12, 34, 0) 55%); }
.cover-name { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(28px, 6vh, 72px); color: var(--on-navy); }
.cover-name h1 { font-size: clamp(50px, 9vw, 150px); }
.kinds { margin-top: 10px; font-size: clamp(17px, 1.6vw, 22px); }
.over { position: relative; z-index: 1; background: var(--wall); box-shadow: 0 -14px 40px rgba(15, 12, 34, .2); }
.profile .kinds { color: var(--soft); }
@media (max-width: 860px) { .cover { height: min(70vh, 560px); } }

.on-navy { color: var(--on-navy-soft); }
.room .big { color: var(--on-navy); margin-top: 10px; }
.lines { white-space: pre-line; max-width: 44em; color: var(--soft); overflow-wrap: anywhere; font-size: 18px; }
