:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #d9e2ec;
  --brand: #0f6fbf;
  --brand-dark: #0a4c86;
  --accent: #f2b705;
  --soft: #e8f2fc;
  --radius: 8px;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 240px;
  max-width: 100%;
  height: 72px;
  display: block;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.nav a:hover {
  background: var(--soft);
  color: var(--brand-dark);
}

.page {
  padding: 28px 0 48px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.featured,
.side-list,
.article-card,
.article-page,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.featured {
  overflow: hidden;
}

.featured img,
.article-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--soft);
}

.featured-body {
  padding: 20px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.category {
  color: var(--brand-dark);
}

.featured h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  line-height: 1.08;
  margin-bottom: 12px;
}

.featured p,
.article-card p,
.article-page p {
  color: var(--muted);
  line-height: 1.65;
}

.read-link,
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

.read-link:hover,
.button:hover {
  background: var(--brand-dark);
}

.side-list {
  padding: 16px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.small-post {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.small-post:first-of-type {
  border-top: 0;
}

.small-post img {
  width: 96px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.small-post h3 {
  font-size: 0.98rem;
  line-height: 1.28;
  margin-bottom: 5px;
}

.small-post span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.article-card {
  overflow: hidden;
}

.article-card-body {
  padding: 15px;
}

.article-card h3 {
  line-height: 1.25;
}

.article-card h3 a {
  text-decoration: none;
}

.article-page {
  overflow: hidden;
}

.article-page img {
  width: 100%;
  aspect-ratio: 16 / 7.5;
  object-fit: cover;
  display: block;
}

.article-body {
  padding: clamp(20px, 4vw, 42px);
}

.article-body h1 {
  margin-bottom: 14px;
}

.article-content {
  margin-top: 26px;
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-content h2 {
  font-size: 1.35rem;
  margin-top: 28px;
  margin-bottom: 8px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.empty-state {
  padding: 36px;
  text-align: center;
}

.empty-state p {
  margin-bottom: 0;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner a {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .home-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .footer-inner,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-inner {
    gap: 10px;
    padding: 10px 0 12px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .container,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand-logo {
    width: 190px;
    height: 57px;
  }

  .nav {
    gap: 6px;
  }

  .nav a {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .page {
    padding: 18px 0 34px;
  }

  .section-head {
    margin-bottom: 14px;
  }

  h1 {
    font-size: clamp(1.8rem, 10vw, 2.35rem);
  }

  .featured-body,
  .article-body {
    padding: 16px;
  }

  .featured h2 {
    font-size: 1.45rem;
  }

  .small-post {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
  }

  .small-post img {
    width: 76px;
  }

  .article-card-body {
    padding: 14px;
  }

  .article-page img,
  .featured img,
  .article-card img {
    aspect-ratio: 16 / 10;
  }

  .meta {
    font-size: 0.82rem;
  }

  .site-footer {
    padding: 20px 0;
  }
}
