:root {
  --paper: #f8f4ef;
  --white: #fffdfa;
  --ink: #261d16;
  --muted: #615248;
  --line: #dbcec4;
  --soft: #f1eae1;
  --accent: #954c28;
  --accent-dark: #6c2c0e;
  --shadow: rgba(52, 40, 25, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Work Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; }

.article-navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 244, 239, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.article-navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.article-brand {
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  white-space: nowrap;
}
.article-nav {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.article-nav-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 7px 10px;
  border-radius: 5px;
}
.article-nav-link:hover { background: var(--soft); }
.article-nav-link.active { background: var(--accent); color: white; }

.article-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 72px;
}
.article-hero {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px var(--shadow);
  border-radius: 18px;
  padding: clamp(28px, 5vw, 56px);
  margin-bottom: 30px;
}
.article-hero.compact { max-width: 900px; }
.article-hero h1,
.longread h1,
.series-card h2,
.article-card h2,
.article-body h2,
.article-body h3,
.article-sources h2,
.article-sources h3 {
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.18;
}
.article-hero h1, .longread h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  margin: 0.15em 0 0.35em;
  letter-spacing: -0.025em;
}
.article-hero p { max-width: 760px; font-size: 1.08rem; color: var(--muted); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
  margin: 0 0 10px;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.series-card, .article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 8px 24px var(--shadow);
}
.series-card h2, .article-card h2 { margin: 4px 0 10px; font-size: 1.55rem; }
.series-card h2 a, .article-card h2 a { color: var(--ink); text-decoration: none; }
.series-card p, .article-card p { color: var(--muted); }
.series-meta { font-size: .9rem; }
.read-more { font-weight: 750; text-decoration: none; }
.article-list { display: grid; gap: 16px; max-width: 900px; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 22px;
}
.breadcrumbs a { text-decoration: none; }

.longread {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 42px var(--shadow);
  padding: clamp(26px, 5vw, 64px);
}
.longread-header { border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 34px; }
.longread .lead { font-size: 1.2rem; line-height: 1.6; color: var(--muted); max-width: 760px; }
.publish-date { font-size: .9rem; color: var(--muted); }
.article-body { font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; }
.article-body p { margin: 0 0 1.35em; }
.article-body h2 { margin: 2.1em 0 .65em; font-size: 1.85rem; }
.article-body h3 { margin: 1.8em 0 .55em; font-size: 1.35rem; }
.article-body blockquote {
  margin: 1.8em 0;
  padding: 1px 0 1px 22px;
  border-left: 4px solid var(--accent);
  color: var(--accent-dark);
  font-size: 1.08em;
}
.article-body .question-block {
  background: var(--soft);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 10px 10px 0;
}

.article-sources {
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.article-sources h2 { font-size: 1.75rem; }
.article-sources h3 { margin: 24px 0 8px; font-size: 1.15rem; }
.source-list { padding-left: 21px; }
.source-list li { margin-bottom: 8px; }

.article-pagination {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  font-size: .92rem;
}
.article-pagination a { text-decoration: none; font-weight: 700; }
.article-pagination .series-home { text-align: center; }
.article-pagination .next { text-align: right; }
.article-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  padding: 24px 20px 40px;
  font-size: .9rem;
}

@media (max-width: 900px) {
  .article-navbar-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
  .article-nav { justify-content: flex-start; }
  .article-nav-link { padding: 5px 7px; font-size: 12.5px; }
}
@media (max-width: 640px) {
  .article-main { width: min(100% - 24px, 1120px); padding-top: 24px; }
  .longread { border-radius: 12px; }
  .article-pagination { grid-template-columns: 1fr; }
  .article-pagination .series-home, .article-pagination .next { text-align: left; }
}
