/* Synesaia · Insights stylesheet (shared) */
@import url('../tokens.css');

:root {
  /* Insights-specific override (tokens.css provides shared defaults) */
  --rhythm: clamp(96px, 12vh, 160px);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--teal); color: var(--bg); }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14,14,14,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px var(--pad-x); border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; line-height: 1;
  display: inline-flex; align-items: center; gap: 10px;
}
.wordmark .glyph { width: 18px; height: 18px; display: block; }
.nav-links {
  display: flex; gap: 40px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.nav-links a { position: relative; padding: 6px 0; color: var(--ink-muted); transition: color 160ms ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--teal); }

/* CRUMB */
.crumb {
  padding: 18px var(--pad-x);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted);
  display: flex; gap: 14px; align-items: center;
}
.crumb a { color: var(--ink-muted); transition: color 160ms ease; }
.crumb a:hover { color: var(--ink); }
.crumb .sep { color: var(--ink-dim); }
.crumb .current { color: var(--ink); }

/* HERO */
.insights-hero {
  padding: clamp(72px, 12vh, 140px) var(--pad-x) clamp(48px, 8vh, 96px);
  border-bottom: 1px solid var(--rule);
  max-width: 1200px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 36px;
}
.eyebrow .dash { width: 32px; height: 1px; background: var(--teal); }
.eyebrow .lbl {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted);
}
.insights-hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 5.6vw, 88px); line-height: 1.02;
  letter-spacing: -0.015em; margin: 0;
  text-wrap: balance; max-width: 18ch;
}
.insights-hero .sub {
  margin: clamp(28px, 4vh, 44px) 0 0;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(20px, 1.6vw, 26px); line-height: 1.45;
  color: var(--ink-muted); max-width: 54ch;
  text-wrap: pretty;
}

/* CARD GRID */
.insights-grid {
  padding: clamp(48px, 7vh, 96px) var(--pad-x) clamp(96px, 14vh, 180px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border-bottom: 1px solid var(--rule);
}
.insights-grid {
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.post-card {
  background: var(--bg);
  padding: clamp(40px, 5vh, 64px) clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 20px;
  min-height: 360px;
  transition: background 220ms ease;
}
.post-card:hover { background: var(--bg-raised); }
.post-card .cat {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal);
  display: inline-block;
  padding-top: 14px; position: relative;
}
.post-card .cat::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 24px; height: 1px; background: var(--teal);
}
.post-card .pc-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(28px, 2.6vw, 38px); line-height: 1.12;
  letter-spacing: -0.01em; margin: 0;
  text-wrap: balance; max-width: 18ch; color: var(--ink);
}
.post-card .excerpt {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(14px, 1vw, 16px); line-height: 1.7;
  color: var(--ink-muted); margin: 0; max-width: 42ch;
  text-wrap: pretty;
}
.post-card .meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim);
  padding-top: 20px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
}
.post-card .meta .arrow {
  color: var(--ink-muted); transition: transform 220ms ease, color 220ms ease;
  display: inline-flex; gap: 8px; align-items: center;
}
.post-card:hover .meta .arrow { color: var(--teal); gap: 14px; }
@media (max-width: 900px) {
  .insights-grid { grid-template-columns: 1fr; }
}

/* POST */
.post-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(64px, 10vh, 120px) var(--pad-x) clamp(48px, 8vh, 96px);
}
.post-back {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted);
  display: inline-flex; gap: 12px; align-items: center; margin-bottom: 56px;
  transition: gap 200ms ease, color 200ms ease;
}
.post-back:hover { color: var(--ink); gap: 18px; }
.post-meta {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted);
  display: flex; flex-wrap: wrap; gap: 14px 22px;
  padding-bottom: 28px; border-bottom: 1px solid var(--rule);
  margin-bottom: 36px;
}
.post-meta .cat { color: var(--teal); }
.post-meta .sep { color: var(--ink-dim); }
.post-shell h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 5vw, 76px); line-height: 1.04;
  letter-spacing: -0.015em; margin: 0 0 clamp(28px, 4vh, 40px);
  text-wrap: balance; max-width: 22ch;
}
.post-standfirst {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(22px, 2vw, 30px); line-height: 1.45;
  color: var(--ink-muted); margin: 0;
  max-width: 38ch; text-wrap: pretty;
}
.post-divider {
  margin: clamp(56px, 8vh, 96px) 0 clamp(40px, 6vh, 64px);
  border: 0; border-top: 1px solid var(--rule-strong);
}
.post-body {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(16px, 1.1vw, 18px); line-height: 1.78;
  color: var(--ink);
}
.post-body p {
  margin: 0 0 1.4em;
  text-wrap: pretty;
  max-width: 62ch;
}
.post-body p:last-child { margin-bottom: 0; }

/* SECTION HEADINGS WITHIN POST */
.post-section {
  margin-top: clamp(48px, 6vh, 72px);
}
.post-section h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(22px, 2vw, 28px); line-height: 1.2;
  letter-spacing: -0.005em; margin: 0 0 20px;
  padding-top: 14px; position: relative;
  color: var(--ink);
}
.post-section h2::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 24px; height: 1px; background: var(--teal);
}

/* SALARY TABLE */
.pay-note {
  font-family: var(--sans); font-size: 14px; line-height: 1.6;
  color: var(--ink-muted); margin: 0 0 24px;
  max-width: 62ch;
}
.pay-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.pay-table th, .pay-table td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}
.pay-table tr:last-child td { border-bottom: 0; }
.pay-table th {
  font-family: var(--mono); font-weight: 400;
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-muted);
}
.pay-table th:first-child { width: 36%; }
.pay-table td:first-child {
  font-family: var(--serif); font-size: 17px;
  font-weight: 400; letter-spacing: -0.005em;
  color: var(--ink); text-transform: none;
}
.pay-table td .ccy {
  color: var(--teal); font-weight: 500; letter-spacing: 0.08em; margin-right: 4px;
}
.pay-table td .per { color: var(--ink-dim); font-size: 0.92em; }
.usd-line {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.04em; color: var(--ink-muted);
  margin: 14px 0 0;
}

/* EMPLOYER LIST */
.employer-list {
  font-family: var(--sans); font-size: 16px; line-height: 1.8;
  color: var(--ink); margin: 0;
  max-width: 62ch;
}
.criteria {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(16px, 1.1vw, 18px); line-height: 1.78;
  color: var(--ink); margin: 0;
  max-width: 62ch; text-wrap: pretty;
}

/* PULL QUOTE */
.pull {
  margin: clamp(56px, 7vh, 80px) 0;
  padding: clamp(28px, 4vh, 44px) 0 clamp(28px, 4vh, 44px) clamp(28px, 4vw, 56px);
  border-left: 1px solid var(--teal);
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(22px, 2.2vw, 32px); line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink); max-width: 32ch;
  text-wrap: balance;
}

/* NUMBERED + BULLETED LISTS WITHIN BODY */
.post-body ol, .post-body ul {
  margin: 0 0 1.5em; padding: 0 0 0 1.4em;
  max-width: 62ch;
}
.post-body li {
  margin-bottom: 0.7em; line-height: 1.7;
  text-wrap: pretty;
}
.post-body li::marker {
  font-family: var(--mono); font-size: 0.85em; color: var(--ink-muted);
}
.post-body strong {
  font-family: var(--sans); font-weight: 500;
  color: var(--ink);
}

/* RELATED / CONTINUE READING */
.post-related {
  margin: clamp(72px, 10vh, 120px) 0 0;
  padding-top: clamp(40px, 5vh, 56px);
  border-top: 1px solid var(--rule);
}
.post-related .lbl {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted);
  display: block; margin-bottom: 18px;
}
.post-related a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  transition: gap 220ms ease;
}
.post-related a:hover { gap: 32px; }
.post-related a:hover h4 { color: var(--ink); }
.post-related a:hover .arrow { color: var(--teal); }
.post-related h4 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2;
  letter-spacing: -0.005em; margin: 0; color: var(--ink);
  max-width: 22ch; text-wrap: balance;
}
.post-related .cat {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal);
  display: block; margin-bottom: 6px;
}
.post-related .arrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted);
  white-space: nowrap;
  transition: color 220ms ease;
}

/* QUIET FOOT */
.post-foot {
  margin-top: clamp(64px, 8vh, 96px);
  padding: clamp(32px, 4vh, 48px) 0 0;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 24px 48px;
  justify-content: space-between; align-items: baseline;
}
.post-foot .ln {
  font-family: var(--sans); font-weight: 300;
  font-size: 14px; line-height: 1.6;
  color: var(--ink-muted); margin: 0;
  max-width: 42ch;
}
.post-foot .ln a {
  color: var(--ink); border-bottom: 1px solid var(--teal);
  padding-bottom: 2px; transition: color 220ms ease;
}
.post-foot .ln a:hover { color: var(--teal); }
.post-foot .back {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted);
  white-space: nowrap;
  transition: color 220ms ease, gap 220ms ease;
  display: inline-flex; gap: 12px; align-items: center;
}
.post-foot .back:hover { color: var(--ink); gap: 18px; }

/* FOOTER */
footer {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 32px var(--pad-x);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted);
  border-top: 1px solid var(--rule);
}
footer .foot-links { display: flex; gap: 28px; }
footer a:hover { color: var(--ink); }
footer .locale { color: var(--ink-dim); }
@media (max-width: 780px) {
  footer { flex-direction: column; gap: 16px; align-items: flex-start; }
}
