/* Insights: insights
   Restrained executive/advisory styling. One accent, one serif, no imagery.
   Hand-edited source. There is no build step: editing a file is publishing. */

:root {
  --ink:      #0d1a22;
  --ink-2:    #33454f;
  --ink-3:    #63747d;
  --paper:    #ffffff;
  --paper-2:  #f5f6f4;
  --paper-3:  #eceee9;
  --rule:     #dcdfd9;
  --accent:   #1a5f5a;
  --accent-2: #10403c;
  --flag:     #8a5a1f;      /* the constraint callout only */
  --flag-bg:  #fbf5ec;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --col:  680px;            /* reading column */
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }

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

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 40;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px;
}
.brand {
  font-family: var(--serif);
  font-size: 21px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--accent); }
.site-nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.site-nav a {
  font-size: 15px; color: var(--ink-2); text-decoration: none;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--ink); border-bottom-color: var(--accent);
}

/* ---------- Page hero ---------- */
.phero {
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  padding: 56px 0 44px;
}
.phero .kicker {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.phero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.15;
  letter-spacing: -0.02em; margin: 0 0 16px; max-width: 20ch;
}
.phero .standfirst {
  font-size: 20px; line-height: 1.55; color: var(--ink-2);
  margin: 0; max-width: 62ch;
}
.phero.narrow h1, .phero.narrow .standfirst { max-width: var(--col); }

/* ---------- Breadcrumb + meta ---------- */
.crumb {
  font-size: 14px; color: var(--ink-3); margin: 0 0 18px;
}
.crumb a { color: var(--ink-3); }
.article-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-3); margin: 20px 0 0;
}
.article-meta .dot {
  width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3);
  display: inline-block;
}
.article-meta .cat { color: var(--accent); }

/* ---------- Reading column ---------- */
.prose { max-width: var(--col); margin: 0 auto; padding: 48px 0 8px; }
.prose > * { margin-left: auto; margin-right: auto; }

.prose h2 {
  font-family: var(--serif);
  font-size: 27px; line-height: 1.25; letter-spacing: -0.01em;
  margin: 46px 0 14px; padding-top: 6px;
}
.prose h3 {
  font-size: 19px; line-height: 1.35; margin: 30px 0 10px; font-weight: 650;
}
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin: 0 0 9px; }
.prose strong { font-weight: 650; }

.lead {
  font-size: 21px; line-height: 1.55; color: var(--ink-2);
  margin: 0 0 26px;
}

.prose blockquote {
  margin: 28px 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--ink-2);
}

/* ---------- The constraint callout (one per article) ---------- */
.constraint {
  margin: 34px 0; padding: 20px 24px;
  background: var(--flag-bg);
  border-left: 3px solid var(--flag);
}
.constraint p { margin: 0; }
.constraint .label {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--flag); margin: 0 0 8px;
}

/* ---------- Key-points box (the answer, up top) ---------- */
.keypoints {
  margin: 0 0 34px; padding: 22px 26px;
  background: var(--paper-2); border: 1px solid var(--rule);
}
.keypoints p.label {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 10px;
}
.keypoints ul { margin: 0; padding-left: 20px; }
.keypoints li { margin: 0 0 8px; font-size: 17px; }
.keypoints li:last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; margin: 0 0 24px; }
.prose table {
  border-collapse: collapse; width: 100%; font-size: 16px;
}
.prose th, .prose td {
  text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.prose th {
  font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 650; border-bottom-color: var(--ink-3);
}

/* ---------- Figures ---------- */
.prose figure { margin: 32px 0; }
.prose figure img { display: block; width: 100%; border: 1px solid var(--rule); }
.prose figcaption { font-size: 14px; color: var(--ink-3); margin-top: 10px; }

/* ---------- Sources ---------- */
.sources {
  margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--rule);
  font-size: 15px; color: var(--ink-2);
}
.sources p.label {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 10px;
}
.sources ol { margin: 0; padding-left: 20px; }
.sources li { margin: 0 0 7px; }

/* ---------- One CTA per article ---------- */
.cta {
  max-width: var(--col); margin: 48px auto 0; padding: 28px 30px;
  background: var(--ink); color: #eef1ee;
}
.cta h2 {
  font-family: var(--serif); font-size: 23px; line-height: 1.3;
  margin: 0 0 10px; color: #fff;
}
.cta p { margin: 0 0 18px; color: #b9c4c2; font-size: 17px; }
.btn {
  display: inline-block; padding: 12px 22px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: 16px; font-weight: 600;
}
.btn:hover { background: #217a73; color: #fff; }
.btn-ghost {
  background: transparent; color: #eef1ee;
  box-shadow: inset 0 0 0 1px #4a5d63;
}
.btn-ghost:hover { background: #16262f; color: #fff; }

/* ---------- Read next ---------- */
.read-next { max-width: var(--col); margin: 48px auto 0; }
.read-next .label {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 14px;
}
.read-next ul { list-style: none; margin: 0; padding: 0; }
.read-next li { border-top: 1px solid var(--rule); }
.read-next li:last-child { border-bottom: 1px solid var(--rule); }
.read-next a {
  display: block; padding: 15px 0; text-decoration: none; color: var(--ink);
}
.read-next a:hover { color: var(--accent); }
.read-next .rn-cat {
  display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 5px;
}
.read-next .rn-title { font-size: 17px; line-height: 1.4; }

/* ---------- Insights index ---------- */
.filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 26px 0; border-bottom: 1px solid var(--rule);
}
.filters button {
  font: inherit; font-size: 14px; cursor: pointer;
  padding: 7px 15px; background: var(--paper); color: var(--ink-2);
  border: 1px solid var(--rule);
}
.filters button:hover { border-color: var(--ink-3); color: var(--ink); }
.filters button[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: #fff;
}

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-bottom: 1px solid var(--rule); }
.post-list a {
  display: grid; grid-template-columns: 132px 1fr; gap: 26px;
  padding: 26px 0; text-decoration: none; color: var(--ink);
}
.post-list a:hover .pl-title { color: var(--accent); }
.pl-side { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.pl-side .pl-cat {
  display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  margin-top: 4px;
}
.pl-title {
  display: block;
  font-family: var(--serif); font-size: 23px; line-height: 1.3;
  letter-spacing: -0.01em; margin: 0 0 8px; font-weight: 600;
}
.pl-desc { display: block; font-size: 16px; color: var(--ink-2); margin: 0; max-width: 68ch; }

.empty { padding: 40px 0; color: var(--ink-3); }

/* ---------- Cluster grid (home) ---------- */
.cluster-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); margin: 0 0 8px;
}
.cluster-grid a {
  background: var(--paper); padding: 26px 24px; text-decoration: none;
  color: var(--ink); display: block;
}
.cluster-grid a:hover { background: var(--paper-2); }
.cluster-grid h3 {
  font-family: var(--serif); font-size: 20px; line-height: 1.3;
  margin: 0 0 8px; font-weight: 600;
}
.cluster-grid p { margin: 0; font-size: 15px; color: var(--ink-2); }

.section { padding: 56px 0; border-top: 1px solid var(--rule); }
.section:first-of-type { border-top: 0; }
.section > .wrap > h2 {
  font-family: var(--serif); font-size: 28px; letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.section > .wrap > .sub {
  font-size: 17px; color: var(--ink-2); margin: 0 0 28px; max-width: 62ch;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule); background: var(--paper-2);
  padding: 44px 0 52px; margin-top: 64px;
  font-size: 15px; color: var(--ink-2);
}
.site-footer .foot-top {
  display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding-bottom: 26px; border-bottom: 1px solid var(--rule); margin-bottom: 22px;
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer .small { font-size: 13px; color: var(--ink-3); margin: 0; max-width: 70ch; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
  .site-header { position: static; }
  .site-nav { gap: 16px; }
  .phero { padding: 38px 0 32px; }
  .prose { padding-top: 34px; }
  .post-list a { grid-template-columns: 1fr; gap: 8px; }
  .pl-side .pl-cat { display: inline; margin-left: 8px; }
  .cta { padding: 24px 22px; }
}

@media print {
  .site-header, .site-footer, .cta, .read-next, .filters { display: none; }
  body { font-size: 12pt; }
}
