body {
	font-family: var(--font-family-body);
	font-size: var(--font-size-body);
	font-weight: var(--font-weight-regular);
	line-height: var(--line-height-body);

	color: var(--color-text);
	background: var(--color-background);

	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ==========================
   BASE HEADINGS
========================== */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--space-5);

	font-family: var(--font-family-heading);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-heading);
	letter-spacing: var(--letter-spacing-heading);

	color: var(--color-text);
}

h1 {
	font-size: var(--font-size-page-title);
	line-height: var(--line-height-tight);
	letter-spacing: var(--letter-spacing-tight);
}

h2 {
	font-size: var(--font-size-section-title);
}

h3 {
	font-size: var(--font-size-card-title);
}

h4 {
	font-size: 22px;
}

h5 {
	font-size: 18px;
}

h6 {
	font-size: var(--font-size-body);
}

/* ==========================
   BASE TEXT
========================== */

p {
	margin: 0 0 var(--space-4);
}

strong,
b {
	font-weight: var(--font-weight-bold);
}

small {
	font-size: var(--font-size-small);
}

ul,
ol {
	margin: 0 0 var(--space-5);
	padding-left: var(--space-6);
}

li {
	margin-bottom: var(--space-2);
}

blockquote {
	margin: var(--space-7) 0;
	padding-left: var(--space-5);

	border-left: 2px solid var(--color-primary);

	font-size: var(--font-size-body-large);
	line-height: var(--line-height-relaxed);
	color: var(--color-text-light);
}

/* ==========================
   LINKS
========================== */

a {
	color: inherit;
	text-decoration: none;
}

.entry-content a,
.text-link {
	color: var(--color-primary);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;

	transition: color var(--transition-base);
}

.entry-content a:hover,
.text-link:hover {
	color: var(--color-primary-dark);
}

@media (prefers-reduced-motion: reduce) {
	.entry-content a,
	.text-link {
		transition: none;
	}
}

/* ==========================
   TYPOGRAPHY ROLES
========================== */

.text-display {
	font-family: var(--font-family-heading);
	font-size: var(--font-size-display);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
	letter-spacing: var(--letter-spacing-tight);
	color: var(--color-text);
}

.text-page-title {
	font-family: var(--font-family-heading);
	font-size: var(--font-size-page-title);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
	letter-spacing: var(--letter-spacing-tight);
	color: var(--color-text);
}

.text-section-title {
	font-family: var(--font-family-heading);
	font-size: var(--font-size-section-title);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-heading);
	letter-spacing: var(--letter-spacing-heading);
	color: var(--color-text);
}

.text-card-title {
	font-family: var(--font-family-heading);
	font-size: var(--font-size-card-title);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-heading);
	letter-spacing: var(--letter-spacing-heading);
	color: var(--color-text);
}

.text-body-large {
	font-size: var(--font-size-body-large);
	line-height: var(--line-height-relaxed);
	color: var(--color-text-light);
}

.text-body {
	font-size: var(--font-size-body);
	line-height: var(--line-height-body);
	color: var(--color-text);
}

.text-small {
	font-size: var(--font-size-small);
	line-height: var(--line-height-body);
	color: var(--color-text-light);
}

.text-caption {
	font-size: var(--font-size-caption);
	line-height: var(--line-height-body);
	color: var(--color-text-muted);
}

.text-eyebrow {
	margin-bottom: var(--space-3);

	font-size: var(--font-size-eyebrow);
	font-weight: var(--font-weight-semibold);
	letter-spacing: var(--letter-spacing-eyebrow);
	line-height: 1.3;
	text-transform: uppercase;

	color: var(--color-text-muted);
}

.text-muted {
	color: var(--color-text-light);
}

.text-inverse {
	color: var(--color-text-inverse);
}

/* ==========================
   CONTENT / WYSIWYG
========================== */

.entry-content,
.prose {
	font-size: var(--font-size-body);
	line-height: var(--line-height-relaxed);
	color: var(--color-text-light);
}

.entry-content > *:last-child,
.prose > *:last-child {
	margin-bottom: 0;
}

.entry-content h1,
.prose h1 {
	font-size: var(--font-size-page-title);
}

.entry-content h2,
.prose h2 {
	margin-top: var(--space-9);
	font-size: var(--font-size-section-title);
}

.entry-content h3,
.prose h3 {
	margin-top: var(--space-7);
	font-size: var(--font-size-card-title);
}

.entry-content p,
.prose p {
	margin-bottom: var(--space-5);
}

.entry-content ul,
.entry-content ol,
.prose ul,
.prose ol {
	margin-bottom: var(--space-6);
}

.entry-content img,
.prose img {
	border-radius: var(--radius-lg);
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 680px) {
	body {
		font-size: var(--font-size-body);
	}

	h1,
	.text-display,
	.text-page-title {
		letter-spacing: -0.03em;
	}

	.text-body-large {
		font-size: 18px;
	}
}