/*
Theme Name: Maplewood
Theme URI: https://www.patientleash.com
Author: Megan Holloway
Author URI: https://www.patientleash.com
Description: A warm all-serif design with tinted surfaces, soft rounding, and generous negative space.
Version: 2.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--bg: #f6efe1;
	--fg: #2f2a23;
	--muted: #837768;
	--border: #e0d2b8;
	--radius: 18px;
	--shadow: 0 1px 2px rgba(47, 42, 35, .05), 0 10px 28px rgba(47, 42, 35, .07);
	--accent: #b4542c;
	--tint: #f1e6cf;
	--panel: #fcf8ee;
	--media-ratio: 16 / 9;
	--thumb-ratio: 16 / 9;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd {
	margin: 0;
}

h1, h2, h3, h4 {
	line-height: 1.28;
	font-weight: 700;
	letter-spacing: -.01em;
}

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

a {
	color: var(--accent);
	text-underline-offset: .18em;
}

a:hover {
	color: var(--fg);
}

input,
textarea,
button,
select {
	font: inherit;
	color: inherit;
}

/* Utilities */

.wrap {
	max-width: 1140px;
	margin-inline: auto;
	padding-inline: 20px;
}

.flex { display: flex; }
.col { display: flex; flex-direction: column; }
.stack { display: flex; flex-direction: column; }
.grid { display: grid; }

.aic { align-items: center; }
.jcb { justify-content: space-between; }
.grow { flex: 1 1 0; min-width: 0; }

.gap-s { gap: .5rem; }
.gap-m { gap: 1.1rem; }
.gap-l { gap: 2.25rem; }

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

.muted { color: var(--muted); }
.small { font-size: .875rem; }

.card {
	background: var(--tint);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1.25rem 1.4rem;
}

.chip {
	display: inline-block;
	padding: .3rem .95rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--panel);
	color: var(--fg);
	text-decoration: none;
	font-size: .875rem;
}

.chip:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.sep {
	margin-inline: .45rem;
	opacity: .5;
}

.content,
.hero-title,
.post-title,
.row-title,
.term-title,
.rel-title,
.comment-text,
.widget,
.flist {
	overflow-wrap: break-word;
}

.table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.table-wrap table {
	min-width: 34rem;
}

.screen-reader-text,
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Header */

.site-head {
	position: relative;
	background: transparent;
	border-bottom: 2px solid var(--fg);
}

.site-head::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -8px;
	height: 6px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='6' viewBox='0 0 60 6'%3E%3Cpath d='M0 3.4 Q 7.5 1.1 15 3.2 T 30 3.4 T 45 2.9 T 60 3.3' fill='none' stroke='%232f2a23' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
	background-size: 60px 6px;
	pointer-events: none;
}

.head-top {
	padding: 1.15rem 0 .85rem;
	flex-wrap: wrap;
}

.site-name {
	font-size: 1.45rem;
	font-weight: 700;
	letter-spacing: -.015em;
}

.site-name a {
	color: var(--fg);
	text-decoration: none;
}

.site-name a:hover {
	color: var(--accent);
}

#site-nav {
	position: relative;
}

.nav-toggle {
	display: none;
	padding: .45rem 1.1rem;
	background: var(--panel);
	border: 1px solid var(--fg);
	border-radius: 999px;
	cursor: pointer;
}

.menu {
	list-style: none;
	margin: 0;
	padding: 0 0 .55rem;
	display: flex;
	flex-wrap: wrap;
	gap: .1rem .4rem;
}

.menu li {
	position: relative;
}

.menu a {
	display: block;
	padding: .55rem .55rem;
	color: var(--fg);
	text-decoration: none;
	border-radius: 10px;
}

.menu > li > a {
	font-weight: 700;
}

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

.menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	margin-left: .4rem;
	border: 4px solid transparent;
	border-top-color: currentColor;
	transform: translateY(3px);
}

.sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 30;
	min-width: 15.5rem;
	list-style: none;
	margin: 0;
	padding: .5rem;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: var(--shadow);
	display: none;
	flex-direction: column;
}

.sub-menu.is-open {
	display: flex;
}

@media (min-width: 961px) {
	.menu > li:hover > .sub-menu,
	.menu > li:focus-within > .sub-menu {
		display: flex;
	}
}

.sub-menu a {
	padding: .5rem .75rem;
	white-space: nowrap;
	font-size: .95rem;
}

.sub-menu a:hover {
	background: var(--tint);
}

.submenu-toggle {
	display: none;
	position: absolute;
	right: .15rem;
	top: .3rem;
	width: 2.1rem;
	height: 2.1rem;
	align-items: center;
	justify-content: center;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 50%;
	cursor: pointer;
	line-height: 1;
}

/* Search form */

.search-form {
	align-items: center;
}

.search-field {
	padding: .5rem 1.05rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--panel);
	min-width: 0;
}

.search-field:focus {
	outline: 2px solid var(--accent);
	outline-offset: 1px;
}

.search-submit {
	padding: .5rem 1.15rem;
	border: 1px solid var(--fg);
	border-radius: 999px;
	background: var(--fg);
	color: var(--bg);
	cursor: pointer;
}

.search-submit:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* Breadcrumb */

.breadcrumb {
	font-size: .875rem;
	color: var(--muted);
	margin-top: 1.1rem;
}

.breadcrumb .crumb {
	color: var(--muted);
	text-decoration: none;
}

.breadcrumb a.crumb:hover {
	color: var(--accent);
	text-decoration: underline;
}

.breadcrumb .sep {
	margin-inline: .5rem;
}

/* Layout */

.main-area {
	align-items: flex-start;
	margin-top: 1.6rem;
	padding-bottom: 1rem;
}

#main-content:focus {
	outline: none;
}

.side {
	flex: 0 0 300px;
	min-width: 0;
}

/* Post list rows */

.row-item {
	align-items: flex-start;
	padding: 1.1rem 1.2rem;
}

.thumb {
	flex: 0 0 205px;
	display: block;
	border-radius: calc(var(--radius) - 6px);
	text-decoration: none;
}

.thumb img {
	display: block;
	width: 100%;
	aspect-ratio: var(--thumb-ratio);
	object-fit: cover;
	border-radius: calc(var(--radius) - 6px);
	margin: 0;
}

.row-title {
	font-size: 1.3rem;
}

.row-title a,
.hero-title a,
.rel-title a {
	color: var(--fg);
	text-decoration: none;
}

.row-title a:hover,
.hero-title a:hover,
.rel-title a:hover {
	color: var(--accent);
}

/* Homepage hero */

.hero {
	padding: 0;
}

.hero-media {
	display: block;
}

.hero-media img {
	display: block;
	width: 100%;
	aspect-ratio: var(--media-ratio);
	object-fit: cover;
	border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
	margin: 0;
}

.hero-body {
	padding: 1.5rem 1.8rem 1.8rem;
}

.hero-title {
	font-size: clamp(1.6rem, 4vw, 2.65rem);
}

/* Archive headers */

.term-head {
	padding-bottom: .4rem;
}

.term-title {
	font-size: clamp(1.5rem, 3.4vw, 2.3rem);
}

.term-desc p + p {
	margin-top: .5rem;
}

/* Pagination */

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	justify-content: center;
	margin-top: 1.5rem;
}

.page-numbers {
	display: inline-block;
	padding: .45rem .95rem;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--panel);
	color: var(--fg);
	text-decoration: none;
	font-size: .95rem;
}

.page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.page-numbers:hover:not(.current) {
	border-color: var(--accent);
	color: var(--accent);
}

/* Single post */

.post-title {
	font-size: clamp(1.6rem, 4vw, 2.7rem);
}

.post-media img {
	display: block;
	width: 100%;
	aspect-ratio: var(--media-ratio);
	object-fit: cover;
	border-radius: var(--radius);
	margin: 0;
}

.meta a {
	color: var(--muted);
}

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

.content {
	font-size: 1.075rem;
	line-height: 1.78;
}

.content > * + * {
	margin-top: 1.15rem;
}

.content h2 {
	font-size: 1.55rem;
	margin-top: 2.1rem;
}

.content h3 {
	font-size: 1.25rem;
	margin-top: 1.7rem;
}

.content ul,
.content ol {
	padding-left: 1.4rem;
}

.content li + li {
	margin-top: .35rem;
}

.content blockquote {
	border-left: 3px solid var(--accent);
	padding: .2rem 0 .2rem 1.1rem;
	color: var(--muted);
	font-style: italic;
}

.content img {
	border-radius: 12px;
}

.content table {
	width: 100%;
	border-collapse: collapse;
	font-size: .95rem;
}

.content th,
.content td {
	border: 1px solid var(--border);
	padding: .55rem .75rem;
	text-align: left;
}

.content th {
	background: var(--tint);
}

.content code {
	background: var(--tint);
	border-radius: 6px;
	padding: .1em .35em;
	font-size: .92em;
}

.note {
	border-left: 3px solid var(--accent);
	font-style: italic;
}

.tags {
	list-style: none;
	padding: 0;
	flex-wrap: wrap;
}

.bio {
	align-items: flex-start;
}

.bio .avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	flex: none;
	margin: 0;
}

.bio-name {
	font-weight: 700;
	font-size: 1.05rem;
}

.bio-name a {
	color: var(--fg);
	text-decoration: none;
}

.bio-name a:hover {
	color: var(--accent);
}

/* Related posts */

.related-title {
	font-size: 1.35rem;
}

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

.rel-item {
	padding: 0;
	display: flex;
	flex-direction: column;
}

.rel-media {
	display: block;
}

.rel-media img {
	display: block;
	width: 100%;
	aspect-ratio: var(--thumb-ratio);
	object-fit: cover;
	border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
	margin: 0;
}

.rel-title {
	font-size: 1.08rem;
	padding: 1rem 1.25rem 1.25rem;
}

/* Comments */

.comments-title {
	font-size: 1.4rem;
}

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

.comment-item .children {
	list-style: none;
	margin-top: 1rem;
	padding-left: 1.25rem;
	border-left: 2px solid var(--border);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.comment-body .avatar {
	border-radius: 50%;
	margin: 0;
}

.comment-author {
	font-weight: 700;
}

.comment-author a {
	color: var(--fg);
	text-decoration: none;
}

.comment-author a:hover {
	color: var(--accent);
}

.comment-text p + p {
	margin-top: .6rem;
}

.comment-reply-link {
	display: inline-block;
	margin-top: .4rem;
	padding: .25rem .85rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--panel);
	color: var(--fg);
	text-decoration: none;
	font-size: .85rem;
}

.comment-reply-link:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.comment-form label {
	display: block;
	margin-bottom: .25rem;
	font-size: .95rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: .6rem .95rem;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--panel);
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: 2px solid var(--accent);
	outline-offset: 1px;
}

.comment-form .submit {
	padding: .55rem 1.4rem;
	border: 1px solid var(--fg);
	border-radius: 999px;
	background: var(--fg);
	color: var(--bg);
	cursor: pointer;
}

.comment-form .submit:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.comment-form .comment-notes,
.comment-form .logged-in-as {
	font-size: .9rem;
	color: var(--muted);
}

/* Widgets */

.widget-title {
	font-size: 1.08rem;
	margin-bottom: .7rem;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .45rem;
}

.widget a {
	color: var(--fg);
	text-decoration: none;
}

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

.widget .search-form .search-field {
	width: 100%;
}

/* Footer */

.site-foot {
	position: relative;
	margin-top: 3.5rem;
	border-top: 2px solid var(--fg);
	padding: 2.2rem 0 1.6rem;
}

.site-foot::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -8px;
	height: 6px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='6' viewBox='0 0 60 6'%3E%3Cpath d='M0 2.6 Q 7.5 4.9 15 2.8 T 30 2.6 T 45 3.1 T 60 2.7' fill='none' stroke='%232f2a23' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
	background-size: 60px 6px;
	pointer-events: none;
}

.foot-grid {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.fgroup-title {
	display: block;
	font-weight: 700;
	padding-bottom: .45rem;
	margin-bottom: .65rem;
	border-bottom: 1px solid var(--border);
}

.flist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .45rem;
}

.flist a {
	color: var(--muted);
	text-decoration: none;
	font-size: .95rem;
}

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

.foot-base {
	margin-top: 2.2rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--border);
}

.copy {
	margin: 0;
}

/* WordPress alignment helpers */

.alignleft {
	float: left;
	margin: .3rem 1.2rem 1rem 0;
}

.alignright {
	float: right;
	margin: .3rem 0 1rem 1.2rem;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

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

.wp-caption-text {
	font-size: .85rem;
	color: var(--muted);
	margin-top: .4rem;
}

.bypostauthor {
	outline: none;
}

/* Responsive */

@media (max-width: 960px) {
	.main-area {
		flex-direction: column;
	}

	.side {
		flex: none;
		width: 100%;
	}

	.nav-toggle {
		display: inline-flex;
		align-items: center;
	}

	.menu {
		display: none;
		flex-direction: column;
		gap: 0;
		padding-bottom: .9rem;
	}

	#site-nav.is-open .menu {
		display: flex;
	}

	.menu li + li {
		border-top: 1px solid var(--border);
	}

	.menu a {
		padding: .7rem .25rem;
	}

	.sub-menu {
		position: static;
		box-shadow: none;
		border: 1px solid var(--border);
		margin: 0 0 .6rem;
		min-width: 0;
	}

	.sub-menu a {
		white-space: normal;
	}

	.submenu-toggle {
		display: inline-flex;
	}

	.head-top .search-form {
		width: 100%;
	}

	.head-top .search-field {
		flex: 1 1 auto;
	}
}

@media (max-width: 620px) {
	.gc-2 {
		grid-template-columns: 1fr;
	}

	.row-item {
		flex-direction: column;
	}

	.thumb {
		flex: none;
		width: 100%;
	}
}
