:root {
  --bg: #fbfcff;
  --card: #ffffff;
  --text: #1c2430;
  --muted: #657286;
  --accent: #2f6fed;
  --border: #dce3ee;
  --danger: #b22746;
}
* { box-sizing: border-box; }
body {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px 20px;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  font-family: system-ui, -apple-system, sans-serif;
}
.admin-header {
  background: var(--accent);
  color: white;
  margin: 0 -16px 44px;
  padding: 12px 16px;
  font-size: 0.9rem;
}
.admin-header-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-header a { color: white; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; margin-bottom: 28px; }
.site-header nav a { margin-left: 14px; }
.site-footer { margin-top: 72px; padding-top: 24px; padding-bottom: 20px; border-top: 1px solid var(--border); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 6px; }
.logo { font-weight: 700; color: var(--text); }
.hero h1 { margin-bottom: 2px; }
.hero p, .muted, .meta { color: var(--muted); }
.post-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.post-item:last-of-type { border-bottom: none; }
.post-item h2 { margin: 0 0 4px; font-size: 1.15rem; }
.post-item .meta { margin: 0 0 6px; }
.post-item p:last-child { margin: 0; }
.draft { color: #9d5d00; font-size: 0.9rem; }
.search { display: flex; gap: 8px; margin: 18px 0; }
input, textarea, button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  font: inherit;
}
button { width: auto; cursor: pointer; }
.stack { display: grid; gap: 10px; }
.inline { display: flex; gap: 10px; align-items: center; }
.inline input { width: auto; }
.prose pre { overflow: auto; background: #f1f5fb; border-radius: 10px; padding: 12px; }
.prose img, .cover { max-width: 100%; border-radius: 12px; }
.error { color: var(--danger); }
.danger { border-color: #efc8d2; color: var(--danger); margin-top: 16px; }
.inline-button { width: auto; margin: 0 0 0 8px; padding: 4px 10px; }
.pager { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; }
.categories { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.cat { font-size: 0.8rem; padding: 2px 10px; border-radius: 99px; background: #eef2fb; color: var(--accent); font-weight: 500; }
select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: white; font: inherit; }
fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; display: grid; gap: 10px; }
fieldset legend { padding: 0 6px; color: var(--muted); font-size: 0.85rem; }
