/*
 * File: assets/css/core/sol-base.css
 * Page defaults, typography and the shared layout rules.
 * Core file: do not delete.
 */

/* ==========================================================================
   Page defaults
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	background-color: var(--sol-bg);
	color: var(--sol-text);
	font-family: var(--sol-font-sans);
	font-size: var(--sol-text-md);
	line-height: var(--sol-leading-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden; /* a wide child must never create sideways scrolling */
	transition: background-color var(--sol-normal) ease, color var(--sol-normal) ease;
}

::selection {
	background: var(--sol-accent);
	color: var(--sol-accent-ink);
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration-color: var(--sol-line);
	text-underline-offset: 3px;
	transition: color var(--sol-fast) ease;
}

a:hover {
	color: var(--sol-gold-text);
}

:focus-visible {
	outline: 2px solid var(--sol-focus);
	outline-offset: 3px;
}

.sol-muted {
	color: var(--sol-muted);
}

.sol-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   Headings
   Dark mode: headings are yellow. !important is used on purpose, because
   Elementor kits can set heading colors with strong selectors; this keeps
   the theme token authoritative on the dark background.
   Sections that sit on a colored panel override this in their own file.
   ========================================================================== */
h1,
h2,
.elementor-widget-heading .elementor-heading-title {
	color: var(--sol-heading) !important;
	font-family: var(--sol-font-serif);
	font-weight: 500;
	line-height: var(--sol-leading-title);
	letter-spacing: -0.01em;
}

/* Elementor resets heading margins; we do the same so spacing is the same everywhere. */
.elementor-widget-heading .elementor-heading-title {
	margin: 0;
}

h1 { font-size: var(--sol-h1); }
h2 { font-size: var(--sol-h2); }
h3 { font-size: var(--sol-h3); }

h3,
h4 {
	font-family: var(--sol-font-serif);
	line-height: var(--sol-leading-title);
}

/* ==========================================================================
   Page sections built in Elementor
   Add the class "sol-section" to a boxed container: it gets side padding
   (so nothing touches the screen edge on phones) and vertical spacing.
   ========================================================================== */
.e-con.sol-section {
	padding: clamp(24px, 4vw, 44px) var(--sol-gutter);
}

.sol-section > .e-con-inner {
	width: 100%;
	max-width: calc(var(--sol-container) - var(--sol-gutter) * 2);
	margin-inline: auto;
}

.sol-section .elementor-widget-heading .elementor-heading-title {
	font-size: var(--sol-h2);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* Standalone theme content fallbacks. Elementor pages are deliberately not
   constrained: .sol-content-wrap is only used by native WordPress templates. */
.sol-site-content { min-height: 50vh; }
.sol-content-wrap { width: min(calc(100% - (var(--sol-gutter) * 2)), var(--sol-container)); margin-inline: auto; padding-block: clamp(32px, 6vw, 80px); }
.sol-entry { padding-block: 24px; border-bottom: 1px solid var(--sol-line); }
.sol-entry__header h1, .sol-entry__header h2 { margin-top: 0; }
.sol-entry__content > :first-child, .sol-entry__summary > :first-child { margin-top: 0; }
.sol-entry__content > :last-child, .sol-entry__summary > :last-child { margin-bottom: 0; }
