/* Menu. Mobile first: base styles are for phones, min-width queries add from there.
   Scale measured from Bitwise and peers, see docs/design-dna.md */
:root {
  /* Final palette (2026-09-27): paper, ink, amber. Amber is the low sun, used sparingly. */
  --bg: #FAFAF7;           /* paper: most of the page */
  --soft: #F3F2EE;         /* paper soft: alternate sections */
  --ink: #1B1815;          /* ink: type, logo, buttons, footer */
  --muted: #66625C;        /* body copy */
  --rule: #E6E3DD;         /* hairlines */
  --orange: #F4AE3F;       /* saffron: fills, dots, lines. Never text (1.8:1 on paper); ink on it is 9.2:1 */
  --glow: #F2C98E;         /* honey: horizon glow only */
  --dusk: #B8672F;         /* burnt amber: deepest horizon tone */
  --orange-text: #9A5518;  /* amber for small text, 5.4:1 on paper */
  --night: #1B1815;
  --field: #FFFFFF;        /* form fields */
  --ink-hover: #3A342E;
  --on-orange: #1B1815;    /* type on saffron, same in both themes */
  --shadow: rgba(27,24,21,.38);
  --foot-text: #D9D3CA;
  --foot-muted: #9A938A;
  --foot-rule: #36312C;
  color-scheme: light;

  --serif: Newsreader, Georgia, serif;
  --sans: Inter, system-ui, sans-serif;

  --h1: clamp(40px, 9vw, 64px);
  --h2: clamp(34px, 7.5vw, 56px);
  --h3: clamp(22px, 5.2vw, 28px);

  --section: clamp(80px, 10vw, 128px);
  --closing: clamp(96px, 16vw, 200px);
  --page: 1280px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 2px;
}

/* Dark theme: follows the system unless the toggle picked one */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
  /* taken from the footer: warm near-black, cream type, stone grey */
  --bg: #1B1815;
  --soft: #221E1A;
  --ink: #D9D3CA;
  --muted: #9A938A;
  --rule: #36312C;
  --glow: #8A5A22;
  --orange-text: #F4AE3F;
  --night: #131110;
  --field: #221E1A;
  --ink-hover: #F1ECE4;
  --shadow: rgba(0,0,0,.6);
  --foot-rule: #2C2824;
  color-scheme: dark;
  }
}
:root[data-theme=dark] {
  /* taken from the footer: warm near-black, cream type, stone grey */
  --bg: #1B1815;
  --soft: #221E1A;
  --ink: #D9D3CA;
  --muted: #9A938A;
  --rule: #36312C;
  --glow: #8A5A22;
  --orange-text: #F4AE3F;
  --night: #131110;
  --field: #221E1A;
  --ink-hover: #F1ECE4;
  --shadow: rgba(0,0,0,.6);
  --foot-rule: #2C2824;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button { font: inherit; color: inherit; }
.defs { position: absolute; width: 0; height: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
::selection { background: var(--glow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.skip { position: fixed; top: 12px; left: 12px; z-index: 50; padding: 12px 18px; background: var(--ink); color: var(--bg); transform: translateY(-200%); }
.skip:focus { transform: none; }

.wrap { width: min(var(--page), 100% - var(--gutter) * 2); margin-inline: auto; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; font-optical-sizing: auto; }
h1 { font-size: var(--h1); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: var(--h2); line-height: 1.05; letter-spacing: -.02em; max-width: 800px; text-wrap: balance; }
h3 { font-size: var(--h3); line-height: 1.15; letter-spacing: -.01em; }
em { font-style: italic; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 20px; }
.lede { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 560px; }

/* Buttons: full width on phones, inline from 640px */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--radius); background: transparent; font: 600 15px var(--sans); letter-spacing: 0; color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--ink-hover); }
.btn-line { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.btn-line:hover { border-color: var(--ink); }
.btn-orange { background: var(--orange); color: var(--on-orange); }
.btn-orange:hover { background: color-mix(in srgb, var(--orange) 75%, var(--bg)); }
.actions { display: grid; gap: 10px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--rule); padding-bottom: 4px; transition: border-color .2s; }
.link:hover { border-color: var(--orange); }
.link svg { width: 11px; height: 11px; }

/* Logo. In the nav it is the menu button: tap the brand, get the menu. */
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -.02em; color: var(--ink); cursor: pointer; }
.logo svg { width: 1.02em; height: .68em; overflow: visible; transform: translateY(-.09em); } /* matches Newsreader cap height, sits on the baseline */
.bars rect { fill: currentColor; transform-box: fill-box; transform-origin: center; transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .2s, fill .2s; }
.bars .b3 { fill: currentColor; }
.menu-open:hover .b2 { transform: scaleX(.7) translateX(-21%); }
/* open state: bars fold into an all-ink close mark */
.is-open .b1, [aria-expanded=true] .b1 { transform: translateY(6.7px) rotate(45deg); }
.is-open .b2, [aria-expanded=true] .b2 { opacity: 0; }
.is-open .b3, [aria-expanded=true] .b3 { transform: translateY(-6.7px) rotate(-45deg); }

/* Nav: logo, "The menu", one button. Other links join from 960px */
.nav { position: relative; z-index: 20; display: flex; align-items: center; gap: 16px; padding-block: 18px; }
.nav-links { display: none; gap: 28px; margin-left: auto; font-size: 17px; font-weight: 500; }
.nav .btn { margin-left: auto; }
.nav-links a { color: var(--ink); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { min-height: 40px; padding: 0 14px; }

/* Hero: the headline owns it. The horizon is a faint warm glow on the bottom edge. */
.hero { position: relative; z-index: 2; isolation: isolate; } /* keeps the open fund menu above the sections below */
/* The horizon: a warm glow on the bottom edge of the hero, 960px and up */
.sky { display: none; position: absolute; inset: 0; z-index: -1; }
.grain { position: absolute; inset: 0; opacity: .12; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .4 0 0 0 0 .3 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.sun { display: none; }

/* Rotating first line of the hero. All phrases share one grid cell, so the height never jumps. */
.rotator { display: grid; }
.rotator > em { grid-area: 1 / 1; opacity: 0; transform: translateY(.4em); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.rotator > .is-on { opacity: 1; transform: none; }
.rotator > .is-off { transform: translateY(-.4em); }

.hero-copy { padding: 48px var(--gutter) 56px; }
.hero-copy .lede { margin: 20px 0 32px; font-size: 19px; color: var(--ink); }


/* Sections */
.section { padding-block: var(--section); }
.soft { background: var(--soft); }

.statement { max-width: 920px; margin-bottom: 56px; font-family: var(--serif); font-size: clamp(26px, 4.6vw, 40px); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; text-wrap: pretty; }
.pillars { display: grid; gap: 36px; }
.pillars article { border-top: 1px solid var(--ink); padding-top: 22px; }
.pillars h3 { margin-bottom: 12px; }
.pillars p { color: var(--muted); max-width: 360px; font-size: 17px; }

.shelf .head { display: grid; gap: 16px; margin-bottom: 40px; }
.num { font: 600 14px/1.2 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.kind { font-size: 13px; font-weight: 600; color: var(--orange-text); margin-bottom: 6px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.status-pipe::before { background: transparent; border: 1px solid var(--orange); }

.split { display: grid; gap: 48px; }
.research h2 { margin-bottom: 20px; }
.research .lede { margin-bottom: 28px; }
.topics li { display: grid; padding-block: 22px; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: var(--h3); font-weight: 500; line-height: 1.15; }
.topics li:first-child { border-top: 1px solid var(--ink); }
.topics small { font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--muted); margin-top: 6px; }

/* Names we are holding back for now */
.redact { display: inline-block; width: 4.2em; height: .74em; vertical-align: -.04em; overflow: hidden; color: transparent; user-select: none; background: var(--ink); border-radius: 1px; }

/* Featured strategies: a turnstile of cards. Swipe on phones, arrows on desktop. */
.turn-nav { display: none; gap: 4px; }
.turn-btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; transition: background-color .2s, opacity .2s; }
.turn-btn svg { width: 18px; height: 18px; }
.turn-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.turn-btn:disabled { opacity: .25; cursor: default; background: none; }
.turn-track { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.turn-track::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; height: 148px; padding: 18px 20px; font-size: 14px; font-weight: 600;
  background: radial-gradient(120% 70% at 50% 100%, var(--sky-low), transparent 72%), linear-gradient(180deg, var(--bg) 30%, var(--sky-mid)); }
.card[data-kind=etf] { --sky-low: color-mix(in srgb, var(--glow) 70%, transparent); --sky-mid: color-mix(in srgb, var(--glow) 18%, var(--bg)); }
.card[data-kind=vault] { --sky-low: var(--orange); --sky-mid: color-mix(in srgb, var(--glow) 40%, var(--bg)); }
.card[data-kind=fund] { --sky-low: var(--dusk); --sky-mid: color-mix(in srgb, var(--orange) 45%, var(--bg)); }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 20px; }
.card h3 { font-size: 26px; }
.card p { color: var(--muted); font-size: 16px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--rule); }
.notify { min-height: 44px; padding: 0; border: 0; background: none; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 5px; transition: text-decoration-color .2s; }
.notify:hover { text-decoration-color: var(--orange); }

/* Signup */
.closing { padding-block: var(--section); }
.closing h2 { margin: 0 auto 12px; font-size: clamp(28px, 5.4vw, 40px); }
.closing .lede { margin: 0 auto 24px; }
.signup { display: grid; gap: 10px; max-width: 720px; margin: 0 auto; text-align: left; }
.signup input[type=email], .pick-btn { width: 100%; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: var(--radius); background: var(--field); color: var(--ink); font: 16px var(--sans); }
.signup input:focus, .pick-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.signup .btn { min-height: 52px; }
/* Interest picker: a styled listbox in place of the native select */
.pick { position: relative; }
.pick-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer; }
.pick-value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pick-btn svg { flex: none; width: 10px; height: 6px; color: var(--muted); transition: transform .2s; }
.pick-btn[aria-expanded=true] svg { transform: rotate(180deg); }
.pick-list { position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); width: max(100%, 300px); max-height: 360px; overflow-y: auto; overscroll-behavior: contain; padding: 6px; background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 28px 56px -28px var(--shadow); outline: none; }
.pick-list[hidden] { display: none; }
.pick-group { padding: 12px 12px 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pick-list [role=option] { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; font-size: 15px; cursor: pointer; }
.pick-list [role=option].is-active { background: var(--soft); }
.pick-list [role=option][aria-selected=true]::after { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.signup .hp { position: absolute; left: -9999px; }
.form-msg { min-height: 24px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.form-msg.ok { color: var(--ink); }
.form-msg.err { color: var(--orange-text); }

/* Footer */
.footer { background: var(--night); color: var(--foot-text); padding-block: 56px 32px; }
.foot-top { display: grid; gap: 24px; padding-bottom: 36px; border-bottom: 1px solid var(--foot-rule); }
.footer .logo { color: var(--foot-text); }
.foot-top ul { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; }
.foot-top a:hover { color: var(--glow); }
.legal { font-size: 13px; line-height: 1.6; color: var(--foot-muted); max-width: 720px; margin-top: 28px; }
.copy { font-size: 13px; color: var(--foot-muted); margin-top: 14px; }

/* Fund menu: a full-width horizontal dropdown under the nav.
   Phones: columns stack. 760px and up: ETFs, Vaults, Funds side by side. */
html, body { overflow-x: clip; }
.fund-menu { position: absolute; top: 100%; left: calc(50% - 50vw); right: calc(50% - 50vw); max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; background: var(--bg); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); box-shadow: 0 30px 60px -36px var(--shadow); }
.fund-menu[hidden] { display: none; }
.mm { padding-block: 8px 24px; }

.mm-cols { display: grid; }
.mm-col { padding-block: 22px; border-bottom: 1px solid var(--rule); }
.mm-title { font-size: 26px; margin-bottom: 10px; }
.mm-group { font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 4px; }
.mm-items li + li { border-top: 1px solid var(--rule); }
.mm-item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.mm-name { font-size: 17px; font-weight: 500; transition: color .2s; }
.mm-soon { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.mm-soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--orange); }
/* In the dropdown each name keeps one line; the status sits under it */
.fund-menu .mm-item { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.fund-menu .mm-name { white-space: nowrap; }
.mm-item:hover .mm-name { color: var(--orange-text); }
.mm-item:hover .mm-soon { color: var(--ink); }
.mm-item:hover .mm-soon::before { background: var(--orange); }
.fund-menu[data-col] .mm-col { opacity: .55; transition: opacity .2s; }
.fund-menu[data-col] .mm-col.is-active, .fund-menu[data-col] .mm-col:hover { opacity: 1; }
/* Research and Contact sit under Funds, set at the same size as the column titles */
.mm-more { display: grid; gap: 14px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--rule); }
.mm-more a { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; transition: color .2s; }
.mm-more a:hover { color: var(--orange-text); }
.fm-legal { padding-top: 18px; font-size: 13px; color: var(--muted); max-width: 720px; }

/* shelf section reuses the columns at a larger size */
.shelf-cols { border-top: 1px solid var(--ink); }
.shelf-cols .mm-title { font-size: var(--h3); }
.shelf-cols .mm-col { padding-block: 28px; }

.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; transition: background-color .2s; }
.theme-toggle:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun, :root[data-theme=dark] .theme-toggle .moon { display: none; }
:root[data-theme=dark] .theme-toggle .sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .theme-toggle .moon { display: none; }
  :root:not([data-theme=light]) .theme-toggle .sun { display: block; }
}
.nav-links button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; text-decoration: underline 3px transparent; text-underline-offset: 8px; transition: text-decoration-color .2s; }
.nav-links button:hover, .nav-links button[aria-expanded=true] { text-decoration-color: var(--orange); }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .fund-menu:not([hidden]) { animation: drop .25s cubic-bezier(.2,.7,.2,1); }
  .rotator > em { transition: opacity .4s, transform .5s cubic-bezier(.2,.7,.2,1); }
  .turn-track { scroll-behavior: smooth; }
  @keyframes drop { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* 640px and up: inline buttons, side drawer */
@media (min-width: 640px) {
  .eyebrow { font-size: 13px; margin-bottom: 24px; }
  .lede { font-size: 18px; }
  .logo { font-size: 28px; gap: 12px; }
  .nav { padding-block: 26px; gap: 32px; }
  .nav .btn { min-height: 44px; padding: 0 20px; }
  .actions { display: flex; flex-wrap: wrap; gap: 12px; }
  /* email on its own row, then picker and button side by side */
  .signup { grid-template-columns: minmax(0, 1fr) auto; }
  .signup input[type=email] { grid-column: 1 / -1; }
  .foot-top { display: flex; align-items: center; justify-content: space-between; }
  .turn-track { grid-auto-columns: calc((100% - 16px) / 2); margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .turn-nav { display: flex; }
  .theme-toggle { margin-left: 0; }
  .nav-links { display: flex; gap: 28px; }
  .nav .btn { margin-left: 0; }
}

/* 760px and up: menu columns side by side */
@media (min-width: 760px) {
  .fm-legal { margin-top: 28px; border-top: 1px solid var(--rule); max-width: none; }
  .shelf-cols .mm-col { padding-block: 32px 8px; }
}

/* 960px and up: full nav, centered hero, multi-column sections */
@media (min-width: 860px) {
  /* one row: email, picker, button */
  .signup { grid-template-columns: minmax(0, 1fr) minmax(0, 250px) auto; }
  .signup input[type=email] { grid-column: auto; }
}

@media (min-width: 1024px) {
  .mm-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
  .mm-col { border-bottom: 0; padding-block: 8px 0; }
  .mm-col + .mm-col { border-left: 1px solid var(--rule); padding-left: 32px; }
}

@media (min-width: 960px) {
  .mm { padding-block: 36px 32px; }
  .nav-links { gap: 40px; font-size: 18px; }
  .nav .btn { margin-left: 0; }
  .sky { display: block; background:
    radial-gradient(90% 22% at 50% 100%, color-mix(in srgb, var(--glow) 38%, transparent), transparent 75%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 72%, color-mix(in srgb, var(--glow) 16%, var(--bg)) 90%, color-mix(in srgb, var(--glow) 34%, var(--bg)) 100%); }
  .hero { min-height: min(86svh, 860px); display: grid; grid-template-rows: auto 1fr auto; }
  .hero-copy { align-self: center; text-align: center; padding: 48px var(--gutter) 112px; display: grid; justify-items: center; }
  .hero-copy h1 { max-width: 900px; }
  .hero-copy .lede { margin: 32px auto 40px; font-size: 21px; max-width: 620px; }
  .hero-copy .actions { justify-content: center; }
  /* statement on the left, the three wrappers stacked on the right */
  .intro-grid { display: grid; grid-template-columns: 13fr 7fr; gap: 80px; align-items: start; } /* 65/35 */
  .statement { margin-bottom: 0; }
  .pillars { gap: 0; }
  .pillars article { padding-block: 24px; }
  .turn-track { grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; }
  .pillars article { padding-top: 28px; }
  .shelf .head { display: flex; justify-content: space-between; align-items: end; gap: 48px; margin-bottom: 56px; }
  .split { grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
  .topics li { padding-block: 28px; }
  .footer { padding-block: 72px 40px; }
}
