:root {
  --bg: #faf8f6;
  --text: #221d1a;
  --muted: #7a6f68;
  --card: #ffffff;
  --line: #eae3dd;
  --relationships: #c2185b;
  --cheating: #c62828;
  --family: #6a1b9a;
  --stories: #ef6c00;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
.wrap { max-width: 1024px; margin: 0 auto; padding: 0 18px; }
a { color: inherit; text-decoration: none; }

.site-header {
  background: #1d1411;
  color: #fff;
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.logo { font-weight: bold; font-size: 1.25rem; letter-spacing: .5px; }
.site-header nav { display: flex; gap: 14px; flex-wrap: wrap; font-family: system-ui, sans-serif; font-size: .85rem; }
.site-header nav a { color: #d9cfc9; }
.site-header nav a:hover { color: #fff; }

.featured {
  display: block; margin: 26px 0; padding: 34px 30px;
  border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, #4a148c, #c2185b);
}
.featured h1 { margin: 10px 0 8px; font-size: 1.9rem; line-height: 1.25; }
.featured p { margin: 0; opacity: .92; }

.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  margin: 24px 0 40px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.card h2 { margin: 0; font-size: 1.12rem; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }
.meta { color: var(--muted); font-size: .8rem; font-family: system-ui, sans-serif; }

.badge {
  align-self: flex-start; display: inline-block;
  font-family: system-ui, sans-serif; font-size: .7rem; font-weight: 600;
  letter-spacing: .8px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 99px; color: #fff; background: #555;
}
.cat-relationships .badge { background: var(--relationships); }
.cat-cheating .badge { background: var(--cheating); }
.cat-family .badge { background: var(--family); }
.cat-stories .badge { background: var(--stories); }

.post { margin: 30px auto; max-width: 760px; }
.post-hero { padding: 38px 32px; border-radius: 16px; color: #fff; background: #333; margin-bottom: 28px; }
.post-hero.cat-relationships { background: linear-gradient(135deg, #880e4f, #c2185b); }
.post-hero.cat-cheating { background: linear-gradient(135deg, #7f0000, #c62828); }
.post-hero.cat-family { background: linear-gradient(135deg, #38006b, #6a1b9a); }
.post-hero.cat-stories { background: linear-gradient(135deg, #b53d00, #ef6c00); }
.post-hero h1 { margin: 12px 0 8px; font-size: 2rem; line-height: 1.25; }
.post-hero .meta { color: rgba(255,255,255,.85); }
.post-body { font-size: 1.08rem; }
.post-body h2 { margin-top: 2em; font-size: 1.4rem; }
.post-body img { max-width: 100%; border-radius: 10px; }
.post-body blockquote {
  margin: 1.4em 0; padding: .6em 1.2em; border-left: 4px solid var(--relationships);
  background: #fff; border-radius: 0 10px 10px 0; font-style: italic;
}
.page-title { margin: 34px 0 6px; font-size: 1.8rem; }

.related { max-width: 760px; margin: 0 auto 30px; }
.related > h2 { font-size: 1.2rem; border-top: 1px solid var(--line); padding-top: 26px; }

.pager { display: flex; justify-content: center; gap: 22px; margin: 0 0 44px; font-family: system-ui, sans-serif; }
.pager a { color: var(--relationships); font-weight: 600; }

.site-footer { background: #1d1411; color: #b5a8a0; font-family: system-ui, sans-serif; font-size: .85rem; margin-top: 30px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; padding-bottom: 22px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #d9cfc9; }

@media (max-width: 600px) {
  .featured { padding: 26px 20px; }
  .featured h1 { font-size: 1.45rem; }
  .post-hero { padding: 26px 20px; }
  .post-hero h1 { font-size: 1.5rem; }
}
