/* Type scale and reading layout */
html {
	font-size: 100%;
}

body,
form {
	font-size: 1rem;
	line-height: 1.6;
}

input,
select,
textarea,
button,
form input[type="submit"] {
	font-size: 1rem;
	line-height: 1.4;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
h2 { font-size: clamp(1.375rem, 1.2rem + 0.75vw, 1.875rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5, h6 { font-size: 1rem; }

#wrapper p,
#intro p,
.post_wrapper blockquote,
.page-layout blockquote {
	line-height: 1.65;
}

#wrapper p {
	margin-bottom: 1em;
}

#wrapper :is(p, dd, figcaption) a:not([class]),
#wrapper li > a:not([class]),
#footer :is(p, li) > a,
#copyright p a {
	text-decoration: underline;
	text-decoration-thickness: 0.075em;
	text-underline-offset: 0.16em;
}

body :focus-visible,
#navigation .sf-menu a:focus-visible {
	outline: 2px solid #1f602d;
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #fff;
	border-radius: 2px;
}

#footer,
#footer form,
#copyright {
	font-size: 0.9375rem;
	line-height: 1.55;
}

#footer .widgets :is(h1, h2, h3, h4, h5, h6) {
	color: #c9e3be;
	line-height: 1.3;
}

#footer_wrapper #footer,
#footer_wrapper #footer form {
	color: #d2d2d2;
}

#footer_nav ul {
	line-height: 1.5;
}

.post-header .posted-meta,
#breadcrumb,
.wp-caption-text,
.gallery-caption {
	font-size: 0.875rem;
	line-height: 1.5;
}

.post-header .posted-meta {
	color: #595959;
	text-transform: none;
}

/* The legacy color scheme marks these link colors as important. */
.post-header .posted-meta a,
#wrapper #breadcrumb a,
#wrapper .comment-date a {
	color: #595959 !important;
}

.reading-intro #intro > :is(h1, p),
#wrapper.reading-page > :is(.page-layout, .fancy-header, #breadcrumb, .wp-pagenavi),
#wrapper.reading-post #page-content {
	width: 100%;
	max-width: 47rem;
	margin-inline: auto;
}

#wrapper.reading-post #page-content {
	float: none;
}

.reading-intro #intro > p,
#wrapper.reading-page > .page-layout,
#wrapper.reading-post #page-content {
	font-size: 1.0625rem;
}

#wrapper :is(.page-layout, .post_wrapper) {
	overflow-wrap: anywhere;
}

#wrapper :is(.page-layout, .post_wrapper, .thumbnail_wrapper) :is(iframe, video, object, embed, .wp-caption) {
	max-width: 100%;
}

#wrapper :is(.page-layout, .post_wrapper) > :is(ul, ol) {
	margin-block: 0 1.15em;
	padding-inline-start: 1.45em;
}

#wrapper :is(.page-layout, .post_wrapper) > ul > li {
	list-style: outside disc;
}

#wrapper :is(.page-layout, .post_wrapper) > ol > li {
	list-style: outside decimal;
}

#wrapper :is(.page-layout, .post_wrapper) > :is(ul, ol) > li + li {
	margin-block-start: 0.35em;
}

#wrapper :is(.page-layout, .post_wrapper) > :is(h2, h3, h4, h5, h6):not(:first-child) {
	margin-block-start: 1.3em;
}

#wrapper :is(.page-layout, .post_wrapper) > :is(table, pre),
#wrapper :is(.page-layout, .post_wrapper) .wp-block-table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

.reading-post .post-meta h1 {
	margin-block: 0 0.3em;
}

@media (max-width: 767px) {
	#wrapper.reading-page,
	#wrapper.reading-post,
	.reading-intro #intro {
		box-sizing: border-box;
		width: 100%;
		padding-inline: clamp(1rem, 5vw, 2rem);
	}
}

@media (max-width: 479px) {
	.reading-page .page-layout :is(img, .wp-caption):is(.alignleft, .alignright),
	.reading-post .post_wrapper :is(img, .wp-caption):is(.alignleft, .alignright) {
		display: block;
		float: none;
		max-width: 100% !important;
		margin: 0 auto 1em;
	}
}
