:root {
  --bg: #f4efe6;
  --paper: rgba(255, 251, 244, 0.9);
  --paper-strong: #fffaf3;
  --ink: #2f2419;
  --muted: #766452;
  --accent: #a54524;
  --accent-deep: #7f2d14;
  --line: rgba(68, 40, 19, 0.15);
  --shadow: 0 24px 60px rgba(72, 42, 20, 0.12);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 143, 105, 0.22), transparent 30%),
    linear-gradient(180deg, #fbf7f1 0%, #f1eadf 100%);
  font-family: 'Avenir Next', 'Segoe UI', sans-serif;
  line-height: 1.6;
}
a { color: var(--accent-deep); }
.page {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}
.hero, .forum-card, .topic, .post {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero {
  border-radius: 28px;
  padding: 36px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(245, 233, 218, 0.88));
}
.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}
h1, h2, h3 {
  margin: 0;
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  line-height: 1.08;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.8rem); max-width: 16ch; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.hero p, .meta, .note, .card-note, .breadcrumb { color: var(--muted); }
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.stats div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.82);
  border: 1px solid var(--line);
}
.stats strong {
  display: block;
  font-size: 1.8rem;
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
}
.forum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.forum-card {
  border-radius: 24px;
  padding: 22px;
}
.forum-card h2 a {
  text-decoration: none;
}
.topics-stack {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}
.topic {
  border-radius: 24px;
  padding: 24px;
}
.starter-wrap, .comments-wrap {
  margin-top: 18px;
}
.section-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}
.post {
  border-radius: 18px;
  padding: 18px;
}
.starter {
  background: var(--paper-strong);
}
.comment {
  margin-top: 12px;
}
.post-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
}
.post-body {
  overflow-wrap: anywhere;
}
.empty-comments, .empty-topic .meta {
  margin: 0;
}
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr; }
  .hero { padding: 28px; }
  .post-head { flex-direction: column; align-items: flex-start; }
}
