/*
Theme Name: UnixTeacher
Theme URI: https://www.unixteacher.org
Author: Marian Amza
Description: Minimal single-purpose blog theme for unixteacher.org. No external assets, no customizer, no bloat.
Version: 2.0
Text Domain: unixteacher
*/

/* ---------- Reset / base ---------- */

*,
*:before,
*:after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 0;
	background: #000;
	color: #000;
	font-family: sans-serif;
	font-size: 100%;
	line-height: 1.5;
	word-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	padding: 0;
	font-weight: 400;
}

h1 { font-size: 1.75em; line-height: 1.2; }
h2 { font-size: 1.5em; line-height: 1.25; }
h3 { font-size: 1.25em; line-height: 1.3; }

p, table { margin: 1.5em 0; }

ol, ul { margin: 1.5em; padding: 0; }
ol ol, ol ul, ul ol, ul ul { margin: 0 1.5em; }
li li { font-size: 1em; }

a, a:link, a:visited { color: #000; text-decoration: underline; }
a:active, a:focus, a:hover { color: #5c6066; }
a img { border: none; }

hr { margin: 1.5em 0; border: none; border-top: 1px solid #D9D9D9; }

blockquote {
	margin: 1.5em 1.5em 1.5em 0;
	padding-left: 1.5em;
	border-left: solid 3px #000;
}
blockquote cite { display: block; text-align: right; }

pre {
	overflow-x: auto;
	background: #f9f9f9;
	padding: .75em;
}
code { padding: 0 .375em; background: #F0F1F2; }

table { border-spacing: 0; border-collapse: collapse; }
td, th { padding: .5em .75em; border: 1px solid #000; }

img { max-width: 100%; height: auto; }
.alignleft { float: left; margin: 0 1.5em 1.5em 0; }
.alignright { float: right; margin: 0 0 1.5em 1.5em; }
.aligncenter { margin: 1.5em auto; display: block; }

input:not([type=checkbox]):not([type=radio]):not([type=submit]),
textarea {
	width: 100%;
	max-width: 27.75em;
	padding: 9px 12px;
	background: #F0F1F2;
	color: #000;
	outline: 1px solid #D9D9D9;
	border: none;
	border-radius: 0;
	font-family: inherit;
}
input:not([type=checkbox]):not([type=radio]):not([type=submit]):focus,
textarea:focus { background: #fff; }
textarea { max-width: 41.625em; overflow: auto; }

input[type=submit] {
	padding: .8em;
	width: 100%;
	max-width: 13.875em;
	color: #fff;
	background: #000;
	outline: 0;
	border: none;
	border-radius: 0;
	transition: background .2s ease-in-out;
}
input[type=submit]:hover,
input[type=submit]:focus { cursor: pointer; background: #5c6066; }

.screen-reader-text {
	position: absolute;
	clip: rect(1px, 1px, 1px, 1px);
	overflow: hidden;
	height: 1px;
	width: 1px;
}

.skip-content {
	position: absolute;
	top: -4.5em;
	left: 0;
	width: 100%;
	z-index: 99;
	padding: 1.5em;
	background: #000;
	color: #fff;
	transition: top .2s ease;
}
.skip-content:link, .skip-content:visited { color: #fff; }
.skip-content:focus { top: 0; outline: 0; }

#breadcrumbs { margin: 0; padding: 0 7.4074%; }
.singular #breadcrumbs { margin-bottom: 1.5em; }

/* ---------- Layout ---------- */

.overflow-container { position: relative; overflow: hidden; min-height: 100%; }
.max-width { min-height: 100%; }

.main {
	position: relative;
	padding: 1.5em 7.4074%;
	min-height: 100vh;
	background: #F0F1F2;
}

.main-sidebar {
	position: relative;
	padding: 1.5em 7.4074%;
	background: #000;
	color: #fff;
}

.sidebar-primary { max-height: 0; overflow: hidden; }
.open .sidebar-primary { max-height: 9999px; }

@media all and (min-width: 34.375em) {
	.sidebar-primary { position: absolute; width: 320px; left: 0; padding: 0 8.69629%; }
	.main { padding: 1.5em 7.4074%; }
	.open ~ .main { transform: translateX(320px); }
	.open ~ .main:after {
		content: '';
		position: absolute;
		top: 0; right: 0; bottom: 0; left: 0;
		background: #000;
		opacity: .3;
	}
}

/* Sidebar is a fixed width from here on - it only ever holds a short nav and
   a widget list, so it shouldn't keep growing on wider screens. Flexbox (not
   floats) so the sidebar and main column always stretch to equal height,
   whichever is taller - no float-clearing gap above the footer. */
@media all and (min-width: 59.375em) {
	.max-width { display: flex; align-items: stretch; }
	.main { flex: 1 1 auto; min-width: 0; padding: 3em 5.555%; }
	.main-sidebar { flex: 0 0 320px; padding: 3em 24px; }
	.sidebar-primary { position: relative; max-height: none; width: auto; padding: 0; }
	.site-footer { margin-left: 320px; }
}

/* ---------- Header ---------- */

.site-header:after { content: ''; display: block; clear: both; }
.title-container { float: left; }
.tagline { display: none; margin: 5px 0 0; color: #d7b56d; }

.site-title { font-size: 1.3125em; line-height: 36px; }
.site-title a { color: #d7b56d; text-decoration: none; }
.site-title a:hover, .site-title a:focus { text-decoration: underline; }

.toggle-navigation {
	float: right;
	height: 36px;
	width: 36px;
	margin: 0;
	padding: 0;
	background: none;
	border: 1px solid #3E4145;
	color: #fff;
}
.toggle-navigation:focus { border-color: #999; outline: 0; }
.open .toggle-navigation { border-color: #999; }

span.bars { display: block; width: 16px; margin: 0 auto; }
span.bars span {
	display: block;
	height: 2px;
	margin: 3px 0;
	background-color: #fff;
	border-radius: 1px;
}

@media all and (min-width: 34.375em) {
	.site-title { font-size: 1.75em; line-height: 1; }
	.tagline { display: block; }
}

@media all and (min-width: 59.375em) {
	.toggle-navigation { display: none; }
	.title-container { float: none; text-align: center; padding-bottom: .75em; }
}

/* ---------- Primary menu ---------- */

.menu-primary { max-height: 0; overflow: hidden; clear: both; }
.open .menu-primary { max-height: 9999px; }

.menu-primary-items {
	list-style: none;
	margin: 1.5em 0;
	padding: 1.5em 0 0;
	border-top: solid 1px #3E4145;
}
.menu-primary-items ul { list-style: none; margin: 0 0 0 .75em; }
.menu-primary-items a {
	display: inline-block;
	margin: .375em 0;
	color: #fff;
	text-decoration: none;
}
.menu-primary-items ul a { color: #CCC; }
.current-menu-item > a,
.current_page_item > a,
.menu-primary-items a:hover,
.menu-primary-items a:focus { text-decoration: underline; }

@media all and (min-width: 34.375em) {
	.menu-primary { position: absolute; width: 320px; top: 100%; left: 0; padding: 0 8.69629%; }
	.menu-primary-items { margin-top: 0; }
}

@media all and (min-width: 59.375em) {
	.menu-primary { position: relative; max-height: none; width: auto; padding: 0; }
}

/* ---------- Widgets (sidebar) ---------- */

.widget { padding: 1.5em 0; border-top: solid 1px #3E4145; color: #CCC; }
.widget .widget-title { font-size: 1em; margin-bottom: .75em; color: #fff; }
.widget ul { list-style: none; margin: 0; }
.widget li { margin-bottom: 6px; }
.widget a { color: #CCC; text-decoration: none; }
.widget a:hover, .widget a:focus { color: #fff; text-decoration: underline; }

/* ---------- Entries ---------- */

.entry { position: relative; margin-bottom: 1.5em; }
.entry article { padding: 1.5em 7.4074%; background: #fff; }

.post-header { margin: .75em 0 1.5em; }
.post-title { color: #410303; text-align: center; }
.post-title a { color: #000; text-decoration: none; transition: color .2s ease-in-out; }
.post-title a:hover, .post-title a:focus { color: #5c6066; }

.post-meta { display: block; font-size: .9em; color: #5c6066; margin-top: 2em; }

.post-content { margin: 1.5em 0; }
.post-content:after { content: ''; display: block; clear: both; }
.post-content iframe { max-width: 100%; }

.recent-posts { list-style: square; padding-left: 0; }

.more-link-wrapper { text-align: center; }

.post-categories, .post-tags { margin: 1.5em 0 0; }
.post-categories a { margin-left: .75em; }
.post-tags ul { list-style: none; margin: 0; }
.post-tags li { display: inline-block; }
.post-tags a {
	display: inline-block;
	line-height: 1;
	padding: 6px 20px;
	margin: 0 6px 6px 0;
	background: #410303;
	color: #fff;
	border-radius: 24px;
	text-decoration: none;
	transition: background .2s ease-in-out;
}
.post-tags a:hover, .post-tags a:focus { background: #5c6066; }

.further-reading {
	background: #410303;
	padding: .75em 7.4074%;
	text-align: center;
}
.further-reading div { margin: 1.5em 0; }
.further-reading a, .further-reading span { display: block; color: #fff; }

@media all and (min-width: 34.375em) {
	.entry article { box-shadow: 0 0 2px 0 rgba(39,43,47,.1); }
	.further-reading:after { content: ''; display: block; clear: both; }
	.further-reading div { width: 50%; }
	.further-reading .previous { text-align: left; float: left; }
	.further-reading .next { text-align: right; float: right; }
}

@media all and (min-width: 59.375em) {
	.entry { padding: 0; }
	.entry article, .entry .further-reading { padding: 1.5em 13.63197%; }
}

@media all and (min-width: 71.875em) {
	.entry article, .entry .further-reading { padding: 1.5em 9.999%; }
}

/* ---------- Archive header / pagination ---------- */

.archive-header, .pagination {
	padding: 1.5em 7.4074%;
	margin-bottom: 1.5em;
	background: #fff;
	text-align: center;
}

.pagination { position: relative; margin: 1.5em 0; background: #410303; }
.pagination a, .pagination span { margin: 0 4px; color: #fff; }
.pagination .prev { position: absolute; left: 7.4074%; }
.pagination .next { position: absolute; right: 7.4074%; }

@media all and (min-width: 59.375em) {
	.archive-header, .pagination { padding: 1.5em 13.63197%; }
	.pagination .prev { left: 13.63197%; }
	.pagination .next { right: 13.63197%; }
}

@media all and (min-width: 71.875em) {
	.archive-header, .pagination { padding: 1.5em 9.999%; }
	.pagination .prev { left: 9.999%; }
	.pagination .next { right: 9.999%; }
}

/* Cap and center the reading column so lines don't stretch edge-to-edge on
   wide screens - .main itself still fills the full available width. */
.entry,
.archive-header,
.pagination {
	max-width: 120ch;
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Footer ---------- */

.site-footer { position: relative; }
.site-footer .design-credit {
	padding: .75em 7.4074%;
	background: #D9D9D9;
	color: #3E4145;
	text-align: center;
	font-size: .9em;
}
.site-footer .design-credit a { color: #3E4145; }
