:root {
  --ink: #1a1a1a;
  --paper: #ffffff;
  --paper-alt: #f7f6f3;
  --rule: #d9d6cf;
  --accent: #a11e22;
  --muted: #6b6b6b;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top utility bar */
.topbar {
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
}
.topbar a { color: #ddd; margin-left: 14px; }

/* Masthead */
.masthead {
  text-align: center;
  padding: 26px 20px 14px;
  border-bottom: 4px double var(--ink);
}
.masthead .date {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.masthead h1 {
  font-size: 46px;
  margin: 6px 0 4px;
  letter-spacing: -0.5px;
}
.masthead .tagline {
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
}

/* Nav */
nav.main-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
}
nav.main-nav .container {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  height: 42px;
  align-items: center;
}
nav.main-nav a {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
nav.main-nav a.active,
nav.main-nav a:hover { color: var(--accent); text-decoration: none; }

/* Layout grid */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 34px;
  padding: 30px 0 50px;
}
@media (max-width: 800px) {
  .content-grid { grid-template-columns: 1fr; }
}

/* Featured / hero article */
.hero {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 24px;
  margin-bottom: 24px;
}
.hero img { width: 100%; height: 380px; object-fit: cover; margin-bottom: 14px; }
.hero .kicker { color: var(--accent); font-family: var(--sans); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.hero h2 { font-size: 34px; margin: 8px 0 10px; line-height: 1.15; }
.hero p.dek { font-size: 17px; color: #333; margin: 0 0 10px; }
.byline { font-family: var(--sans); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* Article list rows */
.article-row {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.article-row img { width: 160px; height: 110px; object-fit: cover; }
.article-row .kicker { color: var(--accent); font-family: var(--sans); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.article-row h3 { font-size: 20px; margin: 6px 0 6px; line-height: 1.25; }
.article-row p { font-size: 14px; color: #444; margin: 0; }
@media (max-width: 500px) {
  .article-row { grid-template-columns: 1fr; }
  .article-row img { width: 100%; height: 160px; order: -1; }
}

/* Sidebar */
.sidebar h4 {
  font-family: var(--sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.sidebar .article-row { grid-template-columns: 1fr; }
.sidebar .article-row img { display: none; }
.sidebar .article-row h3 { font-size: 16px; }

/* Single article */
.article-page { max-width: 760px; margin: 30px auto; padding: 0 20px; }
.article-page .kicker { color: var(--accent); font-family: var(--sans); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.article-page h1 { font-size: 40px; line-height: 1.15; margin: 10px 0 14px; }
.article-page .dek { font-size: 19px; color: #333; margin-bottom: 14px; }
.article-page .meta { font-family: var(--sans); font-size: 13px; color: var(--muted); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 10px 0; margin-bottom: 20px; }
.article-page .hero-img { width: 100%; max-height: 480px; object-fit: cover; margin-bottom: 8px; }
.article-page .body { font-size: 19px; line-height: 1.7; }
.article-page .body p { margin: 0 0 20px; }

/* Category badge / pill */
.pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
}

/* Footer */
footer {
  background: var(--ink);
  color: #ccc;
  font-family: var(--sans);
  font-size: 13px;
  padding: 30px 0;
  margin-top: 30px;
}
footer a { color: #fff; }
footer .foot-links { margin-top: 10px; }
footer .foot-links a { margin-right: 16px; }

.empty-state { padding: 40px 0; color: var(--muted); font-family: var(--sans); }
