:root {
  --ink: #1c2430; --paper: #f7f5ef; --card: #fffdf8; --line: #ddd6c4;
  --real: #2b7f99; --gen: #8a6d3b; --accent: #b3541e; --muted: #6b7280;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.site-head { border-bottom: 2px solid var(--ink); padding: 28px 0 18px; }
.site-head h1 { margin: 0 0 8px; font-size: 34px; letter-spacing: -0.5px; }
.lede { max-width: 72ch; margin: 0; color: #374151; }
.api-note { background: #fdf3e3; border: 1px solid var(--gen); padding: 8px 12px; border-radius: 8px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; vertical-align: 1px; }
.badge-real { background: #e0f2f7; color: var(--real); border: 1px solid var(--real); }
.badge-gen { background: #f7ecd4; color: var(--gen); border: 1px solid var(--gen); }
.controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; padding: 18px 0 6px; }
.controls label { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.controls select { font: inherit; color: var(--ink); padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.count-line { margin-left: auto; color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; padding: 12px 0 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card .hero { aspect-ratio: 16/10; background: linear-gradient(135deg, #e8e2d0, #d8cfb4); display: flex; align-items: center; justify-content: center; font-size: 44px; color: #a08c5a; }
.card .hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card .tagline { margin: 0; color: #4b5563; font-size: 14px; flex: 1; }
.card .meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.card .actions { display: flex; gap: 8px; }
button.like, button.fav { font: inherit; font-size: 13px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 11px; cursor: pointer; }
button.like[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); font-weight: 700; }
button.fav[aria-pressed="true"] { border-color: var(--gen); color: var(--gen); font-weight: 700; }
.cluster-tag { font-size: 11px; background: #eef2f7; border-radius: 999px; padding: 1px 7px; }
#view-detail article { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px 26px; margin-bottom: 20px; }
#view-detail h1 { margin: 6px 0 4px; font-size: 28px; }
#view-detail .detail-hero { width: 100%; border-radius: 8px; margin: 10px 0; }
#view-detail .onepager { font-size: 17px; }
#view-detail .detail-actions { display: flex; gap: 10px; margin: 14px 0 4px; }
.back { color: var(--real); }
.comments { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 26px 24px; margin-bottom: 40px; }
.moderation-note, .comment-status { color: var(--muted); font-size: 14px; }
.comment { border-top: 1px solid var(--line); padding: 10px 0; }
.comment .who { font-weight: 700; font-size: 14px; }
.comment .when { color: var(--muted); font-size: 12px; margin-left: 8px; }
.comment p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#comment-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; max-width: 560px; }
#comment-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
#comment-form input, #comment-form textarea { font: inherit; font-weight: 400; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
#comment-form button { align-self: flex-start; font: inherit; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 14px 0 30px; }
@media (max-width: 560px) { .site-head h1 { font-size: 27px; } }
