:root {
  --bg: #f4f6fa;
  --surface-strong: #ffffff;
  --text: #13294b;
  --muted: #5f6d83;
  --primary: #2558c7;
  --primary-strong: #173c8b;
  --accent: #f2584b;
  --line: rgba(19, 41, 75, 0.1);
  --shadow: 0 14px 36px rgba(17, 35, 67, 0.08);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.site-header {
  display: grid;
  gap: 10px;
  padding: 8px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.brand {
  text-decoration: none;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
}

.site-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.lead-story,
.news-card {
  animation: rise 0.7s ease both;
}

.news-home {
  display: grid;
  gap: 28px;
}

.lead-story {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 0;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1,
h2 {
  font-family: "Merriweather", serif;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  text-wrap: balance;
}

.news-card p,
.lead-story p {
  color: var(--muted);
  line-height: 1.65;
}

.lead-story-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.lead-story-media {
  display: block;
}

.lead-story-content {
  padding: 24px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lead-story-link,
.news-card-link {
  color: inherit;
  text-decoration: none;
}

.news-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: rgba(242, 88, 75, 0.12);
  color: #b23d33;
}

.news-pill-featured {
  background: #c64939;
  color: #ffffff;
}

.story-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

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

.section-heading h2 {
  font-size: 1.5rem;
  margin: 0;
}

.news-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.news-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.news-card-link:hover .news-card,
.news-card-link:focus-visible .news-card,
.lead-story-link:hover .lead-story,
.lead-story-link:focus-visible .lead-story {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(17, 35, 67, 0.12);
}

.news-card-image {
  aspect-ratio: 1 / 1;
  background: #dde5f4;
}

.news-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-body {
  padding: 16px;
}

.news-card h3 {
  margin-top: 12px;
  font-size: 1.02rem;
  line-height: 1.35;
}

.news-card p {
  margin: 10px 0 0;
  font-size: 0.95rem;
}

.news-card-meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.article-page {
  display: grid;
  gap: 24px;
}

.article-layout {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-hero img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.article-content {
  padding: 28px 32px 34px;
}

.article-content h1 {
  margin-top: 14px;
}

.article-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.article-body {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.article-body p {
  margin: 0;
  color: var(--text);
  font-size: 1.03rem;
  line-height: 1.8;
}

.back-link {
  display: inline-flex;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.article-empty {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .lead-story,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .lead-story-media img {
    min-height: 340px;
  }

  .article-content {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 18px;
    padding-bottom: 40px;
  }

  .brand-badge {
    font-size: 1.05rem;
  }

  h1 {
    font-size: 1.95rem;
  }

  .lead-story-content,
  .news-card-body {
    padding: 16px;
  }

  .lead-story-media img {
    min-height: 260px;
  }

  .article-content {
    padding: 18px;
  }
}
