/* ============================================================
   AI STRATEGY ADVISORS — Website / HTML stylesheet
   Self-contained. Drop-in: <link rel="stylesheet" href="site.css">
   All design tokens + editorial component classes in one file.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,300;1,9..144,400&family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- Brand palette --------------------------------------
     The system leans on a warm editorial paper base + deep navy
     (from the logo) + rust/terracotta accent (from the Curbell
     analysis) + ochre secondary. Forest green & deep red are
     reserved for quantitative good/bad only — never decorative. */

  /* Ink & paper (primary neutrals) */
  --paper:      #faf7f2;   /* dominant background — warm off-white */
  --paper-2:    #f2ede3;   /* card/surface tint */
  --paper-3:    #e8e2d4;   /* muted surface, dividers */
  --ink:        #1a1a1a;   /* body text, primary strokes */
  --ink-2:      #2a2a2a;   /* rules, heavier borders */
  --muted:      #6b6359;   /* secondary text, captions, mono meta */
  --soft:       #e8e2d4;   /* hairlines, table dividers */

  /* Brand color — navy from the logo mark */
  --navy:       #1e3a5f;   /* primary brand, logo mark */
  --navy-deep:  #142a46;   /* hover / pressed state */
  --navy-soft:  #dfe4ec;   /* tinted surface */

  /* Editorial accent — rust/terracotta, pulls from logo dot */
  --accent:       #b8461e; /* rust — links, pullquotes, italic accents */
  --accent-hover: #9b3816; /* press state */
  --accent-soft:  #f1dcd1; /* tinted surface */
  --ochre:        #d4a017; /* secondary accent — highlights, 2nd data series */
  --ochre-soft:   #f4e6bf;

  /* Semantic (data only — positive/negative, not UI state) */
  --pos:        #2d5a3d;   /* forest green — good deltas */
  --pos-soft:   #dbe7df;
  --neg:        #8b2323;   /* deep red — bad deltas */
  --neg-soft:   #ecd6d6;

  /* ---- Typography ----------------------------------------- */
  --font-serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-sans:  'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Semantic type tokens — use these, not raw families */
  --type-display:  400 clamp(44px, 6.5vw, 88px)/0.95 var(--font-serif);
  --type-h1:       400 clamp(36px, 4.4vw, 56px)/1.02 var(--font-serif);
  --type-h2:       400 clamp(30px, 3.6vw, 44px)/1.05 var(--font-serif);
  --type-h3:       500 24px/1.2 var(--font-serif);
  --type-h4:       500 19px/1.25 var(--font-serif);
  --type-lede:     300 19px/1.5 var(--font-serif);
  --type-body:     400 15.5px/1.65 var(--font-sans);
  --type-body-sm:  400 13.5px/1.55 var(--font-sans);
  --type-caption:  400 12px/1.45 var(--font-sans);
  --type-mono:     500 10.5px/1.4 var(--font-mono);
  --type-kicker:   500 10.5px/1.4 var(--font-mono); /* uppercase label, 0.22em letter-spacing */

  /* ---- Spacing scale (4px base) --------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* ---- Radii ---------------------------------------------- */
  --r-0: 0;      /* default — we are an editorial brand, sharp corners */
  --r-sm: 2px;   /* pills, small chips only */
  --r-md: 4px;   /* inputs */
  --r-pill: 999px;

  /* ---- Borders & rules ----------------------------------- */
  --rule-hair:  1px solid var(--soft);
  --rule-soft:  1px solid var(--paper-3);
  --rule-ink:   1px solid var(--ink);
  --rule-ink-2: 2px solid var(--ink);

  /* ---- Elevation — we use rules + tinted surfaces, not shadow.
     Keep shadows for floating overlays only. --------------- */
  --shadow-pop: 0 1px 2px rgba(26,26,26,0.06), 0 8px 24px rgba(26,26,26,0.08);
  --shadow-menu: 0 2px 8px rgba(26,26,26,0.1), 0 16px 40px rgba(26,26,26,0.12);

  /* ---- Motion -------------------------------------------- */
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-subtle:   cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:   140ms;
  --dur-med:    240ms;
  --dur-slow:   600ms;

  /* ---- Grain overlay (drafting-paper texture) ------------ */
  --grain-url: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Website UI kit — editorial briefing surface.
   Imports the root tokens and adds kit-specific component CSS. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
.grain {
  pointer-events: none; position: fixed; inset: 0; opacity: 0.04;
  mix-blend-mode: multiply; z-index: 1;
  background-image: var(--grain-url);
}
.wrap {
  max-width: 1180px; margin: 0 auto;
  padding: 60px 56px 120px; position: relative; z-index: 2;
}

/* Masthead */
.masthead {
  border-bottom: 2px solid var(--ink); padding-bottom: 22px; margin-bottom: 48px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: end;
}
.mast-left, .mast-right, .mast-center {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.mast-center { text-align: center; }
.mast-right { text-align: right; }
.kicker {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
h1.hero {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(44px, 6.5vw, 88px); line-height: 0.95;
  letter-spacing: -0.02em; margin: 0.2em 0 0.3em;
}
h1.hero em { font-style: italic; font-weight: 300; color: var(--accent); }
.dek {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45;
  max-width: 820px; margin-bottom: 20px;
}
.byline {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 60px; padding-bottom: 20px; border-bottom: 1px solid var(--soft);
}

/* TOC */
.toc {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 24px 0 48px; padding: 20px 0;
  border-top: 1px solid var(--soft); border-bottom: 1px solid var(--soft);
}
.toc a {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  padding: 6px 12px; border: 1px solid var(--soft);
  transition: all 200ms var(--ease-subtle);
}
.toc a:hover { color: var(--accent); border-color: var(--accent); }

/* Section */
.section { margin: 72px 0; scroll-margin-top: 20px; }
.section-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px; display: flex; align-items: center; gap: 14px;
}
.section-label::before { content: ''; width: 32px; height: 1px; background: var(--accent); }
h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05;
  letter-spacing: -0.015em; margin-bottom: 16px; max-width: 900px;
}
h2 em { font-style: italic; color: var(--accent); }
.lede {
  font-family: var(--font-serif); font-weight: 300; font-size: 19px;
  line-height: 1.5; max-width: 780px; margin-bottom: 28px;
}
p.body { font-size: 15.5px; line-height: 1.65; margin-bottom: 16px; max-width: 740px; }
p.body strong { font-weight: 600; }
.drop-cap::first-letter {
  font-family: var(--font-serif); float: left; font-size: 68px;
  font-weight: 300; line-height: 0.85; padding-right: 10px; padding-top: 6px;
  color: var(--accent); font-style: italic;
}

/* Exec summary */
.exec-summary {
  background: var(--paper-2); border-left: 4px solid var(--accent);
  padding: 32px 36px; margin: 40px 0; position: relative;
}
.exec-summary.exec-pos { border-left-color: var(--pos); }
.exec-summary.exec-pos .exec-label { color: var(--pos); }
.exec-summary::before {
  content: '¶'; font-family: var(--font-serif); position: absolute;
  top: 18px; right: 24px; font-size: 32px; color: var(--accent); opacity: 0.35;
}
.exec-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.exec-summary h3 {
  font-family: var(--font-serif); font-weight: 400; font-size: 26px;
  line-height: 1.15; margin-bottom: 14px; letter-spacing: -0.01em;
}
.exec-summary p { font-size: 15.5px; line-height: 1.6; }

/* Findings strip */
.findings {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  margin: 36px 0;
}
.finding { padding: 24px 22px 22px; border-right: 1px solid var(--soft); }
.finding:last-child { border-right: none; }
.finding .num {
  font-family: var(--font-serif); font-weight: 300; font-size: 38px;
  line-height: 1; color: var(--accent); letter-spacing: -0.02em;
  margin-bottom: 10px; display: block;
}
.finding .sub {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.finding .label { font-size: 13px; line-height: 1.4; font-weight: 500; }

/* Bar chart */
.bar-chart { margin: 32px 0; }
.bar-row {
  display: grid; grid-template-columns: 220px 1fr 120px;
  align-items: center; gap: 16px; padding: 10px 0;
  border-bottom: 1px solid var(--soft);
}
.bar-row:last-child { border-bottom: none; }
.bar-label { font-size: 13.5px; font-weight: 500; }
.bar-label .sub {
  display: block; font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); margin-top: 2px; letter-spacing: 0.1em;
}
.bar-track { position: relative; height: 28px; background: var(--soft); }
.bar-fill {
  position: absolute; top: 0; bottom: 0; left: 0; background: var(--ink);
  transition: width 600ms var(--ease-standard);
}
.bar-fill.rust { background: var(--accent); }
.bar-fill.green { background: var(--pos); }
.bar-fill.ochre { background: var(--ochre); }
.bar-fill.red { background: var(--neg); }
.bar-value {
  font-family: var(--font-mono); font-size: 12px;
  font-variant-numeric: tabular-nums; text-align: right; font-weight: 500;
}

/* Two-col */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 30px 0; }
.callout-box {
  background: var(--paper-2); padding: 24px 26px;
  border-top: 2px solid var(--accent);
}
.callout-box.callout-pos { border-top-color: var(--pos); }
.callout-box.callout-neg { border-top-color: var(--neg); }
.callout-box h4 {
  font-family: var(--font-serif); font-weight: 500; font-size: 19px;
  margin-bottom: 10px; line-height: 1.2;
}
.callout-box .kpi {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.callout-box .c-body { font-size: 14px; margin-bottom: 14px; line-height: 1.55; }
.callout-box ul { list-style: none; padding: 0; }
.callout-box li {
  padding: 6px 0; border-bottom: 1px solid var(--soft);
  font-size: 13.5px; display: flex; justify-content: space-between; gap: 12px;
}
.callout-box li:last-child { border-bottom: none; }
.callout-box li .num {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 500;
}
.callout-box li .num.pos { color: var(--pos); }
.callout-box li .num.neg { color: var(--neg); }

/* Table */
.tbl-wrap { margin: 24px 0 20px; overflow-x: auto; }
table.editorial { width: 100%; border-collapse: collapse; font-size: 13px; }
table.editorial th {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
  text-align: left; padding: 12px 14px 10px; border-bottom: 2px solid var(--ink);
}
table.editorial th.num, table.editorial td.num {
  text-align: right; font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}
table.editorial td {
  padding: 13px 14px; border-bottom: 1px solid var(--soft); vertical-align: top;
}
table.editorial tr:hover td { background: rgba(184, 70, 30, 0.03); }
table.editorial td.pos { color: var(--pos); font-weight: 500; }
table.editorial td.neg { color: var(--neg); font-weight: 500; }
/* .zebra — alternating row shading for longer lists */
table.editorial.zebra tbody tr:nth-child(odd) td { background: rgba(26,26,26,0.025); }
table.editorial.zebra tbody tr:hover td { background: rgba(184,70,30,0.05); }
table.editorial.zebra td { border-bottom: none; }
table.editorial.zebra tbody tr:last-child td { border-bottom: 1px solid var(--ink); }

/* Pull */
.pull {
  margin: 56px 0; padding: 40px 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  text-align: center;
}
.pull blockquote {
  font-family: var(--font-serif); font-weight: 300; font-style: italic;
  font-size: clamp(24px, 3.2vw, 34px); line-height: 1.25;
  max-width: 900px; margin: 0 auto; letter-spacing: -0.01em;
}
.pull blockquote em { color: var(--accent); font-style: italic; }
.pull .attrib {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); margin-top: 20px;
}

/* Pills */
.pill {
  display: inline-block; padding: 2px 8px; font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 2px; font-weight: 500;
}
.pill-rev { background: rgba(45,90,61,0.12); color: var(--pos); }
.pill-eff { background: rgba(212,160,23,0.18); color: #8a6a0a; }
.pill-risk { background: rgba(107,99,89,0.2); color: var(--muted); }
.pill-pkg { background: rgba(184,70,30,0.1); color: var(--accent); }
.pill-llm { background: rgba(45,90,61,0.1); color: var(--pos); }
.pill-rep { background: rgba(107,99,89,0.12); color: var(--muted); }
.pill-train { background: rgba(139,35,35,0.1); color: var(--neg); }

/* Buttons */
.btn {
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500;
  padding: 11px 20px; border: 1.5px solid transparent; background: transparent;
  cursor: pointer; letter-spacing: 0.02em;
  transition: all 140ms var(--ease-subtle); border-radius: 0;
}
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-secondary { color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-accent { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost {
  color: var(--accent); border-color: transparent;
  padding-left: 0; padding-right: 0; text-decoration: underline;
  text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.btn-sm { padding: 7px 14px; font-size: 12px; }

/* Rubric */
.rubric { margin: 48px 0; border: 2px solid var(--ink); background: var(--paper); }
.rubric-head {
  background: var(--ink); color: var(--paper); padding: 22px 32px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.rubric-head h3 {
  font-family: var(--font-serif); font-weight: 400; font-size: 26px;
  letter-spacing: -0.01em;
}
.rubric-head .tag {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ochre);
}
.rubric-row {
  display: grid; grid-template-columns: 72px 220px 1fr 160px;
  border-bottom: 1px solid var(--soft); align-items: stretch;
}
.rubric-row:last-child { border-bottom: none; }
.rubric-row .idx {
  font-family: var(--font-serif); font-style: italic; font-size: 38px;
  font-weight: 300; color: var(--accent); text-align: center;
  padding: 24px 0 0; border-right: 1px solid var(--soft);
}
.rubric-row .q {
  padding: 24px 22px; border-right: 1px solid var(--soft);
  font-family: var(--font-serif); font-weight: 500; font-size: 17px; line-height: 1.25;
}
.rubric-row .a {
  padding: 24px 24px; font-size: 14.5px; line-height: 1.55;
  border-right: 1px solid var(--soft);
}
.rubric-row .flag {
  padding: 24px 20px; display: flex; flex-direction: column; justify-content: center;
}
.rubric-row .flag .green {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--pos); font-weight: 600; margin-bottom: 6px;
}
.rubric-row .flag .red {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--neg); font-weight: 600;
}
.rubric-row .flag .note {
  font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4;
}

/* Caveat */
.caveat {
  background: var(--paper); border: 1px dashed var(--muted);
  padding: 22px 28px; margin: 32px 0;
  font-size: 13.5px; line-height: 1.55; color: var(--muted); max-width: 820px;
}
.caveat strong { color: var(--ink); font-weight: 600; }

/* Footer */
footer {
  margin-top: 100px; padding-top: 32px; border-top: 2px solid var(--ink);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}

/* Nav (site header) */
.site-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0 28px; border-bottom: 1px solid var(--soft); margin-bottom: 40px;
}
.site-nav .brand { display: flex; align-items: center; gap: 12px; }
.site-nav .brand img { height: 28px; }
.site-nav .links { display: flex; gap: 24px; }
.site-nav .links a {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  transition: color 140ms;
}
.site-nav .links a:hover, .site-nav .links a.active { color: var(--accent); }
