/*
 * catalogue.css: the manufactory's specimen book, in the site's design.
 * Every colour is a token from ../assets/css/theme.css; text sits only on
 * --ground and --code-ground, the two surfaces libreadme checks. Type
 * follows the reader profile: nothing under 16px, no capitals for prose,
 * monospace for identifiers only, ligatures off.
 */
:root {
  --display: "Avenir Next", "Nunito Sans", "Helvetica Neue", sans-serif;
  --text: "Iowan Old Style", "Source Serif 4", Georgia, serif;
  --mono: "Iosevka", "JetBrains Mono", Menlo, monospace;
  --gutter: clamp(16px, 5vw, 56px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 22px/1.7 var(--text);
  letter-spacing: 0.015em;
  font-variant-ligatures: none;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
[hidden] { display: none !important; }

.bar { border-bottom: 1px solid var(--border); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }
.lockup { display: flex; align-items: center; gap: 10px; color: var(--heading); text-decoration: none; font: 800 26px/1 var(--display); }
.lockup img { width: 32px; height: 32px; border-radius: 7px; }
.bar nav { display: flex; gap: 24px; flex-wrap: wrap; font: 400 18px/1.4 var(--display); }
.bar nav a { color: var(--ink); text-decoration: none; }
.bar nav a:hover { color: var(--link); }

body > header, main, body > footer { max-width: 1400px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
body > header { padding-top: 48px; padding-bottom: 16px; }
h1, h2 { font-family: var(--display); color: var(--heading); font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.06; margin: 8px 0 16px; }
h2 { font-size: 24px; line-height: 1.25; margin: 4px 0 8px; overflow-wrap: anywhere; }
p { max-width: 34em; }
.eyebrow { color: var(--accent); font: 400 16px/1.5 var(--display); margin: 0; }
.quiet { color: var(--dim); }

.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 20px; margin-top: 24px; }
label { display: grid; gap: 6px; font: 800 18px/1.4 var(--display); color: var(--heading); }
input, select {
  font: 400 20px/1.4 var(--text); color: var(--ink); background: var(--code-ground);
  border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; max-width: 100%;
}
input { width: min(24rem, 100%); }
#count { color: var(--dim); font-size: 18px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 32px; margin-top: 32px; }
article { background: var(--code-ground); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.picture { display: block; background: #000; }
img { display: block; width: 100%; height: auto; }
.description { padding: 18px 20px 20px; font-size: 20px; line-height: 1.65; }
.description p { margin: 8px 0 14px; }
.description .eyebrow { color: var(--accent); }
.pending { padding: 32px; min-height: 160px; color: var(--string); }
summary { cursor: pointer; color: var(--link); padding: 6px 0; font-size: 18px; }
.evidence { font-size: 17px; line-height: 1.6; color: var(--dim); }
code { font-family: var(--mono); font-size: 0.9em; color: var(--code); }

body > footer { border-top: 1px solid var(--border); margin-top: 56px; padding-top: 32px; padding-bottom: 56px; font-size: 18px; color: var(--dim); }
@media (max-width: 560px) { body { font-size: 20px; } }
