:root {
  --page-bg: #f4f5f3;
  --content-bg: #ffffff;
  --text: #171717;
  --muted: #686868;
  --border: #deded8;
  --accent: #49624a;
  --accent-dark: #263d2c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.site-header {
  background: #ffffff;
}

.header-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #d8d8d2;
}

.header-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.header-overlay {
  position: absolute;
  inset: 0 0 auto;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
}

.header-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-brand {
  color: #111111;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #111111;
  font-size: 0.95rem;
  font-weight: 800;
}

.page-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.index-shell {
  max-width: 1180px;
}

.content-column,
.sidebar-block {
  background: var(--content-bg);
  border: 1px solid var(--border);
}

.content-column {
  padding: 40px;
}

.category-page-title {
  margin-bottom: 28px;
}

.section-heading {
  margin-bottom: 28px;
}

.eyebrow,
.post-category {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.post-list {
  display: grid;
}

.post-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.post-card:first-child {
  padding-top: 0;
}

.category-page-title + .post-list .post-card:first-child {
  padding-top: 0;
}

.post-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.post-image-link {
  display: block;
  width: 220px;
}

.post-image-link img {
  display: block;
  width: 220px;
  height: 150px;
  object-fit: cover;
  background: #d8d8d2;
}

.post-card h2 {
  margin-bottom: 6px;
  font-size: 1.65rem;
  line-height: 1.2;
}

.post-date {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.post-excerpt {
  margin-bottom: 0;
  color: var(--muted);
}

.sidebar {
  display: grid;
  gap: 22px;
  align-content: start;
}

.sidebar-block {
  padding: 26px;
}

.sidebar-block h2 {
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.sidebar-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-block li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-block li:last-child {
  border-bottom: 0;
}

.ad-block {
  background: #faf9f4;
}

.ad-block p {
  margin-bottom: 0;
  color: var(--muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
}

.pagination a {
  color: var(--accent-dark);
}

.post-page h1 {
  margin-bottom: 24px;
}

.post-feature-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  margin-bottom: 24px;
  background: #d8d8d2;
}

.post-page-excerpt {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 700;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.post-content {
  font-size: 1.08rem;
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content img {
  max-width: 100%;
  height: auto;
}

.site-footer {
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 850px) {
  .header-image {
    height: auto;
    overflow: visible;
  }

  .header-image img {
    height: 190px;
  }

  .header-overlay {
    position: relative;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-brand {
    font-size: 1.35rem;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
  }

  .page-shell {
    grid-template-columns: 1fr;
  }

  .content-column {
    padding: 28px;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-image-link,
  .post-image-link img {
    width: 100%;
  }

  .post-image-link img {
    height: 210px;
  }

  .pagination {
    flex-wrap: wrap;
  }
}