/* CIO Impact Lab, base styles.
   Tokens come from variables.css. No raw color literals here except the two
   rgba() values the brief specifies for the navy footer (footer rule + disclaimer).
   Square corners globally. */

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; }

body.cil-body {
  margin: 0;
  background: var(--paper);
  color: var(--body-ink);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }

/* ----------------------------------------------------------------- layout */
.cil-wrap      { max-width: 1080px; margin-inline: auto; padding-inline: 56px; }
.cil-readcol   { max-width: 620px;  margin-inline: auto; }
.cil-textleft  { text-align: left; }
.cil-section          { padding: 78px 0 92px; }
.cil-section--narrow  { padding: 64px 0 72px; }
.cil-section--center  { text-align: center; }

/* ------------------------------------------------------------ typography */
.cil-eyebrow {
  font-family: "Inter", sans-serif; font-weight: 500; font-size: 12.5px;
  line-height: 1.4; letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--brass); margin: 0;
}
.cil-h2 {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500;
  font-size: 34px; line-height: 1.25; letter-spacing: -0.005em;
  color: var(--ink-navy); margin: 14px 0 0;
}
.cil-h2--narrow { max-width: 560px; margin-inline: auto; }
.cil-page-h1 {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500;
  font-size: 48px; line-height: 1.12; letter-spacing: -0.01em;
  color: var(--ink-navy); margin: 16px auto 0; max-width: 800px;
}
.cil-lede {
  font-family: "Inter", sans-serif; font-weight: 400; font-size: 18px;
  line-height: 1.65; color: var(--text-secondary);
  max-width: 620px; margin: 24px auto 0;
}
.cil-dateline {
  font-family: "Inter", sans-serif; font-style: italic; font-weight: 400;
  font-size: 15px; line-height: 1.5; color: var(--text-tertiary); margin: 16px 0 0;
}

/* --------------------------------------------------------------- masthead */
.cil-masthead-inner {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 26px; padding-bottom: 26px;
}
.cil-wordmark-sm {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500;
  font-size: 17px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-navy); text-decoration: none;
}
.cil-nav { display: flex; gap: 34px; }
.cil-nav a {
  font-family: "Inter", sans-serif; font-weight: 500; font-size: 12px;
  line-height: 1.5; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-navy); text-decoration: none;
}
.cil-nav a:hover { color: var(--brass-hover); }

/* ------------------------------------------------- hero (home title page) */
.cil-hero { padding: 116px 0 108px; text-align: center; }
.cil-wordmark {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500;
  font-size: 72px; line-height: 0.98; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--ink-navy); margin: 38px 0 0;
}
.cil-descriptor {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; max-width: 540px; margin: 34px auto 0;
}
.cil-descriptor-rule { flex: 1; height: 1px; background: var(--hairline); }
.cil-descriptor-label {
  font-family: "Inter", sans-serif; font-weight: 500; font-size: 12.5px;
  line-height: 1.4; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-tertiary); white-space: nowrap;
}
.cil-standfirst {
  font-family: "Cormorant Garamond", Georgia, serif; font-style: italic;
  font-weight: 400; font-size: 30px; line-height: 1.34; letter-spacing: 0.005em;
  color: var(--text-secondary); max-width: 640px; margin: 40px auto 0;
}
.cil-brass-rule { width: 48px; height: 1.5px; background: var(--brass); margin: 42px auto 0; }

/* ----------------------------------------------- page hero (about/research) */
.cil-pagehero { padding: 96px 0 48px; text-align: center; }

/* ------------------------------------------------------------------ cards */
.cil-cardgrid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
  max-width: 880px; margin: 64px auto 0; text-align: left;
}
.cil-card { border-left: 1.5px solid var(--brass); padding-left: 18px; }
.cil-card-num {
  font-family: "Cormorant Garamond", Georgia, serif; font-style: italic;
  font-weight: 400; font-size: 24px; line-height: 1; color: var(--brass); margin: 0;
}
.cil-card-title {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500;
  font-size: 21px; line-height: 1.30; color: var(--ink-navy); margin: 10px 0 0;
}
.cil-card-body {
  font-family: "Inter", sans-serif; font-weight: 400; font-size: 16px;
  line-height: 1.6; color: var(--body-ink); margin: 10px 0 0;
}
/* full-width stacked cards (research questions, no numerals) */
.cil-stack {
  max-width: 820px; margin: 48px auto 0; display: flex; flex-direction: column;
  gap: 30px; text-align: left;
}

/* ------------------------------------------------------ hairline separator */
.cil-hairline { height: 1px; background: var(--hairline); }

/* --------------------------------------------------------- reading column */
.cil-readcol p { font-size: 16px; line-height: 1.7; color: var(--body-ink); margin: 0 0 20px; }
.cil-readcol p:last-child { margin-bottom: 0; }
.cil-section--narrow .cil-readcol { margin-top: 28px; }

/* ------------------------------------------------------------------ links */
.cil-main a {
  color: var(--ink-navy); text-decoration: underline;
  text-decoration-thickness: 0.5px; text-underline-offset: 3px;
}
.cil-main a:hover { color: var(--brass-hover); }

/* ----------------------------------------------------------------- dropcap */
.cil-dropcap {
  float: left; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500;
  font-size: 62px; line-height: 0.82; color: var(--brass); margin: 6px 12px 0 0;
}
.cil-drop::after { content: ""; display: block; clear: both; }

/* ------------------------------------------------------- about row (home) */
.cil-about-head { max-width: 760px; margin-inline: auto; }
.cil-about-head .cil-h2 { margin-bottom: 40px; }
.cil-about-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 48px;
  max-width: 820px; margin-inline: auto; align-items: start; text-align: left;
}
.cil-portrait {
  width: 200px; height: 248px; margin: 0; border: 0.5px solid var(--hairline);
  display: flex; align-items: flex-end; justify-content: center; background: var(--paper);
}
.cil-portrait-cap {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10px;
  letter-spacing: 0.08em; color: var(--text-tertiary); padding-bottom: 14px;
}
.cil-portrait--filled { display: block; }
.cil-portrait-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cil-about-body p { font-size: 16px; line-height: 1.75; color: var(--body-ink); margin: 0 0 20px; }
.cil-about-body p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ credentials */
.cil-cred-label {
  font-family: "Inter", sans-serif; font-weight: 500; font-size: 12.5px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-tertiary);
  margin: 28px 0 12px;
}
.cil-readcol .cil-cred-label:first-child { margin-top: 0; }
.cil-cred-list { list-style: none; margin: 0; padding: 0; }
.cil-cred-list li { font-size: 16px; line-height: 1.8; color: var(--body-ink); }
.cil-cred-list--inline { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* --------------------------------------------------------------- contact */
.cil-dot { color: var(--text-tertiary); padding: 0 6px; }

/* ---------------------------------------------------------------- footer */
.cil-footer { background: var(--ink-navy); color: var(--paper); }
.cil-footer-inner { padding-top: 48px; padding-bottom: 48px; }
.cil-footer-utility {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap;
  gap: 12px; font-family: "Inter", sans-serif; font-weight: 500; font-size: 13px;
  letter-spacing: 0.01em; color: var(--brass);
}
.cil-footer-links { display: flex; gap: 28px; }
.cil-footer a { color: var(--brass); text-decoration: none; }
.cil-footer a:hover { color: var(--brass-hover); }
.cil-footer-rule { width: 32px; height: 0.5px; background: rgba(166, 138, 79, 0.4); margin: 16px 0; }
.cil-disclaimer {
  font-family: "Inter", sans-serif; font-style: italic; font-weight: 400;
  font-size: 11px; line-height: 1.7; color: rgba(247, 243, 232, 0.62);
  max-width: 720px; margin: 0;
}

/* =============================================================== mobile === */
@media (max-width: 768px) {
  .cil-wrap        { padding-inline: 24px; }
  /* reading columns aren't inside .cil-wrap, so give them their own gutter on
     narrow screens (otherwise body text runs edge-to-edge) */
  .cil-readcol     { padding-inline: 24px; }
  .cil-hero        { padding: 72px 0 64px; }
  .cil-wordmark    { font-size: 44px; letter-spacing: 0.06em; }
  .cil-page-h1     { font-size: 30px; }
  .cil-h2          { font-size: 24px; }
  .cil-standfirst  { font-size: 23px; }
  .cil-pagehero    { padding: 64px 0 36px; }
  .cil-cardgrid    { grid-template-columns: 1fr; gap: 30px; margin-top: 48px; }
  .cil-about-row   { grid-template-columns: 1fr; gap: 28px; justify-items: center; }
  .cil-portrait    { margin-inline: auto; }
  /* stack the masthead so the wordmark doesn't wrap mid-name beside the nav */
  .cil-masthead-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cil-nav         { gap: 26px; }
}
@media (max-width: 480px) {
  .cil-dropcap { font-size: 46px; }
}
