/**
 * Typography Styles
 *
 * Font loading, heading styles, and text formatting
 */

/* ========================================
   FONT LOADING - Google Fonts
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

/* ========================================
   BASE TYPOGRAPHY
   ======================================== */
body {
	font-family: var(--font-primary);
	font-size: var(--text-body);
	font-weight: var(--font-weight-regular);
	line-height: var(--line-height-relaxed);
	color: var(--color-charcoal);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ========================================
   HEADINGS
   ======================================== */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-primary);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
	color: var(--color-charcoal);
	margin: 0 0 var(--space-md) 0;
}

h1 {
	font-size: var(--text-h1);
	margin-bottom: var(--space-lg);
}

h2 {
	font-size: var(--text-h2);
}

h3 {
	font-size: var(--text-h3);
}

h4 {
	font-size: var(--text-h4);
}

h5 {
	font-size: var(--text-h5);
}

h6 {
	font-size: var(--text-body);
	font-weight: var(--font-weight-semibold);
}

/* ========================================
   SPECIAL HEADING STYLES
   ======================================== */

/* Hero heading with gradient */
.bp-heading-hero {
	font-size: var(--text-hero);
	font-weight: var(--font-weight-black);
	line-height: var(--line-height-tight);
	margin-bottom: var(--space-md);
}

/* Gradient text effect */
.bp-heading-gradient {
	background: var(--gradient-hero);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Section heading */
.bp-section-heading {
	font-size: var(--text-h2);
	font-weight: var(--font-weight-bold);
	text-align: center;
	margin-bottom: var(--space-2xl);
	position: relative;
}

.bp-section-heading::after {
	content: '';
	display: block;
	width: 80px;
	height: 4px;
	background: var(--gradient-billie);
	margin: var(--space-md) auto 0;
	border-radius: var(--radius-full);
}

/* ========================================
   PARAGRAPH & TEXT STYLES
   ======================================== */
p {
	margin: 0 0 var(--space-md) 0;
}

.bp-text-lg {
	font-size: var(--text-body-lg);
	line-height: var(--line-height-normal);
}

.bp-text-sm {
	font-size: var(--text-sm);
}

.bp-text-xs {
	font-size: var(--text-xs);
}

/* Text alignment utilities */
.text-center {
	text-align: center;
}

.text-left {
	text-align: left;
}

.text-right {
	text-align: right;
}

/* Font weight utilities */
.font-regular {
	font-weight: var(--font-weight-regular);
}

.font-semibold {
	font-weight: var(--font-weight-semibold);
}

.font-bold {
	font-weight: var(--font-weight-bold);
}

.font-black {
	font-weight: var(--font-weight-black);
}

/* Text color utilities */
.text-charcoal {
	color: var(--color-charcoal);
}

.text-gray {
	color: var(--color-gray);
}

.text-pink {
	color: var(--color-pink-primary);
}

.text-teal {
	color: var(--color-teal-fresh);
}

.text-white {
	color: var(--color-white);
}

/* ========================================
   LINKS
   ======================================== */
a {
	color: var(--color-teal-fresh);
	text-decoration: none;
	transition: color var(--transition-speed) var(--transition-easing);
}

a:hover,
a:focus {
	color: var(--color-pink-primary);
}

a:focus-visible {
	outline: 3px solid var(--color-teal-fresh);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Remove outline for mouse users, keep for keyboard users */
a:focus:not(:focus-visible) {
	outline: none;
}

/* ========================================
   RICH CONTENT STYLES (Blog Posts)
   ======================================== */
.bp-content {
	font-size: var(--text-body);
	line-height: var(--line-height-relaxed);
	color: var(--color-charcoal);
}

.bp-content p {
	margin-bottom: 1.5em;
}

.bp-content h2,
.bp-content h3,
.bp-content h4 {
	margin-top: 2em;
	margin-bottom: 0.75em;
}

.bp-content ul,
.bp-content ol {
	margin: 0 0 var(--space-md) 0;
	padding-left: var(--space-lg);
	list-style-position: outside;
}

.bp-content ul {
	list-style-type: disc;
}

.bp-content ol {
	list-style-type: decimal;
}

.bp-content li {
	margin-bottom: var(--space-sm);
	line-height: var(--line-height-relaxed);
}

.bp-content blockquote {
	margin: var(--space-xl) 0;
	padding: var(--space-lg);
	background: var(--color-cream);
	border-left: 4px solid var(--color-pink-primary);
	border-radius: var(--radius-sm);
	font-style: italic;
	font-size: var(--text-body-lg);
}

.bp-content blockquote p:last-child {
	margin-bottom: 0;
}

.bp-content code {
	background: var(--color-cream);
	padding: 2px 6px;
	border-radius: 4px;
	font-family: 'Courier New', Courier, monospace;
	font-size: 0.9em;
}

.bp-content pre {
	background: var(--color-charcoal);
	color: var(--color-white);
	padding: var(--space-lg);
	border-radius: var(--radius-md);
	overflow-x: auto;
	margin: var(--space-lg) 0;
}

.bp-content pre code {
	background: none;
	padding: 0;
	color: inherit;
}

.bp-content img {
	border-radius: var(--radius-md);
	margin: var(--space-xl) 0;
	box-shadow: var(--shadow-md);
}

.bp-content figcaption {
	font-size: var(--text-sm);
	color: var(--color-gray);
	text-align: center;
	margin-top: var(--space-sm);
	font-style: italic;
}

/* ========================================
   LEAD PARAGRAPH (First paragraph emphasis)
   ======================================== */
.bp-content > p:first-of-type {
	font-size: var(--text-body-lg);
	color: var(--color-charcoal);
	line-height: var(--line-height-normal);
}

/* ========================================
   LISTS - Custom Styled
   ======================================== */
.bp-list-clean {
	list-style: none;
	padding: 0;
	margin: 0;
}

.bp-list-inline {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
}

/* ========================================
   EMPHASIS & FORMATTING
   ======================================== */
strong, b {
	font-weight: var(--font-weight-bold);
}

em, i {
	font-style: italic;
}

mark {
	background: var(--color-peach-light);
	padding: 2px 4px;
	border-radius: 4px;
}

small {
	font-size: var(--text-sm);
}

abbr[title] {
	text-decoration: underline dotted;
	cursor: help;
}

/* ========================================
   RESPONSIVE TYPOGRAPHY
   ======================================== */
@media (max-width: 768px) {
	body {
		font-size: 16px;
	}

	.bp-content blockquote {
		padding: var(--space-md);
		margin: var(--space-lg) 0;
	}
}
