:root {
  --bg: #faf8f4; --surface: #ffffff; --text: #23211d; --muted: #6b665d;
  --line: #e4dfd5; --accent: #2f5d50; --accent-text: #ffffff; --warn: #8a3b12;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614; --surface: #211f1c; --text: #ece8e1; --muted: #a39d92;
    --line: #36332e; --accent: #7fb8a6; --accent-text: #10201b; --warn: #f0a37a;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
.notice { background: var(--accent); color: var(--accent-text); text-align: center;
  font-size: 14px; padding: 6px 16px; }
.notice a { color: inherit; }
.top { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center;
  padding: 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.brand { font: 600 22px/1 Georgia, serif; color: var(--text); text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 16px; flex: 1; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--text); }
.search { display: flex; gap: 6px; }
input, textarea, button { font: inherit; color: inherit; }
input, textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; width: 100%; }
button, .button { background: var(--accent); color: var(--accent-text); border: 0; border-radius: 6px;
  padding: 8px 16px; cursor: pointer; text-decoration: none; display: inline-block; }
main { max-width: 1080px; margin: 0 auto; padding: 24px 16px 48px; }
.hero { padding: 32px 0 16px; }
.hero h1 { font: 600 34px/1.2 Georgia, serif; margin: 0 0 8px; }
.grid { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card a { text-decoration: none; color: var(--text); }
.card img, .product img { width: 100%; height: auto; border-radius: 8px; display: block; background: var(--line); }
.card .name { display: block; font-weight: 600; margin-top: 8px; }
.card .meta, .count, .crumbs, .sku { color: var(--muted); font-size: 14px; }
.categories { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.categories a { display: block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.pager { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.product { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.product h1 { margin-top: 0; font-family: Georgia, serif; }
.price { font-size: 24px; font-weight: 600; }
@media (max-width: 640px) { .product { grid-template-columns: 1fr; } }
.comment { border-top: 1px solid var(--line); padding: 8px 0; overflow-wrap: anywhere; }
.comment p { margin: 4px 0 0; white-space: pre-wrap; }
.stack { display: grid; gap: 12px; max-width: 560px; margin-top: 16px; }
.stack label { display: grid; gap: 4px; }
.narrow { max-width: 360px; }
.error { color: var(--warn); font-weight: 600; }
.ok { color: var(--accent); font-weight: 600; }
.prose { max-width: 680px; }
footer { display: flex; gap: 16px; justify-content: center; padding: 24px 16px;
  color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.notice.enforce { background: var(--warn); color: var(--bg); font-weight: 600; }
