:root {
  color-scheme: light;
  --ink: #101418;
  --paper: #fbfaf7;
  --muted: #5f666d;
  --line: #d9d4ca;
  --accent: #d95f3d;
  --accent-2: #136f63;
  --wash: #eef4f1;
  --panel: #ffffff;
  --card-image-height: 192px;
  --card-body-height: 248px;
  --card-height: 452px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; background: #e8e5dd; object-fit: cover; }
button, input { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.topbar {
  max-width: 1240px;
  min-height: 82px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.brand-mark {
  width: clamp(190px, 20vw, 250px);
  height: auto;
  aspect-ratio: 520 / 80;
  flex: 0 0 auto;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}
.section-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
  color: #2e3338;
  font-family: 'Black Ops One', Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.15;
}
.more-button {
  min-height: 40px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 13px;
  cursor: pointer;
}
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 24px 54px;
}
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
}
.kicker, .topic-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.lead-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: stretch;
  min-height: 360px;
}
.lead-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.lead-media {
  display: block;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #e8e5dd;
}
.lead-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  object-fit: cover;
}
h1, h2, h3 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.08;
  font-weight: 700;
}
.lead-story h1 {
  margin-top: 8px;
  font-size: 44px;
}
.lead-summary, .dek {
  color: #33383d;
  font-size: 18px;
}
.meta, .muted, .fineprint {
  color: var(--muted);
  font-size: 13px;
}
.top-rail, .sidebar {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}
.top-rail h2, .sidebar h2 {
  margin-bottom: 14px;
  font-size: 20px;
}
.compact-card {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.compact-card h3 {
  margin: 6px 0;
  font-size: 18px;
}
.compact-card h3 a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}
.content-band {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}
.section-heading h2, .topic-hero h1 {
  font-size: 34px;
}
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.article-card {
  display: grid;
  grid-template-rows: var(--card-image-height) var(--card-body-height);
  gap: 12px;
  height: var(--card-height);
  min-width: 0;
  overflow: hidden;
}
.card-media {
  display: block;
  height: var(--card-image-height);
  overflow: hidden;
  border-radius: 6px;
  background: #e8e5dd;
}
.card-media img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}
.card-body {
  height: var(--card-body-height);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card-body h3 {
  margin: 6px 0 8px;
  font-size: 21px;
  line-height: 1.08;
}
.card-body h3 a, .card-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-body h3 a {
  -webkit-line-clamp: 3;
  max-height: calc(1.08em * 3);
}
.card-summary {
  margin: 0 0 10px;
  color: #3e4449;
  line-height: 1.45;
  -webkit-line-clamp: 3;
  max-height: calc(1.45em * 3);
}
.card-body .meta {
  margin-top: auto;
  padding-top: 8px;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.topic-digest {
  border-top: 3px solid var(--ink);
  padding-top: 12px;
}
.topic-heading {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 22px;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
}
.topic-hero {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.topic-chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: #343a40;
  font-size: 13px;
}
.topic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  padding-top: 28px;
}
.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.more-button {
  margin-top: 24px;
  width: 100%;
  background: transparent;
  color: var(--ink);
}
.article-page {
  max-width: 1060px;
  margin: 0 auto;
}
.article-hero {
  max-width: 860px;
  margin-bottom: 22px;
}
.article-hero h1 {
  margin-top: 10px;
  font-size: 48px;
}
.article-image {
  width: 100%;
  max-height: 540px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  padding-top: 28px;
}
.article-copy {
  max-width: 760px;
  font-size: 18px;
}
.article-copy h2 {
  margin-bottom: 12px;
  font-size: 26px;
}
.site-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 46px;
  border-top: 1px solid var(--line);
}
.footer-summary {
  max-width: 520px;
}
.footer-brand {
  margin-bottom: 10px;
}
.footer-brand .brand-mark {
  width: 230px;
}

@media (max-width: 980px) {
  :root {
    --card-image-height: 188px;
    --card-body-height: 248px;
    --card-height: 448px;
  }
  .topbar {
    grid-template-columns: 1fr;
  }
  .section-nav {
    grid-column: 1 / -1;
    order: 3;
    padding-bottom: 12px;
  }
  .home-layout, .lead-story, .topic-layout, .article-layout, .site-footer {
    grid-template-columns: 1fr;
  }
  .lead-story {
    min-height: 0;
  }
  .lead-media {
    height: 280px;
    min-height: 280px;
  }
  .top-rail, .sidebar {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 18px;
  }
  .latest-grid, .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --card-image-height: 190px;
    --card-body-height: 248px;
    --card-height: 450px;
  }
  .topbar, main, .site-footer, .mega-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand-mark {
    width: 178px;
  }
  .footer-brand .brand-mark {
    width: 190px;
  }
  .search-row {
    grid-template-columns: 1fr;
  }
  .lead-story h1, .article-hero h1 {
    font-size: 34px;
  }
  .lead-media {
    height: 230px;
    min-height: 230px;
  }
  .latest-grid, .topic-grid, .article-list {
    grid-template-columns: 1fr;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}
