/*
Theme Name: Twenty Eleven Child (Blankstyle)
Theme URI: https://www.blankstyle.com/blog/
Description: Modernized child theme for the Blankstyle.com Blog. Adds featured image display on single posts, responsive fixes, and updated typography while inheriting Twenty Eleven's structure.
Author: Blankstyle
Template: twentyeleven
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: twentyeleven-child
*/

/* ==========================================================================
   1. Modern typography
   ========================================================================== */

body,
input,
textarea,
.page-title span,
.pingback a.url {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
}

body {
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.entry-content,
.entry-summary {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: #2b2b2b;
}

.entry-content p {
	margin-bottom: 1.4em;
}

.entry-title,
.singular .entry-title {
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: #111;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
	color: #111;
	margin-top: 1.8em;
	margin-bottom: 0.6em;
}

.entry-content h2 { font-size: 1.6em; }
.entry-content h3 { font-size: 1.3em; }
.entry-content h4 { font-size: 1.1em; }

.entry-content ul,
.entry-content ol {
	margin-bottom: 1.4em;
}

.entry-content li {
	margin-bottom: 0.5em;
}

/* Readable measure on wide screens */
.singular .entry-content,
.singular .entry-header {
	max-width: 42em;
}

/* ==========================================================================
   2. Featured image on single posts
   ========================================================================== */

.entry-featured-image {
	margin: 0 0 1.8em;
}

.entry-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

.entry-featured-image figcaption {
	font-size: 0.85em;
	color: #666;
	margin-top: 0.5em;
	font-style: italic;
}

/* ==========================================================================
   3. Responsive / mobile fixes
   ========================================================================== */

img,
video,
iframe,
embed,
object {
	max-width: 100%;
	height: auto;
}

.entry-content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 0.6em 0.8em;
	border: 1px solid #e2e2e2;
	text-align: left;
}

.entry-content th {
	background: #f6f6f6;
	font-weight: 600;
}

.entry-content pre {
	overflow-x: auto;
	padding: 1em;
	background: #f6f6f6;
	border-radius: 4px;
}

@media (max-width: 800px) {
	#page {
		margin: 0 auto;
		padding: 0 1em;
	}

	#primary,
	#content {
		float: none;
		width: auto;
		margin: 0;
	}

	#secondary {
		float: none;
		width: auto;
		margin: 2em 0 0;
	}

	.singular .entry-header,
	.singular .entry-content,
	.singular footer.entry-meta {
		width: auto;
		max-width: none;
	}

	.entry-title,
	.singular .entry-title {
		font-size: 1.75em;
	}

	body {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.entry-title,
	.singular .entry-title {
		font-size: 1.5em;
	}
}

/* ==========================================================================
   4. Links, focus states, accessibility
   ========================================================================== */

.entry-content a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 2px solid #1a6ec4;
	outline-offset: 2px;
}
