/* /portfolio and /wealth on the design system. Linked after /assets/base.css and before each page's own
   stylesheet (app/app.css, wealth/wealth.css), which were written for the old tokens. This file maps
   those tokens onto base.css values (Geist, ink on white, hairlines, 4px radius, mint accent) and keeps
   the few old components their markup still uses. The heading overrides at the end load after the page
   stylesheets through the .shell class on <body>, so they win without !important. */

:root {
  /* The old token names, with base.css values written out (wealth.css sets --ink: var(--text), so a
     reference back to --ink here would loop). */
  --bg: #fff;
  --panel: #fff;
  --hairline: rgba(0, 0, 0, .1);
  --hairline-strong: rgba(0, 0, 0, .18);
  --text: #0a0a0a;
  --text-2: #5f6663;
  --muted-text: #5f6663;
  --link: #0a0a0a;
  --accent: #087f55;
  --accent-soft: rgba(59, 232, 165, .14);

  --font-display: var(--font-sans);
  --font-ui: var(--font-sans);
  --track-display: -0.03em;
  --track-ui: -0.01em;

  --radius-btn: 4px;
  --radius-nav-btn: 4px;
  --radius-card: 4px;
  --reveal-dur: 600ms;
}

body.shell {
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ---------- Old components still in the markup ---------- */

/* Page headline: the landing's regular weight, larger. */
.display {
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

/* The status line above a headline: the landing's mono label with a live dot. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: auto;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.badge-dot {
  position: relative;
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint-ink);
}

.badge-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--mint-ink);
  animation: dot-pulse 2.4s var(--ease-out) infinite;
}

/* base.css .btn is the ink button; .btn-dark is the same. */
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn-glyph {
  flex: none;
  width: 13px;
  height: 13px;
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .btn-glyph { transform: translateX(2px); }

/* Share sits in the nav next to Sign in, at its height. */
.nav-share { height: 32px; }
.nav-share .btn-glyph { width: 12px; height: 12px; }
.nav-share:hover .btn-glyph { transform: none; }

/* The footer notes: centred, quiet, no rule between them. */
.page-foot .site-foot {
  border: 0;
  padding: 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.page-foot { border-top: 1px solid var(--line); padding-top: 20px; }

/* ---------- Headings: the old heavy rounded style becomes Geist 500 ---------- */

.shell .title,
.shell .ch h2,
.shell .def-t,
.shell .gh h3,
.shell .ih h3,
.shell .pop h4,
.shell .crumbs .here,
.shell .band .bl .nm,
.shell .scen .sh b {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.shell .title { font-size: 20px; }

.shell .ring-num,
.shell .nw b,
.shell .score .n {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.04em;
}

/* Cards: hairline boxes, no shadow. */
.shell .card { box-shadow: none; }

@media (max-width: 760px) {
  .share-label { display: none; }
  .nav-share { width: 32px; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .badge-dot::after { animation: none !important; }
  .btn:hover .btn-glyph { transform: none; }
}

/* Page headlines sit closer to the landing's scale. */
.shell .display { font-size: clamp(34px, 4vw, 52px); }

/* On a phone the nav scrolls away, so in-page jumps and sticky panels stop at the top edge. */
@media (max-width: 760px) {
  body.shell { --nav-h: 0px; }
}
