/* Shared by the three looks: font files, a small reset, the state switch and the prototype strip. No look styling here. */
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree-wght.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/fonts/newsreader-wght.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/fonts/newsreader-wght-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/fonts/hanken-grotesk-wght.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/plex-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/plex-sans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/plex-sans-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/plex-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/plex-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; overflow-wrap: break-word; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.i { width: 16px; height: 16px; flex: none; }

/* A product photo sits on a tile. White photo backgrounds take the tile's colour, so the photo never shows as a white box. */
.ph { display: block; background: var(--tile); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* One block per state. body[data-state] picks which one shows. Default: filled. */
body:not([data-state]) [data-st]:not([data-st~="filled"]),
body[data-state="filled"] [data-st]:not([data-st~="filled"]),
body[data-state="empty"] [data-st]:not([data-st~="empty"]),
body[data-state="loading"] [data-st]:not([data-st~="loading"]),
body[data-state="error"] [data-st]:not([data-st~="error"]) { display: none !important; }

/* Sign-up: step 1 or step 2. */
body[data-step="1"] [data-step-2], body[data-step="2"] [data-step-1] { display: none !important; }
body[data-role="buyer"] [data-only="seller"], body[data-role="seller"] [data-only="buyer"] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* The prototype strip. Plain on purpose: it is not part of any look. */
.proto { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 14px 20px 18px; margin-top: 0; border-top: 1px dashed #9a9a9a;
  font: 12px/18px ui-monospace, 'IBM Plex Mono', monospace; color: #555; background: #f4f4f4; position: relative; z-index: 50; }
.proto a, .proto button { color: #333; text-decoration: underline; background: none; border: 0; padding: 4px 2px; font: inherit; }
.proto b { color: #111; font-weight: 600; }
:root[data-theme="dark"] .proto { background: #1c1c1c; color: #aaa; border-top-color: #555; }
:root[data-theme="dark"] .proto a, :root[data-theme="dark"] .proto button { color: #ddd; }
:root[data-theme="dark"] .proto b { color: #fff; }
body[data-bare] .proto { display: none; }
