/* GDS theme styles (ported from PicoCMS version) */

.hidden { display: none !important; }

@font-face {
  font-family: "Maven Pro";
  src:
    local("Maven Pro"),
    url("../font/MavenPro-VariableFont_wght.ttf");
}

/*** BASIC LAYOUT ***/

body {
	font-family: "Maven Pro", system-ui;
	margin: 0;
	--bg-color: #000;
	--inner-bg: #202523;
	--navbar-bg: #404445;
	--navlink-color: #b2cfe0;
	--text-color: #eee;
	--title-color: #c94;
	--heading-color: #c94;
	--link-color: #b2cfe0;
	--visited-link: #c0c0ba;
	--hover-color: #fff;
	--line-color: #c94;
	--code-bg: #022;
	--code-color: #ffe8bf;
	
	color: var(--text-color);
	background-color: var(--bg-color);
}

#main {
	background-color: var(--bg-color);
	padding: 0.5rem;
	margin: 0;
	overflow: auto;
	min-height: 50vh;
}


#kofi-link {
  width: 100%;
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
}
#kofi-link span {
  background: var(--line-color);
  color: #fff;
  border-radius: 1em;
  padding: 0.4em 0.8em;
}
#kofi-link img {
  height: 1em;
  vertical-align: middle;
  padding-right: 0.2em;
  padding-bottom: 0.2em;
}

.content {
	background-color: var(--inner-bg);
	padding: 0.5rem 1em;
	border-radius: 0.5rem;
	min-height: 1em;
}
.content p {
	text-indent: 2em;
}

.date {
	font-style: italic;
	font-size: 0.9em;
	display: block;
	width: 100%;
	text-align: right;
	position: relative;
	top: 1em;
	right: 1em;
	height: 0;
}
.author {
	display: block;
	font-size: 0.9em;
	font-style: italic;
	color: var(--heading-color);
	text-align: center;
}
.subtitle {
  font-size: 0.75em;
  display: block;
  padding-top: 0.3em;
}

.description, .authors-note {
  display: block;
  margin: 0 2em;
  font-style: italic;
  border-radius: 0.5em;
  opacity: 60%;
  font-size: 0.9em;
  margin-top: 1em;
}

.authors-note {
  background-color: var(--navbar-bg);
  padding: 0.5em;
  padding-top: 0;
}
.authors-note::before {
  content: "Note:";
  top: 0.7em;
  position: relative;
  left: 0.5em;
}
.authors-note p {
  text-indent: 0;
  padding: 0 2em;
}

.footnotes {
  font-size: 0.9em;
}
.footnotes p {
  text-indent: 0;
}

/*** BASIC LAYOUT: HEADER ***/

#header {
	min-height: 5rem;
	text-align: center;
}
#header img {
	display: inline-block;
	max-height: 10rem;
}
#title {
	padding: 1rem 0;
}
#title a {
	margin-top: 0;
	margin-bottom: 0.6em;
	color: var(--title-color);
	text-decoration: none;
	font-size: 2em; 
	font-variant: small-caps;
}
#navbar {
	position: sticky;
	top: 0;
	text-align: center;
	padding: 0.8rem;
	background-color: var(--navbar-bg);
}
#navbar ul {
	display: inline;
	list-style: none;
	padding: 0;
	margin: 1rem 0;
}
#navbar a {
	color: var(--navlink-color);
}

#logo { height: 10.8em; }
#logo * { display: block; height: 100%; }
#logo img { min-width: 4.8em; }

#nav a, #nav-toggle { color: #afe1da; }
#nav .active a, #nav a:hover, #nav-toggle:hover { color: #fff; }

#nav-toggle { display: none; }

/*** BASIC LAYOUT: FOOTER ***/

#footer {
	text-align: center;
	font-size: 0.8rem;
	padding: 0.5rem 1rem;
}

#footer a { color: var(--link-color); }
#footer a:hover { color: var(--hover-color); }

#footer p {
	margin: 0;
}

#footer .social {
	float: right;
	padding: 1.5em 0 1.5em 1em;
}

/*** BASIC LAYOUT: POST LISTS ***/

.post {
	padding: 0.25rem;
	border-radius: 0.5rem;
}
.post .excerpt {
	margin-top: 0.8em;
	margin-bottom: 0.4em;
	text-indent: 2em;
}
.preview_author {
	font-size: 0.9em;
	display: inline;
	font-style: italic;
	color: var(--heading-color);
	margin-left: 2em;
}

.readmore {
	text-align: center;
	font-variant: small-caps;
}

.next_page {
	display: inline;
	float: right;
}
.prev_page {
	display: inline;
	float: left;
}

/*** BASIC LAYOUT: EXTRA SMALL DEVICES ***/

@media (max-width: 767px) {
	.js #nav-toggle {
		display: block;
		float: right;
		width: 2em;
		margin: 0.6667em 0;
		font-size: 1.5rem;
		line-height: 2em;
		text-align: center;
		cursor: pointer;
	}
	.js #nav-toggle > * { vertical-align: middle;  }
}

/*** TYPOGRAPHY ***/

a {
	color: var(--link-color);
}
a:visited {
	color: var(--visited-link);
}

h1, h2, h3, h4, h5, h6 {
	margin-top: 0.6em;
	margin-bottom: 0.3em;
	font-weight: bold;
	color: var(--heading-color);
}
h1 { font-size: 2em; text-align: center; }
h2 { font-size: 1.7em; }
h3 { font-size: 1.4em; text-align: center; }
h4 { font-size: 1.1em; }
h5 { font-size: 1em; }
h6 { font-size: 1em; font-weight: normal; font-style: italic; }

img { max-width: calc(100% - 4em); }

hr {
	border: 0.1em solid var(--line-color);
	border-radius: 0.3em;
	background: var(--line-color);
	width: 80%;
}

abbr { text-decoration: underline dotted; }

/*** UTILITIES ***/

.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }
.align-justify { text-align: justify; }

.image { display: block; margin: 0 auto; }
.image.xsmall { width: 20%; }
.image.small { width: 40%; }
.image.large { width: 60%; }
.image.xlarge { width: 80%; }
.image.float-left { float: left; margin: 1em 2em 1em 0; }
.image.float-right { float: right; margin: 1em 0 1em 2em; }
.image img { display: block; width: 100%; }

@media (max-width: 767px) {
	.image.xsmall { width: 60%; }
	.image.small { width: 80%; }
	.image.large, .image.xlarge { width: 100%; }
	.image.float-left, .image.float-right { float: none; margin: 0 auto; }
}

/*** TABLES ***/

table { border-spacing: 0; }

td, th {
	padding: 0.4em 1em;
	vertical-align: top;
}
th {
	font-weight: bold;
	text-align: center;
	background: #f5f5f5;
	color: #333;
}

td, th {                                         border: 1px solid #ccc; }
tr:not(:last-child) td, tr:not(:last-child) th { border-bottom: 0 none; }
thead tr:last-child th {                         border-bottom: 0 none; }
td:not(:last-child), th:not(:last-child) {       border-right: 0 none; }

tr:first-child td:first-child, tr:first-child th:first-child { border-top-left-radius: 0.3em; }
tr:first-child td:last-child, tr:first-child th:last-child {   border-top-right-radius: 0.3em; }
tbody tr:last-child td:first-child {                           border-bottom-left-radius: 0.3em; }
tbody tr:last-child td:last-child {                            border-bottom-right-radius: 0.3em; }
table thead + tbody tr:first-child td {                        border-radius: 0 !important; }

/*** LISTS ***/

ol, ul {
	list-style-position: outside;
	padding-left: 1.5em;
}
ol { padding-left: 2.5em; }
li { padding-left: 0.5em; }

dt { font-weight: bold; }
dd { margin-left: 2em; }

/*** CODE ***/

code {
	margin: 0 0.1em;
	padding: 0.1em 0.2em;
	border: 1px solid var(--line-color);
	border-radius: 0.3em;
	background: var(--code-bg);
	color: var(--code-color);
	font-size: 0.9em;
	font-family: 'Courier New', 'Courier', monospace;
	line-height: 1.8;
}

pre {
	padding: 0 1em;
	border: 1px solid var(--line-color);
	border-radius: 0.3em;
	background: var(--code-bg);
}
pre code {
	display: block;
	margin: 0;
	padding: 1.1em 0;
	border: 0 none;
	background: transparent;
	overflow-x: auto;
	line-height: 1.4;
}

/*** BLOCKQUOTE ***/

blockquote {
	margin-left: 1em;
	padding-left: 1em;
	border-left: 0.2em solid var(--line-color);
}

/*** ORIENTATION SCALING ***/

@media (orientation:landscape) {
	body {
		font-size:calc(10px + 1.1vh);
	}
	.content {
		margin: 1rem 10%;
	}
	#navbar li {
		display: inline;
		margin: 1rem 0;
	}
}
@media (orientation:portrait) {
	body {
		font-size:calc(12px + 1.1vw);
	}
	#logo { display: none; }
	.content {
		margin: 1rem 2%;
	}
	#navbar li {
		display: block;
		margin: 0 0.2rem;
	}
}

