:root {
  --bg: #fafaf7;
  --fg: #1a1a1a;
  --muted: #666;
  --accent: #8b1e1e;
  --accent-dark: #6b1616;
  --border: #ddd;
  --card: #fff;
  --max-width: 46rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.site-header {
  border-bottom: 3px solid var(--accent);
  background: var(--card);
}
.site-header-row {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--accent);
  text-decoration: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.site-header-row nav a {
  margin-left: 1rem;
  color: var(--fg);
  text-decoration: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
}
.site-header-row nav a:hover { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1.5rem 1rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.site-footer a { color: var(--muted); }

h1, h2, h3 { font-family: 'Helvetica Neue', Arial, sans-serif; line-height: 1.25; }
h1 { font-size: 1.9rem; margin-top: 2rem; }
.report-card h2 { margin-bottom: 0.25rem; }
.report-card h2 a { color: var(--accent); text-decoration: none; }
.report-card h2 a:hover { text-decoration: underline; }
.report-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.meta { color: var(--muted); font-size: 0.85rem; margin: 0.25rem 0 0.75rem; }

.tags, .tag-filter { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0; }
.tag {
  display: inline-block;
  background: #eee;
  color: var(--fg);
  border-radius: 3px;
  padding: 0.1rem 0.55rem;
  font-size: 0.78rem;
  text-decoration: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.tag:hover { background: #ddd; }
.tag.active { background: var(--accent); color: #fff; }
.tag .count { color: var(--muted); font-size: 0.7rem; }
.tag.active .count { color: #f0c8c8; }

.report-body img { max-width: 100%; height: auto; }
.report-body table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.report-body th, .report-body td { border: 1px solid var(--border); padding: 0.4rem 0.6rem; text-align: left; }
.report-body th { background: #f0f0ec; font-family: 'Helvetica Neue', Arial, sans-serif; }
.report-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 1rem 0;
  padding: 0.25rem 1rem;
  color: var(--muted);
  background: var(--card);
}
.report-body code { background: #f0f0ec; padding: 0.1rem 0.3rem; border-radius: 3px; font-size: 0.9em; }
.report-body pre { background: #222; color: #eee; padding: 1rem; overflow-x: auto; border-radius: 4px; }
.report-body pre code { background: none; color: inherit; padding: 0; }

.back { margin-top: 2rem; }
.back a { color: var(--accent); }

.empty { color: var(--muted); font-style: italic; }

/* Tip form */
.tip-form { display: flex; flex-direction: column; gap: 0.5rem; max-width: 40rem; }
.tip-form label { font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: bold; font-size: 0.9rem; margin-top: 0.75rem; }
.tip-form textarea, .tip-form input[type="text"] {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
}
.tip-form button {
  margin-top: 1rem;
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.tip-form button:hover { background: var(--accent-dark); }
.tip-form button:disabled { background: #999; cursor: wait; }
.status { min-height: 1.4em; font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 0.9rem; }
.status.ok { color: #1a7a1a; }
.status.error { color: var(--accent); }
.note { color: var(--muted); font-size: 0.9rem; }

code { background: #f0f0ec; padding: 0.1rem 0.35rem; border-radius: 3px; font-size: 0.9em; }
