/* Research project pages: shared kit foundations (rpx), v=3. Owner: lane rp-kit. Tokens, theme colours, the boosted reset, type scale and utilities only; each page builds its own sections. See handoffs/goldstine-research-projects/KIT.md */

/* tokens and themes */
#main .rpx { --ink: var(--g-ink, #0f1519); --paper: var(--g-paper, #eef0eb); --mist: #e1e6df; --line: rgba(15, 21, 25, .12); --work: var(--g-amber, #e8961a); --evidence: var(--g-teal, #10a091); --decisions: var(--g-coral, #e1503f); --interfaces: var(--g-indigo, #5659e3); --edge: var(--g-edge, clamp(20px, 4.8vw, 84px)); --c: var(--work); --c-deep: #8f5200; --c-lite: var(--work); position: relative; color: var(--ink); background: var(--paper); font: 450 clamp(16px, 1.15vw, 18px)/1.5 GoldstineSynonym, sans-serif; overflow: clip; }
#main:has(.rpx) { padding-bottom: 0 !important; }
#main .rpx .is-work, #main .rpx.is-work { --c: var(--work); --c-deep: #8f5200; --c-lite: var(--work); }
#main .rpx .is-evidence, #main .rpx.is-evidence { --c: var(--evidence); --c-deep: var(--g-pine, #08695f); --c-lite: var(--evidence); }
#main .rpx .is-decisions, #main .rpx.is-decisions { --c: var(--decisions); --c-deep: var(--g-ember, #b0301f); --c-lite: var(--decisions); }
#main .rpx .is-interfaces, #main .rpx.is-interfaces { --c: var(--interfaces); --c-deep: #4245c4; --c-lite: #a9abff; }
#main .rpx section { position: relative; scroll-margin-top: -100px; }
#main .rpx #example { scroll-margin-top: 0; }

/* boosted reset and type scale: beats the site styles; pages restate colour and case over it */
body #main#main#main#main#main .rpx :is(header, ol, ul, dl, dt, dd, figure, h2, h3, p, b, small, em, i, figcaption, span, label, li) { color: inherit !important; margin: 0; text-transform: none !important; }
body #main#main#main#main#main .rpx :is(h2, h3) { font-family: GoldstineChillax, sans-serif !important; font-weight: 560 !important; letter-spacing: -.02em; text-wrap: balance; }
body #main#main#main#main#main .rpx h2 { font-size: var(--g-t-h1, clamp(36px, 4.4vw, 74px)) !important; line-height: 1.02 !important; }
body #main#main#main#main#main .rpx h3 { font-size: var(--g-t-h3, clamp(20px, 1.6vw, 26px)) !important; line-height: 1.15 !important; }
body #main#main#main#main#main .rpx p { font: inherit !important; }
#main .rpx img { display: block; max-width: none; }
#main .rpx a:not(#x):focus-visible, #main .rpx button:not(#x):focus-visible, #main .rpx textarea:focus-visible, #main .rpx input:focus-visible, #main .rpx [tabindex]:focus-visible { outline: 2px solid var(--interfaces); outline-offset: 3px; }

/* utilities */
#main .rpx-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes rpx-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes rpx-fade { from { opacity: 0; transform: scale(1.03); } }

@media (max-width: 809px) {
  body #main#main#main#main#main .rpx h2 { font-size: clamp(32px, 9vw, 44px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  #main .rpx *, #main .rpx *::before, #main .rpx *::after { transition-duration: .01s !important; animation: none !important; }
}
