:root {
  --ink: #111315;
  --muted: #62676c;
  --line: #d9dde2;
  --paper: #fbfbf8;
  --surface: #ffffff;
  --green: #146c43;
  --red: #b42318;
  --gold: #c78b18;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  align-items: center;
  background: rgba(251, 251, 248, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.nav,
.meta-row,
.feed-toolbar {
  align-items: center;
  display: flex;
}

.brand {
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
}

.brand-mark {
  background: linear-gradient(90deg, var(--ink) 0 34%, var(--red) 34% 67%, var(--green) 67% 100%);
  border-radius: 50%;
  height: 18px;
  width: 18px;
}

.nav {
  color: var(--muted);
  flex-wrap: wrap;
  font-size: 0.9rem;
  gap: 14px;
}

.nav a:hover,
.article-card a:hover {
  color: var(--green);
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 34px clamp(16px, 4vw, 56px) 64px;
}

.lead-section {
  align-items: end;
  border-bottom: 2px solid var(--ink);
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  padding-bottom: 34px;
}

.eyebrow,
.meta-row {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6.7rem);
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 18px;
  max-width: 840px;
}

h2 {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.lead-copy {
  color: #34383d;
  font-size: 1.12rem;
  max-width: 650px;
}

.featured {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  overflow: hidden;
}

.featured img,
.article-card img,
.article-hero img {
  aspect-ratio: 16 / 10;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.featured span,
.featured strong {
  padding: 0 16px;
}

.featured span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.featured strong {
  font-size: 1.1rem;
  padding-bottom: 16px;
}

.feed-shell,
.page-heading,
.article-detail {
  padding-top: 34px;
}

.feed-toolbar {
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.search input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  min-height: 42px;
  min-width: min(340px, 70vw);
  padding: 8px 12px;
}

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

.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.image-link,
.image-fallback {
  display: block;
}

.image-fallback {
  align-items: center;
  aspect-ratio: 16 / 10;
  background: #e5e7df;
  color: var(--green);
  display: flex;
  font-weight: 800;
  justify-content: center;
  text-transform: uppercase;
}

.card-body {
  padding: 16px;
}

.meta-row {
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.article-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

.article-card p,
.page-heading p,
.article-body {
  color: #34383d;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 28px;
}

.article-hero {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
}

.article-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.article-hero time {
  color: var(--muted);
}

.article-body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  margin: 34px auto;
  max-width: 740px;
}

.related {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

@media (max-width: 780px) {
  .site-header,
  .feed-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .lead-section,
  .article-hero,
  .article-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3rem;
  }
}
