/* High Delta Fund — shared draft styles
   Pure greyscale, institutional, restrained. No gold.
   Used by: fund-draft.html and fund/*-draft.html
   Promote by renaming to fund-shared.css. */

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

:root {
  /* Pure greyscale — no hue */
  --bg:        #0a0a0b;   /* near-black, slight warmth */
  --bg-2:      #101011;
  --bg-3:      #16171a;
  --surface:   #1d1e22;
  --line:      rgba(255,255,255,0.07);
  --line-hi:   rgba(255,255,255,0.13);

  /* Text scale — high contrast for editorial weight */
  --text-hi:   #f5f5f3;   /* warm white, easier on eyes than pure white */
  --text:      #c4c4c0;
  --text-mid:  #8a8a85;
  --text-mute: #5e5e5a;

  /* Inverted (light sections) */
  --light-bg:    #f5f5f3;
  --light-bg-2:  #ebebe7;
  --light-text:  #14141a;
  --light-mute:  #6e6e68;
  --light-line:  rgba(0,0,0,0.08);

  /* Typography */
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono:    'Fira Code', 'SF Mono', 'Consolas', monospace;

  /* Layout */
  --max-w:   1120px;
  --max-w-narrow: 760px;
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  /* Hover timing tokens (used by nav/footer link underlines and buttons) */
  --dur-hover: 0.8s;
  --ease-hover: cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Fill-transition curve (buttons, nav CTA): more linear so color/bg interpolation is perceptible */
  --ease-hover-fill: cubic-bezier(0.4, 0, 0.2, 1);
}

/* scroll-behavior managed by Lenis, see fund.html inline script */

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--dur-hover) var(--ease-hover); }
code { font-family: var(--font-mono); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.container-narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Eyebrow ──────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text-mute);
}

/* ── Display headlines (use Fraunces serif for italic accents) ─ */
.display {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-hi);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.display em,
.display .accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-feature-settings: "ss01", "ss02";
  color: var(--text-hi);
}

/* ── NAV ──────────────────────────────────────────────── */
nav.fnd-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.fnd-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.fnd-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fnd-nav-logo svg { height: 22px; width: auto; }
.fnd-nav-logo-text {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-hi);
  letter-spacing: 0.22em;
}
.fnd-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.fnd-nav-links a {
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 400;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--dur-hover) var(--ease-hover);
}
.fnd-nav-links a:not(.fnd-nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--dur-hover) var(--ease-hover);
}
.fnd-nav-links a:not(.fnd-nav-cta):hover::after,
.fnd-nav-links a:not(.fnd-nav-cta).active::after { width: 100%; }
.fnd-nav-links a:hover { color: var(--text-hi); }
.fnd-nav-links a.active { color: var(--text-hi); }
.fnd-nav-cta {
  border: 1px solid var(--line-hi);
  color: var(--text-hi) !important;
  padding: 9px 20px;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
  transition: background var(--dur-hover) var(--ease-hover-fill), border-color var(--dur-hover) var(--ease-hover-fill), color var(--dur-hover) var(--ease-hover-fill) !important;
}
.fnd-nav-cta:hover {
  background: var(--text-hi);
  color: var(--bg) !important;
  border-color: var(--text-hi);
}

/* ── Section primitives ───────────────────────────────── */
.fnd-section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.fnd-section.first { border-top: none; }
.fnd-section.tight { padding: 80px 0; }
.fnd-section.light {
  background: var(--light-bg);
  color: var(--light-text);
}
.fnd-section.light .display,
.fnd-section.light .display em { color: var(--light-text); }
.fnd-section.light .eyebrow { color: var(--light-mute); }
.fnd-section.light .eyebrow::before { background: var(--light-mute); }
.fnd-section.light p { color: var(--light-mute); }
.fnd-section.light a { color: var(--light-text); }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-hover) var(--ease-hover-fill), color var(--dur-hover) var(--ease-hover-fill), border-color var(--dur-hover) var(--ease-hover-fill);
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--text-hi);
  color: var(--bg);
  border-color: var(--text-hi);
}
.btn-primary:hover {
  background: transparent;
  color: var(--text-hi);
  border-color: var(--text-hi);
}
.btn-ghost {
  background: transparent;
  color: var(--text-hi);
  border-color: var(--line-hi);
}
.btn-ghost:hover {
  border-color: var(--text-hi);
  background: rgba(255,255,255,0.03);
}
.fnd-section.light .btn-primary {
  background: var(--light-text);
  color: var(--light-bg);
  border-color: var(--light-text);
}
.fnd-section.light .btn-primary:hover {
  background: transparent;
  color: var(--light-text);
}
.fnd-section.light .btn-ghost {
  color: var(--light-text);
  border-color: rgba(0,0,0,0.15);
}
.fnd-section.light .btn-ghost:hover {
  border-color: var(--light-text);
  background: rgba(0,0,0,0.03);
}

/* ── Reveal animation ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── FOOTER ───────────────────────────────────────────── */
.fnd-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 64px 0 32px;
}
/* ─ Ledger data strip ─ */
.fnd-footer-ledger {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  margin-bottom: 56px;
}
.fnd-footer-ledger-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
}
.fnd-footer-ledger-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.fnd-footer-ledger-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.fnd-footer-ledger-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.fnd-footer-stat { display: flex; flex-direction: column; gap: 6px; }
.fnd-footer-stat-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-hi);
  letter-spacing: -0.01em;
  line-height: 1;
}
.fnd-footer-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
}
.fnd-footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 56px;
}
.fnd-footer-brand p {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.7;
  margin-top: 18px;
  max-width: 280px;
}
.fnd-footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.fnd-footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 20px;
  font-weight: 400;
}
.fnd-footer-col a {
  display: block;
  width: fit-content;
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--dur-hover) var(--ease-hover);
}
.fnd-footer-col a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--dur-hover) var(--ease-hover);
}
.fnd-footer-col a:hover { color: var(--text-hi); }
.fnd-footer-col a:hover::after { width: 100%; }

.fnd-footer-disclosure {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  margin-bottom: 24px;
}
.fnd-footer-disclosure p {
  font-size: 11.5px;
  color: var(--text-mute);
  line-height: 1.7;
  font-family: var(--font-mono);
  font-weight: 300;
}
.fnd-footer-disclosure strong {
  color: var(--text-mid);
  font-weight: 500;
}

.fnd-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.fnd-footer-legal {
  font-size: 11px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.fnd-footer-legal a {
  color: var(--text-mute);
  position: relative;
  padding-bottom: 1px;
  transition: color var(--dur-hover) var(--ease-hover);
}
.fnd-footer-legal a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--dur-hover) var(--ease-hover);
}
.fnd-footer-legal a:hover { color: var(--text-mid); }
.fnd-footer-legal a:hover::after { width: 100%; }

/* ─ Click-to-copy contact ─ */
.fnd-footer-contact {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  position: relative;
  transition: color var(--dur-hover) var(--ease-hover);
}
.fnd-footer-contact:hover { color: var(--text-hi); }
.fnd-footer-contact:focus-visible { outline: 1px solid var(--text-mid); outline-offset: 4px; }
.fnd-footer-contact-feedback {
  position: absolute;
  left: 50%;
  top: -22px;
  transform: translateX(-50%);
  font-size: 9.5px;
  color: var(--text-hi);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.fnd-footer-contact.copied .fnd-footer-contact-feedback { opacity: 1; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 800px) {
  .container, .container-narrow { padding: 0 24px; }
  .fnd-nav-inner { padding: 0 24px; }
  .fnd-section { padding: 80px 0; }
  .fnd-footer-top { grid-template-columns: 1fr; gap: 40px; }
  .fnd-footer-links { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .fnd-nav-links { gap: 20px; }
  .fnd-nav-links li:nth-child(-n+2) { display: none; }
  .fnd-footer-ledger-stats { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .fnd-nav-logo-text { display: none; }
  .fnd-footer-ledger-stats { grid-template-columns: 1fr; gap: 20px; }
}
