:root {
  --green: #4f7a4a;
  --green-dark: #3b5e37;
  --accent: #c98a4b;
  --ink: #1f2421;
  --muted: #6b7773;
  --line: #e6e6e2;
  --bg: #fafaf7;
  --card: #ffffff;
  --max: 1180px;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.25;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top bar */
.topbar {
  background: var(--ink);
  color: #d6d6d2;
  font-size: 0.85rem;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: #d6d6d2; }
.topbar .trending { display: flex; gap: 18px; overflow: hidden; white-space: nowrap; }
.topbar .trending strong { color: var(--accent); margin-right: 8px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}
.brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.5px;
}
.brand span { color: var(--accent); }
.brand small {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Nav */
.main-nav {
  background: var(--green);
  border-bottom: 3px solid var(--green-dark);
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.main-nav a {
  display: block;
  color: #fff;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.main-nav a:hover, .main-nav a.active { background: var(--green-dark); color: #fff; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.hero .card-large {
  grid-row: span 2;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 460px;
  background: #ddd;
}
.hero .card-large img,
.hero .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.hero .card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 222px;
  background: #ddd;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.78) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
}
.hero .overlay .cat {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.hero .overlay h2,
.hero .overlay h3 {
  color: #fff;
  margin: 0 0 8px;
}
.hero .overlay h2 { font-size: 1.7rem; }
.hero .overlay h3 { font-size: 1.05rem; }
.hero .meta { font-size: 0.8rem; opacity: 0.85; }

/* Section heading */
.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 36px 0 18px;
}
.section-title h2 {
  margin: 0;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-dark);
}
.section-title:after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--line);
}

/* Layout: main + sidebar */
.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  margin-bottom: 60px;
}

/* Card grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid.grid-2 { grid-template-columns: repeat(2, 1fr); }

.post-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.post-card .thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #eee;
}
.post-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body {
  padding: 16px 18px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card .cat {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 700;
}
.post-card h3 { font-size: 1.1rem; margin: 0 0 10px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--green-dark); }
.post-card .excerpt { color: var(--muted); font-size: 0.92rem; }
.post-card .meta {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Featured side list */
.feature-list { display: flex; flex-direction: column; gap: 18px; }
.feature-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  align-items: flex-start;
}
.feature-item .thumb {
  width: 100px;
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eee;
}
.feature-item h4 {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  margin: 0 0 6px;
  line-height: 1.35;
}
.feature-item h4 a { color: var(--ink); }
.feature-item .meta { color: var(--muted); font-size: 0.78rem; }

/* Sidebar */
.sidebar .widget {
  background: #fff;
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.sidebar h3 {
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  border-bottom: 2px solid var(--green);
  padding-bottom: 10px;
  margin-bottom: 16px;
  color: var(--green-dark);
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
}
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.cat-list li:last-child { border: 0; }
.cat-list .count {
  background: var(--green);
  color: #fff;
  border-radius: 3px;
  padding: 1px 8px;
  font-size: 0.78rem;
}

/* Article */
.article {
  background: #fff;
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.article .breadcrumbs {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.article .cat-pill {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 3px 10px;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 3px;
  margin-bottom: 14px;
}
.article h1 { font-size: 2.2rem; margin-bottom: 14px; }
.article .byline {
  color: var(--muted);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 22px;
}
.article .featured-img {
  margin: 0 -36px 28px;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.article .featured-img img { width: 100%; height: 100%; object-fit: cover; }
.article p { margin: 0 0 16px; }
.article h2 { margin-top: 30px; font-size: 1.4rem; }
.article ul { padding-left: 22px; margin: 12px 0 18px; }
.article ul li { margin-bottom: 6px; }

.article .post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.article .post-nav a {
  display: block;
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius);
}
.article .post-nav .label {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  display: block;
}
.article .post-nav .next { text-align: right; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #cfd3d0;
  padding: 50px 0 0;
  margin-top: 30px;
}
.site-footer .top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
.site-footer h4 {
  color: #fff;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--green);
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.site-footer a { color: #cfd3d0; }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand-foot {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 10px;
}
.site-footer .brand-foot span { color: var(--accent); }
.site-footer .mini-list { list-style: none; padding: 0; margin: 0; }
.site-footer .mini-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #2c3230;
}
.site-footer .mini-list li:last-child { border: 0; }
.site-footer .mini-list .thumb {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  background: #444;
}
.site-footer .mini-list a { font-size: 0.9rem; }
.site-footer .mini-list .meta { color: #8b908d; font-size: 0.78rem; }
.site-footer .copyright {
  border-top: 1px solid #2c3230;
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #8b908d;
}

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero .card-large { grid-column: span 2; grid-row: auto; }
  .with-sidebar { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .top { grid-template-columns: 1fr; }
  .topbar .trending { display: none; }
}
@media (max-width: 600px) {
  .hero { grid-template-columns: 1fr; }
  .hero .card-large { grid-column: auto; }
  .grid, .grid.grid-2 { grid-template-columns: 1fr; }
  .article { padding: 22px; }
  .article .featured-img { margin: 0 -22px 22px; }
  .brand { font-size: 1.5rem; }
  .main-nav a { padding: 11px 12px; font-size: 0.85rem; }
}
