/* ============================================================================
   LYCEUM INTELLIGENCE — Theme
   Aesthetic: premium intelligence firm. Editorial, authoritative, typographic.
   NOT: SaaS, startup, bubbles, gradients, rounded cards.
   Reference: FT, CFR, Stratfor, The Economist.
   ============================================================================ */

/* ── Reset & base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0D1B2A;   /* primary dark — nav, headings */
  --amber:     #C8602A;   /* accent — eyebrows, links, rules */
  --body:      #1A1A1A;   /* body text */
  --muted:     #666666;   /* meta, captions */
  --rule:      #D0CCC8;   /* horizontal rules, borders */
  --bg:        #FAFAF8;   /* warm white page background */
  --bg-dark:   #F2F0EC;   /* slightly deeper for callouts */
  --white:     #FFFFFF;

  --serif:     'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:      'Segoe UI', -apple-system, Arial, sans-serif;
  --mono:      'Courier New', monospace;

  --max-width: 1080px;
  --reading-width: 720px;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
}

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

img { max-width: 100%; display: block; }

/* ── Top bar ────────────────────────────────────────────────────────────────── */
.top-bar {
  background: var(--navy);
  border-bottom: 3px solid var(--amber);
}

.top-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-wordmark {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.site-wordmark span {
  color: var(--amber);
}
.site-wordmark:hover { text-decoration: none; color: #fff; }

.top-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}
.top-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.15s;
}
.top-nav a:hover { color: var(--amber); text-decoration: none; }

/* ── Page wrapper ───────────────────────────────────────────────────────────── */
.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Homepage header ────────────────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 48px 0 36px;
}

.site-header .eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}

.site-header h1 {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 10px;
}

.site-header .site-description {
  font-size: 1rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.55;
}

/* ── Dateline bar ───────────────────────────────────────────────────────────── */
.dateline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ── Post grid ──────────────────────────────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

/* Lead post — full width */
.post-grid .post-card:first-child {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 32px;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.post-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.post-card:nth-child(n+2) {
  padding: 24px 20px;
  border-left: 1px solid var(--rule);
}
.post-card:nth-child(2) { border-left: none; padding-left: 0; }

.post-card .card-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

.post-card h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 10px;
}
.post-card:first-child h2 { font-size: 2rem; }

.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-card h2 a:hover { color: var(--amber); text-decoration: none; }

.post-card .card-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.post-card .card-meta {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.post-card .card-feature-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* ── Article / post ─────────────────────────────────────────────────────────── */
.post-container {
  max-width: var(--reading-width);
  margin: 48px auto;
  padding: 0 32px;
}

.post-header { margin-bottom: 32px; border-bottom: 1px solid var(--rule); padding-bottom: 24px; }

.post-header .eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}

.post-header h1 {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 14px;
}

.post-header .post-excerpt {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
  font-style: italic;
}

.post-header .post-meta {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── Post content ───────────────────────────────────────────────────────────── */
.gh-content { font-size: 1rem; line-height: 1.75; color: var(--body); }
.gh-content p { margin-bottom: 1.2em; }

.gh-content h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2em 0 0.6em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.gh-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.6em 0 0.5em;
}

.gh-content ul, .gh-content ol {
  margin: 0 0 1.2em 1.4em;
}
.gh-content li { margin-bottom: 0.4em; }

.gh-content blockquote {
  border-left: 3px solid var(--amber);
  margin: 1.5em 0;
  padding: 0.8em 1.2em;
  background: var(--bg-dark);
  font-style: italic;
  color: var(--muted);
}

.gh-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2em 0;
}

.gh-content a { color: var(--amber); }
.gh-content a:hover { text-decoration: underline; }

.gh-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.9rem;
}
.gh-content th {
  background: var(--navy);
  color: var(--amber);
  font-weight: 700;
  text-align: left;
  padding: 9px 12px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.gh-content td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.gh-content tr:nth-child(even) td { background: var(--bg-dark); }

/* ── Page (static) ──────────────────────────────────────────────────────────── */
.page-container {
  max-width: var(--reading-width);
  margin: 48px auto;
  padding: 0 32px;
}
.page-title {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.2;
}
.page-excerpt {
  font-size: 1rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  border-top: 3px solid var(--amber);
  margin-top: 80px;
  padding: 40px 0;
}
.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-wordmark {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
}
.footer-wordmark span { color: var(--amber); }
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-grid .post-card:first-child { grid-template-columns: 1fr; }
  .post-card:nth-child(n+2) { border-left: none; padding-left: 0; }
  .top-nav { display: none; }
  .top-bar-inner { padding: 0 20px; }
  .page-wrap { padding: 0 20px; }
  .post-container, .page-container { padding: 0 20px; }
  .site-footer-inner { flex-direction: column; gap: 10px; text-align: center; }
}
