/* Hallmark · shape: app screen · genre: modern-minimal · theme: Console (deal 1/3, seed curated-directory-development-tools-b474·6152c7c8·2026-10-26·r0) · redesign: full
 * nav: a sidebar of thirteen shelves with counts and a price filter, a menu under 60rem; a sticky toolbar with search, order and a random pick · signature: the newly shelved record, the latest tool large with its shelved date as a reading · states: full, empty, no capture · console: graphite
 * axes: dark/grotesk-sans/chromatic-amber · posture: restrained · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V5 · weakest: H, the grid of 104 cards reads flat; each shelf opens on its own head with a count, and the newest record leads the page at a larger scale */
/* Hallmark · dropped https://commons.wikimedia.org/w/index.php?curid=103327462, https://commons.wikimedia.org/w/index.php?curid=64578249, https://commons.wikimedia.org/wiki/File:Pressing_screen_to_move_compact_bookshelves_in_East_Community_Library_at_St._Petersburg_College_Clearwater_Campus,_Florida,_US,_on_21_August_2019.webm, mailto:kitefold.labs@gmail.com?subject=A%20tool%20for%20Stacks, uiuc-library-main-stacks.jpg, sz-futian-shenzhen-library-interior-dec-2017.jpg, #faq-pane, #a-0, #a-1, #a-2, #a-3, #a-4, #a-5, #a-6 · the contact-sheet hero, the hover preview pane, the photo strip and its clip are gone with their credits; the same mailto remains with a subject and body; answers now sit inside their own disclosures */
/* Hallmark · reworded "Hand-shelved tools for people who design and build" to "Hand-shelved tools" (the rest moved into the lead), "The shelves" to the view title, "Google Fonts" (the preview pane's head) to the cards, "Around the page" to the sidebar's About nav · the redesign's new shell */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- Shell ---------- */

.skip {
  position: absolute; left: var(--space-md); top: var(--space-md); z-index: var(--z-toast);
  padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill);
  background: var(--color-accent); color: var(--color-accent-ink); text-decoration: none;
  clip-path: inset(50%);
}
.skip:focus-visible { clip-path: none; }

.shell { min-height: 100vh; padding-left: 264px; }

.side {
  position: fixed; top: 0; left: 0; bottom: 0; width: 264px; z-index: var(--z-sticky-nav);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: var(--space-lg);
  padding: var(--space-lg) var(--space-md);
  background: var(--color-paper-3);
  border-right: var(--rule-hair) solid var(--color-rule);
}
.side-top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding-inline: var(--space-xs); }
.wordmark {
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl);
  letter-spacing: var(--tracking-display); line-height: 1; text-decoration: none; color: var(--color-ink);
}
.wordmark:focus-visible { outline-offset: 4px; border-radius: var(--radius-pill); }
.side-top .side-toggle { display: none; }
.side-nav { display: flex; flex-direction: column; gap: var(--space-lg); flex: 1; }

.filter { display: flex; flex-direction: column; gap: var(--space-3xs); }
.pick {
  display: flex; align-items: center; gap: var(--space-xs);
  min-height: 36px; padding: 0 var(--space-xs);
  border: 0; border-radius: var(--radius-pill); background: none; cursor: pointer;
  color: var(--color-muted); text-align: left; font-size: var(--text-sm); font-weight: 500;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.pick .count { margin-left: auto; color: var(--color-muted); }
.pick:hover { background: var(--color-paper-2); color: var(--color-ink); }
.pick:active { background: var(--color-rule); }
.pick[aria-pressed='true'] { background: var(--color-accent-soft); color: var(--color-ink); }
.pick[aria-pressed='true'] .count { color: var(--color-accent); }
.pick:focus-visible, .seg:focus-visible { outline-offset: -2px; }

.side-label { padding-inline: var(--space-xs); margin-bottom: var(--space-xs); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.segmented {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); overflow: hidden;
}
.seg {
  min-height: 36px; padding: 0 var(--space-2xs); border: 0; border-left: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper-2); color: var(--color-muted); cursor: pointer;
  font-size: var(--text-xs); font-weight: 500; white-space: nowrap;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.seg:first-child { border-left: 0; }
.seg:hover { color: var(--color-ink); }
.seg:active { background: var(--color-rule); }
.seg[aria-pressed='true'] { background: var(--color-accent-soft); color: var(--color-ink); }

.side-links { display: flex; flex-direction: column; gap: var(--space-2xs); padding-inline: var(--space-xs); font-size: var(--text-sm); }
.side-links a { color: var(--color-muted); text-decoration-color: var(--color-rule-2); min-height: 32px; display: flex; align-items: center; transition: color var(--dur-micro) var(--ease-out); }
.side-links a:hover { color: var(--color-accent); }
.side-nav .btn-primary { margin-top: auto; }

/* ---------- Controls ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 var(--space-md);
  border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill);
  background: var(--color-paper-2); color: var(--color-ink); cursor: pointer;
  font-size: var(--text-sm); font-weight: 500; white-space: nowrap; text-decoration: none;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.btn:hover { background: var(--color-rule); }
.btn:active { background: var(--color-paper-3); }
.btn-primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn-primary:hover { background: var(--color-ink); border-color: var(--color-ink); }
.btn-primary:active { background: var(--color-ink-2); }
.btn:focus-visible { outline-offset: 2px; }
.btn:disabled, .pick:disabled, .seg:disabled { opacity: 0.55; cursor: not-allowed; }

.link {
  padding: 0; border: 0; background: none; cursor: pointer; color: var(--color-ink);
  text-decoration: underline; text-decoration-color: var(--color-rule-2); text-underline-offset: 0.16em;
  transition: color var(--dur-micro) var(--ease-out);
}
.link:hover { color: var(--color-accent); }
.content a:not([class]) { text-decoration-color: var(--color-rule-2); transition: color var(--dur-micro) var(--ease-out); }
.content a:not([class]):hover { color: var(--color-accent); }

.measured {
  font-family: var(--font-outlier); font-size: var(--text-sm);
  font-variant-numeric: tabular-nums slashed-zero; color: var(--color-cool);
}
.chip {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 var(--space-xs);
  border: var(--rule-hair) solid var(--color-rule); border-radius: 4px;
  font-size: var(--text-xs); font-weight: 500; color: var(--color-ink-2); white-space: nowrap;
}

/* ---------- Toolbar ---------- */

.main { min-width: 0; }
.toolbar {
  position: sticky; top: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; gap: var(--space-sm);
  min-height: 64px; padding: var(--space-sm) var(--space-xl);
  background: var(--color-paper);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.search { position: relative; flex: 1; max-width: 560px; }
.search input {
  width: 100%; min-height: 40px; padding: 0 44px 0 var(--space-md);
  border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-pill);
  background: var(--color-paper-3); color: var(--color-ink); font-size: var(--text-md);
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--dur-micro) var(--ease-out);
}
.search input::placeholder { color: var(--color-muted); }
.search input:hover { border-color: var(--color-ink-2); }
.search input:focus-visible { outline-offset: -2px; }
.search-key {
  position: absolute; right: var(--space-xs); top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 24px; height: 24px;
  border: var(--rule-hair) solid var(--color-rule); border-radius: 4px;
  font: 500 var(--text-xs) var(--font-outlier); color: var(--color-muted);
}
.sort select {
  min-height: 40px; padding: 0 var(--space-xl) 0 var(--space-sm);
  border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-pill);
  background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-sm); cursor: pointer;
}
.sort select:hover { border-color: var(--color-ink-2); }
#random { margin-left: auto; }

/* Controls only work with script; without it the full list still reads. */
html:not(.js) .search, html:not(.js) .sort, html:not(.js) #random,
html:not(.js) .filter, html:not(.js) .filter-price { display: none; }

/* ---------- Content ---------- */

.content {
  max-width: 1280px; margin-inline: auto;
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
  display: flex; flex-direction: column; gap: var(--space-2xl);
}
.view-head { display: grid; gap: var(--space-xs); }
.view-head h1 { font-size: var(--text-3xl); max-width: none; }
.lead { color: var(--color-ink-2); max-width: 64ch; }
.status { color: var(--color-muted); font-size: var(--text-sm); }

.content h2 { font-size: var(--text-xl); max-width: none; }

/* Cards: hairline panels, the capture on the deepest step. */
.cards {
  margin: 0; padding: 0; list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr));
  gap: var(--space-md);
}
.card { min-width: 0; }
.card-link {
  display: flex; flex-direction: column; height: 100%;
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card);
  background: var(--color-paper-2); overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color var(--dur-short) var(--ease-out);
}
.card-link:hover { border-color: var(--color-rule-2); }
.card-link:active { border-color: var(--color-muted); }
.card-link:focus-visible { outline-offset: 2px; }
.card-shot {
  display: block; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--color-paper-3); color: var(--color-ink-2); border-bottom: var(--rule-hair) solid var(--color-rule);
}
.card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot-name {
  display: flex; align-items: flex-end; height: 100%; padding: var(--space-md);
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-2xl);
  letter-spacing: var(--tracking-display); line-height: 1.05; color: var(--color-ink-2);
}
.card-body { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-md); flex: 1; }
.card-head { display: flex; align-items: center; gap: var(--space-xs); min-width: 0; }
.card-icon { flex: none; width: 16px; height: 16px; border-radius: 3px; }
.card-name { font-weight: 500; color: var(--color-ink); overflow-wrap: anywhere; }
.card-desc { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.5; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-xs); margin-top: auto; padding-top: var(--space-xs); }
.card-meta .measured { font-size: var(--text-xs); overflow-wrap: anywhere; }

.card.is-pulled .card-link { border-color: var(--color-accent); }

/* Shelves: each opens on its head with a count. */
#list { display: flex; flex-direction: column; gap: var(--space-2xl); }
.group-head { display: flex; align-items: baseline; gap: var(--space-sm); margin-bottom: var(--space-md); }
.group-head .count { color: var(--color-muted); }

/* The newly shelved record */
.newest { display: grid; gap: var(--space-md); }
.newest-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-md); }
.lead-card {
  display: grid; grid-template-rows: auto 1fr;
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card);
  background: var(--color-paper-2); overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color var(--dur-short) var(--ease-out);
}
.lead-card:hover { border-color: var(--color-rule-2); }
.lead-card:active { border-color: var(--color-muted); }
.lead-body { display: grid; gap: var(--space-xs); padding: var(--space-lg); align-content: start; }
.reading {
  font-family: var(--font-outlier); font-size: var(--text-display); font-weight: 400;
  letter-spacing: -0.04em; line-height: 1; color: var(--color-cool);
  font-variant-numeric: tabular-nums slashed-zero;
}
.lead-name { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); letter-spacing: var(--tracking-display); color: var(--color-ink); }
.lead-body .card-desc { font-size: var(--text-md); max-width: 52ch; }
.cards-newest { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); align-content: start; }
.cards-newest .card-link { flex-direction: row; }
.cards-newest .card-shot { flex: none; width: 40%; aspect-ratio: auto; border-bottom: 0; border-right: var(--rule-hair) solid var(--color-rule); }
.cards-newest .shot-name { font-size: var(--text-lg); }

.empty { display: grid; gap: var(--space-xs); padding: var(--space-xl); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); }
.empty-title { font-size: var(--text-lg); color: var(--color-ink); }

/* About and Send: panels cut from one surface. */
.panels {
  display: grid; gap: var(--rule-hair);
  background: var(--color-rule); color: var(--color-ink); border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card); overflow: hidden;
}
.panels > * { background: var(--color-paper-2); color: var(--color-muted); padding: var(--space-xl); min-width: 0; }
.about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.about-text { display: grid; gap: var(--space-sm); align-content: start; color: var(--color-muted); }
.panels h2 { color: var(--color-ink); }
.about-text h2 { margin-bottom: var(--space-xs); }
.about-lead { color: var(--color-ink-2); font-size: var(--text-lg); line-height: 1.4; }
.about-picture { margin: 0; display: grid; gap: var(--space-sm); align-content: start; background: var(--color-paper-3); }
.about-photo { aspect-ratio: 3 / 2; border-radius: var(--radius-card); }
.about-picture figcaption { font-size: var(--text-sm); color: var(--color-muted); }

.suggest { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.suggest > div:first-child { display: grid; gap: var(--space-sm); color: var(--color-muted); }
.suggest-act { display: grid; gap: var(--space-xs); align-content: center; }
.suggest-act .link { font-size: var(--text-lg); overflow-wrap: anywhere; }
.note { font-size: var(--text-sm); color: var(--color-muted); }

/* Questions: a disclosure list. */
.faq { display: grid; gap: var(--space-md); }
.qs { border-top: var(--rule-hair) solid var(--color-rule); max-width: 72ch; }
.qa { border-bottom: var(--rule-hair) solid var(--color-rule); }
.qa summary {
  display: flex; align-items: center; gap: var(--space-sm); min-height: 48px; padding: var(--space-xs) 0;
  cursor: pointer; list-style: none; color: var(--color-ink); font-weight: 500;
  transition: color var(--dur-micro) var(--ease-out);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; margin-left: auto; font-family: var(--font-outlier); color: var(--color-muted); }
.qa[open] summary::after { content: '−'; }
.qa summary:hover { color: var(--color-accent); }
.qa summary:focus-visible { outline-offset: 2px; border-radius: 4px; }
.qa p { padding: 0 0 var(--space-md); color: var(--color-muted); max-width: 64ch; }

.footer { display: grid; gap: var(--space-xs); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-muted); font-size: var(--text-sm); }
.footer a { color: var(--color-ink-2); text-decoration-color: var(--color-rule-2); }
.footer a:hover { color: var(--color-accent); }

/* ---------- Under 60rem: the sidebar becomes a menu ---------- */

@media (max-width: 60rem) {
  .shell { padding-left: 0; }
  .side { position: relative; top: auto; bottom: auto; width: auto; padding: var(--space-sm) var(--space-md); gap: var(--space-md); border-right: 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
  .js .side-top .side-toggle { display: inline-flex; }
  .js .side-nav { display: none; }
  .js .side.is-open .side-nav { display: flex; padding-bottom: var(--space-sm); }
  .side-nav .btn-primary { margin-top: 0; align-self: flex-start; }
  .toolbar { position: static; padding: var(--space-sm) var(--space-md); flex-wrap: wrap; }
  .search { flex: 1 1 100%; max-width: none; }
  #random { margin-left: 0; }
  .content { padding: var(--space-lg) var(--space-md) var(--space-xl); gap: var(--space-xl); }
  .newest-grid, .about, .suggest { grid-template-columns: minmax(0, 1fr); }
  .panels > * { padding: var(--space-lg); }
  .pick, .seg { min-height: 44px; }
}
@media (max-width: 40rem) {
  .cards-newest .card-link { flex-direction: column; }
  .cards-newest .card-shot { width: auto; aspect-ratio: 16 / 10; border-right: 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
  .search input { font-size: var(--text-md); }
}
