:root {
  --paper: #f7f8f4;
  --ink: #151714;
  --muted: #666d62;
  --line: #d9ded2;
  --accent: #146c43;
  --accent-2: #e3efe3;
  --white: #fff;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(16px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 244, .94);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
}

.brand strong { display: block; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 12px; }
.nav { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--accent); }

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.news-masthead {
  padding: 34px 0 18px;
  border-bottom: 2px solid var(--ink);
}

.news-masthead h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

.news-masthead p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
}

.front-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 26px;
  padding: 28px 0 34px;
  border-bottom: 1px solid var(--line);
}

.lead-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 22px;
  align-items: stretch;
}

.lead-card .media img {
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  border-radius: var(--radius);
}

.lead-card h2 {
  margin: 8px 0 14px;
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.lead-card p,
.post-card p,
.article-subtitle {
  color: var(--muted);
}

.side-rail {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.rail-title {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}

.rail-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.rail-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.18;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 26px 0 12px;
  border-bottom: 1px solid var(--line);
}

.section-title h2 { margin: 0; font-size: clamp(28px, 4vw, 46px); }
.section-title span { color: var(--muted); font-size: 14px; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 24px 0 38px;
}

.post-card {
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.post-card .media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--accent-2);
}

.post-card h2 {
  margin: 10px 0 8px;
  font-size: 23px;
  line-height: 1.12;
}

.post-card h2 a:hover,
.rail-item h3 a:hover,
.lead-card h2 a:hover { color: var(--accent); }

.load-row {
  display: grid;
  place-items: center;
  min-height: 90px;
  color: var(--muted);
}

.load-row button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

.article {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 70px;
}

.article h1 {
  margin: 14px 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: .98;
  letter-spacing: 0;
}

.article-hero {
  width: min(1120px, calc(100% - 32px));
  margin: 26px auto 0;
}

.article-hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
}

.article-body {
  font-size: 18px;
}

.article-body h2,
.article-body h3 {
  margin-top: 34px;
  line-height: 1.12;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body img {
  border-radius: var(--radius);
  margin: 24px auto;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(16px, 5vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.empty {
  padding: 40px 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .front-grid,
  .lead-card,
  .post-grid {
    grid-template-columns: 1fr;
  }
  .side-rail {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 16px;
  }
  .lead-card .media img { min-height: 260px; }
  .nav { display: none; }
}
