/**
 * Modern Typography Styles
 * 
 * @package Blog Content
 */

/* ========================================
   Modern Font Stack
   ======================================== */

:root {
	/* Font families */
	--font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
	--font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-alt: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	
	/* Font sizes */
	--font-size-xs: 0.813rem;    /* 13px */
	--font-size-sm: 0.875rem;    /* 14px */
	--font-size-base: 1rem;      /* 16px */
	--font-size-md: 1.063rem;    /* 17px */
	--font-size-lg: 1.125rem;    /* 18px */
	--font-size-xl: 1.25rem;     /* 20px */
	--font-size-2xl: 1.5rem;     /* 24px */
	--font-size-3xl: 1.875rem;   /* 30px */
	--font-size-4xl: 2.25rem;    /* 36px */
	--font-size-5xl: 3rem;       /* 48px */
	
	/* Line heights */
	--line-height-tight: 1.25;
	--line-height-normal: 1.5;
	--line-height-relaxed: 1.7;
	--line-height-loose: 2;
	
	/* Font weights */
	--font-weight-light: 300;
	--font-weight-normal: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;
	
	/* Letter spacing */
	--letter-spacing-tight: -0.02em;
	--letter-spacing-normal: 0;
	--letter-spacing-wide: 0.02em;
	--letter-spacing-wider: 0.05em;
}

/* ========================================
   Base Typography
   ======================================== */

body {
	font-family: var(--font-primary) !important;
	font-size: var(--font-size-base);
	line-height: var(--line-height-relaxed);
	font-weight: var(--font-weight-normal);
	color: #333;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* ========================================
   Headings
   ======================================== */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--font-heading) !important;
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
	letter-spacing: var(--letter-spacing-tight);
	color: #1a1a1a;
	margin-top: 0;
	margin-bottom: 1rem;
}

h1, .h1 {
	font-size: var(--font-size-4xl);
	line-height: 1.2;
	margin-bottom: 1.5rem;
}

h2, .h2 {
	font-size: var(--font-size-3xl);
	line-height: 1.3;
	margin-bottom: 1.25rem;
}

h3, .h3 {
	font-size: var(--font-size-2xl);
	line-height: 1.35;
	margin-bottom: 1rem;
}

h4, .h4 {
	font-size: var(--font-size-xl);
	line-height: 1.4;
}

h5, .h5 {
	font-size: var(--font-size-lg);
	line-height: 1.45;
}

h6, .h6 {
	font-size: var(--font-size-base);
	line-height: 1.5;
	font-weight: var(--font-weight-semibold);
}

/* ========================================
   Paragraphs & Text
   ======================================== */

p {
	margin: 0 0 1.5rem 0;
	font-size: var(--font-size-md);
	line-height: var(--line-height-relaxed);
	color: #444;
}

.lead {
	font-size: var(--font-size-lg);
	line-height: var(--line-height-relaxed);
	font-weight: var(--font-weight-normal);
	color: #555;
	margin-bottom: 2rem;
}

.entry-content p {
	font-size: var(--font-size-md);
	line-height: var(--line-height-relaxed);
	color: #444;
	margin-bottom: 1.5rem;
}

/* ========================================
   Links
   ======================================== */

a {
	color: #007bff;
	text-decoration: none;
	transition: color 0.3s ease;
	font-weight: var(--font-weight-medium);
}

a:hover {
	color: #0056b3;
	text-decoration: underline;
}

.entry-content a {
	color: #007bff;
	font-weight: var(--font-weight-medium);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: all 0.3s ease;
}

.entry-content a:hover {
	color: #0056b3;
	text-decoration-thickness: 2px;
}

/* ========================================
   Lists
   ======================================== */

ul, ol {
	margin: 0 0 2rem 0;
	padding-left: 0;
	line-height: var(--line-height-relaxed);
}

/* Unordered lists */
ul {
	list-style: none !important;
	padding-left: 1.5rem;
	margin-left: 0;
}

ul::marker {
	display: none !important;
}

ul li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 1rem;
	font-size: var(--font-size-md);
	color: #444;
	line-height: var(--line-height-relaxed);
	list-style: none !important;
	text-align: left;
}

ul li::marker {
	display: none !important;
}

ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 8px;
	height: 8px;
	background: #007bff;
	border-radius: 50%;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

ul li:hover::before {
	transform: scale(1.3);
	background: #0056b3;
}

/* Nested lists */
ul ul li::before {
	width: 6px;
	height: 6px;
	background: #66a3ff;
	border: 2px solid #007bff;
	box-sizing: border-box;
}

ul ul ul li::before {
	background: transparent;
	border: 2px solid #007bff;
}

/* Ordered lists */
ol {
	list-style: none;
	counter-reset: item;
	padding-left: 1.5rem;
	margin-left: 0;
}

ol li {
	position: relative;
	padding-left: 2.5rem;
	margin-bottom: 1rem;
	font-size: var(--font-size-md);
	color: #444;
	line-height: var(--line-height-relaxed);
	counter-increment: item;
	text-align: left;
}

ol li::before {
	content: counter(item);
	position: absolute;
	left: 0;
	top: 0;
	width: 28px;
	height: 28px;
	background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.813rem;
	font-weight: var(--font-weight-bold);
	line-height: 1;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

ol li:hover::before {
	transform: scale(1.1);
	box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Nested ordered lists */
ol ol li::before {
	width: 24px;
	height: 24px;
	background: #66a3ff;
	font-size: 0.75rem;
}

ol ol ol li::before {
	background: #99c2ff;
}

/* Entry content lists */
.entry-content ul li,
.entry-content ol li {
	margin-bottom: 1rem;
	line-height: var(--line-height-relaxed);
	text-align: left;
}

/* Ensure text wraps properly */
.entry-content ul li,
.entry-content ol li,
.author-page-content ul li,
.author-page-content ol li {
	display: block;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* Task lists (checkboxes) */
ul.task-list,
.entry-content ul.task-list {
	list-style: none;
}

ul.task-list li::before {
	display: none;
}

ul.task-list li input[type="checkbox"] {
	margin-right: 10px;
	width: 18px;
	height: 18px;
	cursor: pointer;
}

/* ========================================
   Blockquotes
   ======================================== */

blockquote {
	position: relative;
	margin: 2.5rem 0;
	padding: 2rem 2rem 2rem 4rem;
	border-left: 5px solid #007bff;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	font-size: var(--font-size-lg);
	line-height: var(--line-height-relaxed);
	font-style: italic;
	color: #333;
	border-radius: 0 12px 12px 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
}

blockquote:hover {
	box-shadow: 0 6px 16px rgba(0, 123, 255, 0.15);
	transform: translateX(3px);
}

/* Quote icon */
blockquote::before {
	content: '"';
	position: absolute;
	left: 1rem;
	top: 1.5rem;
	font-size: 3rem;
	font-family: Georgia, serif;
	color: #007bff;
	opacity: 0.3;
	line-height: 1;
	font-weight: 700;
}

blockquote p {
	margin-bottom: 0.5rem;
	position: relative;
	z-index: 1;
}

blockquote p:last-of-type {
	margin-bottom: 0;
}

blockquote cite,
blockquote footer {
	display: block;
	margin-top: 1.5rem;
	font-size: var(--font-size-sm);
	font-style: normal;
	font-weight: var(--font-weight-semibold);
	color: #007bff;
	letter-spacing: 0.02em;
}

blockquote cite::before,
blockquote footer::before {
	content: '— ';
	margin-right: 4px;
}

/* Alternative blockquote style */
blockquote.style-2 {
	border-left: none;
	border-top: 4px solid #007bff;
	border-bottom: 4px solid #007bff;
	padding: 2rem;
	text-align: center;
	border-radius: 8px;
}

blockquote.style-2::before {
	content: none;
}

/* Pull quote */
.pullquote {
	float: right;
	width: 45%;
	margin: 0 0 1.5rem 2rem;
	padding: 1.5rem;
	border-top: 3px solid #007bff;
	border-bottom: 3px solid #007bff;
	background: #f8f9fa;
	font-size: var(--font-size-xl);
	font-style: italic;
	color: #007bff;
	text-align: center;
	border-radius: 8px;
}

@media (max-width: 768px) {
	.pullquote {
		float: none;
		width: 100%;
		margin: 1.5rem 0;
	}
}

/* ========================================
   Code & Pre
   ======================================== */

code {
	font-family: 'Fira Code', 'Monaco', 'Courier New', monospace;
	font-size: 0.9em;
	background: #f4f4f4;
	padding: 0.2em 0.4em;
	border-radius: 3px;
	color: #e83e8c;
	font-weight: var(--font-weight-medium);
}

pre {
	background: #2d2d2d;
	color: #f8f8f2;
	padding: 1.5rem;
	border-radius: 8px;
	overflow-x: auto;
	margin: 2rem 0;
	line-height: 1.5;
	font-size: var(--font-size-sm);
}

pre code {
	background: none;
	color: inherit;
	padding: 0;
}

/* ========================================
   Strong & Emphasis
   ======================================== */

strong, b {
	font-weight: var(--font-weight-bold);
	color: #1a1a1a;
}

em, i {
	font-style: italic;
	color: #555;
}

mark {
	background: #fff3cd;
	padding: 0.1em 0.3em;
	border-radius: 3px;
}

/* ========================================
   Small Text
   ======================================== */

small, .small {
	font-size: var(--font-size-sm);
	color: #666;
}

/* ========================================
   Entry Meta
   ======================================== */

.entry-meta,
.post-meta,
.card-meta {
	font-size: var(--font-size-sm);
	color: #666;
	font-family: var(--font-primary);
	font-weight: var(--font-weight-normal);
}

/* ========================================
   Post Title & Entry Title
   ======================================== */

.entry-title,
.card-title {
	font-family: var(--font-heading) !important;
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
	letter-spacing: var(--letter-spacing-tight);
	color: #1a1a1a;
}

.entry-title {
	font-size: var(--font-size-4xl);
	margin-bottom: 1rem;
}

.card-title {
	font-size: var(--font-size-xl);
	margin-bottom: 0.75rem;
}

.card-title a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.3s ease;
}

.card-title a:hover {
	color: #007bff;
}

/* ========================================
   Widget Typography
   ======================================== */

.widget-title {
	font-family: var(--font-heading) !important;
	font-size: var(--font-size-xl);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
	color: #1a1a1a;
	margin-bottom: 1.5rem;
}

.widget p {
	font-size: var(--font-size-base);
	line-height: var(--line-height-relaxed);
	color: #555;
}

/* ========================================
   Buttons
   ======================================== */

button,
.button,
.btn,
input[type="submit"],
input[type="button"] {
	font-family: var(--font-primary) !important;
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-semibold);
	letter-spacing: var(--letter-spacing-wide);
}

/* ========================================
   Navigation
   ======================================== */

.main-navigation a,
.site-header a {
	font-family: var(--font-primary) !important;
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-medium);
	letter-spacing: var(--letter-spacing-normal);
}

/* ========================================
   Footer Typography
   ======================================== */

.site-footer {
	font-size: var(--font-size-sm);
	line-height: var(--line-height-relaxed);
}

.site-footer p {
	font-size: var(--font-size-sm);
}

/* ========================================
   Responsive Typography
   ======================================== */

@media (max-width: 768px) {
	:root {
		--font-size-4xl: 2rem;      /* 32px */
		--font-size-3xl: 1.625rem;  /* 26px */
		--font-size-2xl: 1.375rem;  /* 22px */
		--font-size-xl: 1.125rem;   /* 18px */
	}

	body {
		font-size: 15px;
	}

	h1, .h1 {
		font-size: var(--font-size-3xl);
	}

	h2, .h2 {
		font-size: var(--font-size-2xl);
	}

	h3, .h3 {
		font-size: var(--font-size-xl);
	}

	.entry-title {
		font-size: var(--font-size-3xl);
	}

	p {
		font-size: 15px;
	}

	.entry-content p {
		font-size: 15px;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 14px;
	}

	h1, .h1 {
		font-size: 1.75rem;
	}

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

/* ========================================
   Better Reading Experience
   ======================================== */

.entry-content {
	max-width: 720px;
}

.entry-content > * {
	margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 2.5rem;
	margin-bottom: 1rem;
}

/* Improve text contrast */
.entry-content p,
.entry-content li {
	color: #333;
}

/* Better spacing for readability */
.entry-content p + p {
	margin-top: 1.5rem;
}

.entry-content ul + p,
.entry-content ol + p,
.entry-content p + ul,
.entry-content p + ol {
	margin-top: 1.5rem;
}

