/*
	VARIABLES
	=========
*/
:root {
	//Colors
	--color-bg: #ebebeb;
	--color-fg: #3f3f3f;
	--color-underline: #858585;
	--color-accent: #c11e01;

	--color-dim: #666666;
	--color-subtle: #cccccc;
	--color-highlight-bg: #d8d8d5;
	--color-da1: #79740e;

	//Type sizes
	--font-size-m: 1rem;
	--font-size-l: 1.2rem;
	--font-size-s: 0.6rem;

	//Typefaces
	--font: Georgia, "Times New Roman",Times,serif;
	--font-sans: "Gill Sans", -apple-system, Helvetica, Arial, sans-serif;
    --font-mono: "New Courier", monospace;

	//Width
	--width-normal: 30rem;
	--width-extended: 35rem;
	--width-compressed: 20rem;
}

/*
	BASE
	====
*/
* {
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
	font-feature-settings: "kern" 1,"liga" 1,"onum" 1;
	min-height: 0vw;
}

html {
	background-color: #ebebeb;
	color: var(--color-fg);
	font-family: var(--font);
	font-size: 24px;
	line-height: 1.3;
	margin: 0;
	padding: 0;
}

body {
	margin: 0;
	//padding: 1.25rem;
}

ul {
	padding-left: 0;
}

figure {
	margin: 0;
}

img {
    display: block;
}

/*
	WHITESPACE & SEPARATION
	=======================
*/

.prologue {
	margin-top: 3rem;
}

article .prologue, .epilogue {
	background-color: var(--color-highlight-bg);
	padding: 3rem 0;
}

article .story {
	background-color: var(--color-bg);
	padding: 3rem;
}

article .code {
	background-color: #282c34;
	padding: 1rem;
}

body>header {
	border-bottom: 1px solid var(--color-subtle);
}

body>footer {
	border-top: 1px solid var(--color-subtle);
	margin-top: 5em;
}


article>header {
	padding-top: 5rem;
	padding-bottom: 1rem;
}

hr {
	margin: 3rem auto;
	border: none;
	border-bottom: 1px solid var(--color-subtle);
}

.end-credits .tree {
    margin-top: 3rem;
    margin-bottom: 20rem;
}

/*
	WIDTH
	=====
*/
body>header, body>footer {
	margin-left: auto;
	margin-right: auto;
	max-width: var(--width-extended);
	padding: 1rem 0;
}

article .prologue, .epilogue, .story {
	max-width: var(--width-extended);
	margin-left: auto;
	margin-right: auto;
}


article p, article ol, article ul, article blockquote {
	margin: 1em auto;
	max-width: 30em;
}

.prologue p, .epiloge p {
    max-width: 35em;
}

article figure {
	margin: 1em auto;
	max-width: var(--width-extended);
}

.post img, .prologue img, .epilogue img, .credits img, .story img, .code img {
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.small-img {
	width: 250px;
}

.story figcaption {
	text-align: center;
	color: var(--color-dim);
	font-size: var(--font-size-s);
}

.title {
	display: block;
	max-width: 100%;
}

.title img {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

hr {
	max-width: var(--width-compressed);
}

.end-credits .tree {
	max-width: var(--width-compressed);
	margin-left: auto;
	margin-right: auto;
}

.end-credits .tree img {
    width: 100%;
}

.circle-container {
    width: 250px;
    height: 250px;
    margin: 0 auto;
    background-color: black;
    text-align: center;
}

.circle {
    display: inline-block;
    border: 5px gray solid;
    margin-top: 25px;
    height: 200px;
    width: 200px;
    border-radius: 50%;
}

/*
	TYPOGRAPHY
	==========
*/

body>header{
	text-align: center;
	font-family: var(--font-sans);
	font-weight: bold;
	font-size: var(--font-size-l);
	letter-spacing: -1.5px;
}

body>header a {
	color: var(--color-dim);
	text-decoration: none;
	transition: 0.3s;
	background: linear-gradient(var(--color-subtle), var(--color-subtle)) no-repeat;
	background-size: 100% 0.3em;
	background-position: 0 0.9em;
}

body>header a:hover {
	color: var(--color-accent);
}

article .prologue, .epilogue {
	font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.5;
	//font-weight: 200;
	//font-style: italic;
}

article header {
	text-align: center;
}

article header img {
	max-height: 8rem;
}

article time {
	font-family: var(--font-sans);
	color: var(--color-dim);
	font-size: var(--font-size-s);
}

article a {
	color: var(--color-fg);
	text-decoration-color: var(--color-accent);
	transition: 0.3s;
}

article a:hover {
	color: var(--color-underline);
}

article blockquote {
	border-left: solid 2px var(--color-accent);
	padding: 0 1rem;
	font-style: italic;
	margin-top: 2rem;
	margin-bottom: 2rem;
}

article blockquote>p {
	margin-left: 0;
}

article .post ul {
	list-style: none; /* Remove default bullets */
}

article .post ul li::before {
	content: "\2022";  /* Add content: \2022 is the CSS Code/unicode for a bullet */
	color: var(--color-accent); /* Change the color */
	display: inline-block; /* Needed to add space between the bullet and the text */
	width: 1em; /* Also needed for space (tweak if needed) */
	margin-left: -1em; /* Also needed for space (tweak if needed) */
	font-size: var(--font-size-s);
}

article .code {
	font-family: 'Fira Code', monospace;
	color: #abb2bf;
	font-size: 0.7em;
}

article .code em {
	color: #c678dd;
	font-style: normal;
}

article .code strong {
	color: #98c379;
	font-weight: normal;
	font-style: normal;
}

article .code ol {
	counter-reset: item;
}

article .code ol>li {
	counter-increment: item;
	margin-top: 1em;
}

article .code ol>li::marker {
	color: #4a4e56;
	content: counter(item) "  ";
}

article .code ul {
	list-style-type: disc;
}

article .code a {
	color: #abb2bf;
	text-decoration-color: var(--color-accent);
	transition: 0.3s;
}

article .voice {
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.end-credits>.fleuron {
	text-align: center;
	font-size: 3em;
}

.da1 {
    color: var(--color-da1);
}

.story > p:first-of-type::first-letter {
	font-size: 2em;
	color: var(--color-accent);
}

.story strong {
	color: var(--color-accent);
	font-weight: normal;
}

.story h2 {
    font-family: var(--font-sans);
    font-size: var(--font-size-m);
    font-weight: normal;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-top: 2em;
}

/*
	DIALOGUE
	========
*/
.dialogue {
	font-family: "Courier New", Courier, monospace;
	font-size: 0.8em;
	font-weight: 600;
}

.dialogue p {
    margin: 0;
    margin-top: 1em;
}

.dialogue-line {
	max-width: var(--width-compressed);
	margin: 1.5em auto;
}

.dialogue .character {
	display: block;
	text-align: center;
	text-transform: uppercase;
	margin-bottom: 0;
}

.dialogue .actor-indication {
	display: block;
	text-align: center;
	margin-top: 1em;
}

/*
    POSTCARDS
    =========
 */
.postcards ul {
    list-style: none;
    display: block;
    padding: 0;
	max-width: var(--width-extended);
	margin-left: auto;
	margin-right: auto;
    text-align: center;
}

.postcards li {
    display: inline-block;
    list-style: none;
    border:solid 12px #fff;
    box-shadow:0 0 15px 0px #555;
    max-width: 400px;
    padding-bottom: 40px;
    background-color: #fff;
}

.postcards li img {
    display: block;
    max-width: 100%;
}

.postcards li:nth-child(1){
    transform:rotate(5deg);
}

.postcards li:nth-child(2){
    transform:rotate(0deg);
}

.postcards li:nth-child(3){
    transform:rotate(-5deg);
}

.postcards li:nth-child(4){
    transform:rotate(3deg);
}
/*
	MOBILE
	======
*/
@media only screen and (max-width: 768px) {
    :root {
	margin-top: 2em;
	--width-compressed: 80%;
	--width-extended: 100%;
    }

    ul {
	padding-left: 1em;
    }

    article header, article p, article ol, article ul, article blockquote, article h2 {
	margin-left: 1rem;
	margin-right: 1rem;
    }

    article .story {
	padding: 0;
    }

}

/*
	DARK THEME
	==========
*/
@media (prefers-color-scheme: dark) {
	.title img, .title-image, .diagram, .tree img {
		filter: none;
	}
}

/*
	POSTS
	=====
*/

.posts {
	margin: 2rem auto 1rem auto;
}

section.posts ol {
	padding: 0;
	margin: 0 auto;
	max-width: 30rem;
	font-family: var(--font-mono);
}

section.posts ol li {
    height: 4rem;
}

section.posts a {
    display: block;
    border-radius: 5px;
	color: var(--color-fg);
	text-decoration: none;
	transition: 0.3s;
}

/*
section.posts a:visited {
	background-color: #edede9;
}

section.posts a:link {
    background-color: var(--color-highlight-bg);
}
*/

section.posts a:hover {
    background-color: var(--color-subtle);
}

section.posts .title-image {
    display: inline;
	max-height: 2rem;
    vertical-align: middle;
    max-width: 100%;
}

@media only screen and (max-width: 35rem) {
    section.posts ol {
		padding-left: 3rem;
	}
}

/* ==============
   HEINLEIN TABLE
   ============== */

#heinlein-table {
    border-collapse: collapse;
    margin: 0 auto;
    font-size: 0.8rem;
}

#heinlein-table td{
    padding: 8px;
}
#heinlein-table td {
    border: 1px solid gray;
}

#heinlein-table td:nth-child(2) {
    text-align: right;
}

/* ==============
   HIGHLIGHTED BLOCKQUOTE
   ============== */
.highlighted-blockquote {
    background-color: white;
    padding: 0.5rem 0;
    text-align: center;
}

.centered {
    text-align: center;
}
