:root {
  --paper: #f3efe4;
  --ink: #1d2430;
  --muted: #5c6570;
  --line: #d9d0c1;
  --copper: #9a3412;
  --card: #fffaf2;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.5 Georgia, "Iowan Old Style", Palatino, serif;
}
a { color: var(--copper); }
.top, main, footer { width: min(920px, calc(100% - 32px)); margin: 0 auto; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 22px 0 8px;
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--ink); font-weight: 700; text-decoration: none; letter-spacing: 0.01em; }
nav a { margin-left: 16px; color: var(--ink); text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { padding: 36px 0 8px; }
.eyebrow { letter-spacing: 0.14em; text-transform: uppercase; font: 12px/1.2 "Segoe UI", sans-serif; color: var(--muted); }
h1 { font-size: 42px; line-height: 1.15; margin: 8px 0; }
.lede { font-size: 20px; max-width: 38rem; }
.button, button {
  background: var(--copper);
  color: white;
  border: 0;
  border-radius: 4px;
  padding: 10px 14px;
  font: 16px/1 "Segoe UI", sans-serif;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}
.filters, .stack, .edit { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 18px 0; }
label { display: grid; gap: 4px; font: 14px/1.2 "Segoe UI", sans-serif; color: var(--muted); }
input, select, textarea {
  font: 16px/1.4 Georgia, serif;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px;
}
.cards { list-style: none; padding: 0; }
.cards li { border-top: 1px solid var(--line); }
.cards a { display: block; padding: 18px 0; color: inherit; text-decoration: none; }
.cards h2 { font-size: 26px; margin: 4px 0; }
.meta, .facts { font: 14px/1.4 "Segoe UI", sans-serif; color: var(--muted); }
.meta span { border: 1px solid var(--line); padding: 0 6px; margin-right: 6px; }
.detail h1 { font-size: 36px; }
.summary { font-size: 20px; }
.lockbox { background: var(--card); border: 1px solid var(--line); padding: 16px; margin-top: 20px; }
.preview { filter: blur(3px); user-select: none; }
.masked { font: 15px/1.4 "Segoe UI", sans-serif; }
textarea { width: 100%; }
.row { display: flex; gap: 8px; }
.narrow { max-width: 34rem; padding-top: 24px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.stats li { background: var(--card); border: 1px solid var(--line); padding: 8px 10px; font: 15px/1.2 "Segoe UI", sans-serif; }
.edit input[name="title_clean"] { flex: 1 1 280px; }
.plain { padding-left: 18px; }
.flash { background: #fde68a; padding: 8px 12px; }
.empty, .devlink { font: 16px/1.4 "Segoe UI", sans-serif; }
footer { padding: 28px 0 48px; color: var(--muted); font: 14px/1.4 "Segoe UI", sans-serif; }
@media (max-width: 640px) {
  h1 { font-size: 32px; }
  .top { display: block; }
  nav a { margin-left: 0; margin-right: 14px; }
}
