/*
 * r16 fonts (Jay, 19 Oct 2026, STAGING): Space Grotesk for headings and the main menu only, matching the social look:
 * Light 300 for large headings, Medium 500 for smaller headings, the menu and labels already in capitals.
 * Body text, prices, buttons, forms, the configurator, basket and checkout keep Helvetica Neue.
 * Self-hosted variable woff2 from Google Fonts (SIL OFL 1.1, see ../fonts/SpaceGrotesk-OFL.txt): no third-party request.
 * Space Grotesk sets about 5% wider than Helvetica Neue / Arial, so it is drawn at 96% (size-adjust) to keep today's line
 * breaks and the one-line menu. "Space Grotesk Fallback" is Helvetica Neue / Arial scaled to the same width and vertical
 * metrics (size-adjust 101% = 105% x 96%, ascent 93.5%, descent 27.8%, from the font's own tables), so the swap does not shift the layout.
 */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; size-adjust: 96%;
	src: url(../fonts/SpaceGrotesk-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; size-adjust: 96%;
	src: url(../fonts/SpaceGrotesk-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk Fallback"; src: local("Helvetica Neue"), local("HelveticaNeue"), local("Helvetica"), local("Arial"), local("Liberation Sans");
	size-adjust: 101%; ascent-override: 93.5%; descent-override: 27.8%; line-gap-override: 0%; }

:root { --mg-display: "Space Grotesk", "Space Grotesk Fallback", "Helvetica Neue", Helvetica, Arial, sans-serif; }

/* Where the display face applies: headings, section and product titles. Not in the basket, checkout, configurator, forms or Woo components. */
body:not(.woocommerce-cart):not(.woocommerce-checkout) :is(h1, h2, h3, h4, .wp-block-post-title, .mg-pcard__title, .mg-vhero__title, .mg-empty__title):not(:is(.mg-cfg *, form *, .wc-block-components-sidebar-layout *, .wc-block-mini-cart__drawer *, .wp-block-woocommerce-mini-cart-contents *, .mg-cc *)) {
	font-family: var(--mg-display) !important;
}

/* Large headings: Light 300 (social headline weight). */
body:not(.woocommerce-cart):not(.woocommerce-checkout) :is(h1, h2, .mg-vhero__title, .mg-who2__title, .mg-pagehead__title, .mg-banner--dark .wp-block-query-title, .mg-product__summary .wp-block-post-title, .mg-section-title, .mg-process__title, .mg-h-sm):not(:is(.mg-cfg *, form *, .wc-block-components-sidebar-layout *, .wc-block-mini-cart__drawer *, .mg-cc *)) {
	font-weight: 300 !important;
}
/* Smaller headings and product card titles: Medium 500. */
body:not(.woocommerce-cart):not(.woocommerce-checkout) :is(h3, h4, .mg-pcard__title, .mg-empty__title):not(:is(.mg-cfg *, form *, .wc-block-components-sidebar-layout *, .mg-cc *)) { font-weight: 500 !important; }
/* Labels already in capitals (filter, footer and promise titles): Medium 500, spacing unchanged. */
body:not(.woocommerce-cart):not(.woocommerce-checkout) :is(.mg-filter-title, .mg-footer-nav__title, .mg-promise__title:not(.mg-promise--home *)) { font-weight: 500 !important; }
.mg-promise--home .mg-promise__title { font-weight: 300 !important; }

/* Main menu (desktop bar, mega panel headings, mobile drawer top level): Medium 500. */
.mg-nav__link, .mg-nav__toggle, .mg-mega__title, .mg-drawer__link, .mg-acc__toggle, .mg-drawer__title { font-family: var(--mg-display); font-weight: 500; }

/* Tracking: a touch tighter than before for smaller headings and the menu (Space Grotesk is open-set). Display titles keep their own -.04em. */
body:not(.woocommerce-cart):not(.woocommerce-checkout) :is(h3, h4, .mg-pcard__title, .mg-empty__title):not(:is(.mg-cfg *, form *, .wc-block-components-sidebar-layout *, .mg-cc *, .mg-filter-title, .mg-footer-nav__title, .mg-promise__title)) { letter-spacing: -.02em !important; }
body:not(.woocommerce-cart):not(.woocommerce-checkout) :is(h1, h2):not(:is(.mg-cfg *, form *, .wc-block-components-sidebar-layout *, .mg-cc *, .mg-filter-title, .mg-footer-nav__title, .mg-pagehead__title, .mg-who2__title, .mg-banner--dark *, .mg-product__summary *, .mg-cartempty__title)) { letter-spacing: -.015em; }
.mg-nav__link, .mg-nav__toggle { letter-spacing: -.01em; }

/* r16.1 (Jay, 20 Oct): balanced line breaks so no word sits alone on its own line (e.g. "every / time" at 390px).
   Browsers without text-wrap: balance keep the normal wrap. */
body:not(.woocommerce-cart):not(.woocommerce-checkout) :is(h1, h2, h3, h4, .mg-vhero__title, .mg-pcard__title):not(:is(.mg-cfg *, form *, .wc-block-components-sidebar-layout *, .mg-cc *)) { text-wrap: wrap; text-wrap: balance; }
