/* Venture Intelligence News
   Hand-written, no framework, no external requests. Light + dark via prefers-color-scheme. */

/* ---------- tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #15171c;
  --ink-2: #444a55;
  --muted: #666d7a;
  --line: #e4e1d9;
  --line-strong: #cfcbc0;
  --brand: #a07924;
  --brand-ink: #7a5a12;
  --brand-soft: #f5edd8;
  --nav-bg: #14161c;
  --nav-ink: #e9eaee;
  --focus: #1f5fbf;
  --accent: var(--brand);
  --accent-text: color-mix(in srgb, var(--accent) 78%, var(--ink));
  --shadow: 0 1px 2px rgb(20 22 28 / .05), 0 8px 24px -12px rgb(20 22 28 / .18);
  --radius: 12px;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014;
    --surface: #161920;
    --ink: #eceef3;
    --ink-2: #b9bfcb;
    --muted: #8f97a6;
    --line: #262b35;
    --line-strong: #363c49;
    --brand: #d6a93e;
    --brand-ink: #e4bb58;
    --brand-soft: #2a2412;
    --nav-bg: #0a0b0e;
    --focus: #6aa3ff;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px -12px rgb(0 0 0 / .6);
  }
}

/* per-section accent */
.c-private-equity { --accent: #a07924; }
.c-ma             { --accent: #0f766e; }
.c-debt           { --accent: #2f5bd0; }
.c-real-estate    { --accent: #b4532a; }
.c-public-market  { --accent: #6a3fc4; }
.c-others         { --accent: #566170; }
@media (prefers-color-scheme: dark) {
  .c-private-equity { --accent: #d6a93e; }
  .c-ma             { --accent: #34b3a6; }
  .c-debt           { --accent: #7d9cf5; }
  .c-real-estate    { --accent: #ee8a5e; }
  .c-public-market  { --accent: #a98af0; }
  .c-others         { --accent: #9aa6b6; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-text); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 32px; padding-bottom: 64px; min-height: 60vh; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.utility { background: var(--nav-bg); color: var(--nav-ink); font-size: 13px; }
.utility-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.utility .today { color: #a9afbb; }
.utility nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.utility a { color: var(--nav-ink); text-decoration: none; }
.utility a:hover { color: #e4bb58; }
.btn-trial { background: var(--brand); color: #fff !important; padding: 3px 12px; border-radius: 999px; font-weight: 600; }
.btn-trial:hover { background: #b88a2c; }

.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead-in { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { height: 40px; width: auto; }
.brand-tag { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); border-left: 1px solid var(--line-strong); padding-left: 12px; }

.sections { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.sections-in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.sections-in::-webkit-scrollbar { display: none; }
.sections a { flex: none; padding: 13px 16px 11px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; border-bottom: 3px solid transparent; transition: color .15s, border-color .15s; }
.sections a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.sections a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent, var(--brand)); }

/* ---------- search ---------- */
.search { position: relative; display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 4px 4px 16px; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.search-ico { color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; padding: 8px 10px; outline: none; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search button { flex: none; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: 600 14px/1 var(--sans); padding: 10px 18px; cursor: pointer; transition: background-color .15s; }
.search button:hover { background: var(--brand-ink); color: #fff; }
.search--header { width: min(480px, 100%); }
.search--page { max-width: 640px; margin-top: 18px; background: var(--surface); }

/* ---------- typography blocks ---------- */
.block-title { font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.kicker { font: 700 11.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.kicker-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pill { display: inline-block; font: 700 11.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: #fff; background: var(--accent); padding: 6px 11px; border-radius: 999px; transition: filter .15s; }
.pill:hover { color: #fff; filter: brightness(1.12); }
time, .story-meta { color: var(--muted); font-size: 13px; }
mark { background: color-mix(in srgb, var(--brand) 28%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- home ---------- */
.top { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.lead { border-top: 4px solid var(--accent); padding-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.lead-title { font: 700 clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem)/1.12 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.lead-title a { color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .25s ease; }
.lead-title a:hover { background-size: 100% 2px; }
.lead-excerpt { font-size: 1.1rem; line-height: 1.65; color: var(--ink-2); max-width: 62ch; }
.lead-more { font-weight: 600; font-size: 15px; text-decoration: none; color: var(--accent-text); }
.lead-more:hover { text-decoration: underline; }

.latest { align-self: start; }
.headline-list li { display: grid; gap: 3px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.headline-list a { color: var(--ink); font: 600 1.02rem/1.4 var(--serif); text-decoration: none; transition: color .15s; }
.headline-list a:hover { color: var(--accent-text); text-decoration: underline; }

.band { margin-bottom: 44px; }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--line); position: relative; }
.band-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 3px; background: var(--accent); border-radius: 3px; }
.band-head h2 { font: 700 1.35rem/1.2 var(--serif); }
.band-head h2 a { color: var(--ink); text-decoration: none; }
.band-more { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--accent-text); }
.band-more:hover { text-decoration: underline; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.story { display: flex; flex-direction: column; gap: 8px; }
.cards .story { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.cards .story:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.story-title { font: 700 1.12rem/1.35 var(--serif); }
.story-title a { color: var(--ink); text-decoration: none; }
.story-title a:hover { color: var(--accent-text); text-decoration: underline; }
.story-excerpt { color: var(--ink-2); font-size: .95rem; line-height: 1.6; }
.story-meta { margin-top: auto; padding-top: 4px; }

/* ---------- list / search / tag pages ---------- */
.page-head { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.page-head h1 { font: 700 clamp(1.8rem, 1.2rem + 2vw, 2.6rem)/1.15 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.page-head[class*="c-"] h1 { border-left: 5px solid var(--accent); padding-left: 14px; }
.eyebrow { font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
.intro { color: var(--ink-2); max-width: 70ch; margin-top: 12px; }
.result-count { margin-top: 14px; color: var(--muted); font-size: 14px; }
.crumbs { margin-bottom: 14px; font-size: 13px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.stream .story { padding: 22px 0; border-bottom: 1px solid var(--line); }
.stream .story:first-child { padding-top: 0; }
.stream .story-title { font-size: 1.28rem; }
.empty { padding: 28px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-2); }
.empty p + p, .empty .chips { margin-top: 10px; }

.sidebar { position: sticky; top: 76px; display: grid; gap: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.panel-title { font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.section-list li a { display: flex; align-items: center; gap: 10px; padding: 9px 0; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--line); }
.section-list li:last-child a { border-bottom: 0; }
.section-list a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.section-list a:hover, .section-list a[aria-current="page"] { color: var(--accent-text); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; font-size: 14px; color: var(--muted); }
.pager-btn { padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
a.pager-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager-btn.is-off { opacity: .4; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 7px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; transition: border-color .15s, color .15s; }
.chips a:hover { border-color: var(--brand); color: var(--brand-ink); }

/* ---------- article ---------- */
.article { max-width: 740px; margin: 0 auto; }
.article-head { margin-bottom: 28px; }
.article-head h1 { font: 700 clamp(1.9rem, 1.3rem + 2.3vw, 2.8rem)/1.15 var(--serif); letter-spacing: -.015em; margin: 16px 0 14px; text-wrap: balance; }
.byline { color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.sources, .tags, .share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; }
.sources > span, .tags > span, .share > span { font: 700 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.sources a, .tags a, .share a { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 4px 13px; text-decoration: none; font-weight: 600; font-size: 13.5px; transition: border-color .15s, color .15s; }
.sources a:hover, .tags a:hover, .share a:hover { border-color: var(--brand); color: var(--brand-ink); }
.sources a::after { content: " ↗"; font-weight: 400; }

.prose { font: 1.15rem/1.8 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose p + p { margin-top: 1.1em; }
.prose a { color: var(--brand-ink); }
.prose img { border-radius: 8px; }
.prose ul, .prose ol { padding-left: 1.4em; list-style: revert; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: var(--ink-2); }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font: .95rem/1.5 var(--sans); }
.prose th, .prose td { border: 1px solid var(--line-strong); padding: 8px 12px; text-align: left; }
.vidb { margin-top: 24px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 1rem; }
.website { margin-top: 26px; }
.tags, .share { margin-top: 24px; }
.share { padding-top: 20px; border-top: 1px solid var(--line); }

.related { max-width: 740px; margin: 56px auto 0; }
.related .headline-list li { grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px; }

.btn { display: inline-block; background: var(--ink); color: var(--bg); padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color .15s, color .15s; }
.btn:hover { background: var(--brand-ink); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); padding: 9px 20px; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }

.cta { max-width: 740px; margin: 48px auto 0; padding: 26px 28px; border-radius: var(--radius); background: var(--nav-bg); color: var(--nav-ink); display: grid; gap: 8px; justify-items: start; }
.cta h2 { font: 700 1.25rem/1.3 var(--serif); }
.cta p { color: #b9bfcb; }
.cta .btn { background: var(--brand); color: #fff; margin-top: 8px; }
.cta .btn:hover { background: #b88a2c; }
.sidebar .cta { margin: 0; max-width: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--nav-bg); color: #b9bfcb; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-top: 44px; padding-bottom: 36px; }
.footer-brand p { margin-top: 14px; line-height: 1.7; }
.site-footer h2 { font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: #d4d8e0; text-decoration: none; }
.site-footer a:hover { color: #e4bb58; text-decoration: underline; }
.copy { padding-top: 18px; padding-bottom: 22px; border-top: 1px solid #262a33; font-size: 13px; color: #8f97a6; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .top { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .utility .today { display: none; }
  .utility-in { justify-content: flex-end; }
  .utility nav a:not(.btn-trial):nth-child(n+3) { display: none; }
  .masthead-in { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .brand img { height: 34px; }
  .search--header { width: 100%; }
  .search button { padding: 10px 14px; }
  .cards { grid-template-columns: 1fr; }
  .band-head { align-items: center; }
  .prose { font-size: 1.08rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .pager-info { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media print {
  .utility, .masthead, .sections, .site-footer, .cta, .share, .related, .sidebar, .search { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { font-size: 12pt; }
}
