/* Wassenaar Gallery
   Paper, ink and one oxblood accent. Newsreader for reading, Instrument Sans for labels.
   Product photos are cut out on white; `mix-blend-mode: multiply` lets that white fall
   away so the objects stand directly on the page, like plates in a printed catalogue. */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ece7de;
  --plate: #f4f0e9;
  --plate-edge: #e3ddd2;
  --ink: #1d1a16;
  --ink-2: #57514a;
  --ink-3: #8a8277;
  --rule: #cfc7ba;
  --accent: #7b2d1e;
  --sand: #ddd4c6;
  --night: #15120f;
  --night-2: #221e19;
  --night-ink: #ede6da;
  --night-dim: #a59c8f;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 3.4vw, 48px);
  --max: 1520px;
  --masthead: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --slow: 700ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--masthead) + 16px);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection {
  background: var(--accent);
  color: var(--plate);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 360;
  letter-spacing: -0.015em;
}

h1 em,
h2 em,
.footer__mark em,
.wordmark__sub {
  font-style: italic;
  font-weight: 300;
}

p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 0.875rem;
}
.skip:focus {
  top: 12px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0 1.4em;
  border: 1px solid var(--ink);
  background: transparent;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 250ms var(--ease), color 250ms var(--ease);
}
.button:hover {
  background: var(--ink);
  color: var(--paper);
}
.button--solid {
  background: var(--ink);
  color: var(--paper);
}
.button--solid:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.button--quiet {
  border-color: var(--rule);
}
.button--quiet:hover {
  border-color: var(--ink);
}

.link-out,
.link-arrow {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-out::after {
  content: " ↗";
}
.link-arrow::after {
  content: " →";
  display: inline-block;
  transition: transform 300ms var(--ease);
}
.link-arrow:hover::after {
  transform: translateX(4px);
}

.text-button {
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------------------------------------------------------------- masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: transform 400ms var(--ease), border-color 300ms;
}
.masthead.is-scrolled {
  border-bottom-color: var(--rule);
}
.masthead.is-hidden {
  transform: translateY(-100%);
}

.masthead__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: var(--masthead);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  font-size: 1.4rem;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark__sub {
  color: var(--ink-2);
}

.masthead__nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-family: var(--sans);
  font-size: 0.84rem;
}
.masthead__nav a {
  text-decoration: none;
  color: var(--ink-2);
  transition: color 200ms;
}
.masthead__nav a:hover {
  color: var(--ink);
}

.masthead__tools {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 0.84rem;
}

.currency {
  display: inline-flex;
  border: 1px solid var(--rule);
}
.currency button {
  width: 30px;
  height: 30px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 0.82rem;
}
.currency button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.shortlist-toggle,
.menu-toggle {
  border: 0;
  background: none;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.shortlist-toggle__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--plate-edge);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  transition: background-color 300ms, color 300ms;
}
.shortlist-toggle.has-items .shortlist-toggle__count {
  background: var(--accent);
  color: var(--plate);
}
.shortlist-toggle.bump .shortlist-toggle__count {
  animation: bump 500ms var(--ease);
}
@keyframes bump {
  40% {
    transform: scale(1.35);
  }
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  display: grid;
  padding: 8px var(--gutter) 24px;
  border-top: 1px solid var(--rule);
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu a {
  font-size: 1.6rem;
  padding: 8px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 900px) {
  .masthead__nav {
    display: none;
  }
  .masthead__tools {
    margin-left: auto;
  }
  .menu-toggle {
    display: inline-flex;
  }
}
.mobile-menu__currency {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 0;
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--ink-2);
}
.mobile-menu__currency .currency button {
  width: 40px;
  height: 36px;
}

@media (min-width: 561px) {
  .mobile-menu__currency {
    display: none;
  }
}
@media (max-width: 560px) {
  .wordmark {
    font-size: 1.25rem;
  }
  .masthead__tools .currency {
    display: none;
  }
  .masthead__tools {
    gap: 16px;
  }
}

/* -------------------------------------------------------------------- hero */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 8vh, 96px) var(--gutter) clamp(56px, 10vh, 120px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: center;
  min-height: calc(92vh - var(--masthead));
}

.hero__text {
  grid-column: 1 / span 6;
  display: grid;
  gap: 28px;
  align-content: center;
}

.hero__title {
  font-size: clamp(2.7rem, 6.4vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.028em;
  font-weight: 340;
  text-wrap: balance;
}

.hero__lede {
  max-width: 34em;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.salon {
  grid-column: 7 / span 6;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 18px);
  aspect-ratio: 1 / 1.04;
}

.salon__piece {
  position: relative;
  margin: 0;
  background: var(--paper); /* keeps multiply correct while the piece fades in */
  display: block;
  min-height: 0;
  text-decoration: none;
  transition: transform 900ms var(--ease);
}
.salon__piece:nth-child(1) {
  grid-area: 1 / 1 / 4 / 5;
}
.salon__piece:nth-child(2) {
  grid-area: 2 / 5 / 4 / 7;
}
.salon__piece:nth-child(3) {
  grid-area: 4 / 1 / 7 / 3;
}
.salon__piece:nth-child(4) {
  grid-area: 4 / 3 / 6 / 5;
}
.salon__piece:nth-child(5) {
  grid-area: 4 / 5 / 7 / 7;
}

.salon__piece img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  mix-blend-mode: multiply;
  transition: transform 900ms var(--ease);
}
.salon__piece[data-hang] img {
  object-position: 50% 0%;
}
/* On hover the whole piece (photo plus its paper background) lifts and sits above its
   neighbours, so the caption is never covered and no white photo edge shows. */
.salon__piece:hover,
.salon__piece:focus-visible {
  z-index: 3;
  transform: translateY(-6px);
}

.salon__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  transform: translateY(100%);
  font-family: var(--sans);
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--ink-2);
  background: var(--paper);
  padding: 6px 8px;
  opacity: 0;
  transition: opacity 300ms, transform 400ms var(--ease);
  pointer-events: none;
  text-align: center;
}
.salon__piece[data-hang] .salon__caption {
  bottom: auto;
  top: 100%;
  transform: translateY(0);
}
.salon__piece:hover .salon__caption,
.salon__piece:focus-visible .salon__caption {
  opacity: 1;
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
  }
  .hero__text,
  .salon {
    grid-column: 1 / -1;
  }
  .salon {
    aspect-ratio: 1 / 0.9;
    max-width: 640px;
  }
  .salon__caption {
    display: none;
  }
}

/* --------------------------------------------------------- section heads */

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(24px, 4vw, 48px);
}
.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1;
}

/* ------------------------------------------------------------------- rooms */

.rooms,
.eras {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 128px) var(--gutter);
}

.rooms__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--rule);
}

.room-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 0.9fr) 3rem;
  align-items: baseline;
  gap: 12px 24px;
  padding: clamp(12px, 1.4vw, 18px) 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  transition: color 250ms;
}
.room-row__no {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.room-row__name {
  font-size: clamp(1.4rem, 2.4vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 360;
  transition: transform 500ms var(--ease), color 250ms;
}
.room-row__kinds {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-2);
  line-height: 1.45;
}
.room-row__arrow {
  font-family: var(--sans);
  font-size: 1.1rem;
  text-align: right;
  color: var(--ink-3);
  transition: transform 400ms var(--ease), color 250ms;
}
.room-row:hover .room-row__arrow,
.room-row:focus-visible .room-row__arrow {
  transform: translateX(6px);
  color: var(--accent);
}
.room-row__thumb {
  display: none;
}
.room-row:hover .room-row__name,
.room-row:focus-visible .room-row__name {
  transform: translateX(8px);
  color: var(--accent);
}

.rooms__peek {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: clamp(200px, 18vw, 280px);
  aspect-ratio: 4 / 5;
  background: var(--plate);
  border: 1px solid var(--plate-edge);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-9999px, 0, 0);
  transition: opacity 250ms;
}
.rooms__peek.is-on {
  opacity: 1;
}
.rooms__peek img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10%;
  mix-blend-mode: multiply;
}

@media (hover: none), (pointer: coarse), (max-width: 900px) {
  .rooms__peek {
    display: none;
  }
  .room-row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
  }
  .room-row__no,
  .room-row__kinds {
    display: none;
  }
  .room-row__thumb {
    display: block;
    width: 64px;
    height: 64px;
    background: var(--paper);
  }
  .room-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    mix-blend-mode: multiply;
  }
}

/* ------------------------------------------------------------- lightroom */

.lightroom {
  background: var(--sand);
  color: var(--ink);
  padding: clamp(64px, 10vw, 140px) 0 clamp(56px, 8vw, 110px);
  display: grid;
  grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, calc(var(--max) - 2 * var(--gutter))) minmax(var(--gutter), 1fr);
  row-gap: clamp(32px, 5vw, 64px);
  overflow: hidden;
}
.lightroom .eyebrow {
  color: var(--ink-2);
}
.lightroom__intro {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 20px;
  align-items: end;
}
.lightroom__intro .eyebrow {
  grid-column: 1 / -1;
}
.lightroom__intro h2 {
  grid-column: 1 / span 7;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lightroom__intro p {
  grid-column: 8 / span 5;
  color: var(--ink-2);
  font-size: 1.05rem;
  text-wrap: pretty;
}
.lightroom__intro .link-arrow {
  grid-column: 8 / span 5;
  justify-self: start;
  color: var(--ink);
}

.reel {
  grid-column: 2 / 4;
  position: relative;
}
.reel__track {
  display: flex;
  gap: clamp(12px, 1.6vw, 24px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  padding-bottom: 8px;
  padding-right: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.reel__track::-webkit-scrollbar {
  display: none;
}
.reel__item {
  flex: 0 0 clamp(220px, 23vw, 340px);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
}
/* The cut-out photos sit directly on the sand of the lighting room. */
.reel__img {
  aspect-ratio: 1;
  background: var(--sand);
  overflow: hidden;
}
.reel__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  padding: 8%;
  mix-blend-mode: multiply;
  transition: transform 1200ms var(--ease);
}
.reel__item:hover .reel__img img {
  transform: scale(1.04);
}
.reel__caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  font-size: 0.98rem;
  line-height: 1.3;
}
.reel__caption span:last-child {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.reel__controls {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.reel__controls button {
  width: 48px;
  height: 48px;
  border: 1px solid #b7ad9d;
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  transition: background-color 200ms, border-color 200ms;
}
.reel__controls button:hover {
  border-color: var(--ink);
}

@media (max-width: 900px) {
  .lightroom__intro h2,
  .lightroom__intro p,
  .lightroom__intro .link-arrow {
    grid-column: 1 / -1;
  }
  .reel__controls {
    display: none;
  }
}

/* -------------------------------------------------------------------- eras */

.shelf {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.shelf__item {
  display: grid;
  grid-template-rows: clamp(150px, 19vw, 280px) auto;
  text-align: left;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-decoration: none;
}
.shelf__object {
  background: var(--paper);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 12%;
  min-height: 0;
}
.shelf__object img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 700ms var(--ease);
}
.shelf__item:hover .shelf__object img,
.shelf__item:focus-visible .shelf__object img {
  transform: translateY(-8px);
}
.shelf__label {
  border-top: 2px solid var(--ink);
  padding: 16px 16px 0 0;
  display: grid;
  gap: 4px;
}
.shelf__era {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.shelf__note {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .shelf {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 44%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-right: calc(-1 * var(--gutter));
  }
  .shelf li {
    scroll-snap-align: start;
  }
}

/* -------------------------------------------------------------- collection */

.collection {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(64px, 10vw, 140px);
  border-top: 1px solid var(--rule);
}

.collection__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 20px;
}
.collection__head h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
}
.collection__count {
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.toolbar {
  position: sticky;
  top: var(--masthead);
  z-index: 20;
  margin: 0 calc(-1 * var(--gutter));
  padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  transition: top 400ms var(--ease);
  font-family: var(--sans);
  font-size: 0.86rem;
}
body.masthead-hidden .toolbar {
  top: 0;
}

.toolbar__rooms {
  display: flex;
  gap: 4px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1 1 auto;
  min-width: 0;
}
.toolbar__rooms::-webkit-scrollbar {
  display: none;
}
.room-tab {
  border: 0;
  background: none;
  padding: 8px 0;
  white-space: nowrap;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  transition: color 200ms, border-color 200ms;
}
.room-tab sup {
  font-size: 0.68em;
  margin-left: 2px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.room-tab:hover {
  color: var(--ink);
}
.room-tab[aria-pressed="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.toolbar__tools {
  display: flex;
  align-items: center;
  gap: 10px 18px;
  flex-wrap: wrap;
}

.search input {
  width: clamp(180px, 22vw, 300px);
  height: 36px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  padding: 0 2px;
  border-radius: 0;
  transition: border-color 200ms;
}
.search input:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.search input::placeholder {
  color: var(--ink-3);
}

.tool {
  height: 36px;
  border: 1px solid var(--rule);
  background: none;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tool__badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
}
.tool--select {
  padding: 0;
  position: relative;
}
.tool--select select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  height: 100%;
  padding: 0 30px 0 12px;
  font-size: 0.86rem;
}
.tool--select::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--rule);
  height: 36px;
}
.view-toggle button {
  border: 0;
  background: none;
  padding: 0 12px;
  color: var(--ink-2);
}
.view-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 760px) {
  .toolbar__rooms {
    flex-basis: 100%;
  }
  .toolbar__tools {
    width: 100%;
  }
  .search {
    flex: 1 1 100%;
  }
  .search input {
    width: 100%;
  }
  .view-toggle {
    display: none;
  }
}

/* filters panel: one quiet row per facet */

.filters-toggle {
  height: 36px;
  border: 0;
  background: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.filters-toggle:hover [data-refine-label] {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.refine {
  display: grid;
  padding: 10px 0 18px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.84rem;
  animation: drop 450ms var(--ease);
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.refine__row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 8px 16px;
  padding: 9px 0;
}
.refine__row h3 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.opt {
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  padding: 2px 0;
  color: var(--ink-2);
  transition: color 200ms, border-color 200ms;
}
.opt:hover {
  color: var(--ink);
}
.opt[aria-pressed="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.opt sup {
  font-size: 0.68em;
  margin-left: 2px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.opt--more {
  color: var(--ink-3);
}

/* Era keeps its proportions: each period's line is as long as its share of the pieces. */
.era-strip {
  display: flex;
  gap: 6px;
}
.era-seg {
  position: relative;
  flex: 1 1 0;
  min-width: 84px;
  border: 0;
  background: none;
  padding: 2px 0 9px;
  text-align: left;
  color: var(--ink-2);
  transition: color 200ms, flex-grow 600ms var(--ease);
}
.era-seg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--rule);
  transition: background-color 200ms;
}
.era-seg:hover {
  color: var(--ink);
}
.era-seg:hover::after {
  background: var(--ink-3);
}
.era-seg[aria-pressed="true"] {
  color: var(--ink);
}
.era-seg[aria-pressed="true"]::after {
  background: var(--ink);
}
.era-seg[disabled] {
  opacity: 0.4;
  cursor: default;
}
.era-seg__count {
  font-size: 0.68em;
  margin-left: 2px;
  color: var(--ink-3);
  vertical-align: super;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .refine__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .era-strip {
    flex-wrap: wrap;
    gap: 6px 18px;
  }
  .era-seg {
    flex: 0 0 auto !important;
    min-width: 0;
  }
}

.active {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 0;
  font-family: var(--sans);
  font-size: 0.8rem;
}
.active:empty {
  display: none;
}
.active button {
  border: 0;
  background: var(--plate);
  padding: 5px 10px;
}
.active button::after {
  content: " ×";
  color: var(--ink-3);
}
.active .active__clear {
  background: none;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.active .active__clear::after {
  content: "";
}

.shared-note {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--plate);
  font-family: var(--sans);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

/* grid: plates view */

.grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(28px, 3vw, 44px) clamp(12px, 1.6vw, 24px);
}
@media (min-width: 1400px) {
  .grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card.is-entering {
  animation: rise 700ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

/* No white tiles: the paper colour sits behind each photo so multiply keeps working,
   and every piece rests on the same line just above its caption. */
.card__plate {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper);
  overflow: hidden;
}
.card__img {
  position: absolute;
  inset: 3% 3% 0;
  width: 94%;
  height: 97%;
  object-fit: contain;
  object-position: 50% 100%;
  mix-blend-mode: multiply;
  transition: transform 900ms var(--ease), opacity 500ms;
}
@media (hover: hover) {
  .card__link:hover .card__img {
    transform: scale(1.04);
  }
}

.card__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  padding-top: 14px;
}
.card__kicker {
  grid-column: 1 / -1;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__title {
  grid-column: 1 / -1;
  font-size: 1.02rem;
  line-height: 1.28;
  font-weight: 400;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}
.card__link:hover .card__title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.card__price {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}
.card__facts {
  display: none;
}

.card__out {
  position: absolute;
  right: 0;
  bottom: 0;
  font-family: var(--sans);
  font-size: 0.74rem;
  color: var(--ink-3);
  text-decoration: none;
  padding: 2px 0 2px 8px;
  transition: color 200ms;
}
.card__out:hover {
  color: var(--accent);
}

.card__keep {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border: 0;
  background: color-mix(in srgb, var(--plate) 90%, transparent);
  padding: 6px 10px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 250ms, background-color 250ms, color 250ms;
}
.card:hover .card__keep,
.card__keep:focus-visible,
.card__keep[aria-pressed="true"] {
  opacity: 1;
}
.card__keep[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
@media (hover: none) {
  .card__keep {
    opacity: 1;
  }
}

.card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--plate);
  padding: 4px 8px;
}

/* A larger plate now and then keeps a long grid from feeling like a spreadsheet. */
@media (min-width: 900px) {
  .grid[data-view="plates"] .card--feature {
    grid-column: span 2;
    grid-row: span 2;
  }
  .grid[data-view="plates"] .card--feature .card__plate {
    aspect-ratio: auto;
    flex: 1;
    min-height: 360px;
  }
  .grid[data-view="plates"] .card--feature .card__img {
    inset: 6%;
    width: 88%;
    height: 88%;
    object-position: 50% 50%;
  }
  .grid[data-view="plates"] .card--feature .card__title {
    font-size: clamp(1.25rem, 1.8vw, 1.6rem);
    line-height: 1.18;
  }
}

/* grid: index view (catalogue list for people who know what they want) */

.grid[data-view="index"] {
  display: block;
  margin-top: 12px;
}
.grid[data-view="index"] .card {
  border-bottom: 1px solid var(--rule);
}
.grid[data-view="index"] .card__link {
  display: grid;
  grid-template-columns: 76px minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 7rem;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
}
.grid[data-view="index"] .card__plate {
  aspect-ratio: 1;
}
.grid[data-view="index"] .card__img {
  inset: 6%;
  width: 88%;
  height: 88%;
  object-position: 50% 50%;
}
.grid[data-view="index"] .card__keep,
.grid[data-view="index"] .card__out,
.grid[data-view="index"] .card__badge {
  display: none;
}
.grid[data-view="index"] .card__meta {
  display: contents;
}
.grid[data-view="index"] .card__kicker {
  display: none;
}
.grid[data-view="index"] .card__title {
  grid-column: auto;
  font-size: 1rem;
}
.grid[data-view="index"] .card__facts {
  display: contents;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-2);
}
.grid[data-view="index"] .card__price {
  order: 9;
  text-align: right;
}
.grid[data-view="index"] .card__link:hover .card__title {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.more {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}
.more[hidden] {
  display: none;
}
.empty {
  margin-top: 48px;
  font-size: 1.2rem;
  color: var(--ink-2);
}
.noscript {
  margin-top: 32px;
}

/* ------------------------------------------------------------------ buying */

.buying {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 140px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  border-top: 1px solid var(--rule);
}
.buying__lead {
  grid-column: 1 / span 5;
  display: grid;
  gap: 22px;
  align-content: start;
}
.buying__lead h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.9rem);
  line-height: 1;
  text-wrap: balance;
}
.buying__lead p {
  color: var(--ink-2);
  max-width: 30em;
  font-size: 1.1rem;
}
.conditions {
  grid-column: 7 / span 6;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: cond;
}
.conditions li {
  counter-increment: cond;
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 6px 0;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.conditions li:last-child {
  border-bottom: 1px solid var(--rule);
}
.conditions li::before {
  content: counter(cond, upper-roman) ".";
  grid-row: span 2;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--accent);
}
.conditions h3 {
  font-size: 1.3rem;
  line-height: 1.2;
}
.conditions p {
  color: var(--ink-2);
  text-wrap: pretty;
}
@media (max-width: 900px) {
  .buying__lead,
  .conditions {
    grid-column: 1 / -1;
  }
}

/* ------------------------------------------------------------------- about */

.about {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(72px, 11vw, 160px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: center;
}
.about__figure {
  grid-column: 1 / span 7;
  margin: 0;
}
.about__figure img {
  width: 100%;
  height: auto;
  background: var(--plate-edge);
}
.about__text {
  grid-column: 9 / span 4;
  display: grid;
  gap: 20px;
}
.about__text h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.9rem);
  line-height: 1;
}
.about__text > p:not(.eyebrow) {
  font-size: 1.12rem;
  text-wrap: pretty;
}
.colophon {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.colophon div {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.colophon dt {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.colophon dd {
  margin: 4px 0 0;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) {
  .about__figure,
  .about__text {
    grid-column: 1 / -1;
  }

}

/* ------------------------------------------------------------------ footer */

.footer {
  background: var(--night);
  color: var(--night-ink);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) var(--gutter) 32px;
  display: grid;
  gap: clamp(40px, 6vw, 72px);
}
.footer__mark {
  font-size: clamp(3rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-weight: 320;
}
.footer__mark em {
  color: var(--night-dim);
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px var(--gutter);
}
.footer__cols h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--night-dim);
  margin-bottom: 10px;
}
.footer__cols a {
  text-decoration-color: #5b5349;
}
.footer__cols a:hover {
  text-decoration-color: currentColor;
}
.footer__small {
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--night-dim);
  border-top: 1px solid #3a342c;
  padding-top: 20px;
}
@media (max-width: 760px) {
  .footer__cols {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------- piece dialog */

dialog {
  padding: 0;
  border: 0;
  color: inherit;
}

.piece {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  background: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 1;
  transform: none;
  transition: opacity 350ms var(--ease), transform 450ms var(--ease), overlay 450ms allow-discrete, display 450ms allow-discrete;
}
@starting-style {
  .piece[open] {
    opacity: 0;
    transform: translateY(18px);
  }
}
.piece:not([open]) {
  opacity: 0;
  transform: translateY(18px);
}
.piece::backdrop {
  background: var(--paper);
}

.piece__frame {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 64px;
}
.piece__bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--masthead);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.82rem;
}
.piece__position {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.piece__bar-tools {
  display: flex;
  gap: 6px;
}
.icon-button {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  background: none;
  font-family: var(--sans);
  font-size: 0.86rem;
  padding: 0 12px;
  transition: border-color 200ms;
}
.icon-button:hover {
  border-color: var(--ink);
}
.icon-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.piece__layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  padding-top: clamp(20px, 3vw, 40px);
}
.piece__media {
  grid-column: 1 / span 7;
  display: grid;
  gap: 12px;
  align-content: start;
}
.piece__plate {
  margin: 0;
  background: var(--paper);
  aspect-ratio: 1;
  max-height: calc(100dvh - var(--masthead) - 120px);
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: zoom-in;
}
.piece__plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5%;
  mix-blend-mode: multiply;
  transition: transform 500ms var(--ease), opacity 250ms;
}
.piece__plate.is-photo img {
  padding: 0;
  object-fit: cover;
  mix-blend-mode: normal;
}
.piece__plate.is-zoomed {
  cursor: zoom-out;
}
.piece__plate.is-zoomed img {
  transform: scale(2);
}
.piece__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.piece__thumbs button {
  width: 72px;
  height: 72px;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 0;
  overflow: hidden;
}
.piece__thumbs button[aria-pressed="true"] {
  border-color: var(--ink);
}
.piece__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.piece__body {
  grid-column: 8 / span 5;
  display: grid;
  gap: 16px;
  align-content: start;
  position: sticky;
  top: calc(var(--masthead) + 24px);
}
.piece__title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.piece__subtitle {
  font-style: italic;
  color: var(--ink-2);
  font-size: 1.15rem;
  margin-top: -6px;
}
.piece__subtitle:empty {
  display: none;
}
.piece__price {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}
.piece__delivery {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--ink-2);
}
.piece__price small {
  font-size: 0.78rem;
  color: var(--ink-2);
  margin-left: 8px;
}
.piece__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.piece__actions .button--solid::after {
  content: "↗";
}
.piece__hint {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-2);
  margin-top: -4px;
}
.facts {
  margin: 8px 0 0;
  border-top: 1px solid var(--rule);
}
.facts div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}
.facts dt {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 3px;
}
.facts dd {
  margin: 0;
}
.piece__excerpt {
  color: var(--ink-2);
  white-space: pre-line;
  text-wrap: pretty;
}
.piece__excerpt p + p,
.piece__excerpt p + a {
  margin-top: 12px;
}
.piece__excerpt a {
  display: inline-block;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.86rem;
}

.piece__related {
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.piece__related h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.related {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.related a {
  text-decoration: none;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  line-height: 1.25;
}
.related .related__plate {
  display: block;
  aspect-ratio: 1;
  background: var(--paper);
}
.related img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
  mix-blend-mode: multiply;
}
.related a:hover span {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 900px) {
  .piece__media,
  .piece__body {
    grid-column: 1 / -1;
  }
  .piece__body {
    position: static;
  }
  .related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------------------------------------------------------- shortlist drawer */

.drawer {
  margin: 0 0 0 auto;
  width: min(460px, 100vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  transform: none;
  transition: transform 450ms var(--ease), overlay 450ms allow-discrete, display 450ms allow-discrete;
}
@starting-style {
  .drawer[open] {
    transform: translateX(100%);
  }
}
.drawer:not([open]) {
  transform: translateX(100%);
}
.drawer::backdrop {
  background: rgb(21 18 15 / 0.35);
}
.drawer__frame {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: var(--masthead);
  border-bottom: 1px solid var(--rule);
}
.drawer__head h2 {
  font-size: 1.6rem;
}
.drawer__intro {
  padding: 24px;
  color: var(--ink-2);
}
.drawer__list {
  list-style: none;
  margin: 0;
  padding: 0 24px;
  overflow-y: auto;
  flex: 1;
}
.drawer__list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.drawer__list .drawer__plate {
  width: 72px;
  height: 72px;
  background: var(--paper);
}
.drawer__list img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  mix-blend-mode: multiply;
}
.drawer__list a {
  text-decoration: none;
  line-height: 1.25;
}
.drawer__list a:hover {
  text-decoration: underline;
}
.drawer__meta {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-2);
}
.drawer__remove {
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--ink-2);
  text-decoration: underline;
}
.drawer__foot {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 10px;
}
.drawer__foot[hidden] {
  display: none;
}
.drawer__status {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--accent);
  min-height: 1.2em;
}

/* ------------------------------------------------------------------ motion */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
  .js [data-reveal] {
    transform: none;
  }
}
