/* ── WAR INTELLIGENCE SITE ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --red:      #c0392b;
  --red-dk:   #96281b;
  --red-lt:   #f5e6e6;
  --amber:    #e67e22;
  --amber-lt: #fdf3e7;
  --green:    #1a7a4a;
  --green-lt: #e8f5ee;
  --navy:     #0d1b2a;
  --navy-mid: #1a2e45;
  --navy-lt:  #2c4a6e;
  --slate:    #2d3e50;
  --mid:      #566573;
  --light:    #aab7c4;
  --bg:       #f2f4f6;
  --rule:     #d5dce4;
  --white:    #ffffff;
  --mono:     'JetBrains Mono', monospace;
  --sans:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max:      860px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
.site-header {
  background: var(--navy);
  border-bottom: 2px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.site-logo {
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  color: var(--red);
  font-size: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.site-tagline {
  font-size: 11px;
  color: var(--light);
  letter-spacing: 0.5px;
  text-align: right;
  max-width: 280px;
}

/* ── MAIN ── */
.main-content {
  min-height: calc(100vh - 56px - 48px);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 70%, #1c3a5e 100%);
  padding: 72px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.03);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(192,57,43,0.1);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(56px, 10vw, 96px);
  font-weight: 900;
  line-height: 1;
  color: var(--white);
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.red { color: var(--red); }

.hero-sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 540px;
}

/* ── ARTICLE LIST ── */
.article-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px;
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--rule);
}

.list-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
}

.list-count {
  font-size: 12px;
  color: var(--light);
  font-family: var(--mono);
}

.article-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  border-radius: 4px;
}

.article-card:hover .card-title {
  color: var(--red);
}

.article-card:hover .card-tag {
  background: var(--red);
  color: var(--white);
}

.card-left { flex: 1; }

.card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  background: var(--navy);
  color: var(--white);
  border-radius: 3px;
  margin-bottom: 10px;
  transition: all 0.15s;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  transition: color 0.15s;
}

.card-sub {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.5;
}

.card-right {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.card-date {
  font-size: 12px;
  color: var(--mid);
  font-family: var(--mono);
  white-space: nowrap;
}

.card-class {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--green);
  text-transform: uppercase;
}

.empty-state {
  padding: 48px 0;
  text-align: center;
  color: var(--light);
  font-size: 14px;
}

/* ── ARTICLE PAGE ── */
.article {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.article-header {
  padding-bottom: 32px;
  border-bottom: 2px solid var(--rule);
  margin-bottom: 40px;
}

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  background: var(--red);
  color: var(--white);
  border-radius: 3px;
}

.meta-sep { color: var(--rule); }

.article-meta-top time {
  font-size: 13px;
  color: var(--mid);
  font-family: var(--mono);
}

.classification {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.article-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.article-subtitle {
  font-size: 18px;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.55;
  margin-bottom: 20px;
}

.article-meta-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mid);
}

/* ── ARTICLE BODY ── */
.article-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--slate);
}

.article-body h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--rule);
  letter-spacing: -0.2px;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate);
  margin: 32px 0 12px;
}

.article-body p {
  margin-bottom: 18px;
}

.article-body strong { font-weight: 700; color: var(--navy); }
.article-body em { font-style: italic; color: var(--mid); }

.article-body ul, .article-body ol {
  margin: 12px 0 20px 24px;
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.article-body blockquote {
  border-left: 3px solid var(--red);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--red-lt);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: var(--mid);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.article-body thead tr { background: var(--navy); }
.article-body thead th {
  color: var(--white);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  text-align: left;
}

.article-body tbody tr:nth-child(even) { background: var(--bg); }
.article-body tbody tr:nth-child(odd) { background: var(--white); }
.article-body tbody td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--slate);
}

.article-body hr {
  border: none;
  border-top: 1.5px solid var(--rule);
  margin: 40px 0;
}

/* Callout shortcodes via raw HTML in markdown */
.callout {
  border-radius: 5px;
  padding: 16px 20px;
  margin: 24px 0;
  display: flex;
  gap: 14px;
  font-size: 15px;
}
.callout-icon { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.callout-body { flex: 1; }
.callout-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.callout.danger  { background: var(--red-lt);   border-left: 3px solid var(--red); }
.callout.warning { background: var(--amber-lt); border-left: 3px solid var(--amber); }
.callout.info    { background: #eaf0f8;          border-left: 3px solid var(--navy-lt); }
.callout.danger  .callout-title { color: var(--red-dk); }
.callout.warning .callout-title { color: #8a4800; }
.callout.info    .callout-title { color: var(--navy); }

/* Chip badges */
.chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  vertical-align: middle;
}
.chip-red   { background: var(--red-lt);   color: var(--red-dk); }
.chip-amber { background: var(--amber-lt); color: #8a4800; }
.chip-green { background: var(--green-lt); color: var(--green); }
.chip-navy  { background: #e4eaf2;         color: var(--navy); }

/* ── ARTICLE FOOTER ── */
.article-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.back-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.back-link:hover { color: var(--red); }

.disclaimer {
  font-size: 12px;
  color: var(--light);
}

/* ── SITE FOOTER ── */
.site-footer {
  background: var(--navy);
  padding: 14px 24px;
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  font-size: 11px;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-inner .sep { color: rgba(255,255,255,0.2); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .site-tagline { display: none; }
  .article-card { flex-direction: column; gap: 12px; }
  .card-right { flex-direction: row; align-items: center; text-align: left; }
  .article-footer { flex-direction: column; align-items: flex-start; }
  .hero { padding: 48px 20px; }
}
