/*
	Theme Name: McClure
	Text Domain: mcclure
	Version: 0.4.5
	Description: A theme for me.
	Author: Marcus Kazmierczak
	Author URI: https://mkaz.blog/
	License: GNU General Public License version 2.0
	License URI: http://www.gnu.org/licenses/gpl-2.0.html
	Theme URI: https://github.com/mkaz/mcclure

	All files, unless otherwise stated, are released under the GNU General Public License
	version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html)
*/

:root {
	--title-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	--body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	--content-size: 42rem;
	--wide-width: 64rem;
	--color--black: #111111;
	--color--accent: #fc4445;
	--color--secondary: #55bcc9;
    --color--cyan: #cafafe;
}

html {
	font-size: 18px;
}

html,
body {
	margin: 0;
	padding: 0;
	height: 100%;
	min-height: 100%;
	font-weight: 300;
}

::selection {
	color: var(--color--black);
	background: #ffff66;
}

p,
blockquote,
address,
big,
cite,
code,
em,
font,
img,
small,
strike,
sub,
sup,
li,
ol,
ul,
fieldset,
form,
label,
legend,
button,
table,
caption,
tr,
th,
td {
	font-size: inherit;
	line-height: inherit;
	margin: 0;
	padding: 0;
	text-align: inherit;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

blockquote:before,
blockquote:after {
	content: "";
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
	display: none;
}

/* Skip Link */

.skip-link {
	position: absolute;
	left: -9999rem;
	top: 2.5rem;
	z-index: 999999999;
}

.skip-link:focus {
	left: 2.5rem;
	text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0s !important;
		transition-duration: 0s !important;
	}
}

body {
	background: white;
	border: none;
	color: var(--color--black);
	font-family: var(--body-font);
}

body * {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--color--accent);
	text-decoration: none;
}

a:hover {
	color: var(--color--black);
	text-decoration: none;
}

img {
	display: block;
	height: auto;
	max-width: 100%;
}


input::-webkit-input-placeholder {
	color: rgba(0, 0, 4, 0.4);
}
input:-ms-input-placeholder {
	color: rgba(0, 0, 4, 0.4);
}
input::-moz-placeholder {
	color: rgba(0, 0, 4, 0.4);
}

.site-content {
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	max-width: var(--content-size);
}

.entry-title {
	font-family: var(--title-font);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	-ms-word-break: break-word;
	word-break: break-word;
	padding-bottom: 4px;
}

ol,
ul {
	margin-left: 40px;
}

li {
	line-height: 1.5;
	margin-top: 15px;
}

pre,
code {
	font-family: Hack, SFMono-Regular, Consolas, "Liberation Mono", Menlo, Inconsolata, "Courier New", monospace;
}

.entry-content :not(pre) code {
	font-size: 0.833rem;
	padding: 0 1px;
	color: #7a00ff;
}

pre {
	font-size: 0.833rem;
	line-height: 1.5;
	padding: 20px;
	white-space: pre-wrap;
	word-wrap: break-word;
}

pre.wp-block-code {
	margin-bottom: 2rem;
	overflow: inherit !important;
}

fieldset {
	border: 1px solid rgba(0, 0, 0, 0.2);
	padding: 25px;
}

fieldset legend {
	font-size: 0.833rem;
	font-weight: 500;
	margin-left: -15px;
	padding: 0 15px;
}

label {
	margin-bottom: 10px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="week"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="color"],
textarea {
	background: white;
	border-radius: 0;
	border: 2px solid var(--color--black);
	box-shadow: none !important;
	color: #121212;
	display: block;
	font-size: 1rem;
	margin: 0 0 15px 0;
	padding: 8px;
	transition: border-color 0.15s linear;
	-webkit-appearance: none;
	width: 100%;
}

textarea {
	line-height: 1.4;
	height: 200px;
}

button,
.button,
.wp-block-button__link,
input[type="button"],
input[type="submit"] {
	-webkit-appearance: none;
	background: white;
	color: #121212;
	display: inline-block;
	font-family: inherit;
	font-size: 0.8889rem;
	font-weight: 500;
	padding: 0.5rem 1.0rem;
	text-align: center;
	text-decoration: none;
}

.wp-block-button__link,
.wp-block-button__link:hover {
	color: inherit;
}

button:hover,
.button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
	background-color:  var(--color--accent);
	color: white;
	cursor: pointer;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
	empty-cells: show;
	font-size: 0.833rem;
	margin-bottom: 30px;
	max-width: 100%;
	overflow: hidden;
	width: 100%;
}

th,
td {
	line-height: 1.4;
	margin: 0;
	overflow: visible;
	padding: 2%;
}

caption {
	font-size: 0.833rem;
	font-weight: 500;
	padding-bottom: 2.5%;
	text-align: center;
	text-transform: uppercase;
}

thead {
	vertical-align: bottom;
	white-space: nowrap;
}

th {
	font-weight: 500;
}

tbody > tr:nth-child(odd) {
	background: rgba(0, 0, 4, 0.05);
}

.wp-block-quote {
	border-left: 4px solid var(--color--accent);
	padding-left: 4%;
	padding-right: 8%;
	margin-bottom: 2rem;
}

blockquote cite {
	display: block;
	color: #777777;
	font-size: 0.8333rem
	font-style: normal;
	margin-top: 1em;
}

blockquote cite:before {
	content: "— ";
}

figure {
	margin: 0;
}

embed,
iframe,
object {
	max-width: 100%;
}

.wp-caption {
	display: block;
	max-width: 100%;
}

figcaption {
	font-size: 0.833rem;
	margin: 8px 0 0;
	color: #666666;
}

.site-header {
	max-width: var(--content-size);
	width: 100%;
	margin: 0 auto 3rem auto;
	padding: 0;

	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.site-branding {
	margin-right: 2rem;
	max-width: 320px;
	width: 100%;
}

.site-title,
.site-description {
	line-height: 1.25;
}

.site-title {
	min-width: 320px;
	color: var(--color--cyan);
	font-size: 2.0rem;
	font-weight: 700;
	margin: 1rem 0 0 0;
}

.site-description {
	color: var(--color--black);
	font-size: 1.0rem;
	letter-spacing: 0.20em;
	margin-top: 8px;
}

.site-logo {
	max-width: 180px;
	width: 100%;
}

.site-header nav {
	max-width: 330px;
	width: 100%;
	padding: 1rem 2rem;
}

h3.section-title {
	font-size: 1rem;
	margin: 0;
}

h3.section-title a,
h3.section-title a:visited {
	color: var(--color--black);
}

.main-menu {
	margin: 0;
	list-style: none;
}

.main-menu a {
	color: var(--color--black);
	border-bottom: 1px solid transparent;
	text-decoration: none;
}

.main-menu li {
	display: inline-block;
	margin-top: 0;
	margin-right: 3rem;
}

.main-menu li:last-of-type {
	margin-right: 0;
}

.main-menu .current-menu-item > a,
.main-menu a:hover {
	border-bottom-color: var(--color--accent);
}

.site-footer {
	margin-top: 4rem;
	padding-bottom: 1rem;
	width: 100%;
	color: var(--color--black);
}

.site-footer .credits {
	margin: 4px 0;
}

.site-footer .credits span {
	margin: 0 2rem;
}

.site-footer .taste-the-rainbow {
	display: flex;
    height: 18px;
}

.site-footer .taste-the-rainbow div {
	width: 100%;
	border: 1px solid white;
}

.footer-1 { background-color: #ee82ee; }
.footer-2 { background-color: #ff0000; }
.footer-3 { background-color: #ffa500; }
.footer-4 { background-color: #ffff00; }
.footer-5 { background-color: #008000; }
.footer-6 { background-color: #0000ff; }
.footer-7 { background-color: #233067; }
.footer-8 { background-color: #4b0082; }


/* Home */
.search__section {
	max-width: 360px;
	margin:0 auto;
	padding: 0 2rem;
}

.search__form {
	display: flex;
}

input[type="search"].search__input {
	height: 3.0rem;
	border: 2px solid var(--color--secondary);
	border-top-left-radius: 16px;
	border-bottom-left-radius: 16px;
	padding-left: 32px;
}

.search__button {
	height: 3.0rem;
	border: 2px solid var(--color--secondary);
	border-top-right-radius: 16px;
	border-bottom-right-radius: 16px;
}

.search__button:hover {
	background: #F0F0F0;
}

main.categories {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-content: space-between;
	max-width: 1440px;
	width: 100%;
	margin: 0 auto;
}

div.category {
	max-width: 360px;
	width: 100%;
	margin: 0 1rem;
	padding: 1rem;
}

div.category ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

div.category ul li {
	line-height: 1.0;
	margin: 1.0rem 0;
}

.page-header {
	max-width: var(--content-size);
	margin-left: auto;
	margin-right: auto;
	padding: 2.0rem 0 2rem 0;
	margin-bottom: 2rem;
	border-bottom: 1px solid #999999;

}

.page-header:last-child {
	padding-bottom: 0;
}

.page-subtitle {
	color: rgba(0, 0, 4, 0.4);
	font-size: inherit;
	font-weight: inherit;
	margin: 0 0 10px 0;
}

.page-title {
	font-size: 1.5555rem;
	font-weight: 700;
	hanging-punctuation: first;
	line-height: 1.45;
	margin: 0;
}

.page-header p {
	line-height: 1.5;
	margin-top: 20px;
}

.page-header .search-form {
	margin-top: 20px;
}

h3.list-title {
	font-family: var(--title-font);
	font-size: 1.333rem;
	font-weight: 700;
}

h3.list-title a {
	color: var(--color-black);
}

.posts {
	max-width: var(--content-size);
	margin-left: auto;
	margin-right: auto;
}

.post-preview {
	margin-bottom: 3.25rem;
}

.post-preview h3 {
	margin: 0;
}

.post-preview a {
	padding: 4px 0;
	text-decoration: none;
}

.post-preview a:hover {
	color: var(--color--accent);
	text-decoration: none;
}

.post-preview .meta {
	margin-top: 0;
	margin-bottom: 16px;
}

.post-preview a time {
	color: #777777;
}

.archive-pagination {
	max-width: 420px;
	margin: 3rem auto;
}

.archive-pagination .nav-links {
	display: flex;
	justify-content: center;
}

.archive-pagination .page-numbers {
	margin: 0 16px;
	padding: 4px 8px;
	border: 1px solid #999999;
}

.archive-pagination .page-numbers.next,
.archive-pagination .page-numbers.prev,
.archive-pagination .page-numbers.next:hover,
.archive-pagination .page-numbers.prev:hover {
	color: inherit;
	background-color: inherit;
	border: none;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
	background-color: var(--color--accent);
	color: white;
}

.filter-list {
	font-size: 0.8333rem;
	margin-top: 8px;
}

.filter-list span {
	margin: 0 6px;
}

.filter-list span.selected {
	font-weight: bold;
}

body.single article {
	margin-bottom: 5rem;
}

.entry-header {
	margin: 3rem auto 2rem auto;
	max-width: var(--content-size);
}

.entry-header .excerpt {
	margin-top: 15px;
}
table.meta {
	max-width: 360px;
}

table.meta tr {
	background: none;
}

table.meta td {
	padding: 3px 0;
}

.meta {
	color: #333333;
	font-size: 0.833rem;
	margin-top: 8px;
}

.meta a {
	border-bottom: 1px solid transparent;
	color: inherit;
	text-decoration: none;
}

.meta a:hover {
	border-bottom-color: var(--color--accent);
}

.featured-image img {
	width: 100%;
}

.linked-pages {
	margin-top: 50px;
}

.meta.bottom {
	margin-top: 40px;
}

.meta.bottom p {
	line-height: 1.5;
}

.meta.bottom p.tags a {
	margin-right: 15px;
}

.meta.bottom p.tags a:last-child {
	margin-right: 0;
}

.post-pagination {
	max-width: var(--content-size);
	margin: 5rem auto 5rem auto;
	display: flex;
	font-size: 1rem;
	justify-content: space-between;

}

.post-pagination div {
	width: calc(50% - 15px);
}

.post-pagination div + div {
	margin-left: 30px;
	text-align: right;
}

.post-pagination a {
	display: block;
	font-family: var(--title-font);
	font-weight: 500;
	position: relative;
	text-decoration: none;
	-ms-word-break: break-word;
	word-break: break-word;
}

.post-pagination a:before {
	background: no-repeat center;
	background-size: contain;
	content: "";
	display: block;
	height: 12px;
	position: absolute;
	top: 4px;
	width: 15px;
}

.post-pagination .previous-post a {
	padding-left: 25px;
}
.post-pagination .previous-post a:before {
	background-image: url(./assets/images/arrow-black-left.svg);
	left: 0;
}

.post-pagination .next-post a {
	padding-right: 25px;
}
.post-pagination .next-post a:before {
	background-image: url(./assets/images/arrow-black-right.svg);
	right: 0;
}

.post-pagination a span {
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s linear;
}

.post-pagination a:hover span {
	border-bottom-color: #121212;
}

figcaption {
	text-align: center;
}

.aligncenter > figcaption,
.alignleft > figcaption,
.alignright > figcaption,
.wp-block-image.is-resized > figcaption {
	display: block;
}

.wp-block-media-text__content > *:first-child {
	margin-top: 0;
}
.wp-block-media-text__content > *:last-child {
	margin-bottom: 0;
}

.wp-social-link {
	margin: 0 8px 0 0;
}

.wp-block-quote[style*="text-align:center"],
.wp-block-quote[style*="text-align: center"] {
	border: none;
	padding: 0;
}

.wp-block-quote[style*="text-align:right"],
.wp-block-quote[style*="text-align: right"] {
	border-width: 0 2px 0 0;
	padding-left: 0;
	padding-right: 20px;
}

hr {
	border: none;
	border-top: 1px solid rgba(0, 0, 0, 0.13);
	margin: 50px auto;
	width: 50%;
}

.has-info-background-color {
	background-color: #d1ecf1;
}

.has-warning-background-color {
    background-color: #fff3cd;
}

.has-alert-background-color {
    background-color: #f8d7da;
}

.has-success-background-color {
    background-color: #d4edda;
}


/* Entry Content */

.entry-content > *:first-child {
	margin-top: 0;
}
.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content p {
	line-height: 1.25;
	margin-bottom: 25px;
}

.entry-content p.has-background {
	padding: 20px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	padding-bottom: 4px;
	margin-bottom: 1rem;
	margin-top: 3rem;
}

.categories a,
.entry-content a {
	color: var(--color--accent);
	text-decoration: none;
}

.categories a:hover,
.entry-content a:hover {
	color: var(--color--accent);
	border-bottom: 1px solid var(--color--secondary);
}

.entry-content > ol,
.entry-content > ul {
	padding-left:  2.0rem;
	margin-bottom: 30px;
}

article .entry-content {
	min-height: 480px;
}

.entry-content > * {
    max-width: var(--content-size);
    margin-left: auto !important;
    margin-right: auto !important;
}

.entry-content > .alignwide {
    max-width: var(--wide-width);
}

.entry-content > .alignfull {
    max-width: none;
}

.entry-content > .alignleft {
    float: left;
    margin-right: 2em;
}

.entry-content > .alignright {
    float: right;
    margin-right: 2em;
}

.entry-content:after {
	clear: both;
	content: "";
	display: block;
}


.entry-footer {
	margin-top: 3rem;
	padding-top: 1rem;
	max-width: var(--content-size);
    margin-left: auto !important;
    margin-right: auto !important;
}

.error404 .search-form {
	margin-top: 42px;
}

input.search-field {
	background: url(./assets/images/spyglass-black.svg) no-repeat left center;
	background-size: 26px auto;
	border-top: none;
	border-right: none;
	border-left: none;
	border-bottom: 1px solid var(--color--black);
	outline: none;
	color: var(--color--black);
	border-radius: 0;
	box-shadow: none;
	font-size: 1em;
	margin: 0;
	width: 80%;
	padding: 18px 8px 18px 40px;
	-moz-appearance: none;
	-webkit-appearance: none;
}

input.search-field::-webkit-input-placeholder {
	color: #777777;
}

input.search-field:-ms-input-placeholder {
	color: #777777;
}

input.search-field::-moz-placeholder {
	color: #777777;
}

.wp-block-search .wp-block-search__button {
	max-height: 2.0rem;
}

.wp-block-search .wp-block-search__button:hover {
	background-color: var(--color--accent);
	color: white;
}

/* Comments */
.comments,
.comment-respond {
	position: relative;
	background-color: #EAE9EE;
	border-top: 1px solid #777777;
	padding: 2.0rem 1.0rem 3.0rem 1.0rem;
}

.comments > *,
.comment-respond > * {
	max-width: var(--content-size);
	margin-left: auto;
	margin-right: auto;
}

.comment,
.pingback {
	margin-top: 3rem;
	margin-bottom: 3rem;
}

.comments > .comment:first-of-type,
.comments > .pingback:first-of-type {
	margin-top: 0;
}

.comments h3,
.comment-respond h3 {
	margin-top: 1rem;
}

.comment .comment {
	margin-left: 50px;
}

.comment-meta {
	line-height: 1.4;
	margin-bottom: 10px;
}

.comment-meta a {
	text-decoration: none;
}
.comment-meta a:hover {
	text-decoration: underline;
}

.comment-meta span + span {
	margin-left: 25px;
}

.comment-author cite {
	font-weight: 500;
}

.comment-author cite a {
	text-decoration: underline;
}
.comment-author cite a:hover {
	text-decoration: none;
}

.bypostauthor .comment-by-post-author {
	display: inline;
}

.comment-date a,
.comment-reply a {
	color: rgba(0, 0, 4, 0.4);
}

.comment-content,
.comment-content p,
.comment-content li {
	line-height: 1.5;
}

.comment-content p,
.comment-content li {
	margin-bottom: 20px;
}

.comment-content *:last-child {
	margin-bottom: 0;
}

.comment .reply {
	font-size: 0.7778rem;
	letter-spacing: 0.05em;
	margin-top: 22px;
	text-transform: uppercase;
	font-weight: 500;
}

.comment .reply a:hover {
	text-decoration: underline;
}

.comments-pagination {
	margin-top: 100px;
	position: relative;
	text-align: center;
}

.comments-pagination a {
	text-decoration: none;
}
.comments-pagination a:hover {
	text-decoration: underline;
}

.comments-pagination .page-numbers {
	display: inline-block;
	padding: 0 3px;
}

.comments-pagination .page-numbers.dots {
	color: rgba(0, 0, 4, 0.4);
}

.comments-pagination .current {
	font-weight: 500;
}

.comments-pagination .prev,
.comments-pagination .next {
	margin: 0;
	position: absolute;
	top: 0;
}

.comments-pagination .prev {
	left: 0;
}
.comments-pagination .next {
	right: 0;
}

.comment-respond .logged-in-as {
	font-size: 1em;
	line-height: 1.25;
	margin: 0 0 50px 0;
}

.comment-respond .logged-in-as a {
	text-decoration: none;
}
.comment-respond .logged-in-as a:hover {
	text-decoration: underline;
}

.comment-respond p + p {
	margin-top: 20px;
}

.comment-respond .comment-form-author,
.comment-respond .comment-form-email {
	float: left;
	margin: 20px 0;
	width: calc(50% - 10px);
}

.comment-respond:after {
	clear: both;
	content: "";
	display: block;
}

.comment-respond .comment-form-email {
	margin-left: 20px;
}

.comment-respond label {
	display: block;
}

.comment-respond input[type="checkbox"] + label {
	display: inline;
	font-size: 0.7778rem;
	margin: 0 0 0 5px;
}

.comment-respond .form-submit {
	text-align: right;
}

.comments .comment-respond {
	border: none;
	margin: 50px 0;
	padding: 0;
}

.comments .comment-respond .comment-reply-title {
	position: static;
	width: 100%;
}

.comments .comment-respond .comment-reply-title small a {
	color: #999;
	font-size: 0.8em;
	font-weight: 500;
	margin-left: 5px;
}

.comments .comment-respond .comment-reply-title + form > p:first-child {
	margin-top: 8px;
}

.comments .comment-respond .comment-reply-title + form > p:not(.logged-in-as):first-child {
	margin-top: 30px;
}

.comments .comment-respond .logged-in-as {
	margin-bottom: 30px;
}

@media (max-width: 800px) {

	/* When content smaller than max, give some padding,
	   so not against the ege of the screen. Particularly needed
	   for comments which has a background color we do want to go
	   to the edge */

	.site-header {
		display: block;
	}

	.site-header nav {
		max-width: 100%;
		margin-top: 1rem;
		background-color: #F0F0F0;
		padding: 0.5rem;
	}

	body {
		padding-left: 2%;
		padding-right: 2%;
	}

	.comment-author .avatar {
		left: 0;
		width: 55px;
	}

	.entry-header {
		margin: 2rem auto;
	}

}
