/**
 * Base Styles
 * ============================================================================
 * This file contains foundational layout and typography styles that form
 * the base layer of the CSS architecture.
 *
 * Load order: After reset.css and 00-tokens.css, before component styles
 * Dependencies: 00-tokens.css (design tokens)
 *
 * Contents:
 * 1. Body/HTML defaults
 * 2. Layout containers (.content, .container)
 * 3. Links
 * 4. Typography defaults (headings, hr)
 */

/* ==========================================================================
   1. BODY/HTML DEFAULTS
   ========================================================================== */

body,
html {
	background-color: var(--white);
	color: var(--black);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
}

#content {
	position: relative;
}

/* ==========================================================================
   2. LAYOUT CONTAINERS
   ========================================================================== */

/**
 * Content and Container
 * Canonical definition for page width constraint.
 * These classes center content and apply consistent padding.
 *
 * IMPORTANT: Horizontal padding uses --content-padding-x which is responsive
 * (defined in 00-tokens.css with breakpoints). Component CSS should NOT override
 * padding-left/right directly - instead override the variable if needed:
 *
 *   .special-panel .content { --content-padding-x: 100px; }
 */
.content,
.container {
	margin: 0 auto;
	max-width: var(--container-xl);
	padding-left: var(--content-padding-x);
	padding-right: var(--content-padding-x);
	width: 100%; /* Required for flex children (e.g., .nav-container > .content) */
}

/* ==========================================================================
   3. LINKS
   ========================================================================== */

a {
	color: var(--link-color);
	text-decoration: underline;
}

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */

/* Utility class for Archivo heading font */
.font-archivo,
h1, h2, h3, h4, h5, h6,
.simpay-styled .simpay-form-title,
.simpay-styled .simpay-form-description {
	font-family: var(--font-heading);
}

/* Horizontal Rule */
hr {
	background: var(--border-grey);
	border: 0;
	height: 1px;
	margin-bottom: 30px;
}

/* Heading defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
	/* Font-family handled by utility class .font-archivo above */
}

h2 {
	font-size: 34px;
	font-weight: 900;
	line-height: 34px;
	margin-bottom: 30px;
}

h3 {
	font-size: 24px;
	font-weight: 900;
	line-height: 30px;
	margin-bottom: var(--space-8);
}
