/* Mercury pages (splash, book, admin). Builds on styles.css: calmer marble, full-bleed nav,
   larger reading text, and the components only these pages use. */

/* Marble, but quieter: the veins sit under a wash so type and cards stay the focus. */
body { background: var(--marble); }
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: url("marble.svg") center top / 1800px 1800px; opacity: .32;
}
body::before { z-index: 0; }

/* Full-bleed sticky nav */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--marble) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-strong); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: var(--line); }
.topbar .nav { position: static; background: none; backdrop-filter: none; border: 0; padding: 16px 0 19px; }
.topbar .nav::after { display: none; }
.brand { gap: 12px; letter-spacing: 0.32em; font-size: 14px; line-height: 1; }
.brand img { height: 24px; width: auto; flex: none; }
.brand span { margin-right: -0.32em; padding-top: 1px; } /* drop the trailing letter-space so the lockup measures true */
.nav ul a { position: relative; padding: 4px 0; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gilt); transform: scaleX(0); transition: transform .2s; }
.nav ul a:hover::after { transform: scaleX(1); }
@media (max-width: 720px) { .nav ul { display: none; } }

/* Reading text: a touch larger and darker than the demo pages */
.card .small, .steps .small, .point p, .trust p { font-size: 13px; line-height: 1.65; color: var(--ink-2); }
.lede { color: #3f3c36; }
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-head { margin-bottom: 44px; }

/* Buttons get an arrow that nudges on hover */
.btn .arr { display: inline-block; transition: transform .2s; font-family: var(--mono); letter-spacing: 0; }
.btn:hover .arr { transform: translateX(3px); }
.btn.big { padding: 15px 24px; font-size: 12px; }

/* Footer */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line-strong); margin-top: clamp(40px, 6vw, 80px); }
.site-footer .inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 28px 44px; font-size: 12px; color: var(--muted); }
.site-footer .brand { color: var(--ink); font-size: 12px; gap: 10px; }
.site-footer .brand img { height: 19px; width: auto; }
.site-footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--gilt); }

/* Fade-in on scroll, only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Lining figures in the serif: Cormorant's old-style numerals make "$1" read as "$ı" */
.lede, h3, .it, h1 em, h2 em, .chosen, .ledger-foot, .done h2 em { font-feature-settings: "lnum" 1; font-variant-numeric: lining-nums; }
