:root {
  color-scheme: light;
  --bg: #f4f7f2;
  --surface: #fcfefa;
  --ink: #18241c;
  --muted: #53675a;
  --line: #dce6dc;
  --accent: #086747;
  --on-accent: #fff;
  --chip: #e6f2e7;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #101914;
    --surface: #17231b;
    --ink: #ecf6ed;
    --muted: #b5c7b7;
    --line: #35473b;
    --accent: #abe9bf;
    --on-accent: #163e26;
    --chip: #213c29;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, sans-serif; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.top { background: var(--surface); border-block-end: 1px solid var(--line); }
.top-inner, .toolbar, .card-meta, .actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-inner { min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 850; font-size: 22px; text-decoration: none; }
.brand img { border-radius: 10px; }
.back, .source { font-weight: 650; }
.intro { padding: clamp(24px, 5vw, 60px); margin-block: 24px; border-radius: 26px; background: var(--chip); }
.label { color: var(--accent); font-size: .875rem; font-weight: 750; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin: 8px 0; line-height: 1.08; letter-spacing: -.035em; }
.intro p { margin: 14px 0 0; color: var(--muted); }
.toolbar { flex-wrap: wrap; margin-block: 24px; }
.toolbar nav, form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar nav a, .pagination a, input, button, .download { border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font: inherit; background: var(--surface); color: var(--ink); }
.toolbar nav a, .download, .pagination a { text-decoration: none; font-weight: 700; }
form { flex: 1 1 320px; justify-content: flex-end; }
input { flex: 1; min-width: 100px; max-width: 360px; }
button { cursor: pointer; }
.toolbar a[aria-current="page"], .download { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-block-end: 32px; }
.card, .empty { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.card { min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.card-meta { flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.card-meta span:first-child { background: var(--chip); border-radius: 999px; padding: 4px 10px; }
h2 { margin: 18px 0 0; line-height: 1.25; }
.developer { margin: 4px 0; color: var(--accent); }
.description { color: var(--muted); flex: 1; }
dl { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-block: 14px; border-block-start: 1px solid var(--line); }
dt { color: var(--muted); font-size: .8rem; }
dd { margin: 2px 0 0; font-weight: 700; }
.actions, .pagination { flex-wrap: wrap; }
.pagination { display: flex; gap: 12px; margin-block: 24px; }
