:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-soft: #edf1ef;
  --ink: #17191c;
  --text: #242529;
  --muted: #6a7075;
  --line: #dfe4e1;
  --accent: #b64658;
  --accent-dark: #7f2f3e;
  --green: #66735f;
  --max: 1120px;
  --measure: 730px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header,
.site-footer,
.site-main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: grid;
  gap: 2px;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.05;
  text-decoration: none;
}

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

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

nav a,
.site-footer a {
  border-radius: 999px;
  color: var(--muted);
  padding: 7px 10px;
  text-decoration: none;
}

nav a:hover,
.site-footer a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.site-main {
  padding: 34px 0 76px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 42px;
  align-items: end;
  padding: 50px 0 42px;
  border-bottom: 1px solid var(--line);
}

.hero > *,
.featured-story > *,
.featured-copy,
.article-card {
  min-width: 0;
}

.page-heading {
  padding: 44px 0 30px;
  border-bottom: 1px solid var(--line);
}

.hero h1,
.page-heading h1,
.article h1,
.featured-story h2,
.article-card h2,
.article h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero h1 {
  max-width: 760px;
  font-size: 4.25rem;
  line-height: 1.02;
}

.page-heading h1 {
  font-size: 3.4rem;
  line-height: 1.05;
}

.hero p:not(.eyebrow),
.dek {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero p:not(.eyebrow) {
  max-width: 360px;
  padding-bottom: 8px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.featured-story {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 34px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.featured-media,
.article-card-media {
  display: block;
  max-width: 100%;
  overflow: hidden;
  background: var(--surface-soft);
}

.featured-media {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.featured-media img,
.article-card-media img,
.article-hero-image {
  display: block;
  max-width: 100%;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.featured-copy {
  display: grid;
  gap: 16px;
}

.featured-story h2 {
  font-size: 2.7rem;
  line-height: 1.05;
}

.featured-story h2 a,
.article-card h2 a {
  text-decoration: none;
}

.featured-story p:not(.eyebrow),
.article-card p {
  color: var(--muted);
}

.featured-story p:not(.eyebrow) {
  margin: 0;
  max-width: 520px;
  font-size: 1.05rem;
}

.text-link {
  width: fit-content;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  color: var(--accent);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 28px 0 16px;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 850;
}

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

.article-card {
  display: grid;
  align-content: start;
  min-height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-card h2 {
  margin: 18px 18px 8px;
  font-size: 1.55rem;
  line-height: 1.14;
}

.article-card p {
  margin: 0 18px 22px;
}

.article {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 18px 0 0;
}

.article-header {
  display: grid;
  gap: 16px;
  margin-bottom: 34px;
}

.article h1 {
  font-size: 3.8rem;
  line-height: 1.04;
}

.article-hero-image {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article h2 {
  margin: 42px 0 10px;
  font-size: 1.72rem;
  line-height: 1.22;
}

.article p,
.article li {
  font-size: 1.08rem;
}

.article p {
  margin: 16px 0;
}

.article ul,
.article ol {
  padding-left: 22px;
}

.ad-slot {
  max-width: var(--measure);
  margin: 28px auto;
}

.site-footer {
  min-height: 78px;
  border-top: 1px solid var(--line);
}

.site-footer span {
  color: var(--ink);
  font-weight: 850;
}

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

  .hero {
    gap: 18px;
  }

  .hero p:not(.eyebrow) {
    max-width: 620px;
    padding-bottom: 0;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .page-heading h1,
  .article h1 {
    font-size: 2.85rem;
  }

  .featured-story h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }

  .site-main {
    padding-top: 12px;
  }

  .hero {
    padding: 32px 0 28px;
  }

  .page-heading {
    padding: 32px 0 24px;
  }

  .hero h1,
  .page-heading h1,
  .article h1 {
    font-size: 2rem;
    line-height: 1.08;
  }

  .hero p:not(.eyebrow),
  .dek {
    max-width: 100%;
    font-size: 1rem;
    overflow-wrap: break-word;
  }

  .featured-story {
    padding: 24px 0;
  }

  .featured-story h2 {
    font-size: 1.95rem;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  nav a {
    padding-left: 0;
  }
}
