/* global styles  and layout */

body {
	background-color: #fefefe;
	font-size : 16px;
	line-height: 150%;
	color : #333;
	font-weight : 400;
	font-family: system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
	body {
		background-color: #222;
		color: lightgray;
	}
}


.container {
	width: auto;
	max-width: 700px;
	padding: 0 15px;
	padding-bottom : 100px;
}

.container .text-muted {
	margin: 20px 0;
}


a {
	text-decoration: underline;
	color: inherit;
}

a:hover {
	text-decoration: underline;
	color: inherit;
	background-color: #cce6ff;
}

@media (prefers-color-scheme: dark) {
	a:hover {
		background-color: darkslateblue;
	}

}



/* header */

.page-header {
	margin-top: 60px;
	margin-bottom : 40px;
	border-bottom: none;
	text-align: center;
}
  
.page-header h1 {
	font-weight : bold;
	font-size : 1.4em;
}

.page-header .userpic img {
	border-radius: 50%;
	width: 80px;
	height: 80px;
	margin-bottom: 0px;
	border: 1px solid gray;
	padding: 3px;
}

.page-header .userpic a:hover {
	text-decoration: none;
	background-color: inherit;
}

.page-header h1 a {
	text-decoration: none;
	background-color: #cce6ff;
	padding-left: 5px;
	padding-right: 5px;
}

@media (prefers-color-scheme: dark) {
	.page-header h1 a {
		background-color: darkslateblue;
	}
}

.page-header h1 a:hover {
	background-color: inherit;
}

.page-header .main-nav {
	font-size: 0.9em;
	text-transform: lowercase;
}

.page-header .main-nav a {
	text-decoration: none;
	color: #666;
}

@media (prefers-color-scheme: dark) {
	.page-header .main-nav a {
		color: #999;
	}
}



/* body and posts */

p {
	margin-bottom: 1em;
}

li {
	margin-top: 10px;
	margin-bottom: 10px;
}

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


.youtube-embed {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	margin-bottom: 1rem;
  }
  .youtube-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
  }


blockquote {
	color : #666;
	margin-top : 0px;
	margin-bottom : 1em;
	padding-top : 0;
	padding-bottom : 0;
	margin-left : 10px;
	padding-left : 10px;
	border-left : 1px solid silver;
	font-size: 16px;
}

@media (prefers-color-scheme: dark) {
	blockquote {
		color: #999;
	}
}


#footer {
	margin-top : 100px;
	margin-bottom : 100px;
	height: 60px;
	background-color: #f5f5f5;
}

.page-content h2 {
	font-size : 1.2em;
	font-weight : bold;
	margin-bottom : 10px;
	margin-top : 10px;
	text-transform: lowercase;
}

.page-content h2 a {
	text-decoration: none;
}

.page-content h2 a:hover {
	border-bottom : 1px solid silver;
}

.page-content .meta {
	font-size : 0.8em;
	color : gray;
	font-weight: normal;
	text-transform: lowercase;
	line-height: 100%;
}

.page-content .meta-links {
	margin-bottom: 1em;
	font-size: 0.8em;
	color: gray;
	font-weight: normal;
	text-transform: lowercase;
	line-height: 100%;
}

.index-post {
	margin-bottom: 5em;
}

.search-post {
	padding-top: 1em;
	padding-bottom: 1em;
	margin-bottom: 1em;
}


.links,
.index-links {
	margin-bottom : 5em;
}

.links .meta, 
.index-links .meta {
	margin-bottom: 1em;
}

.index-links .meta a {
	text-decoration : none;
	color: inherit;
}


.nav {
	margin-top : 80px;
	font-size : 14px;
	text-transform: lowercase;
}
