/* A public research index: type, useful arithmetic and a clear reading order. */
body:has(.home-page) { --home-space: clamp(64px, 8vw, 112px); }
.home-page { font-size: 17px; }
.home-page h1, .home-page h2, .home-page h3 { text-wrap: balance; }
.home-page h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.12; letter-spacing: -.035em; font-weight: 550; margin: 0; }
.home-page h3 { font-weight: 550; }
.home-page p { max-width: 55ch; margin: 18px 0; line-height: 1.65; text-wrap: pretty; }
.home-page a { transition: color .18s, background-color .18s; }
.home-page a:active { transform: translateY(1px); }
.home-hero { display: grid; grid-template-columns: 1.18fr 1fr; align-items: center; gap: clamp(32px, 5vw, 80px); padding: 44px 0 56px; }
.home-hero h1 { margin: 0; font-size: clamp(58px, 6.5vw, 92px); font-weight: 550; line-height: 1.02; letter-spacing: -.055em; }
.hero-copy > p { max-width: 43ch; margin: 25px 0 28px; font-size: 18px; }
.home-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; padding: 15px 20px; background: var(--mint); color: var(--bg); font-size: 16px; font-weight: 650; min-height: 50px; }
.home-button:hover { background: #e0facd; color: var(--bg); }
.hero-shortcuts { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 14px; }
.hero-shortcuts a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.recovery-demo { background: var(--panel2); padding: 32px; }
.recovery-demo h2 { font-size: 25px; letter-spacing: -.025em; }
.recovery-demo > p { margin: 12px 0; font-size: 16px; }
.recovery-result { display: flex; flex-direction: column; gap: 5px; padding: 8px 0 16px; font-size: 16px; font-variant-numeric: tabular-nums; }
.recovery-value { font-size: clamp(64px, 6vw, 80px); line-height: 1.1; letter-spacing: -.05em; color: var(--mint); }
.recovery-control label { display: flex; flex-direction: row; justify-content: space-between; color: var(--text); font-size: 16px; }
.recovery-control input[type=range] { display: block; accent-color: var(--mint); width: 100%; min-height: 44px; margin: 0; padding: 0; cursor: pointer; background: transparent; border: 0; }
.range-ends { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.recovery-demo p.recovery-note { font-size: 14px; color: var(--muted); margin: 18px 0 12px; }
.recovery-demo > a { min-height: 44px; display: flex; align-items: center; justify-content: space-between; font-size: 16px; }
.home-section-title { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.home-section-title > a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; font-size: 16px; }
.home-section-title p { margin-bottom: 0; }
.research-layout { display: grid; grid-template-columns: .84fr 1.16fr; gap: 40px; }
.featured-reading { padding: 36px; background: var(--panel2); display: flex; flex-direction: column; align-items: flex-start; }
.featured-reading h3 { margin: 0; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.035em; line-height: 1.15; }
.featured-reading p { margin: 22px 0 28px; }
.feature-action { margin-top: auto; display: flex; align-items: center; gap: 24px; min-height: 44px; font-size: 16px; }
.home-row { display: flex; justify-content: space-between; gap: 20px; padding: 22px 24px; }
.home-row:nth-child(odd) { background: var(--panel); }
.home-row:hover { background: var(--panel2); }
.home-row > span:first-child { display: flex; flex-direction: column; gap: 5px; }
.home-row strong { font-size: 20px; font-weight: 550; letter-spacing: -.02em; }
.home-row strong + span { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 46ch; }
.link-arrow { font-size: 16px; flex-shrink: 0; }
.home-page .archive-context { font-size: 14px; color: var(--muted); max-width: 82ch; margin: 20px 0 0; }
.home-prop { display: grid; grid-template-columns: .84fr 1.16fr; gap: 40px; padding: var(--home-space) 0; }
.prop-copy { padding-right: 30px; }
.prop-copy p { margin-bottom: 26px; }
.prop-links { align-self: center; }
.home-tools { margin-bottom: var(--home-space); }
.home-tool-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.home-tool-list .home-row { background: var(--panel); min-height: 144px; align-items: center; }
.home-tool-list .home-row:hover { background: var(--panel2); }
.home-methods { display: grid; grid-template-columns: .84fr 1.16fr; gap: 40px; padding-bottom: 80px; }
.home-methods > div:first-child { padding-right: 25px; }
.method-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.method-link { display: flex; gap: 16px; padding: 8px 0; }
.method-link > span:first-child { display: flex; flex-direction: column; gap: 8px; }
.method-link strong { font-size: 17px; font-weight: 550; }
.method-link strong + span { color: var(--muted); font-size: 16px; }
.method-link .link-arrow { font-size: 16px; }
.all-methods, .home-methods > div > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.all-methods { margin-top: 24px; }
body:has(.home-page) .topbar, body:has(.home-page) footer { border: 0; background: var(--panel); }
body:has(.home-page) .header-cta { border: 0; background: var(--panel2); border-radius: 0; }
body:has(.home-page) footer { font-size: 14px; }
body:has(.home-page) .footer-note { font-size: 14px; max-width: 70ch; }
body:has(.home-page) .preview-notice { font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; }
@media (max-width: 1000px) {
  .home-hero { gap: 30px; }
  .home-hero h1 { font-size: 66px; }
  .recovery-demo { padding: 25px; }
  .research-layout, .home-prop, .home-methods { gap: 28px; }
  .featured-reading { padding: 28px; }
  .method-list { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 720px) {
  .home-hero { grid-template-columns: 1fr; padding: 40px 0 56px; gap: 30px; }
  .home-hero h1 { font-size: clamp(48px, 12.8vw, 72px); }
  .hero-copy > p { font-size: 17px; margin: 20px 0; }
  .hero-shortcuts { gap: 4px 24px; }
  .recovery-demo { padding: 24px; }
  .recovery-value { font-size: 72px; }
  .home-section-title { align-items: start; flex-direction: column; gap: 8px; margin-bottom: 22px; }
  .home-page h2 { font-size: 30px; }
  .recovery-demo h2 { font-size: 25px; }
  .research-layout, .home-prop, .home-methods { grid-template-columns: 1fr; gap: 24px; }
  .featured-reading { padding: 28px; }
  .featured-reading h3 { font-size: 32px; }
  .home-row { padding: 20px; }
  .home-tool-list { grid-template-columns: 1fr; gap: 8px; }
  .home-tool-list .home-row { min-height: 0; }
  .prop-copy, .home-methods > div:first-child { padding-right: 0; }
  .home-methods { padding-bottom: 48px; }
  .home-methods .method-list { gap: 18px; }
}
