/* The Exchange — Metora Solutions blog theme
   Executive, government-grade styling to match metora.solutions */

:root {
  --navy: #0b1e3b;
  --navy-deep: #071428;
  --navy-light: #14315c;
  --gold: #c9a227;
  --gold-light: #e3c565;
  --ink: #1a2332;
  --muted: #5b6b82;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
}

a { color: var(--navy-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border: 2px solid var(--gold); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: bold; font-size: 22px; color: var(--gold);
}
.brand-name { font-family: var(--serif); font-size: 22px; letter-spacing: .5px; }
.brand-sub { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: #9fb2cc; }
.site-nav { display: flex; gap: 26px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.site-nav a { color: #cfdaea; }
.site-nav a:hover { color: var(--gold-light); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: #fff;
  padding: 72px 0 64px;
  border-bottom: 4px solid var(--gold);
}
.hero h1 { font-family: var(--serif); font-size: 46px; line-height: 1.15; margin-bottom: 14px; }
.hero h1 .accent { color: var(--gold-light); }
.hero p { color: #b9c7dd; font-size: 19px; max-width: 640px; }
.hero .kicker {
  display: inline-block; font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-light); border: 1px solid var(--gold); border-radius: 3px;
  padding: 5px 12px; margin-bottom: 18px;
}

/* ---------- Article cards ---------- */
.section-title {
  font-family: var(--serif); font-size: 30px; color: var(--navy);
  margin: 52px 0 8px; padding-bottom: 12px; border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.section-sub { color: var(--muted); margin-bottom: 28px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; margin: 8px 0 64px; }
.card {
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: #fff; transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(11,30,59,.12); text-decoration: none; }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-date { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.card h3 { font-family: var(--serif); font-size: 21px; line-height: 1.35; color: var(--navy); margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); flex: 1; }
.card-link { margin-top: 14px; font-size: 14px; font-weight: 600; letter-spacing: .5px; color: var(--navy-light); text-transform: uppercase; }

/* ---------- Article page ---------- */
.article-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.article-hero .kicker { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.article-hero h1 { font-family: var(--serif); font-size: 40px; line-height: 1.2; color: var(--navy); margin-bottom: 14px; }
.article-meta { color: var(--muted); font-size: 15px; }
.article-meta .dot { margin: 0 8px; color: var(--gold); }
.article-body { padding: 40px 0 64px; font-size: 18px; }
.article-body p { margin-bottom: 1.4em; }
.article-body h2 { font-family: var(--serif); color: var(--navy); font-size: 28px; margin: 1.8em 0 .7em; }
.article-body h3 { font-family: var(--serif); color: var(--navy); font-size: 22px; margin: 1.6em 0 .6em; }
.article-body ul, .article-body ol { margin: 0 0 1.4em 1.4em; }
.article-body li { margin-bottom: .5em; }
.article-body blockquote {
  border-left: 4px solid var(--gold); margin: 1.6em 0; padding: 4px 0 4px 22px;
  color: var(--muted); font-style: italic;
}
.article-body img { max-width: 100%; height: auto; border-radius: 6px; margin: 1.4em 0; }
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }
.back-link { display: inline-block; margin-bottom: 28px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Archive ---------- */
.archive-list { margin: 24px 0 64px; }
.archive-year { font-family: var(--serif); font-size: 26px; color: var(--navy); margin: 36px 0 12px; }
.archive-item { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.archive-item .d { flex: 0 0 110px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.archive-item a { font-family: var(--serif); font-size: 18px; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #8fa3bf; padding: 48px 0 32px; margin-top: 24px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 32px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.site-footer p, .site-footer li { font-size: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b9c7dd; }
.site-footer a:hover { color: var(--gold-light); }
.cred { border-top: 1px solid #1c3358; padding-top: 20px; font-size: 12px; letter-spacing: 1px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.cred .badges { color: var(--gold-light); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .hero h1 { font-size: 32px; }
  .article-hero h1 { font-size: 28px; }
  .site-nav { display: none; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .archive-item { flex-direction: column; gap: 4px; }
}

/* Weekly issue figures and closers */
.article-body figure { margin: 1.8em 0; }
.article-body figure img { margin: 0; }
.article-body figcaption { text-align: center; font-style: italic; font-size: 14px; color: #666; margin-top: .7em; }
.article-body .tagline { text-align: center; font-weight: 700; }
.article-body .tags { color: #666; font-size: 15px; }
