/*
Theme Name: josh.blog
Theme URI: https://josh.blog/
Author: Josh Betz
Author URI: https://josh.blog/
Version: 4.3.5
License: GNU General Public License v2 or later
*/

@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 400;
	font-display: fallback;
	src: local(''),
		url('fonts/montserrat-v18-latin-regular.woff2') format('woff2'),
		url('fonts/montserrat-v18-latin-regular.woff') format('woff');
}

/* montserrat-italic - latin */
@font-face {
	font-family: 'Montserrat';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: local(''),
		url('fonts/montserrat-v18-latin-italic.woff2') format('woff2'),
		url('fonts/montserrat-v18-latin-italic.woff') format('woff');
}

/* montserrat-600 - latin */
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: local(''),
		url('fonts/montserrat-v18-latin-600.woff2') format('woff2'),
		url('fonts/montserrat-v18-latin-600.woff') format('woff');
}

/* montserrat-600italic - latin */
@font-face {
	font-family: 'Montserrat';
	font-style: italic;
	font-weight: 600;
	font-display: swap;
	src: local(''),
		url('fonts/montserrat-v18-latin-600italic.woff2') format('woff2'),
		url('fonts/montserrat-v18-latin-600italic.woff') format('woff');
}

:root {
	--base-font-color: #333;
	--background-color: #e3f2f9;
	--background-accent-color: #d4eef9;
	--primary-accent-color: #559fc6;
	--secondary-accent-color: #55c6b5;
}

* { box-sizing: border-box; }

html {
	font-size: 62.5%;
	min-height: 100%;
	background: #ddd;
}

/*
 * Layout
 */
body {
	font-family: 'Montserrat', sans-serif;
	line-height: 1.65;
	background: #fff;
	color: var(--base-font-color);
	font-size: clamp(1.6rem, 2.5vw, 2.2rem);
	min-height: 0vw; /* hack to fix clamp in Safari https://stackoverflow.com/a/65093383 */
	margin: 0;
	padding: 0;
}

.wrapper {
	overflow: hidden;
}

.content {
	max-width: 60ch;
	margin: 0 auto;
	padding: 2rem;
}

#header {
	background-color: var(--background-color);
	border-bottom: solid 2px var(--background-accent-color);
	padding: 1rem;
}

#colophon {
	background-color: #f9f9f9;
	color: #454545;
	border-top: solid 2px #f0f0f0;
}

#colophon .main-navigation,
#colophon .site-info {
	font-size: 1.6rem;
}

.page-title {
	font-size: 4rem;
	margin-bottom: 2rem;
}

#header .page-description,
#header .site-header-menu {
	font-size: 0.85em;
	margin: 1rem 0;
}

.footer-menus {
	margin-bottom: 4rem;
}

.site-info a {
	text-decoration: none;
}
.site-info a:hover {
	text-decoration: underline;
}

.site-info > span:not(:last-child):after {
	content: "";
	margin: 0 1rem;
}

.copyright {
	font-weight: bold;
}

.copyright a {
	color: var(--base-font-color);
}

@media only screen and (max-width: 750px) {
	.page-title {
		margin: 1rem 0 2rem 0;
	}

	.content {
		padding: 0 2rem;
	}

	#colophon .content {
		padding: 2rem;
	}
}

/*
 * Post
 */
.entry-meta,
.entry-footer {
	font-size: 0.7em;
	text-decoration: none;
	color: #999;
	clear: both;
}

.entry-footer {
	margin-top: 1rem;
}

.cat-links:not(:last-child)::after,
.tags-links:not(:last-child)::after,
.comments-link:not(:last-child)::after {
	padding: 0 1rem;
	content: "·";
}

.updated:not(.published) {
	display: none;
}

article.post:not(:last-child)::after {
	content: "\2605 \2605 \2605";
	font-family: "Osaka", "Zapf Dingbats";
	display: block;
	color: #ddd;
	text-align: center;
	margin: 4rem;
	letter-spacing: 2rem;
	font-size: 1.4rem;
}

.search .post:not(:last-child),
.archive .post:not(:last-child) {
	margin-bottom: 1rem;
}

.post-content {
	margin: 2rem 0;
}

.author-bio {
	font-size: 0.8em;
	position: relative;
	padding-left: 80px;
	max-width: 58ch;
	margin: 4rem auto;
}

.author-bio .author-avatar .avatar {
	position: absolute;
	left: 0;
	top: 0;
	width: 60px;
	height: 60px;
	line-height: 60px;
}

.author-link {
	font-size: 0.9em;
}

.search-form {
	margin: 1rem 0;
}

.search-form input.search-field {
	width: 79% !important;
}

.search-form input.search-submit {
	width: 20% !important;
}

@media only screen and (max-width: 700px) {
	.author-bio {
		padding: 0;
		font-size: 0.9em;
	}

	.author-bio h2 {
		line-height: 50px;
	}

	.author-bio .author-avatar .avatar {
		position: relative;
		width: 50px;
		height: 50px;
		line-height: 50px;
	}
}

/*
 * Navigation
 */
.nav-links {
	display: flex;
}

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

.nav-previous, .nav-next {
	width: 50%;
}

@media only screen and (max-width: 750px) {
	.nav-links {
		display: block;
	}

	.nav-previous, .nav-next {
		padding: 1rem 0;
		width: 100%;
	}
}

/*
 * Text
 */
a, a:hover, a:active {
	color: var(--primary-accent-color);
}

a:hover {
	color: var(--secondary-accent-color);
}

.external-link:after {
	font-family: "Genericons";
	content: "\f107";
}

h1 a {
	text-decoration: none;
}

h1, h2, h3,
h4, h5, h6 {
	margin: 1em 0 0.25em 0;
	line-height: 1.4;
	font-weight: 600;
	word-wrap: break-word;
}

h1 { font-size: 200%; }
.archive-title { font-size: 100%; text-transform: uppercase; }
h2, .post-content h1, h1.entry-title { font-size: 1.5em; }
h3, .post-content h2, h2.entry-title { font-size: 1.3em; }
h4, .post-content h3, h3.entry-title { font-size: 1.15em; }
h5, .post-content h4, h4.entry-title { font-size: 1em; }
h6, .post-content h5, h5.entry-title { font-size: .9em; }
.post-content h6, h6.entry-title { font-size: .75em; }

h1.entry-title {
	margin-bottom: 0.1em;
}

blockquote, .wp-block-quote {
	border-left: solid 5px rgba(0,0,0,.2);
	padding-left: 2rem;
	margin: 2em 0 2em 2rem;
	font-size: 90%;
}

blockquote cite {
	display: block;
	margin-top: 1rem;
}

address {
	margin-bottom: 2rem;
}

pre code {
	background: none;
}

code {
	padding: 3px 7px;
	background: #eee;
	border-radius: 3px;
}

pre {
	padding: 10px;
	overflow-x: scroll;
	font-size: 0.75em;
}

p code {
	color: var(--base-font-color);
}

.wp-block-code code {
	padding: 1rem 2rem;
}

iframe {
	max-width: 100%;
	height: auto;
}

table {
	margin-bottom: 2rem;
}

th, td {
	padding: 0.5rem;
}

th { font-weight: 600; }
dt { font-weight: 600; }
dd { font-style: italic; margin-bottom: 1rem; }

.post-content li { padding: 0.5rem 0; }


/**
 * Media
 */
figure {
	max-width: 100%;
	height: auto;
}

.twitter-tweet.twitter-tweet-rendered {
	margin: 0 auto;
}

img {
	max-width: 100%;
	width: 600px;
	max-height: 1200px;
	height: auto;
	width: auto;
}

.wp-block-image {
	margin: 0;
}

.wp-block-image img {
	margin: 0 auto;
	display: block;
}

img.featured-image,
figure.alignwide {
	width: 130%;
	max-width: 130%;
	margin: 3em -15%;
}

figure.alignfull {
	width: 200%;
	max-width: 200%;
	margin: 3em -50%;
}

img.featured-image:first-child,
figure.alignwide:first-child,
figure.alignfull:first-child {
	margin-top: 0;
}

img.featured-image:last-child,
figure.alignwide:last-child,
figure.alignfull:last-child {
	margin-bottom: 0;
}

.wp-block-image.alignfull img,
.wp-block-image.alignwide img {
	max-width: 100vw;
}

@media only screen and (max-width: 800px) {
	img.featured-image,
	figure.alignwide {
		width: calc(100% + 4rem);
		max-width: calc(100% + 4rem);
		margin: 2rem -2rem;
	}
}

/*
 * Captions
 */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/*
 * Galleries
 */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/**
 * Genericons
 */
.social-navigation a:before {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	display: inline-block;
	font-family: "Genericons";
	font-size: 20px;
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	line-height: 1;
	speak: none;
	text-align: center;
	text-decoration: inherit;
	text-transform: none;
	vertical-align: top;
}

/*
 * Main navigation
 */
.main-menu,
.main-menu ul {
	margin: 1rem 0;
	padding: 0;
	display: flex;
	flex-grow: 1;
	flex-wrap: wrap;
}

.main-menu li {
	list-style: none;
}

.main-menu a {
	text-decoration: none;
}

.main-navigation .menu-item:not(:last-child):after {
	content: '\b7';
	padding: 1rem;
}

/*
 * Social Navigation
 */
.social-navigation ul {
	list-style: none;
	margin: 0 0 -0.4375em;
	display: flex;
	flex-grow: 1;
	flex-wrap: wrap;
	padding: 0;
}

.social-navigation li {
	margin: 0 0.4375em 0.4375em 0;
}

.social-navigation a {
	border: 1px solid rgba(0,0,0,.05);
	border-radius: 50%;
	color: #1a1a1a;
	display: block;
	position: relative;
	height: 40px;
	width: 40px;
	text-decoration: none;
}

.social-navigation a:before {
	content: "\f415";
	height: 38px;
	width: 38px;
	line-height: 38px;
	text-align: center;
}

.social-navigation a:hover:before,
.social-navigation a:focus:before {
	color: var(--primary-accent-color);
}

.social-navigation a[href*="codepen.io"]:before {
	content: "\f216";
}
.social-navigation a[href*="digg.com"]:before {
	content: "\f221";
}
.social-navigation a[href*="dribbble.com"]:before {
	content: "\f201";
}
.social-navigation a[href*="dropbox.com"]:before {
	content: "\f225";
}
.social-navigation a[href*="facebook.com"]:before {
	content: "\f203";
}
.social-navigation a[href*="flickr.com"]:before {
	content: "\f211";
}
.social-navigation a[href*="foursquare.com"]:before {
	content: "\f226";
}
.social-navigation a[href*="plus.google.com"]:before {
	content: "\f206";
}
.social-navigation a[href*="github.com"]:before {
	content: "\f200";
}
.social-navigation a[href*="instagram.com"]:before {
	content: "\f215";
}
.social-navigation a[href*="linkedin.com"]:before {
	content: "\f208";
}
.social-navigation a[href*="path.com"]:before {
	content: "\f219";
}
.social-navigation a[href*="pinterest.com"]:before {
	content: "\f210";
}
.social-navigation a[href*="getpocket.com"]:before {
	content: "\f224";
}
.social-navigation a[href*="polldaddy.com"]:before {
	content: "\f217";
}
.social-navigation a[href*="reddit.com"]:before {
	content: "\f222";
}
.social-navigation a[href*="skype.com"]:before {
	content: "\f220";
}
.social-navigation a[href*="stumbleupon.com"]:before {
	content: "\f223";
}
.social-navigation a[href*="tumblr.com"]:before {
	content: "\f214";
}
.social-navigation a[href*="twitter.com"]:before {
	content: "\f202";
}
.social-navigation a[href*="vimeo.com"]:before {
	content: "\f212";
}
.social-navigation a[href*="wordpress.com"]:before,
.social-navigation a[href*="wordpress.org"]:before {
	content: "\f205";
}
.social-navigation a[href*="youtube.com"]:before {
	content: "\f213";
}
.social-navigation a[href^="mailto:"]:before {
	content: "\f410";
}
.social-navigation a[href*="spotify.com"]:before {
	content: "\f515";
}
.social-navigation a[href*="twitch.tv"]:before {
	content: "\f516";
}
.social-navigation a[href*="/feed"]:before {
	content: "\f413";
}

/*
 * Alignments
 */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/*
 * Comments
 */
.comments-area {
}

.comments-number {
	background: #ececec;
	padding: 0.25rem 1.5rem;
	border-radius: 1rem;
	margin-left: 0.5em;
	border-end-start-radius: 0;
}

.comment-list + .comment-respond,
.comment-navigation + .comment-respond {
	padding-top: 1.75em;
}

.comments-title,
.comment-reply-title {
	border-top: 4px solid #1a1a1a;
	font-size: 1.5rem;
	font-weight: 700;
	padding-top: 1.2em;
}

.comments-title {
	margin-bottom: 1.217391304em;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list article,
.comment-list .pingback,
.comment-list .trackback {
	border-top: 1px solid #d1d1d1;
	padding: 1.75em 0;
}

.comment-list .children {
	list-style: none;
	margin: 0;
	padding-left: 0.8em;
}

.comment-list .children > li {
	padding-left: 0.8em;
}

.comment-author {
	color: #1a1a1a;
	font-size: 0.8em;
}

.avatar {
	line-height: 4rem;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	margin-right: 2rem;
	position: relative;
	float: left;
}

.comment-author .avatar {
	margin-right: 0.875em;
}

.bypostauthor > article .fn:before {
	font-family: "Genericons";
	content: "\f418";
	right: 5px;
	position: relative;
	top: 2px;
	border-radius: 50%;
	background-color: var(--primary-accent-color);
	color: white;
	padding: 1px;
}

.bypostauthor > article .avatar {
	border: solid 2px var(--primary-accent-color);
}

.comment-meta {
	height: 60px;
}

.comment-metadata,
.pingback .edit-link {
	color: #686868;
	font-size: 0.6em;
}

.comment-metadata {
	margin-bottom: 2.1538461538em;
}

.comment-metadata a,
.pingback .comment-edit-link {
	color: #686868;
}

.comment-metadata a:hover,
.comment-metadata a:focus,
.pingback .comment-edit-link:hover,
.pingback .comment-edit-link:focus {
	color: #007acc;
}

.comment-metadata .edit-link,
.pingback .edit-link {
	display: inline-block;
}

.comment-metadata .edit-link:before,
.pingback .edit-link:before {
	font-family: "Genericons";
	content: "\002f";
	display: inline-block;
	opacity: 0.7;
	padding: 0 0.538461538em;
}

.comment-content {
	font-size: 1.8rem;
}

.comment-content ul,
.comment-content ol {
	margin: 0 0 1.5em 1.25em;
}

.comment-content li > ul,
.comment-content li > ol {
	margin-bottom: 0;
}

.comment-reply-link {
	border: 1px solid #d1d1d1;
	border-radius: 4px;
	color: #007acc;
	display: inline-block;
	font-size: 0.8em;
	line-height: 1;
	margin-top: 2em;
	padding: 0.5em 0.5em 0.4em;
	text-decoration: none;
}

.comment-reply-link:hover,
.comment-reply-link:focus {
	border-color: currentColor;
	color: #007acc;
	outline: 0;
}

.comment-form {
	padding-top: 1.75em;
}

.comment-form label {
	color: #686868;
	display: block;
	font-size: 0.8em;
	letter-spacing: 0.076923077em;
	line-height: 1.6153846154;
	margin-bottom: 0.5384615385em;
	text-transform: uppercase;
}

.comment-form-cookies-consent label {
	text-transform: none;
	font-size: 0.7em;
	display: inline;
}

.comment-list .comment-form {
	padding-bottom: 1.75em;
}

.comment-notes,
.comment-awaiting-moderation,
.logged-in-as,
.form-allowed-tags {
	color: #686868;
	font-size: 0.8em;
	line-height: 1.6153846154;
	margin-bottom: 2.1538461538em;
}

.no-comments {
	border-top: 1px solid #d1d1d1;
	font-weight: 700;
	margin: 0;
	padding-top: 1.75em;
}

.comment-navigation + .no-comments {
	border-top: 0;
	padding-top: 0;
}

.form-allowed-tags code {
	font-family: Inconsolata, monospace;
}

.form-submit {
	margin-bottom: 0;
}

.required {
	color: #007acc;
	font-family: Merriweather, Georgia, serif;
}

.comment-reply-title small {
	font-size: 100%;
}

.comment-reply-title small a {
	border: 0;
	float: right;
	height: 32px;
	overflow: hidden;
	width: 26px;
}

.comment-reply-title small a:hover,
.comment-reply-title small a:focus {
	color: #1a1a1a;
}

.comment-reply-title small a:before {
	font-family: "Genericons";
	content: "\f405";
	font-size: 32px;
	position: relative;
	top: -5px;
}

/*
 * Forms
 */
button,
input,
optgroup,
select,
textarea {
	color: inherit;
	font: inherit;
	margin: 0;
}

select {
	text-transform: none;
}

button {
	overflow: visible;
}

button,
input,
select,
textarea {
	max-width: 100%;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
	-webkit-appearance: button;
	cursor: pointer;
}

button[disabled],
html input[disabled] {
	cursor: default;
	opacity: .5;
}

input[type="checkbox"],
input[type="radio"] {
	box-sizing: border-box;
	margin-right: 0.4375em;
	padding: 0;
}

fieldset {
	border: 1px solid #d1d1d1;
	margin: 0 0 1.75em;
	min-width: inherit;
	padding: 0.875em;
}

fieldset > :last-child {
	margin-bottom: 0;
}

legend {
	border: 0;
	padding: 0;
}

textarea {
	overflow: auto;
	vertical-align: top;
	resize: vertical;
}

optgroup {
	font-weight: bold;
}

input {
	line-height: normal;
}

button,
button[disabled]:hover,
button[disabled]:focus,
input[type="button"],
input[type="button"][disabled]:hover,
input[type="button"][disabled]:focus,
input[type="reset"],
input[type="reset"][disabled]:hover,
input[type="reset"][disabled]:focus,
input[type="submit"],
input[type="submit"][disabled]:hover,
input[type="submit"][disabled]:focus {
	background: #1a1a1a;
	border: 0;
	border-radius: 2px;
	color: #fff;
	font-weight: 700;
	letter-spacing: 0.046875em;
	line-height: 1;
	padding: 0.84375em 0.875em 0.78125em;
	text-transform: uppercase;
}

button:hover,
button:focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="reset"]:hover,
input[type="reset"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
	background: #007acc;
}

button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus {
	outline: thin dotted;
	outline-offset: -4px;
}

input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="week"],
input[type="month"],
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea {
	background: #f7f7f7;
	background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
	border: 1px solid #d1d1d1;
	border-radius: 2px;
	color: #686868;
	padding: 0.625em 0.4375em;
	width: 100%;
}

input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="week"]:focus,
input[type="month"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus {
	background-color: #fff;
	border-color: #007acc;
	color: #1a1a1a;
	outline: 0;
}

.post-password-form {
	margin-bottom: 1.75em;
}

.post-password-form label {
	color: #686868;
	display: block;
	font-size: 13px;
	font-size: 0.8125rem;
	letter-spacing: 0.076923077em;
	line-height: 1.6153846154;
	margin-bottom: 1.75em;
	text-transform: uppercase;
}

.post-password-form input[type="password"] {
	margin-top: 0.4375em;
}

.post-password-form > :last-child {
	margin-bottom: 0;
}

.search-form {
	position: relative;
}

input[type="search"].search-field {
	border-radius: 2px 0 0 2px;
	width: -webkit-calc(100% - 42px);
	width: calc(100% - 42px);
}

.search-submit:before {
	content: "\f400";
	font-size: 24px;
	left: 2px;
	line-height: 42px;
	position: relative;
	width: 40px;
}

.search-submit {
	border-radius: 0 2px 2px 0;
	bottom: 0;
	overflow: hidden;
	padding: 0;
	position: absolute;
	right: 0;
	top: 0;
	width: 42px;
}

/*
 * Accessibility
 */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}
