/* ==========================================================================
   Base Typography and Global Styles
   ========================================================================== */

body {
	font-family: var(--font-family-base);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-normal);
	color: var(--color-text-primary);
	background-color: var(--color-background);
	line-height: var(--line-height-normal);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
	font-weight: var(--font-weight-semibold);
	line-height: var(--line-height-tight);
	color: var(--color-text-primary);
	margin-bottom: var(--space-md);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

p {
	margin-bottom: var(--space-md);
	line-height: var(--line-height-relaxed);
	max-width: 75ch; /* Optimal reading width */
}

/* Links */
a {
	color: var(--color-link);
	text-decoration: none;
	transition: color var(--transition-fast);
	outline-offset: 0.25rem;
}

a:hover,
a:focus-visible {
	color: var(--color-link-hover);
	text-decoration: underline;
}

a:focus-visible {
	outline: 2px solid var(--color-primary-cyan);
	outline-offset: 0.25rem;
}

/* Skip Link - Accessibility */
.skip-link {
	position: absolute;
	top: -100%;
	left: 0;
	padding: var(--space-sm) var(--space-md);
	background-color: var(--color-primary-cyan);
	color: white;
	font-weight: var(--font-weight-semibold);
	z-index: var(--z-index-toast);
	text-decoration: none;
}

.skip-link:focus {
	top: 0;
}

/* Visually Hidden (Screen Reader Only) */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* Address Element */
address {
	font-style: normal;
}

/* Time Element */
time {
	font-variant-numeric: tabular-nums;
}

/* Strong/Bold Text */
strong {
	font-weight: var(--font-weight-bold);
}

/* Lists */
ul, ol {
	padding-left: var(--space-lg);
}

/* Horizontal Rule */
hr {
	border: 0;
	border-top: 1px solid var(--color-border);
	margin: var(--space-lg) 0;
}
