/* ===================================================================
 * EC BASE — typography, body, links, headings, buttons base.
 *
 * Targets generic elements + Bootstrap 3 base classes that OneUp uses
 * (.btn). Per the OneUp DOM inventory, the theme uses Bootstrap 3
 * conventions throughout.
 * ================================================================ */

/* Scroll-margin offset for in-page anchors so they don't land behind
 * the fixed navbar. WCAG 2.2 SC 2.4.12 (Focus Not Obscured — Minimum)
 * requires keyboard focus and anchor targets not be entirely hidden by
 * sticky chrome. Mirrors the AFTER-SCROLL (shrunk) header height —
 * in-page jumps land while the navbar is in .menu-fixed state. */
:root {
	scroll-padding-top: 75px;
}

body,
.wpb_text_column,
.wpb_text_column p {
	font-family: var(--ec-font-family);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.heading,
.title {
	font-family: var(--ec-font-heading);
}

a {
	transition: color var(--ec-transition);
}
a:hover,
a:focus {
	color: var(--ec-color-link-hover);
}

/* Selection respects brand */
::selection {
	background: var(--ec-color-accent);
	color: var(--ec-color-primary);
}
::-moz-selection {
	background: var(--ec-color-accent);
	color: var(--ec-color-primary);
}

/* Focus-visible — accessibility baseline.
   OneUp's defaults are inconsistent; force a visible gold ring on
   keyboard navigation across all interactive elements. */
:focus-visible {
	outline: 2px solid var(--ec-color-accent);
	outline-offset: 2px;
}
