/* Cosmic Wonder Archive. One small stylesheet, no JS, no build step. */
body {
  max-width: 720px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  background: #fff;
  color: #111;
  font: 16px/1.6 Georgia, serif;
}
body.feed-page { max-width: 1400px; }
body.archive-page .feed, body.archive-page nav.years { max-width: 900px; margin: 0 auto; }
body.archive-page figure { margin: 0 0 6rem; }
nav, .meta, .feed-header {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
}
nav.site a, nav.years a, nav.site .meta { margin-right: 0.75rem; }
nav.site a:first-child { font-weight: bold; }
figure { margin: 3rem 0; }
img {
  width: 100%;
  height: auto;
  display: block;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.vignette { white-space: pre-line; margin: 1.5rem 0 2rem; }
ul.seasons { list-style: none; padding: 0; }
ul.seasons li { margin: 0.4rem 0; }
.feed { margin: 1rem 0; }
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 6px;
  margin: 0 0 2.5rem;
}
.feed-img { display: block; text-decoration: none; }
/* /items/ facet filters, rendered as pill chips: the radio inputs are
   visually hidden and the label itself is the control; the checked chip is
   filled. Still radio-driven and JS-free — the :has() hide-rules are emitted
   per facet value by items_index.html. */
.filters {
  margin: 0 0 1.75rem;
  padding: 0.9rem 1rem 0.55rem;
  border: 1px solid #e5e5e5;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8rem;
}
.filters fieldset {
  border: none;
  margin: 0 0 0.65rem;
  padding: 0;
}
.filters legend {
  float: left;
  width: 6.5rem;
  padding: 0.25rem 0 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #888;
}
.filters label {
  display: inline-block;
  margin: 0 0.3rem 0.35rem 0;
  padding: 0.14rem 0.65rem;
  border: 1px solid #d5d5d5;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.filters label:hover { border-color: #1a1a1a; }
.filters label:has(input:checked) {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}
.filters label:has(input:focus-visible) {
  outline: 2px solid #7aa7d9;
  outline-offset: 1px;
}
.filters input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 600px) {
  .filters legend { float: none; width: auto; padding-bottom: 0.3rem; }
}
/* on narrow screens the inventory table scrolls sideways by itself instead
   of stretching the whole page (which clipped the nav and filter chips) */
@media (max-width: 720px) {
  table.inventory { display: block; overflow-x: auto; }
}
table.inventory {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2.5rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
}
table.inventory th, table.inventory td {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}
table.inventory a { color: inherit; }
table.inventory td.thumb img { width: 50px; height: auto; }
table.inventory td.thumb a { display: inline-block; }
table.inventory .thumb-placeholder {
  display: block;
  width: 50px;
  height: 65px;
  background: #f2f2f2;
  border: 1px solid #eee;
}
table.inventory td:last-child { white-space: normal; }
table.inventory tr.category-row th {
  padding-top: 1.2rem;
  font-size: 1rem;
  font-weight: normal;
  border-bottom: 1px solid #ccc;
}
table.inventory tbody:first-of-type tr.category-row th { padding-top: 0.4rem; }
.feed-header {
  position: sticky;
  top: 0;
  margin: 0;
  padding: 0.6rem 0;
  background: #fff;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: normal;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 1px solid #eee;
}
.feed-header a { color: inherit; text-decoration: none; }
.meta { color: #666; }
.meta a { color: inherit; }
figcaption.meta { margin-top: 0.4rem; font-size: 0.8rem; }
article.look { padding-bottom: 4.5rem; }
nav.looks {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.5rem;
  background: #fff;
  border-top: 1px solid #eee;
  box-sizing: border-box;
}
