/* Art Moves. White walls, black type, the work at full size.
   Switzer for interface and data, Gambetta for headlines. No accent colour:
   the only colour on a page comes from the art. */

:root {
  --ink: #111;
  --dim: #6a6a6a;
  --line: #dcdcdc;
  --wall: #f3f3f1;
  --sans: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --serif: "Gambetta", "Iowan Old Style", Georgia, serif;
  --gutter: 24px;
  --label: 240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, th:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
img { display: block; max-width: 100%; }
.dim { color: var(--dim); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: #fff; padding: 8px; z-index: 10; }

/* Header: wordmark left, sections right. */
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 20px var(--gutter) 18px; }
.wordmark { font-size: 28px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; line-height: 1; }
.top nav { display: flex; gap: 28px; font-size: 16px; font-weight: 500; }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { text-decoration: underline; }

main { padding: 0 var(--gutter); }

/* Small uppercase label: the left-hand column on every section. */
.label { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; line-height: 1.5; }
.banner { margin: 0 0 12px; padding: 8px 12px; background: var(--wall); font-size: 13px; color: var(--dim); }

/* Plates. The image hangs on a pale wall and is never cropped. */
.plate { margin: 0; }
.plate .wall { background: var(--wall); display: flex; justify-content: center; padding: 40px 24px; }
.plate img { max-height: 520px; width: auto; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 12px 28px rgba(0,0,0,.10); }
.plate.hero .wall { padding: 64px 24px; }
.plate.hero img { max-height: min(68vh, 720px); }
.plate figcaption { font-size: 12px; color: var(--dim); padding-top: 8px; }

/* Two-column sections: label, then body. */
.lead, .sec, .issue-head { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); column-gap: var(--gutter); border-top: 1px solid var(--ink); padding: 16px 0 56px; }
.lead { margin-top: 40px; }
.issue-head { border-top: 0; padding: 40px 0 48px; }
.issue-head > .display, .issue-head > .standfirst { grid-column: 2; }
.sec-body { max-width: 680px; }
.sec-body.wide { max-width: none; }
.sec-body > :first-child { margin-top: 0; }

.display { text-wrap: balance; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -0.015em; margin: 0 0 20px; max-width: 16ch; }
.display a { text-decoration: none; }
.display a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.standfirst { font-size: 20px; line-height: 1.45; max-width: 620px; margin: 0 0 20px; }
.more { font-weight: 500; }
p { margin: 0 0 1em; }
ul { padding-left: 1.1em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

/* A featured sale. */
.sale { margin: 0 0 64px; }
.sale:last-child { margin-bottom: 0; }
.sale .plate { margin-bottom: 20px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin: 0 0 6px; }
.sale-title { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; margin: 0 0 6px; }
.figure-price { font-size: 22px; font-weight: 500; margin: 0 0 18px; font-variant-numeric: tabular-nums; }
.facts { margin: 0 0 18px; border-top: 1px solid var(--line); font-size: 14px; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; }
.cite { font-size: 12px; text-decoration: none; border: 1px solid var(--line); border-radius: 2px; padding: 0 5px; margin-left: 2px; font-variant-numeric: tabular-nums; }
.cite:hover { border-color: var(--ink); }

/* Lists of sales and issues. */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.row-thumb { width: 112px; height: 84px; background: var(--wall); display: flex; align-items: center; justify-content: center; }
.row-thumb img { max-width: 88%; max-height: 84%; }
.tile { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.row-main { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.row-title { font-size: 20px; font-weight: 500; line-height: 1.25; }
.row:hover .row-title { text-decoration: underline; }
.row-price { font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }

/* The index table. */
.scroll { overflow-x: auto; }
.index { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.index th, .index td { text-align: left; vertical-align: top; padding: 10px 20px 10px 0; border-bottom: 1px solid var(--line); }
.index th { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border-top: 1px solid var(--ink); border-bottom-color: var(--ink); white-space: nowrap; }
.index th:last-child, .index td:last-child { padding-right: 0; }
.index .num { text-align: right; white-space: nowrap; }
.sortable th { cursor: pointer; }
.sortable th:hover { text-decoration: underline; }
main > .scroll { padding-bottom: 72px; }
.sources { padding-left: 1.4em; margin: 0; font-size: 14px; }

.pager { display: flex; gap: 28px; border-top: 1px solid var(--ink); padding: 16px 0 72px; font-weight: 500; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 16px var(--gutter) 28px; border-top: 1px solid var(--ink); margin: 0 var(--gutter); padding-left: 0; padding-right: 0; font-size: 13px; color: var(--dim); }

@media (max-width: 820px) {
  :root { --gutter: 16px; }
  .top { padding-top: 14px; flex-wrap: wrap; row-gap: 10px; }
  .wordmark { font-size: 24px; }
  .top nav { gap: 18px; font-size: 15px; }
  .lead, .sec, .issue-head { grid-template-columns: minmax(0, 1fr); row-gap: 12px; padding-bottom: 40px; }
  .issue-head > .display, .issue-head > .standfirst { grid-column: 1; }
  .issue-head { padding-top: 24px; }
  .plate .wall, .plate.hero .wall { padding: 24px 16px; }
  .plate img { max-height: 360px; }
  .standfirst { font-size: 18px; }
  .row { grid-template-columns: auto minmax(0, 1fr); }
  .row-thumb { width: 72px; height: 56px; }
  .row-price { grid-column: 2; text-align: left; font-size: 16px; }
  .row-title { font-size: 17px; }
  .index { min-width: 680px; }
  .facts div { grid-template-columns: 90px 1fr; }
}
