
:root {
  --bg: #f3efe6;
  --ink: #1c1a16;
  --muted: #5c564c;
  --panel: #fffdf8;
  --line: #d9d0c0;
  --accent: #8b4513;
  --accent-soft: #e8d7c0;
  --sticky: #fff4d6;
  --quote: #f0ebe1;
  --max: 960px;
  --sans: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ui: "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #efe2cb 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #e4eee8 0%, transparent 50%),
    var(--bg);
  font-family: var(--ui);
  line-height: 1.55;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #5c2e0b; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 1.25rem 1rem 3rem; }
header.site {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0 1rem;
  margin-bottom: 1.5rem;
}
header.site .brand {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
header.site .brand a { color: inherit; text-decoration: none; }
header.site .tagline { color: var(--muted); margin: 0.35rem 0 0; font-size: 0.95rem; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 0 0 1rem; }
.crumbs a { color: var(--muted); }
.meta { color: var(--muted); font-size: 0.88rem; }
.cat { margin: 0 0 1.75rem; }
.cat h2 {
  font-family: var(--sans);
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.board-list { list-style: none; padding: 0; margin: 0; }
.board-list li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: 0.85rem 1rem;
  margin: 0 0 0.55rem;
}
.board-list .name { font-weight: 600; font-size: 1.05rem; }
.board-list .desc { color: var(--muted); margin-top: 0.2rem; font-size: 0.92rem; }
.board-list .stats { margin-top: 0.35rem; }
table.topics {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
}
table.topics th, table.topics td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.topics th {
  background: var(--accent-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
table.topics tr.sticky { background: var(--sticky); }
table.topics .subject a { font-weight: 600; color: var(--ink); text-decoration: none; }
table.topics .subject a:hover { color: var(--accent); text-decoration: underline; }
.post {
  background: var(--panel);
  border: 1px solid var(--line);
  margin: 0 0 0.85rem;
}
.post-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.post-head .author { font-weight: 700; }
.post-body { padding: 0.9rem 1rem 1.1rem; overflow-wrap: anywhere; }
.post-body img { max-width: 100%; height: auto; }
.post-body table.bbc_table,
.post-body table {
  display: table;
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  background: #fff;
  font-size: 0.92rem;
  overflow-x: auto;
}
.post-body table.bbc_table th,
.post-body table.bbc_table td,
.post-body table th,
.post-body table td {
  display: table-cell;
  border: 1px solid var(--line);
  padding: 0.35rem 0.55rem;
  vertical-align: top;
}
.post-body table.bbc_table tr:first-child td,
.post-body table.bbc_table th {
  background: var(--accent-soft);
  font-weight: 600;
}
.post-body blockquote, .bbc_standard_quote {
  margin: 0.6rem 0;
  padding: 0.6rem 0.8rem;
  background: var(--quote);
  border-left: 3px solid var(--accent);
}
.quoteheader { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; }
.attachments {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.attachments ul { margin: 0.35rem 0 0; padding-left: 1.1rem; }
footer.site {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
h1.page-title {
  font-family: var(--sans);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin: 0 0 0.35rem;
  line-height: 1.25;
}
.note {
  background: #fff8e8;
  border: 1px solid #e6d4a8;
  padding: 0.75rem 0.9rem;
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
}
@media (max-width: 640px) {
  table.topics .col-replies, table.topics .col-views, table.topics .col-started {
    display: none;
  }
}

.site-home {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
}
.site-home a {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}
.site-home a:hover { text-decoration: underline; }
header.site .site-home { margin-bottom: 0.45rem; }
footer.site .site-home { margin: 0 0 0.65rem; }
