/* Absolute Digital Publishers — editorial, professional, no gradients */

:root {
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --paper: #fbfaf7;
  --paper-alt: #f2f0ea;
  --line: #dedad0;
  --accent: #1f3a5f;
  --accent-soft: #eef1f5;
  --serif: 'Georgia', 'Iowan Old Style', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

.site-footer {
  flex-shrink: 0;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.logo-mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  border: 1px solid var(--ink);
  padding: 3px 7px;
}
.logo-text {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.header-rule { border-bottom: 2px solid var(--ink); }

/* Kicker / category label */
.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 8px;
}

/* Home */
.home { padding: 40px 24px 80px; }

.featured {
  border-bottom: 1px solid var(--line);
  padding-bottom: 40px;
  margin-bottom: 40px;
}
.featured-link { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.featured-image { width: 100%; border-radius: 2px; aspect-ratio: 16/10; object-fit: cover; }
.featured-image.placeholder, .card-image.placeholder {
  background: var(--paper-alt);
  border: 1px solid var(--line);
}
.featured-text h1 {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 14px;
}
.dek { color: var(--ink-soft); font-size: 17px; margin: 0 0 12px; }
.byline { font-size: 13px; color: #767676; margin: 0; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 24px;
}
.section-heading h2 { font-family: var(--serif); font-size: 22px; margin: 0; }
.see-all { font-size: 13px; color: var(--accent); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.card img, .card-image { width: 100%; aspect-ratio: 16/10; object-fit: cover; margin-bottom: 12px; border-radius: 2px; }
.card h3 { font-family: var(--serif); font-size: 19px; line-height: 1.3; margin: 0 0 8px; }
.card .dek { font-size: 14px; margin-bottom: 8px; }

.categories-strip { margin-top: 56px; }
.categories-strip h2 { font-family: var(--serif); font-size: 20px; margin-bottom: 16px; }
.category-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--paper-alt);
}
.pill.active, .pill:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pill span { color: #999; margin-left: 4px; }

/* Article list / archive page */
.articles-page { padding: 40px 24px 80px; }
.articles-page h1 { font-family: var(--serif); font-size: 32px; margin: 0 0 20px; }
.article-list { display: flex; flex-direction: column; gap: 28px; margin-top: 24px; }
.list-row-link { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
.list-row-link img, .card-image.small { aspect-ratio: 16/10; width: 100%; object-fit: cover; border-radius: 2px; }
.list-row-text h2 { font-family: var(--serif); font-size: 21px; margin: 0 0 8px; }
.empty-state { color: var(--ink-soft); padding: 30px 0; }

.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; font-size: 14px; }
.pagination a { color: var(--accent); }

/* Article detail */
.article-page { padding: 48px 24px 80px; max-width: 760px; }
.article-page h1 { font-family: var(--serif); font-size: 38px; line-height: 1.2; margin: 0 0 14px; }
.article-figure { margin: 28px 0; }
.article-figure img { width: 100%; border-radius: 2px; }
.article-figure figcaption { font-size: 12px; color: #888; margin-top: 8px; }
.article-body { font-family: var(--serif); font-size: 19px; line-height: 1.7; color: #262626; }
.article-body h2 { font-family: var(--sans); font-size: 22px; margin: 36px 0 14px; color: var(--ink); }
.article-body p { margin: 0 0 20px; }
.sources-box { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 20px; }
.sources-box h2 { font-family: var(--sans); font-size: 15px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--ink-soft); }
.sources-box ul { padding-left: 18px; font-size: 15px; }
.sources-box a { color: var(--accent); }
.tag-list { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.tag { font-size: 12px; color: #888; }

.related-section { margin-top: 64px; border-top: 2px solid var(--ink); padding-top: 24px; max-width: none; }
.related-section h2 { font-family: var(--serif); font-size: 22px; margin-bottom: 24px; }

/* Static pages */
.static-page { padding: 48px 24px 80px; max-width: 760px; }
.static-page h1 { font-family: var(--serif); font-size: 34px; margin-bottom: 24px; }
.prose { font-size: 17px; color: #2b2b2b; }
.prose h2 { font-family: var(--serif); font-size: 22px; margin: 34px 0 12px; }
.prose p { margin: 0 0 18px; }
.prose a { color: var(--accent); text-decoration: underline; }

.not-found { padding: 100px 24px; text-align: center; }
.not-found h1 { font-family: var(--serif); font-size: 64px; margin: 0; }
.button {
  display: inline-block;
  margin-top: 20px;
  border: 1px solid var(--ink);
  padding: 10px 22px;
  font-size: 14px;
}
.button:hover { background: var(--ink); color: var(--paper); }

/* Footer */
.site-footer { border-top: 2px solid var(--ink); margin-top: 60px; background: var(--paper-alt); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 44px 24px 30px; }
.footer-col h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #888; margin: 0 0 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent); }
.footer-logo { margin-bottom: 10px; }
.footer-tagline { font-size: 13px; color: #767676; max-width: 30ch; }
.footer-bottom { display: flex; justify-content: space-between; font-size: 12px; color: #888; padding: 18px 24px 28px; border-top: 1px solid var(--line); }

/* Responsive */
@media (max-width: 860px) {
  .featured-link { grid-template-columns: 1fr; gap: 20px; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .list-row-link { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-nav { gap: 16px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .article-grid { grid-template-columns: 1fr; }
  .featured-text h1 { font-size: 30px; }
  .footer-inner { grid-template-columns: 1fr; }
}
