/* ============================================================
   Evidensity — brand stylesheet (single source of truth)
   Warm ivory · ink · oxblood.  Spectral / Inter / JetBrains Mono.
   Linked by every page as /evidensity-reports/assets/evidensity.css
   ============================================================ */

:root {
  /* Surfaces — warm ivory */
  --bg: #fdfcf7; --bg-alt: #f8f5ec; --bg-sunk: #f2ede0; --bg-card: #fffefb;
  /* Ink */
  --text-strong: #0e0e0e; --text: #1a1a1a; --text-dim: #6b6b6b; --text-faint: #a8a29a;
  --text-secondary: #6b6b6b; --text-muted: #a8a29a; /* aliases used in some markup */
  /* Rules */
  --border: #d8d2c4; --border-hair: #e8e2d4;
  /* Accent — oxblood */
  --accent: #7a1f1f; --accent-hover: #5e1515; --accent-fill: #faf0ee; --accent-light: #7a1f1f;
  --accent-bg: rgba(122, 31, 31, 0.06);
  /* Semantic accents */
  --green: #2d4a2d; --green-bg: rgba(45, 74, 45, 0.06);
  --amber: #8a6a1f; --amber-bg: rgba(138, 106, 31, 0.06);
  /* Shape */
  --radius: 2px;
  /* Typography */
  --serif: 'Spectral', 'Hoefler Text', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:  'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}

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

body {
  font-family: var(--serif);
  max-width: 960px; margin: 0 auto; padding: 0 28px;
  color: var(--text); line-height: 1.7; font-size: 17px;
  background: var(--bg); -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 180ms cubic-bezier(0.2,0,0.2,1); }
a:hover { color: var(--accent-hover); }

/* ---- Headings ---- */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--text-strong); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }

/* ---- Nav (standard wordmark bar) ---- */
nav { display: flex; gap: 28px; align-items: center; padding: 22px 0 20px; border-bottom: 1px solid var(--border-hair); margin-bottom: 48px; flex-wrap: wrap; }
nav .wordmark { margin-right: auto; display: inline-flex; align-items: center; }
nav .wordmark svg { height: 40px; width: auto; display: block; }
nav a { font-family: var(--sans); font-size: 14px; color: var(--text-dim); }
nav a:hover { color: var(--text-strong); }

/* ---- Hero ---- */
.hero { padding: 64px 0 48px; }
.hero .kicker { font-family: var(--mono); font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 24px; max-width: 860px; color: var(--text-strong); }
.hero h1 em { font-style: italic; font-weight: 500; }
.hero p.sub { font-family: var(--serif); font-size: 19px; color: var(--text-dim); line-height: 1.5; max-width: 620px; margin-bottom: 36px; }

/* ---- Call to action ---- */
.cta { display: inline-block; padding: 14px 28px; background: var(--accent); color: var(--bg); font-family: var(--sans); font-size: 15px; font-weight: 500; border-radius: 2px; transition: background 180ms cubic-bezier(0.2,0,0.2,1); }
.cta:hover { background: var(--accent-hover); color: var(--bg); }
.cta-ghost { display: inline-block; margin-left: 20px; padding: 14px 0; color: var(--text-strong); font-family: var(--sans); font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--text-strong); }
.cta-ghost:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---- Section ---- */
.section { margin: 56px 0; }
.section h2 { font-family: var(--serif); font-size: 1.65rem; color: var(--text-strong); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); font-weight: 500; }
.section p { margin: 0.85em 0; }
.section-label { font-family: var(--mono); font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.section .label { font-family: var(--mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; }

/* ---- Grid + Card ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.card { background: var(--bg); border: 1px solid var(--border-hair); padding: 22px 24px; transition: border-color 180ms cubic-bezier(0.2,0,0.2,1); }
.card:hover { border-color: var(--border); }
.card h3 { font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; margin-bottom: 10px; font-weight: 500; }
.card h3 a { color: var(--text-strong); }
.card h3 a:hover { color: var(--accent); }
.card p { font-family: var(--serif); font-size: 15px; color: var(--text-dim); line-height: 1.55; margin: 0; }
.card-accent { border-left: 3px solid var(--accent); }
.card-green  { border-left: 3px solid var(--green); }
.card-amber  { border-left: 3px solid var(--amber); }

/* ---- Badge / preset-name ---- */
.badge { display: inline-block; font-family: var(--mono); font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 10px; }
.preset-name { font-family: var(--sans) !important; font-size: 12px !important; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500 !important; color: var(--text-strong) !important; }

/* ---- Tables ---- */
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--border-hair); font-family: var(--serif); font-size: 15px; }
th { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); font-weight: 500; border-bottom-color: var(--border); }
.highlight-row { background: var(--accent-bg); }
.check { color: var(--green); font-weight: 600; }
.cross { color: var(--text-muted); }

/* ---- Tags / pills ---- */
.tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; }
.tag-accent { background: var(--accent-bg); color: var(--accent); }
.tag-green  { background: var(--green-bg);  color: var(--green); }
.tag-amber  { background: var(--amber-bg);  color: var(--amber); }

/* ---- Subtitle (lead paragraph) ---- */
.subtitle { font-family: var(--serif); font-size: 1.2rem; color: var(--text-dim); max-width: 680px; line-height: 1.6; }

/* ---- Stat blocks ---- */
.stat { text-align: center; padding: 28px 16px; }
.stat-value { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; letter-spacing: -0.02em; color: var(--accent); }
.stat-label { font-family: var(--sans); font-size: 0.8rem; color: var(--text-dim); margin-top: 6px; }
.stat-detail { font-family: var(--sans); font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }

/* ---- Flow / pipeline ---- */
.flow { display: flex; align-items: stretch; gap: 0; margin-top: 32px; flex-wrap: wrap; }
.flow-step { flex: 1; min-width: 120px; padding: 18px 14px; background: var(--bg-alt); border: 1px solid var(--border); text-align: center; }
.flow-step .num { font-family: var(--sans); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 6px; }
.flow-step .title { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; margin-bottom: 3px; }
.flow-step .detail { font-family: var(--sans); font-size: 0.7rem; color: var(--text-dim); }
.flow-arrow { display: flex; align-items: center; color: var(--accent); font-size: 1.1rem; padding: 0 6px; }

/* ---- Quote / callout ---- */
.quote { border-left: 3px solid var(--accent); padding: 16px 24px; background: var(--accent-fill); margin-top: 24px; font-size: 1rem; color: var(--text); line-height: 1.7; }

/* ---- Lists ---- */
.list { list-style: none; margin-top: 14px; }
.list li { padding: 9px 0; font-size: 0.9rem; display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid var(--border-hair); }
.list li:last-child { border-bottom: none; }
.bullet { color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ---- Slides — normalised to on-brand scrolling sections (no gradients, no full-viewport) ---- */
.slide { padding: 56px 0; border-bottom: 1px solid var(--border-hair); position: relative; }
.slide:last-of-type { border-bottom: none; }
.slide-number { position: absolute; bottom: 12px; right: 0; font-family: var(--mono); font-size: 0.7rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.slide h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; color: var(--accent); margin-bottom: 20px; }
.slide h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px; color: var(--text-strong); }
.slide h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; color: var(--text-strong); }
.slide-title { padding-top: 24px; }
.slide-cta { text-align: center; }

/* ---- Operating principles (about) ---- */
.principles { list-style: none; margin: 16px 0 0; padding: 0; }
.principles li { padding: 16px 0; border-bottom: 1px solid var(--border-hair); display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; }
.principles li:last-child { border-bottom: none; }
.principles .stamp { font-family: var(--serif); font-weight: 600; color: var(--accent); font-size: 22px; line-height: 1; padding-top: 2px; }
.principles .body { font-family: var(--serif); font-size: 16px; color: var(--text); line-height: 1.55; }
.principles .body strong { color: var(--text-strong); font-weight: 600; }

/* ---- FAQ accordion ---- */
details { border-bottom: 1px solid var(--border-hair); }
details summary { padding: 16px 0; font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--text-strong); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font-family: var(--sans); font-size: 18px; color: var(--text-dim); font-weight: 400; flex-shrink: 0; margin-left: 16px; transition: transform 200ms ease; }
details[open] summary::after { content: '\2212'; }
details .answer { padding: 0 0 20px; font-size: 15px; color: var(--text-dim); line-height: 1.65; max-width: 640px; }

/* ---- Footer ---- */
.footer { margin-top: 80px; padding: 28px 0; border-top: 1px solid var(--border-hair); text-align: center; font-family: var(--mono); font-size: 12px; color: var(--text-faint); letter-spacing: 0.06em; text-transform: uppercase; }
.footer .stamp { font-family: var(--serif); font-weight: 600; color: var(--accent); font-size: 34px; margin-right: 14px; vertical-align: -7px; line-height: 1; }
.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--text-strong); }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); justify-content: center; }
}
@media (max-width: 600px) {
  .grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero p.sub { font-size: 17px; }
}
