/*!
Theme Name: Write More Things
Theme URI: http://github.com/jeremyfelt/writemore
Author: Jeremy Felt
Author URI: https://jeremyfelt.com
Description: A theme to encourage more writing.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: writemore

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what
you've learned with others.
*/

@font-face {
	font-family: montserrat;
	font-display: fallback;
	font-weight: 300 400 700 900;
	src: url(./fonts/Montserrat-VariableFont_wght.ttf) format("woff2");
}

@font-face {
	font-family: montserrat;
	font-display: fallback;
	font-style: italic;
	font-weight: 300 400 700 900;
	src: url(./fonts/Montserrat-Italic-VariableFont_wght.ttf) format("woff2");
}

:root {
	--sans-serif: montserrat, sans-serif;

	--color-context-reply: rgb(127, 255, 212);
}

html,
body {
	height: 100%;
}

body {
	font-family: montserrat, sans-serif;
	font-family: var(--sans-serif);
	line-height: 1.55;
	font-size: 18px;
	margin: 0;
}

header {
	width: calc(100% - 2rem);
}

header,
section {
	max-width: 640px;
	margin: 0 auto;
}

main {
	min-height: calc(100% - 375px);
}

@media (max-width: 800px) {

	main {
		max-width: calc(100% - 2rem);
		margin-left: auto;
		margin-right: auto;
	}

	main article header {
		width: 100%;
	}
}

main > header {
	height: 175px;
	text-align: right;
}

article header {
	position: relative;
}

article header a {
	color: #333;
}

article header a:hover {
	color: #00f;
}

article footer {
	width: 640px;
	margin: 3rem auto 0;
	max-width: 100%;
}

footer > * {
	max-width: 100%;
}

nav ul {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

nav ul li {
	padding: 0;
	margin: 0 1rem 0 0;
	font-weight: 700;
}

h2 {
	font-size: 1.5rem;
	margin-top: 3rem;
	margin-bottom: 1rem;
}

pre {
	white-space: break-spaces;
}

img {
	width: 100%;
	height: auto;
}

input[type="search"] {
	font-size: 1.5rem;
	padding: 0.5rem;
	font-weight: 300;
	line-height: 1;
}

button {
	padding: 0.875rem;
	font-size: 1rem;
	margin-left: 0.35rem;
	vertical-align: top;
	border: 1px solid #bbb;
	background: #eee;
	width: 100px;
}

button:hover {
	background: #333;
	color: #eee;
}

main ~ footer {
	background: #333;
	color: #fff;
	height: 100px;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

main ~ footer div {
	margin-bottom: 1rem;
}

main ~ footer a {
	color: #fff;
}

main ~ footer a:hover {
	color: #ddd;
}

blockquote {
	font-size: 0.95rem;
	font-style: italic;
	border-left: 4px solid #444;
	padding-left: 1rem;
}

cite {
	font-style: normal;
	font-style: initial;
	font-weight: 600;
}

time {
	font-size: 0.9rem;
}

iframe {
	max-width: 100%;
}

.screen-reader-text {
	position: absolute !important;
	word-wrap: normal !important;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(50%);
	        clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	width: 1px;
}

.skip-link.screen-reader-text:focus {
	clip: auto !important;
}

.skip-link.screen-reader-text:focus {
	background-color: #eee;
	-webkit-clip-path: none;
	        clip-path: none;
	color: #444;
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.site-branding p:first-of-type:first-child {
	font-size: 2.25rem;
	font-weight: 700;
	margin-top: 1.525rem;
	margin-bottom: 1.475rem;
}

.weekly-preview {
	list-style: none;
	margin-bottom: 1.25rem;
	padding-left: 0;
}

.type-post {
	position: relative;
	padding-top: 0.5rem;
}

article.type-post {
	margin-bottom: 5rem;
	width: calc(100% - 2rem);
	margin-left: auto;
	margin-right: auto;
}

.multiple article {
	margin-bottom: 4rem;
}

.type-page > * {
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

.multiple .type-like {
	display: flex;
	flex-direction: column;
}

.single .type-shortnote {
	margin-top: 4rem;
}

.multiple .type-like,
.type-shortnote .entry-content,
.single .type-like .entry-content {
	background: #fefefe;
	padding: 0.75rem;
	border: 1px solid #ddd;
	margin: 0 auto 2rem;
	font-size: 1rem;
	max-width: 640px;
}

section.wp-block-latest-posts {
	max-width: 100%;
}

.multiple .has-image {
	border: 0;
	padding: 0;
}

.multiple .has-image .entry-content {
	max-width: 900px;
	border: 0;
}

.multiple .has-image figure {
	width: 100%;
	margin-top: 0;
}

.multiple .type-shortnote footer {
	margin-top: 0;
}

ul.wp-block-latest-posts {
	padding-left: 0;
	list-style: none;
}

.entry-content > * {
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

.has-text-align-center {
	text-align: center;
}

.entry-content > figure {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.entry-content .size-large {
	max-width: 1024px;
	height: auto;
}

.entry-content figure {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.wp-block-code {
	max-width: calc(100vw - 2rem);
	font-size: 0.9rem;
	width: -moz-fit-content;
	width: fit-content;
}

.wp-block-gallery figure {
	margin-top: 0;
	margin-bottom: 0;
	margin-left: 0;
	margin-right: 0;
}

.is-layout-flex.wp-block-gallery {
	display: flex;
	gap: 1rem;
}

.wp-block-post-author {
	display: flex;
	margin-top: 2rem;
}

.wp-block-post-author__avatar {
	width: 96px;
}

.wp-block-post-author__content {
	width: calc(100% - 96px);
	margin-left: 1rem;
	margin-top: 0;
}

.wp-block-post-author__content p:first-of-type {
	margin-top: 0;
}

.author-bio {
	display: flex;
	width: 640px;
	max-width: 100%;
	margin: 1rem auto 0 auto;
	justify-content: space-evenly;
}

.author-bio img {
	width: 150px;
	height: 100%;
}

.author-bio-content {
	padding: 0 1rem;
	flex-basis: fit-content;
}

.author-bio-content p {
	margin-top: 0;
}

.posts-navigation {
	max-width: 640px;
	margin: 3rem auto;
	display: flex;
	justify-content: space-between;
	font-size: 1.35rem;
}

.shortnotes-reply-to {
	font-style: italic;
	max-width: 640px;
	margin: 0 auto 1rem;
	font-weight: 500;
	border-left: 11px solid rgb(127, 255, 212);
	border-left: 11px solid var(--color-context-reply);
	padding-left: 1rem;
}

.reaction {
	display: flex;
}

.reaction img {
	width: 64px;
}

.reaction span {
	padding-left: 1rem;
	width: 100%;
}

.comment {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	border: 1px solid rgb(127, 255, 212);
	border: 1px solid var(--color-context-reply);
	padding: 1rem;
	margin-top: 1rem;
}

.comment img {
	width: 64px;
	margin-right: 1rem;
}

.reaction time,
.comment time {
	font-size: 1rem;
}

.comment-form label {
	display: block;
	font-weight: 600;
}

.comment-form input,
.comment-form textarea {
	font-size: 1rem;
	line-height: 1.5;
	padding: 1rem;
	width: 95%;
	font-family: montserrat, sans-serif;
	font-family: var(--sans-serif);
}

.comment-form input {
	padding: 0.5rem 1rem;
}

.comment-form .submit {
	margin: 1rem 0;
	width: 200px;
	background: rgb(127, 255, 212);
	background: var(--color-context-reply);
	border: 1px solid #333;
}

.edit-link {
	margin-right: 1rem;
}
