/* ═══════════════════════════════════════════════════════════════
   MakeMoneyMarkets — Homepage v2 ("research publication")
   Loaded ONLY by docs/index.html. Shared nav.js styles untouched.
   Palette: existing brand colors + tonal variants only.
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root, [data-theme="light"] {
  --bg: #F5F0EB;            /* paper */
  --bg-deep: #EDE6DC;       /* deeper paper band */
  --surface: #FBF8F4;       /* raised paper */
  --ink: #2C1F15;
  --text: #2C1F15;
  --text2: #54443A;
  --text-muted: #6E5E4C;    /* AA on paper */
  --accent: #7A5C11;
  --accent-ink: #5C4509;
  --rule: #D6C9B8;          /* hairline */
  --rule-strong: #2C1F15;
  --rule-gold: rgba(122,92,17,.55);
  --shadow: 0 1px 2px rgba(44,31,21,.06), 0 12px 32px -12px rgba(44,31,21,.18);
  /* navy slip (subscription panel) sits on paper in light theme */
  --slip-bg: #141A36;
  --slip-bg-2: #0F1128;
  --slip-text: #E8E8EC;
  --slip-text2: #A9B1C6;
  --slip-accent: #E8B830;
  --slip-rule: #2D3F62;

  --serif: 'Newsreader', 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  --wrap: 1200px;
  --gutter: 24px;
  --nav-h: 52px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0F1128;            /* base navy */
  --bg-deep: #0B0D20;       /* deeper navy band */
  --surface: #151B37;       /* raised navy layer */
  --ink: #F1EFEA;
  --text: #E4E4EA;
  --text2: #A9B1C6;
  --text-muted: #8590AE;    /* AA on navy */
  --accent: #E8B830;
  --accent-ink: #E8B830;
  --rule: #2D3F62;
  --rule-strong: #4A5C82;
  --rule-gold: rgba(232,184,48,.45);
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 24px 48px -20px rgba(0,0,0,.65);
  --slip-bg: #151B37;
  --slip-bg-2: #1A2242;
  --slip-rule: #2D3F62;
  color-scheme: dark;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
body.home-v2 {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
.home-v2 a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.home-v2 a:hover { color: var(--accent-ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#main-content { padding-top: var(--nav-h); }
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── Type primitives ── */
.mono-label, .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.4;
}
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.eyebrow .sect { color: var(--accent); letter-spacing: .08em; }
.eyebrow .sect::after {
  content: ''; display: inline-block; width: 28px; height: 1px;
  background: var(--rule-gold); vertical-align: middle; margin-left: 12px;
}
.home-v2 h1, .home-v2 h2, .home-v2 h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  font-optical-sizing: auto;
}

/* ── Masthead ── */
.masthead { background: var(--bg); }
.masthead-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--rule);
}
.masthead-date { text-align: center; color: var(--text2); min-width: 18ch; }
.masthead-right { text-align: right; }
.masthead-title {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--rule-strong);
  position: relative;
}
.masthead-title::after { /* double rule, like a journal masthead */
  content: ''; position: absolute; left: 0; right: 0; bottom: -5px;
  height: 1px; background: var(--rule-strong);
}
.masthead-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.masthead-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--text2);
}

/* ── Hero: lead article + subscription slip on a 12-col grid ── */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
  padding-top: 88px;
  padding-bottom: 96px;
}
.hero-main { grid-column: 1 / span 7; padding-top: 8px; }
.hero h1 {
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 450;
  margin-bottom: 28px;
  max-width: 13ch;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero .sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text2);
  max-width: 34em;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-bottom: 36px; }
.home-v2 .mmm-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.home-v2 .mmm-cta-primary {
  padding: 15px 26px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 2px;
  box-shadow: var(--shadow);
}
.home-v2 .mmm-cta-primary:hover { background: var(--accent); border-color: var(--accent); color: #FBF8F4; }
[data-theme="dark"] body.home-v2 .mmm-cta-primary:hover { color: #0F1128; }
.home-v2 .mmm-cta-secondary {
  padding: 6px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-gold);
}
.home-v2 .mmm-cta-secondary:hover { color: var(--accent); border-bottom-color: var(--accent); }
.hero-meta {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .06em;
  color: var(--text-muted);
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  max-width: 40em;
}
.nowrap { white-space: nowrap; }

/* Subscription slip */
.signup {
  grid-column: 9 / span 4;
  position: relative;
  background: linear-gradient(180deg, var(--slip-bg-2), var(--slip-bg));
  color: var(--slip-text);
  padding: 36px 32px 30px;
  border: 1px solid var(--slip-rule);
  border-top: 2px solid var(--slip-accent);
  box-shadow: var(--shadow);
  margin-top: 8px;
}
.signup::before { /* inner hairline frame */
  content: ''; position: absolute; inset: 7px;
  border: 1px solid rgba(232,184,48,.14);
  pointer-events: none;
}
.signup .eyebrow { margin-bottom: 14px; color: var(--slip-text2); }
.signup .eyebrow-gold { color: var(--slip-accent); }
.signup h2 {
  color: #F1EFEA;
  font-size: 34px; line-height: 1.1; letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.signup .lede { font-size: 14.5px; color: var(--slip-text2); line-height: 1.6; margin-bottom: 22px; }
.home-v2 .signup .mmm-lead-form {
  display: flex; flex-direction: column; gap: 10px;
  max-width: none; margin: 0;
}
.home-v2 .signup .mmm-lead-form input[type="email"] {
  width: 100%; min-width: 0;
  padding: 14px 14px;
  font-family: var(--sans); font-size: 15px;
  background: rgba(11,13,32,.55);
  color: #F1EFEA;
  border: 1px solid #3A4D74;
  border-radius: 2px;
}
.home-v2 .signup .mmm-lead-form input[type="email"]::placeholder { color: #7F8AA6; }
.home-v2 .signup .mmm-lead-form input[type="email"]:focus { outline: none; border-color: var(--slip-accent); box-shadow: 0 0 0 3px rgba(232,184,48,.18); }
.home-v2 .signup .mmm-lead-form button {
  width: 100%;
  padding: 14px 20px;
  background: var(--slip-accent);
  color: #0F1128;
  border: 0; border-radius: 2px;
  font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .04em;
  cursor: pointer;
  transition: background-color .2s ease;
}
.home-v2 .signup .mmm-lead-form button:hover { background: #F0C64E; }
.home-v2 .signup .mmm-lead-form button:focus-visible { outline: 2px solid #F1EFEA; outline-offset: 2px; }
.home-v2 .signup .mmm-lead-msg { margin: 4px 0 0; border-radius: 2px; font-size: 13px; text-align: left; }
.signup .fine {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--slip-rule);
  font-size: 12.5px; line-height: 1.6; color: var(--slip-text2);
}
.signup .fine a { color: var(--slip-accent); }

/* ── Key figures band ── */
.figures { padding-bottom: 8px; }
.figures-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
}
.fig { padding: 26px 24px 28px; border-left: 1px solid var(--rule); display: flex; flex-direction: column-reverse; gap: 8px; }
.fig:first-child { border-left: 0; padding-left: 0; }
.fig dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.fig dd {
  font-family: var(--serif); font-weight: 400;
  font-size: 56px; line-height: 1; letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}

/* ── Editorial sections (head 4 col / body 8 col) ── */
.section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding-top: 112px;
}
.section-head { grid-column: 1 / span 4; padding-right: 24px; }
.section-body { grid-column: 5 / span 8; }
.section-head h2 {
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.06; letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.section-head .lede { font-size: 16px; color: var(--text2); line-height: 1.6; margin-bottom: 22px; max-width: 26em; }
.text-link {
  font-size: 14px; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--rule-gold); padding-bottom: 3px;
}
.text-link:hover { border-bottom-color: var(--accent); }

/* Figure 1: pipeline */
.pipeline {
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  padding: 34px 32px 18px;
  margin-bottom: 56px;
}
.pipeline svg { width: 100%; height: auto; display: block; overflow: visible; }
.p-axis { stroke: var(--rule-gold); stroke-width: 1; }
.p-stage circle { fill: var(--surface); stroke: var(--accent); stroke-width: 1.25; }
.p-final rect { fill: var(--accent); }
.p-num { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; fill: var(--accent); text-anchor: middle; }
.p-title { font-family: var(--serif); font-size: 19px; fill: var(--ink); text-anchor: middle; }
.p-note { font-family: var(--sans); font-size: 12px; fill: var(--text-muted); text-anchor: middle; }
.pv { text-anchor: start; }
.pipeline-v { display: none !important; }
.p-foot { font-family: var(--serif); font-style: italic; font-size: 14px; fill: var(--text2); }
.pipeline figcaption {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--text-muted);
  display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap;
}
.pipeline figcaption .mono-label { color: var(--accent); }

/* Numbered proofs */
.proof { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); column-gap: 32px; row-gap: 32px; }
.proof-item { border-top: 1px solid var(--rule-strong); padding-top: 18px; }
.proof-num { display: block; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--accent); margin-bottom: 10px; }
.proof-item h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 10px; }
.proof-item p { font-size: 14.5px; line-height: 1.65; color: var(--text2); }

/* ── Pull quote ── */
.pullquote { padding-top: 120px; }
.pullquote blockquote {
  max-width: 920px; margin: 0 auto; text-align: center;
  padding: 56px 0 50px;
  border-top: 1px solid var(--rule-gold);
  border-bottom: 1px solid var(--rule-gold);
  position: relative;
}
.pullquote blockquote::before { /* small centered diamond on the top rule */
  content: ''; position: absolute; top: -5px; left: 50%;
  width: 9px; height: 9px; background: var(--bg);
  border: 1px solid var(--accent); transform: translateX(-50%) rotate(45deg);
}
.pullquote p {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(30px, 3.8vw, 52px); line-height: 1.15; letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 22px;
}
.pullquote footer { color: var(--text-muted); }

/* ── Paths: table-of-contents rows ── */
.paths { border-top: 1px solid var(--rule-strong); }
.path-card {
  display: grid;
  grid-template-columns: 88px minmax(0,1fr) 40px;
  column-gap: 24px;
  align-items: start;
  padding: 30px 0 32px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background-color .25s ease, padding .25s ease;
}
.home-v2 a.path-card { text-decoration: none; color: inherit; }
.path-no { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--accent); padding-top: 10px; }
.path-card .tag { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.path-card h3 { font-size: 30px; line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 8px; transition: color .2s ease; }
.path-card p { font-size: 15px; line-height: 1.6; color: var(--text2); max-width: 38em; }
.path-card .arrow {
  justify-self: end; margin-top: 10px;
  font-size: 20px; color: var(--accent);
  transition: transform .25s ease;
}
.path-card:hover h3 { color: var(--accent); }
.path-card:hover .arrow { transform: translateX(4px); }
.path-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ── FAQ ── */
.faq .section-body { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 24px 0;
  font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-family: var(--mono); font-size: 18px; color: var(--accent);
  transition: transform .2s ease; flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 48px 26px 0; font-size: 15.5px; line-height: 1.7; color: var(--text2); max-width: 44em; }

/* ── Footer / colophon ── */
.site-footer {
  margin-top: 140px;
  background: var(--bg-deep);
  border-top: 1px solid var(--rule-strong);
  padding: 64px 0 40px;
  font-size: 14px; color: var(--text2);
}
.footer-top {
  display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter);
  padding-bottom: 40px; border-bottom: 1px solid var(--rule);
}
.footer-brand { grid-column: 1 / span 5; }
.footer-name { font-size: 26px; display: block; margin-bottom: 10px; }
.footer-brand p { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--text2); margin-bottom: 22px; }
.home-v2 .x-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; margin-bottom: 10px; }
.home-v2 .x-link:hover { color: var(--accent); }
.x-link svg { width: 15px; height: 15px; }
.footer-mail a { font-family: var(--mono); font-size: 12.5px; color: var(--text2); text-decoration: none; border-bottom: 1px solid var(--rule); }
.footer-mail a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.footer-nav { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.footer-nav .mono-label { margin-bottom: 14px; color: var(--accent); }
.footer-nav a { display: block; padding: 4px 0; color: var(--text2); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .risk {
  margin-top: 28px; max-width: 64em;
  font-size: 12.5px; line-height: 1.7; color: var(--text-muted);
}
.site-footer .risk strong { color: var(--text2); font-weight: 600; }
.copyright { margin-top: 22px; }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .hero-main { grid-column: 1 / span 7; }
  .signup { grid-column: 8 / span 5; }
  .section-head { grid-column: 1 / -1; padding-right: 0; margin-bottom: 40px; max-width: 640px; }
  .section-body { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .masthead-right { display: none; }
  .masthead-line { grid-template-columns: 1fr auto; }
  .masthead-date { text-align: right; }
  .hero { padding-top: 56px; padding-bottom: 72px; row-gap: 48px; }
  .hero-main, .signup { grid-column: 1 / -1; }
  .hero h1 { max-width: 14ch; }
  .figures-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fig:nth-child(3) { border-left: 0; padding-left: 0; }
  .fig:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .proof { grid-template-columns: 1fr; }
  .section { padding-top: 88px; }
  .pullquote { padding-top: 88px; }
  .footer-brand, .footer-nav { grid-column: 1 / -1; }
  .footer-brand { margin-bottom: 36px; }
}
@media (max-width: 768px) { :root { --nav-h: 48px; } }
@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .masthead-line { grid-template-columns: 1fr; gap: 4px; justify-items: center; }
  .masthead-line > span:first-child { display: none; }
  .masthead-date { text-align: center; }
  .masthead-name { font-size: 27px; }
  .masthead-tagline { font-size: 13px; text-align: center; }
  .hero { padding-top: 44px; }
  .hero .sub { font-size: 17px; }
  .signup { padding: 30px 22px 24px; }
  .signup h2 { font-size: 30px; }
  .fig { padding: 20px 14px 22px; }
  .fig dd { font-size: 42px; }
  .pipeline-h { display: none !important; }
  .pipeline-v { display: block !important; max-width: 340px; }
  .pipeline-v .p-title { font-size: 20px; }
  .pipeline-v .p-note { font-size: 13px; }
  .pipeline { padding: 26px 20px 16px; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-left: 0; border-right: 0; }
  .path-card { grid-template-columns: minmax(0,1fr) 28px; row-gap: 6px; }
  .path-no { grid-column: 1 / -1; padding-top: 0; }
  .path-card h3 { font-size: 26px; }
  .faq summary { font-size: 19px; }
  .faq details p { padding-right: 0; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 480px) { :root { --nav-h: 44px; } }

/* ── Motion preferences ── */
@media (prefers-reduced-motion: reduce) {
  .home-v2 *, .home-v2 *::before, .home-v2 *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
