/* Base layout */
:root {
  --so-orange: #f48024;
  --so-orange-dark: #da680b;
  --so-charcoal: #232629;
  --so-gray: #f5f6f7;
  --so-border: #d6d9dc;
  --so-text: #2f3337;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--so-text);
  background: #ffffff;
}

.wrapper {
  width: 94%;
  max-width: 1100px;
  margin: 0 auto;
}

a {
  color: var(--so-orange-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header inspired by Stack Overflow */
.so-header {
  border-bottom: 1px solid var(--so-border);
  background: #fff;
}

.so-topbar {
  background: var(--so-charcoal);
  color: #e4e6e8;
  padding: 10px 0;
}

.so-topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.so-logo {
  font-weight: 700;
  font-size: 18px;
}

.so-logo a {
  color: #e4e6e8;
}

.so-subbar {
  background: var(--so-orange);
  color: #fff;
  padding: 10px 0;
}

.so-subbar__inner {
  display: flex;
  align-items: center;
}

.so-tagline {
  margin: 0;
  font-weight: 600;
}

.so-nav .nav a {
  color: #e4e6e8;
  margin-right: 14px;
  padding: 6px 8px;
  border-radius: 6px;
}

.so-nav .nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Main content */
.page-body {
  padding: 28px 0 48px;
  background: var(--so-gray);
}

.page-body .wrapper {
  background: white;
  border: 1px solid var(--so-border);
  border-radius: 8px;
  padding: 24px 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

h1, h2, h3, h4 {
  color: #1b1f23;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--so-border);
}

.post-list li:last-child {
  border-bottom: none;
}

.post-meta {
  margin: 4px 0 0;
  color: #6a737c;
  font-size: 14px;
}

.post-content p {
  margin-bottom: 16px;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

/* Footer */
.so-footer {
  background: #0c0d0e;
  color: #cdd0d4;
  padding: 24px 0 28px;
  margin-top: 32px;
}

.so-footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.so-footer__links a {
  display: block;
  color: #cdd0d4;
  margin-bottom: 8px;
}

.so-footer__links a:hover {
  color: #fff;
}

.so-footer__meta {
  color: #9fa6ad;
  font-size: 13px;
}

.so-footer__text {
  margin: 4px 0 10px;
  color: #9fa6ad;
}

.so-logo.sm {
  color: #fff;
}

/* Category pages */
.category-hero {
  margin-bottom: 16px;
}

.category-description {
  color: #4b5563;
}

.category-list {
  list-style: none;
  padding: 0;
}

.category-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--so-border);
}

.category-meta {
  color: #6b7280;
  font-size: 13px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #e0e7ff;
  font-size: 14px;
}
