:root {
  color-scheme: light;
  --ink: #202c28;
  --green: #195d47;
  --muted: #55655c;
  --paper: #fafbf7;
  --line: #d8dfd6;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden],
.symbols {
  display: none !important;
}
.wrap {
  width: min(1370px, 90vw);
  margin-inline: auto;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid #377fca;
  outline-offset: 2px;
}
.bar {
  border-bottom: 1px solid var(--line);
}
.masthead,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.masthead {
  height: 62px;
}
.brand,
.manifest,
footer a {
  text-decoration: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.03em;
}
.mark {
  background: var(--green);
  width: 29px;
  height: 29px;
  display: grid;
  align-content: center;
  justify-content: center;
  gap: 2px;
  border-radius: 5px;
}
.mark i {
  display: block;
  width: 14px;
  height: 3px;
  background: #d3edc0;
  transform: skewY(-10deg);
}
.manifest,
footer,
#count,
.pagination,
.size,
.format,
.stats dt,
.table-head,
aside h2,
.identity small {
  font: 12px var(--mono);
}
.manifest:hover,
footer a:hover {
  text-decoration: underline;
}
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  padding: 54px 0 40px;
  border-bottom: 2px solid var(--ink);
}
h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: normal;
  font-size: clamp(56px, 6.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.068em;
  margin: 0;
}
h1 span {
  color: #46825d;
}
.hero p {
  color: var(--muted);
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.4;
}
.stats {
  display: flex;
  gap: 0;
  margin: 0;
}
.stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding: 0 22px;
  border-left: 1px solid var(--line);
}
.stats div:last-child {
  padding-right: 0;
}
.stats dd {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 32px;
  line-height: 1;
}
.stats dt,
.table-head,
aside h2 {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.09em;
  color: var(--muted);
}
.layout {
  display: flex;
  gap: clamp(20px, 3.4vw, 54px);
  padding: 28px 0 38px;
}
aside {
  width: 190px;
  flex: none;
}
aside h2 {
  margin: 6px 8px 14px;
}
nav {
  display: grid;
  gap: 3px;
}
nav button {
  border: 0;
  border-radius: 4px;
  background: none;
  padding: 10px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 14px;
  gap: 8px;
}
nav button small {
  font: 11px var(--mono);
  color: var(--muted);
}
nav button:hover,
button.copy:hover {
  background: #ebeee6;
}
nav button[aria-pressed="true"] {
  background: #e1edde;
  color: #184c35;
  font-weight: 650;
  box-shadow: inset 3px 0 #3f7653;
}
.catalog {
  flex: 1;
  min-width: 0;
}
.tools {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.search,
.sort {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #bcc9bd;
  background: white;
  border-radius: 5px;
  padding: 0 12px;
  min-height: 42px;
}
.search {
  flex: 1;
  min-width: 0;
}
svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.search:focus-within {
  outline: 2px solid var(--green);
}
.search input {
  outline: none;
  border: 0;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  background: none;
}
.search input:focus-visible {
  outline: 0;
}
kbd {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--muted);
}
.sort {
  font-size: 13px;
  gap: 5px;
}
.sort span {
  color: var(--muted);
}
.sort select {
  border: 0;
  background: white;
  color: var(--ink);
  font-weight: 550;
}
.summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 20px 0 12px;
}
.tabs {
  display: flex;
  gap: 3px;
}
.tabs button,
.pagination button,
#reset {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  padding: 6px 10px;
  font-size: 13px;
}
.tabs button {
  background: none;
  border-color: transparent;
}
.tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
#count,
.size,
.collection,
.identity small {
  color: var(--muted);
}
.table-head,
.record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(84px, 16%) 54px 72px 32px;
  align-items: center;
  gap: 12px;
}
.table-head {
  padding: 9px 6px;
  border-block: 1px solid var(--line);
  background: #f0f3ec;
}
.records {
  list-style: none;
  margin: 0;
  padding: 0;
}
.record {
  min-height: 65px;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
}
.resource {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  min-width: 0;
  padding: 3px 0;
}
.resource:hover strong {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.identity {
  min-width: 0;
}
.identity strong,
.identity small {
  display: block;
  overflow-wrap: anywhere;
}
.identity strong {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}
.identity small {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.4;
}
.icon {
  width: 34px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  flex: none;
  background: #e9eee8;
  color: #52614e;
}
.icon.package,
.icon.code {
  background: #e4edde;
  color: #476943;
}
.icon.book {
  background: #f4e8da;
  color: #8a5839;
}
.icon.link {
  background: #e2ecea;
  color: #32625a;
}
.icon.image {
  background: #eae7ef;
  color: #655478;
}
.collection {
  font-size: 12px;
}
.format {
  justify-self: start;
  font-size: 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #4d5c52;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 3px 5px;
}
.size {
  font-size: 11px;
}
.copy {
  background: none;
  border: 0;
  color: #617364;
  border-radius: 4px;
  min-height: 32px;
}
.copy svg {
  width: 15px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}
#empty {
  text-align: center;
  padding: 35px;
}
#empty h2 {
  font:
    28px Georgia,
    serif;
}
footer {
  padding: 20px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.notice:not(:empty) {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 16px;
  background: var(--ink);
  color: white;
  border-radius: 5px;
  font-size: 14px;
}
@media (max-width: 1000px) {
  aside {
    width: 152px;
  }
  .record,
  .table-head {
    grid-template-columns: minmax(0, 1fr) 55px 65px 30px;
    gap: 8px;
  }
  .record .collection,
  .table-head span:nth-child(2) {
    display: none;
  }
}
@media (max-width: 780px) {
  .layout {
    display: block;
  }
  .wrap {
    width: 92vw;
  }
  aside {
    width: auto;
    margin-bottom: 18px;
  }
  aside h2 {
    margin-left: 0;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  nav button {
    border: 1px solid var(--line);
    font-size: 12px;
    padding: 6px 8px;
  }
  nav button[aria-pressed="true"] {
    box-shadow: none;
  }
  .hero {
    padding: 34px 0 24px;
    align-items: center;
  }
  .stats div {
    padding: 0 12px;
  }
  .stats dd {
    font-size: 26px;
  }
}
@media (max-width: 580px) {
  .hero {
    display: block;
  }
  .stats {
    margin-top: 22px;
  }
  .stats div:first-child {
    border: 0;
    padding-left: 0;
  }
  .stats div {
    flex-direction: row-reverse;
    align-items: baseline;
    gap: 5px;
  }
  .stats dd {
    font-size: 19px;
  }
  .stats dt {
    font-size: 9px;
  }
  .layout {
    padding-top: 17px;
  }
  .tools {
    flex-wrap: wrap;
  }
  .sort {
    min-height: 35px;
  }
  .sort span,
  kbd {
    display: none;
  }
  .search {
    padding: 0 8px;
  }
  .sort {
    padding: 0 5px;
  }
  .sort select {
    font-size: 12px;
  }
  .record,
  .table-head {
    grid-template-columns: minmax(0, 1fr) 44px 28px;
    gap: 5px;
  }
  .size,
  .table-head span:nth-child(4) {
    display: none;
  }
  .icon {
    width: 28px;
    height: 32px;
  }
  .resource {
    gap: 8px;
  }
  .identity strong {
    font-size: 13px;
  }
  .identity small {
    font-size: 10px;
  }
  .summary {
    margin-top: 14px;
  }
  .masthead {
    height: 52px;
  }
  .format {
    font-size: 9px;
    padding: 2px;
  }
}
