:root {
  --bg: #f4efe6;
  --ink: #111;
  --card: #fff9e8;
  --accent: #ff6b35;
  --accent-2: #ffd166;
  --mint: #8bd3dd;
  --line: #111;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: linear-gradient(135deg, #f4efe6 0%, #fff7db 100%);
  color: var(--ink);
}
a { color: inherit; }
.page-shell { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.brutal-card {
  background: var(--card);
  border: 3px solid var(--line);
  box-shadow: 8px 8px 0 var(--line);
  border-radius: 18px;
}
.topbar {
  padding: 1.2rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.brand { font-size: 2rem; font-weight: 700; text-decoration: none; }
.tagline, .muted { color: #4a4a4a; }
.nav-cluster, .button-row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.hero, .filter-card, .editor-card, .detail-card, .auth-wrap { padding: 1.4rem; margin-top: 1.5rem; }
.entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.entry-card { padding: 1.2rem; }
.entry-card h2, .detail-card h1 { margin: .6rem 0; }
.entry-snippet { line-height: 1.5; min-height: 4.5rem; }
.entry-footer, .entry-meta-row { display: flex; gap: .6rem; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto auto;
  gap: .75rem;
  align-items: center;
}
.checkbox-row { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.tag-pill, .favorite-chip, .status-chip {
  display: inline-block;
  padding: .35rem .7rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
}
.tag-pill { background: var(--mint); }
.favorite-chip { background: var(--accent-2); }
.status-chip--draft { background: #ffcad4; }
.status-chip--published { background: #caffbf; }
.brutal-button {
  background: var(--accent);
  color: #111;
  border: 2px solid var(--line);
  border-radius: 14px;
  font-weight: 700;
}
.brutal-button:hover, .brutal-button:focus { background: #ff8c61; }
.brutal-button--ghost { background: #fff; }
.messages { margin-top: 1rem; }
.message { padding: .9rem 1rem; margin-top: .75rem; }
form p { margin: 0 0 1rem; }
input[type='text'], input[type='email'], input[type='password'], textarea, select {
  width: 100%;
  padding: .85rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  background: white;
}
.markdown-body { line-height: 1.7; }
.markdown-body pre {
  overflow-x: auto;
  background: #111;
  color: #fff;
  padding: 1rem;
  border-radius: 12px;
}
.empty-state { padding: 2rem; text-align: center; }
@media (max-width: 760px) {
  .topbar, .filter-grid { grid-template-columns: 1fr; display: grid; }
  .topbar { display: block; }
}
