@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

/* ── Reset ───────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: #f7f4ee;
  color: #0f0e0c;
  font-family: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

img, svg { display: block; }

/* ── Layout ──────────────────────────────────────────────────────────────── */

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 28px;
}

.container--wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Masthead ─────────────────────────────────────────────────────────────── */

.masthead {
  background: #0f0e0c;
  color: #ffffff;
  border-bottom: 3px solid #b5290d;
}

.masthead__inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px 28px 20px;
}

.masthead__eyebrow {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b5290d;
  margin-bottom: 8px;
}

.masthead__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-decoration: none;
  display: block;
}

.masthead__title:hover { color: #e8e2d6; }

.masthead__tagline {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a09d96;
  margin-top: 6px;
}

/* ── Navigation ──────────────────────────────────────────────────────────── */

.nav {
  background: #b5290d;
  border-bottom: none;
}

.nav__inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  align-items: center;
}

.nav__link {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 10px 14px;
  display: block;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-bottom-color 0.15s;
  white-space: nowrap;
}

.nav__link:hover,
.nav__link--active {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.6);
}

.nav__divider {
  color: rgba(255,255,255,0.3);
  font-size: 13px;
  padding: 0 2px;
  user-select: none;
}

/* ── Region / topic badge ────────────────────────────────────────────────── */

.badge {
  display: inline-block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}

.badge--region {
  background: #0f0e0c;
  color: #f7f4ee;
}

.badge--politics   { background: #EEEDFE; color: #3C3489; }
.badge--security   { background: #FCEBEB; color: #791F1F; }
.badge--economy    { background: #E1F5EE; color: #085041; }
.badge--energy     { background: #FAECE7; color: #712B13; }
.badge--mining     { background: #FAEEDA; color: #633806; }
.badge--health     { background: #E1F5EE; color: #085041; }
.badge--environment { background: #EAF3DE; color: #27500A; }
.badge--society    { background: #E6F1FB; color: #0C447C; }

/* ── Homepage intro ──────────────────────────────────────────────────────── */

.intro {
  padding: 36px 0 0;
  border-bottom: 1px solid #ddd9d0;
  margin-bottom: 36px;
}

.intro__text {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #5a5750;
  line-height: 1.7;
  max-width: 580px;
  padding-bottom: 20px;
}

.intro__text strong {
  color: #0f0e0c;
  font-weight: 500;
}

/* ── Subscribe CTA (inline strip) ───────────────────────────────────────── */

.cta-strip {
  background: #0f0e0c;
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 36px 0;
  flex-wrap: wrap;
}

.cta-strip__text {
  font-size: 13px;
  font-weight: 400;
  color: #c8c4bc;
}

.cta-strip__text strong {
  color: #ffffff;
  font-weight: 600;
}

.btn {
  display: inline-block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn--primary {
  background: #b5290d;
  color: #ffffff;
}

.btn--primary:hover { background: #961f08; color: #ffffff; }

/* ── Section heading ─────────────────────────────────────────────────────── */

.section-heading {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999591;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd9d0;
  margin-bottom: 0;
}

/* ── Post list (index) ───────────────────────────────────────────────────── */

.post-list {
  margin-top: 0;
}

.post-card {
  padding: 28px 0;
  border-bottom: 1px solid #e4e0d8;
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 20px;
  align-items: start;
}

.post-card:last-child { border-bottom: none; }

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.post-card__date {
  font-size: 11px;
  color: #999591;
  font-weight: 400;
  white-space: nowrap;
  text-align: right;
  padding-top: 4px;
  line-height: 1.4;
}

.post-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.post-card__title a {
  color: #0f0e0c;
  text-decoration: none;
}

.post-card__title a:hover { color: #b5290d; }

.post-card__summary {
  font-size: 13px;
  color: #5a5750;
  line-height: 1.6;
  margin-bottom: 10px;
  font-weight: 300;
}

.post-card__read-more {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #b5290d;
  text-decoration: none;
}

.post-card__read-more:hover { text-decoration: underline; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */

.breadcrumb {
  font-size: 11px;
  color: #999591;
  padding: 20px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #999591;
  text-decoration: none;
}

.breadcrumb a:hover { color: #b5290d; }

.breadcrumb__sep {
  color: #ccc9c3;
  font-size: 10px;
}

/* ── Post page header ────────────────────────────────────────────────────── */

.post-header {
  padding: 28px 0 32px;
  border-bottom: 1px solid #ddd9d0;
  margin-bottom: 40px;
}

.post-header__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.post-header__date {
  font-size: 12px;
  color: #999591;
  font-weight: 400;
}

.post-header__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: #0f0e0c;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.post-header__summary {
  font-size: 15px;
  font-weight: 300;
  color: #5a5750;
  line-height: 1.65;
  padding-left: 16px;
  border-left: 3px solid #b5290d;
  font-style: italic;
  max-width: 620px;
}

/* ── Post body ───────────────────────────────────────────────────────────── */

.post-body {
  margin-bottom: 56px;
}

.post-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: #0f0e0c;
  margin: 36px 0 10px;
  line-height: 1.3;
}

.post-body p {
  font-size: 15px;
  line-height: 1.75;
  color: #2e2c28;
  margin-bottom: 18px;
}

/* Story cards inside post body (from render_html) */
.post-body div[style*="border-left"] {
  margin-bottom: 32px;
}

/* ── Subscribe CTA box (post footer) ────────────────────────────────────── */

.cta-box {
  background: #f0e8d8;
  color: #1a1a1a;
  padding: 24px;
  margin: 48px 0;
  border: 2px solid #b5290d;
  border-radius: 4px;
}

.cta-box__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b5290d;
  margin-bottom: 10px;
}

.cta-box__heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cta-box__sub {
  font-size: 13px;
  color: #5a5750;
  margin-bottom: 20px;
  font-weight: 300;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  background: #0f0e0c;
  border-top: 3px solid #b5290d;
  margin-top: 60px;
  padding: 28px 0 32px;
}

.site-footer__inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.site-footer__brand:hover { color: #e8e2d6; }

.site-footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer__link {
  font-size: 11px;
  color: #706d66;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.site-footer__link:hover { color: #a09d96; }

.site-footer__copy {
  font-size: 10px;
  color: #4a4844;
  margin-top: 12px;
  width: 100%;
}

/* ── Utility ─────────────────────────────────────────────────────────────── */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .masthead__title    { font-size: 26px; }
  .post-header__title { font-size: 26px; }
  .post-card          { grid-template-columns: 1fr; gap: 4px; }
  .post-card__date    { text-align: left; padding-top: 0; }
  .post-card__title   { font-size: 17px; }
  .nav__link          { padding: 8px 10px; font-size: 10px; }
  .cta-box            { padding: 24px 20px; }
  .masthead__inner    { padding: 20px 20px 16px; }
  .container          { padding: 0 20px; }
}
