:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --surface: #fff;
  --text: #192537;
  --muted: #617083;
  --border: #dfe5ed;
  --accent: #315fd8;
  --soft: #eaf0ff;
  --hover: #edf1f6;
  --shadow: 0 2px 4px #172c4a04, 0 10px 24px #172c4a04;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111821;
  --surface: #1b2430;
  --text: #e6edf6;
  --muted: #a0aec0;
  --border: #303b4b;
  --accent: #9ab8ff;
  --soft: #283957;
  --hover: #273240;
  --shadow: 0 8px 24px #00000014;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #111821;
    --surface: #1b2430;
    --text: #e6edf6;
    --muted: #a0aec0;
    --border: #303b4b;
    --accent: #9ab8ff;
    --soft: #283957;
    --hover: #273240;
    --shadow: 0 8px 24px #00000014;
  }
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
a,
button,
input {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.shell {
  max-width: 1180px;
  padding: 0 28px;
  margin: 0 auto;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  margin-right: 10px;
  background: var(--text);
  color: var(--bg);
  border-radius: 9px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -2px;
  padding-right: 2px;
}
.brand-domain {
  color: var(--muted);
  font-weight: 500;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 19px;
  color: var(--muted);
}
.topbar nav a:hover {
  color: var(--accent);
}
.nav-divider {
  height: 18px;
  border-left: 1px solid var(--border);
}
.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}
.theme-toggle:hover {
  background: var(--hover);
}
.theme-toggle svg {
  width: 19px;
  height: 19px;
  grid-area: 1 / 1;
}
.theme-toggle .sun {
  display: none;
}
[data-theme="dark"] .theme-toggle .moon {
  display: none;
}
[data-theme="dark"] .theme-toggle .sun {
  display: block;
}
main {
  padding-top: 23px;
}
.collection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.5px;
}
h1 span {
  background: var(--hover);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
  letter-spacing: 0;
}
.collection-note {
  color: var(--muted);
  font-size: 12px;
}
.directory-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.filters {
  display: flex;
  gap: 4px;
}
.filters button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.filters button span {
  margin-left: 5px;
  font-size: 11px;
  opacity: 0.75;
}
.filters button:hover {
  background: var(--hover);
  color: var(--text);
}
.filters button[aria-pressed="true"] {
  background: var(--soft);
  color: var(--accent);
  font-weight: 600;
}
.search {
  display: flex;
  align-items: center;
  width: 220px;
  height: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
  gap: 8px;
  color: var(--muted);
}
.search svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
  font-size: 12px;
}
.search:focus-within {
  border-color: var(--accent);
  outline: 2px solid var(--soft);
}
.search input::placeholder {
  color: var(--muted);
}
.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.entry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
}
.entry-card:hover {
  border-color: var(--muted);
  box-shadow: 0 6px 22px #172c4a12;
}
.preview {
  position: relative;
  display: block;
  height: 108px;
  overflow: hidden;
  background: var(--hover);
}
.preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: 50% 29%;
}
.preview-2fa img {
  object-position: 50% 38%;
}
.preview-pixel img {
  object-position: 50% 85%;
}
.preview-island img {
  object-position: 50% 67%;
}
.category-badge {
  position: absolute;
  left: 12px;
  top: 10px;
  background: #182536e8;
  color: #f5f8ff;
  border: 1px solid #ffffff24;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 5px;
  font-weight: 550;
}
.card-body {
  padding: 14px 17px 13px;
}
h2 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 650;
  margin: 0 0 5px;
  letter-spacing: -0.3px;
}
h2 a:hover {
  color: var(--accent);
}
.card-body p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  min-height: 40px;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
.open-link {
  color: var(--accent);
  background: var(--soft);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 550;
  flex-shrink: 0;
}
.open-link span {
  margin-left: 8px;
}
.open-link:hover {
  outline: 1px solid var(--accent);
}
footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  padding: 17px 0 20px;
}
.empty-results {
  text-align: center;
  color: var(--muted);
  padding: 55px 16px;
  border: 1px dashed var(--border);
  border-radius: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 10;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent);
}
.skip:focus {
  top: 12px;
}
@media (max-width: 680px) {
  .shell {
    padding: 0 18px;
  }
  .topbar {
    height: 66px;
  }
  main {
    padding-top: 20px;
  }
  .collection-note {
    display: none;
  }
  .directory-controls {
    flex-wrap: wrap;
    gap: 12px;
  }
  .search {
    width: 100%;
    height: 38px;
  }
  .entry-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .preview {
    height: 130px;
  }
  .filters button {
    padding: 7px 11px;
  }
  .card-body p {
    min-height: 0;
  }
  .card-bottom {
    margin-top: 13px;
  }
  .topbar nav {
    gap: 12px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
