/* Type, spacing and icon rules shared by the home page, the features page, the
   checkout (thank-you state included) and the portal home.
   11 Oct 2026, Howard's picker answer "1b, 2b, 3b, 4b, 5b" on the ElevenLabs
   review (The Ken\Design\elevenlabs-review-2026-10-11). Scale and rationale:
   skills\howard-design-principles\references\type-and-spacing-scale.md.
   Colours are untouched. Every rule carries !important so it wins over the
   pages' own inline rules, exactly as the approved mock-ups drew it.
   Loaded LAST on each page, after the page's own styles, so the cascade is the
   one the mock-ups were drawn in. The page-specific rules sit in
   type-and-spacing-home.css, -features.css, -checkout.css and
   portal/css/type-and-spacing-portal.css. */

/* R1 one typeface. Every page draws Stone Hyperlegible (the house face, plain zero) through var(--font-body)
   and var(--font-display), loaded from fonts/fonts.css. */

/* R3 tracking: +0.01em on 14 to 18px text */
html body { letter-spacing: 0.01em; }

/* A heading never ends on a single word (Howard's acceptance rule, 11 Oct 2026) */
h1, h2, h3 { text-wrap: balance; }

/* R9 header: nav links 16/500, the Portal link 44px tall with 20px side padding, the Register pill 48px with 24px, 16px labels */
body header.site-header nav.sh-row a { font-size: 16px !important; font-weight: 400 !important; letter-spacing: 0.01em !important; }
body header.site-header a.sh-portal { min-height: 44px !important; height: 44px !important; padding: 0 20px !important; font-size: 16px !important; font-weight: 400 !important; }
/* the Register interest pill is the primary button spec: 48px tall, 24px side padding (U-143; coordinator ruling 12 Oct 2026) */
body header.site-header .nav-order { min-height: 48px !important; height: 48px !important; padding: 0 24px !important; font-size: 16px !important; font-weight: 400 !important; }
/* The one place the pill's side padding gives way (site-header.css, U-143): at 360px and under, the mark and the burger share 280px */
@media (max-width: 360px) { body header.site-header .nav-order { padding: 0 12px !important; } }

/* R9 buttons: 48px pill (U-143), 16px label at 500; secondary is a hairline ring with no drop shadow, except the home page's See how it works */
.cta-particle, .cta-btn, a.pay-btn, button.pay-btn, .pk-btn { font-size: 16px !important; font-weight: 400 !important; letter-spacing: 0.01em !important; }
.cta-btn.secondary, .cta-btn.hero-secondary { box-shadow: none !important; border: 1px solid rgba(37,35,34,0.22) !important; }
/* the home page's See how it works keeps its soft shadow and gold edge (U-143: shadow and a 3:1 edge; coordinator ruling 12 Oct 2026) */
.cta-particle--secondary { box-shadow: 0 2px 8px rgba(31,27,23,0.08) !important; border: 1.5px solid #9A7B4F !important; }
