/* Typography Scale & Font Styles */

/* Font Sizes (Modular Scale 1.25) */
.text-xs {
	font-size: 0.875rem;
}

.text-sm {
	font-size: 1rem;
}

.text-md {
	font-size: 1.25rem;
}

.text-lg {
	font-size: 1.5625rem;
}

.text-xl {
	font-size: 1.953rem;
}

.text-2xl {
	font-size: 2.441rem;
}

.text-3xl {
	font-size: 3.052rem;
}

/* Headings */
h1,
.h1 {
	font-family: var(--font-headline);
	font-size: 2.441rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
	color: var(--color-primary);
}

h2,
.h2 {
	font-family: var(--font-headline);
	font-size: 1.953rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
	color: var(--color-primary);
}

h3,
.h3 {
	font-family: var(--font-headline);
	font-size: 1.5625rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 0.75rem;
	color: var(--color-primary);
}

h4,
.h4 {
	font-family: var(--font-headline);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 0.75rem;
	color: var(--color-primary);
}

h5,
.h5 {
	font-family: var(--font-headline);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 0.5rem;
	color: var(--color-primary);
}

h6,
.h6 {
	font-family: var(--font-headline);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 0.5rem;
	color: var(--color-primary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Body Text */
p {
	font-size: 1rem;
	line-height: 1.6;
	margin-bottom: 1rem;
	color: var(--color-text);
}

.text-muted {
	color: var(--color-muted);
	font-size: 0.875rem;
}

.text-light {
	color: #999;
}

.text-small {
	font-size: 0.875rem;
}

/* Links */
a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color 0.3s ease;
}

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

a:focus {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

/* Lists */
ul,
ol {
	margin-left: 1.5rem;
	margin-bottom: 1rem;
}

ul ul,
ol ol {
	margin-bottom: 0;
}

li {
	margin-bottom: 0.5rem;
	line-height: 1.6;
}

/* Blockquotes */
blockquote {
	border-left: 4px solid var(--color-accent);
	padding-left: 1.5rem;
	margin-left: 0;
	margin-bottom: 1.5rem;
	font-style: italic;
	color: var(--color-muted);
}

blockquote cite {
	display: block;
	margin-top: 0.5rem;
	font-style: normal;
	color: var(--color-text);
}

/* Code */
code,
kbd {
	font-family: 'Courier New', monospace;
	background-color: var(--color-light-gray);
	padding: 0.25rem 0.5rem;
	border-radius: var(--radius);
	font-size: 0.875rem;
}

pre {
	background-color: var(--color-light-gray);
	padding: 1rem;
	border-radius: var(--radius);
	overflow-x: auto;
	margin-bottom: 1.5rem;
	font-size: 0.875rem;
	line-height: 1.4;
}

pre code {
	background: none;
	padding: 0;
	border-radius: 0;
}

/* Table */
table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
}

table th,
table td {
	padding: 0.75rem;
	text-align: left;
	border-bottom: 1px solid var(--color-border);
}

table th {
	background-color: var(--color-light-gray);
	font-weight: 600;
	color: var(--color-primary);
}

table tbody tr:hover {
	background-color: var(--color-light-gray);
}

/* Abbreviations */
abbr {
	border-bottom: 1px dotted var(--color-border);
	cursor: help;
}

/* Mark/Highlight */
mark {
	background-color: #fff3cd;
	padding: 0.125rem 0.25rem;
	border-radius: 2px;
}

/* Inline Elements */
strong,
b {
	font-weight: 600;
}

em,
i {
	font-style: italic;
}

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

/* Responsive Typography */
@media (max-width: 768px) {
	h1,
	.h1 {
		font-size: 1.953rem;
	}

	h2,
	.h2 {
		font-size: 1.5625rem;
	}

	h3,
	.h3 {
		font-size: 1.25rem;
	}

	h4,
	.h4 {
		font-size: 1rem;
	}

	.section-title {
		font-size: 1.25rem;
	}
}

@media (max-width: 480px) {
	h1,
	.h1 {
		font-size: 1.5625rem;
	}

	h2,
	.h2 {
		font-size: 1.25rem;
	}

	h3,
	.h3 {
		font-size: 1.25rem;
	}

	p {
		font-size: 0.95rem;
	}
}
