/* ==== Document layout ==== */
html {
	background-color: #31480b;
	font-size: 100%;
}

body {
	display: flex;
	flex-direction: column;
	background-color: #c2c7ae;
	font-family: "Charter", "Bitstream Charter", serif;
	font-weight: 400;
	font-size: 1.125rem;
	line-height: 1.6;
	min-height: 100vh;
	margin: 0;
}

main {
	overflow-y: auto;
	flex-grow: 1;
	background-color: #fffefd;
	width: 100%;
	max-width: 840px;
	margin: 0 auto;
}

main, .siteheader, .sitefooter {
	box-sizing: border-box;
	padding: 0 18px;
}

.page, .siteheader > *, .sitefooter > * {
	max-width: 650px;
	margin: 0 auto;
}

.page {
	width: 100%;
}

/* ==== Typography ==== */
h1, h2, h3, h4, h5, h6 {
	font-family: "Inter", system-ui, sans-serif;
	font-weight: 600;
	margin: .5625rem 0 .1875rem;
	line-height: 1.25;
}

h1 {
	font-size: 2.75rem;
}

h2, h1#all-posts, .home h1, .feature h1 {
	font-size: 1.75rem;
}

h3, .allposts h2 {
	font-size: 1.25rem;
}

p, summary, ul {
	margin: 0 0 1.125rem;
}

figcaption {
	margin-top: .5625rem;
	font-size: .875em;
}

small {
	font-size: .625em;
}

sup, sub {
	line-height: 0;
}

.focus {
	font-size: 1.25em;
}

.roman {
	font-style: unset;
}

.uppercase {
	text-transform: uppercase;
}

.lowercase {
	text-transform: lowercase;
}

.dinkus {
	border: none;
	margin: 1.6875rem 0;
}

.dinkus::before {
	content: "*\2007*\2007*";
	display: block;
	text-align: center;
	color: #000000;
}

/* == Links == */
a {
	color: unset;
	text-decoration-color: #6a5eff;
	text-decoration-thickness: .13em;
	text-underline-offset: .15em;
}

.define, .infra, .supra {
	text-decoration-line: none;
}

.linktext {
	text-decoration-line: underline;
	text-decoration-style: dashed;
	text-decoration-color: inherit;
}

.define .linktext {
	text-decoration-color: #999999;
}

.define sup, .infra sup, .supra sup {
	position: relative;
	font-family: "DejaVu Sans Mono", "Menlo", monospace;
}

.define sup {
	color: #999999;
	margin-left: -.04em;
	margin-right: -.24em;
	font-size: .66em;
}

.infra sup, .supra sup {
	color: #6a5eff;
	margin-right: -.15em;
	font-size: .84em;
}

/* == Monospace overrides == */
/* Scales mono text to match roman serif text */
.siteheader, .sitefooter, .dogwrapper, .alert, .thanks, .action, article > header:first-child > p:last-of-type, .allposts p:last-of-type, .soon p, .attribution, blockquote, summary, code {
	font-family: "DejaVu Sans Mono", "Menlo", monospace;
	font-weight: 400;
	font-size: .95rem;
}

/* Rescales elements when when nested in resizing spans or mono block elements */
blockquote sup, .attribution sup, summary sup, code sup, blockquote sub, .attribution sub, summary sub, code sub {
	font-size: .78em !important;
	margin-left: .11ch !important;
	margin-right: .11ch !important;
}

small code, .focus code {
	font-size: calc(.95em / 1.125);
}

blockquote code {
	font-size: 1em;
}

/* == Spacing == */
details[open] summary, li {
	margin: 0 0 .5625rem;
}

ul {
	margin-top: .5625rem;
	padding-left: 27px;
	padding-right: 18px;
}

blockquote, .attribution, details > *:not(summary) {
	margin-left: 18px;
	margin-right: 18px; 
}

/* Blockquote */
blockquote {
	font-size: 1.1875rem;
	margin-top: 1.6875rem;
	margin-bottom: 0;
}

.attribution {
	margin-left: calc(18px - 1ch);
	margin-bottom: 2.25rem;
}

/* ==== Element ==== */
/* == Site header and footer == */
.siteheader, .sitefooter {
	flex-grow: 0;
	overflow: auto;
	background-color: #31480b;
	color: #fffefd;
	margin: 0;
}

.siteheader a, .sitefooter a {
	color: #edef99;
	text-decoration-color: unset;
}

.siteheader p, .sitefooter p {
	line-height: 1.4;
}

.siteheader {
	padding-top: 9px;
}

.siteheader p {
	font-size: 1.675rem;
}

.sitefooter {
	padding-top: .5625rem;
	padding-bottom: 12px;
}

.sitefooter p {
	margin-top: .1875rem;
}

/* == Post header == */
article > header:first-child {
	padding-bottom: 1.125rem;
	margin-bottom: 1.125rem;
}

article > header:first-child > figure {
	margin: 0 -18px;
}

article > header:first-child > h1 {
	margin-top: 1.125rem;
}

article > header:first-child > p:first-of-type {
	font-family: "Inter", system-ui, sans-serif;
	font-weight: 500;
	margin: 1.125rem 0 0;
}

article > header:first-child > p:last-of-type, .allposts p:last-of-type {
	color: #767676;
	margin-bottom: 0;
}

/* == Nav links == */
nav ul {
	list-style-type: none;
	padding: 0;
}

/* Main nav */
nav[aria-label="Primary"] ul {
	margin: 0;
	padding: .1875rem 0;
}

nav[aria-label="Primary"] li {
	display: inline-block;
	margin-right: .75rem;
	font-weight: 700;
}

nav[aria-label="Primary"] img {
	display: inline;
	position: relative;
	top: .3125rem;
	width: 1.25rem;
	height: 1.25rem;
	margin-left: .15rem;
}

/* Posts list */
.allposts li {
	display: flex;
	align-items: flex-start;
	margin-bottom: 1.125rem;
}

.allposts h2 {
	margin-top: 0;
}

.allposts p:first-of-type {
	line-height: 1.25;
	margin-bottom: .1875rem;
}

/* Homepage event nav */
nav[aria-label="RogueOlympics posts"] ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	line-height: 1.4;
	margin: 0 -12px;
}

nav[aria-label="RogueOlympics posts"] li {
	width: 120px;
	text-align: center;
	margin: 0 12px 1.125rem;
}

nav[aria-label="RogueOlympics posts"] li:last-of-type {
	color: #4a5041;
}

nav[aria-label="RogueOlympics posts"] img {
	margin-right: 0;
	margin-bottom: .1875rem;
}

.soon {
	background-color: #e6e7bc;
	display: flex;
	width: 120px;
	height: 120px;
}

.soon p {
	text-transform: lowercase;
	align-self: center;
	width: 100%;
	margin: 0 1ch;
}

/* == Media == */
figure {
	margin: 1.6875rem 0;
}

img, video {
	height: auto;
}

figure > *, img, video {
	display: block;
	max-width: 100%;
}

article > picture img, article > video, article > img {
	margin-bottom: 1.125rem;
}

.thumb {
	width: 120px;
	max-width: unset;
	margin-right: 12px;
}

/* == Callouts == */
.alert, .thanks, .action, .callout {
	padding: .5625rem 1.5ch;
	margin: 0 -.5ch 1.3125rem;
}

.alert *:last-child, .thanks *:last-child, .action *:last-child {
	margin-bottom: 0;
}

.alert {
	display: flex;
	align-items: flex-start;
	background-color: #fff3bc;
}

.alert picture {
	align-self: center;
}

.alert img {
	width: 60px;
	max-width: unset;
	margin-right: 12px;
	padding: .5625rem 6px;
}

.alert a {
	text-decoration-color: #e59900;
}

.action {
	background-color: #f2d9ff;
}

.action a {
	text-decoration-color: #8c3cc2;
}

.thanks {
	background-color: #dff4fd;
}

.thanks a {
	text-decoration-color: #2581d1;
}

.callout {
	background-color: #ebf8c2;
	margin-top: .5625rem;
}

.callout a {
	text-decoration-color: #749603;
}

/* ==== Page-specific styles ==== */
/* == Homepage == */
.bio {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	margin-top: 1.5rem;
}

@media (min-width: 686px) {
	.bio {
		flex-direction: row-reverse;
	}
}

.bio picture:first-child img {
	width: 240px;
	max-width: unset;
	margin: 0 18px 1.125rem 30px;
}

/* == dog.html == */
body.dogwrapper {
	background-color: #fffefd;
}

.dogwrapper main {
	padding-top: 1.125rem;
	padding-bottom: 1.125rem;
}

.dogwrapper picture > img {
	margin: 1.125rem 0;
}

/* Unused classes: multi (in figure for spacing/sizing multiple elements within) */