/* An auction house catalogue: a pale page, artwork on white panels with room around it, tall capitals for names, and one orange action. */
:root {
  color-scheme: light;
  --page: #F7F7F7;
  --panel: #FFFFFF;
  --ink: #0C0C0C;
  --soft: #55535C;
  --faint: #6F6D77;
  --line: #E2E1E5;
  --navy: #140E45;
  --orange: #E58343;
  --display: "Oranienbaum", "Didot", "Times New Roman", serif;
  --body: "Archivo Narrow", "Arial Narrow", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
img { display: block; max-width: 100%; }

.app { max-width: 620px; margin: 0 auto; min-height: 100vh; overflow-x: clip; }
.pad { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.status { padding-block: 60px; color: var(--soft); text-align: center; }

.top { position: sticky; top: 0; z-index: 5; background: var(--panel); border-bottom: 1px solid var(--line); }
.mark { padding-block: 13px 9px; font-family: var(--display); font-size: 25px; line-height: 1; letter-spacing: .02em; text-align: center; text-transform: uppercase; }
.mark button { font: inherit; letter-spacing: inherit; text-transform: inherit; }
.nav { display: flex; justify-content: center; gap: 26px; }
.tab { padding-block: 5px 9px; font-size: 15px; color: var(--soft); border-bottom: 2px solid transparent; }
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }

.hero { position: relative; display: block; width: 100%; overflow: hidden; background: var(--navy); }
.hero img { width: 100%; height: 430px; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 12, 12, .68), rgba(12, 12, 12, .08) 58%); }
.hero-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 22px; color: #FFFFFF; }
.hero-text small { display: block; font-size: 14px; }
.hero-text strong { display: block; margin: 4px 0 6px; font-family: var(--display); font-weight: 400; font-size: 49px; line-height: 1; text-transform: uppercase; }
.hero-text span { font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }

.heading { padding-block: 30px 4px; }
.heading h1, .profile h1, .lot h1 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }
.heading h1 { font-size: 33px; line-height: 1.05; }
.heading p { margin: 5px 0 0; color: var(--soft); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 12px; padding-block: 20px 44px; 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: 12%; background: var(--panel); overflow: hidden; }
.frame img { max-height: 100%; width: auto; box-shadow: 0 2px 7px rgba(12, 12, 12, .2); }
.no-photo { color: var(--faint); font-size: 14px; text-align: center; }
.lotno { margin-top: 10px; font-size: 13px; color: var(--soft); }
.who { margin-top: 2px; font-family: var(--display); font-size: 18px; line-height: 1.12; text-transform: uppercase; overflow-wrap: anywhere; }
.what { margin-top: 3px; font-size: 15px; color: var(--soft); line-height: 1.3; overflow-wrap: anywhere; }
.price { margin-top: 8px; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.when { font-size: 14px; color: var(--soft); font-variant-numeric: tabular-nums; }

.artists { padding-block: 10px 44px; }
.artist-row { display: flex; align-items: center; gap: 14px; width: 100%; padding-block: 14px; border-bottom: 1px solid var(--line); }
.artist-row > div { min-width: 0; }
.avatar { width: 58px; height: 58px; object-fit: cover; flex: none; background: var(--line); }
.artist-row .who { margin: 0; font-size: 22px; }

.crumb { display: flex; justify-content: space-between; gap: 12px; padding-block: 13px; font-size: 14px; }
.link { color: var(--navy); font-weight: 500; }
.stage { display: flex; align-items: center; justify-content: center; height: 400px; padding: 22px; background: var(--panel); overflow: hidden; }
.stage img { max-height: 100%; width: auto; box-shadow: 0 3px 12px rgba(12, 12, 12, .22); }
.lot { padding-block: 18px 34px; }
.lot .lotno { margin-top: 0; }
.lot h1 { margin-top: 3px; font-size: 33px; line-height: 1.05; }
.lot .what { font-size: 16px; margin-top: 5px; }
.sale { margin-top: 15px; font-size: 15px; }
.sale b { display: block; font-weight: 600; text-transform: uppercase; }
.bid { margin-top: 15px; font-size: 19px; font-variant-numeric: tabular-nums; }
.bid small { display: block; font-size: 14px; color: var(--faint); }
.btn { display: block; width: 100%; margin-top: 15px; padding: 14px 16px; background: var(--orange); color: var(--ink); font-weight: 600; font-size: 17px; text-align: center; border-radius: 3px; }
.btn[disabled] { background: var(--line); color: var(--soft); cursor: default; }
.join { margin-top: 10px; font-size: 14px; color: var(--soft); }
.actions { display: flex; gap: 24px; padding-block: 15px; border-bottom: 1px solid var(--line); }
.actions button { color: var(--navy); font-weight: 500; }
.lot h2 { margin: 20px 0 6px; font-family: var(--display); font-weight: 400; font-size: 23px; text-transform: uppercase; }
.lot p { margin: 0 0 8px; overflow-wrap: anywhere; white-space: pre-line; }
.note { color: var(--soft); font-size: 15px; }

.profile { padding-block: 24px 4px; }
.profile .avatar { width: 92px; height: 92px; }
.profile h1 { margin-top: 14px; font-size: 36px; line-height: 1.04; }
.profile p { margin: 8px 0 14px; color: var(--soft); overflow-wrap: anywhere; white-space: pre-line; }
.ghost { display: block; width: 100%; padding: 12px 16px; text-align: center; border: 1px solid var(--ink); border-radius: 3px; font-weight: 500; }

.message { padding-block: 60px; text-align: center; }
.message h1 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 30px; text-transform: uppercase; }
.message p { margin: 0 auto 18px; max-width: 34em; color: var(--soft); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 20; width: min(398px, calc(100% - 32px)); padding: 12px 14px; background: var(--navy); color: #FFFFFF; font-size: 15px; border-radius: 3px; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
