:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1b2430;
  --muted: #5b6573;
  --line: #e4e1d8;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --warn: #b45309;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #12171d;
    --surface: #1a212a;
    --text: #e8ecf1;
    --muted: #9aa5b3;
    --line: #2b3440;
    --accent: #2dd4bf;
    --accent-ink: #0b1a18;
    --warn: #fbbf24;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
nav a { margin-right: 14px; color: var(--muted); text-decoration: none; }
nav a:hover, .crumbs a:hover { color: var(--accent); }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.2; margin: 24px 0 8px; }
h2 { font-size: 1.25rem; margin: 28px 0 12px; }
.hero p, .lead { color: var(--muted); max-width: 60ch; }
.finder { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 20px 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.finder label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: var(--muted); }
select { font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.thumb { display: flex; align-items: center; justify-content: center; height: 120px; margin: -16px -16px 12px; border-radius: 12px 12px 0 0; background: linear-gradient(135deg, hsl(var(--h) 80% 91%), hsl(var(--h) 70% 80%)); }
.thumb span { font-size: 3.6rem; line-height: 1; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .18)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .thumb { background: linear-gradient(135deg, hsl(var(--h) 35% 26%), hsl(var(--h) 35% 18%)); } }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
.card .meta { margin-top: auto; }
.tier { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: .8rem; }
.btn { display: inline-block; text-align: center; margin-top: 8px; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; font-weight: 600; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.count { color: var(--muted); margin: 8px 0; }
.crumbs { margin-top: 16px; color: var(--muted); font-size: .9rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.ad-wrap { margin: 22px 0; min-height: 100px; }
.ad-slot { min-height: 100px; }
.ad-placeholder { display: flex; align-items: center; justify-content: center; min-height: 100px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.foot { margin-top: 48px; padding-bottom: 40px; color: var(--muted); font-size: .85rem; }
a:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.prose { max-width: 70ch; }
.prose h1 { margin-top: 20px; }
.prose h2 { margin-top: 22px; }
.prose li { margin: 4px 0; }
.small { color: var(--muted); font-size: .85rem; }
.linklist { list-style: none; padding: 0; display: grid; gap: 12px; }
.linklist a { font-weight: 600; color: var(--accent); }
.footnav a { color: var(--muted); }
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(0, 0, 0, .08); }
.cookie-bar p { margin: 0; max-width: 70ch; font-size: .85rem; color: var(--muted); }
.cookie-bar .btn { margin: 0; padding: 8px 16px; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.prose a, .cookie-bar a, .foot a, .lead a, .linklist a, .crumbs a:hover { color: var(--accent); }
