* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem;
  color: #1a1a1a;
  background: #fafafa;
  line-height: 1.5;
}

/* Header */
header {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

header h1 {
  margin: 0;
  font-size: 1.6rem;
}

header h1 a {
  color: #d32f2f;
  text-decoration: none;
}

header h1 a:hover {
  text-decoration: underline;
}

.tagline {
  margin: 0.25rem 0 0.75rem;
  color: #666;
  font-size: 0.9rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #d32f2f;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
}

.btn:hover {
  background: #b71c1c;
}

/* Navigation */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.main-nav a {
  color: #d32f2f;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  background: #fff5f5;
  border-radius: 3px;
  border: 1px solid #ffcdd2;
  transition: all 0.2s;
}

.main-nav a:hover {
  background: #d32f2f;
  color: #fff;
  border-color: #d32f2f;
}

/* Forum Sections */
.forum-section {
  margin-bottom: 2rem;
  background: #fff;
  border: 1px solid #eee;
  overflow: hidden;
  border-radius: 6px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 1.1rem;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}

.section-cover {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}

/* Posts */
.forum-section .post {
  padding: 1rem;
  border-top: 1px solid #f0f0f0;
}

.forum-section .post:first-of-type {
  border-top: none;
}

.post-cover {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.post h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.4;
}

.post h3 a {
  color: inherit;
  text-decoration: none;
}

.post h3 a:hover {
  color: #d32f2f;
}

.post > a {
  display: block;
}

.post > a .post-cover {
  transition: opacity 0.2s;
}

.post > a:hover .post-cover {
  opacity: 0.85;
}

.post .meta {
  font-size: 0.8rem;
  color: #888;
  margin: 0 0 0.5rem;
}

.post .body {
  margin: 0;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.7;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  background: #1a1a1a;
  color: #ccc;
  border-radius: 6px;
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 2rem 1.5rem 1.5rem;
}

.footer-col h3 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #d32f2f;
  display: inline-block;
}

.footer-col p {
  font-size: 0.82rem;
  line-height: 1.7;
  margin: 0 0 0.5rem;
  color: #aaa;
}

.contact-info {
  font-size: 0.8rem;
  color: #999;
}

/* Tags */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

a.tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: #333;
  color: #ddd;
  border-radius: 3px;
  font-size: 0.75rem;
  transition: background 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.tag:hover {
  background: #d32f2f;
  color: #fff;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.footer-links li a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-links li a:hover {
  color: #d32f2f;
}

/* Footer Bottom */
.footer-bottom {
  padding: 1rem 1.5rem;
  border-top: 1px solid #333;
  text-align: center;
}

.footer-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.footer-stats span {
  font-size: 0.8rem;
  color: #888;
}

.footer-stats strong {
  color: #d32f2f;
}

.copyright {
  font-size: 0.78rem;
  color: #666;
  margin: 0 0 0.3rem;
}

.disclaimer {
  font-size: 0.72rem;
  color: #555;
  margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem 1rem 1rem;
  }

  .footer-stats {
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
  }

  .main-nav {
    gap: 0.4rem;
  }

  .main-nav a {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
}
