.list-page { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 20px 24px 72px; }
.list-head { margin-bottom: 30px; }
.list-head h1 { margin: 0 0 10px; font: 400 40px/1.15 var(--serif); letter-spacing: -0.01em; }
.list-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hl); }
.list-dek { margin: 0 0 12px; color: var(--muted); font-size: 17px; max-width: 38em; }
.list-head .archive-status a { color: var(--hl); text-decoration-color: rgba(242, 193, 78, 0.45); text-underline-offset: 3px; }

.archive-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.archive-search { flex: 1 1 260px; min-width: 0; }
.archive-search input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.archive-search input::placeholder { color: var(--dim); }
.archive-search input:focus { outline: none; border-color: rgba(242, 193, 78, 0.55); }
.archive-filter { position: relative; }
.filter-btn {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 34px 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23a3a9b6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 12px no-repeat;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  max-width: 100%;
}
.filter-btn:hover { border-color: rgba(255, 255, 255, 0.28); }
.filter-btn.is-active { border-color: rgba(242, 193, 78, 0.55); }
select.filter-btn option { background: #10131a; color: var(--text); }
.filter-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  width: 300px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #10131a;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.filter-option { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.filter-option:hover { background: rgba(255, 255, 255, 0.05); }
.filter-option input { accent-color: var(--hl); margin: 0; }
.filter-option .filter-name { flex: 1; }
.filter-option .filter-count { color: var(--dim); font-size: 12px; }
.filter-clear { padding: 8px 4px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.filter-clear:hover { color: var(--text); }

.archive-status { margin: 0 0 18px; color: var(--dim); font-size: 14px; }
.archive[data-total="0"] .archive-list:not(:has(article.post))::before,
.pattern-list:not(:has(article.post))::before {
  content: "The first posts are on their way. Check back soon.";
  display: block;
  padding: 36px 24px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}
.no-match { margin: 0; padding: 36px 24px; border: 1px dashed var(--line-2); border-radius: 14px; color: var(--muted); text-align: center; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; font-size: 14px; color: var(--dim); }
.pager:empty { display: none; }
.pager button {
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.pager button:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.28); }
.pager button:disabled { opacity: 0.35; cursor: default; }

.browse { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.browse h2 { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.pattern-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pattern-link { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 14px; text-decoration: none; }
.pattern-link:hover { border-color: var(--line-2); color: var(--text); }
.pattern-link.is-current { border-color: rgba(242, 193, 78, 0.55); color: var(--text); }
.pattern-count { color: var(--dim); font-variant-numeric: tabular-nums; }

@media (max-width: 680px) {
  .list-page { padding: 8px 16px 56px; }
  .list-head h1 { font-size: 32px; }
  .list-dek { font-size: 16px; }
  .archive-search { flex-basis: 100%; }
  .archive-filter { flex: 1 1 0; min-width: 0; }
  .archive-filter .filter-btn { width: 100%; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; text-align: left; }
  .pattern-links { grid-template-columns: 1fr; }
}
