* {
	box-sizing: border-box;
}

html,
body {
	font-size: 16px;
	padding: 0;
	margin: 0;
	background-color: #fff;
	font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
}

/* -- Core -- */
a {
	color: #2200CC;
	text-decoration: none;
	transition: 0.22s all;
}

a:hover,
a:focus {
	text-decoration: underline;
	color: #2A5DB0;
}

.font-light a {
	color: #fff;
}

.font-light a:hover,
.font-light a:focus {
	color: #ddd;
}

img {
	max-width: 100%;
	height: auto;
}

pre {
	overflow: auto;
	white-space: pre-wrap;
	padding: 1rem;
}

p {
	margin: 0;
}

code {
	font-size: 1rem;
	font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;
}

.container {
	width: calc(640px + 2rem);
	max-width: 100%;
	padding: 0 1.5rem;
}

/* -- End Core -- */

/* -- Utility -- */
.u-list-reset {
	padding: 0;
	margin: 0;
	list-style: none;
}
/* -- End Utility --*/

/* -- Shared -- */
.sidebar,
.footer {
	background-color: #212121;
}

.sidebar__inner,
.app__main__inner {
	padding-bottom: 15px;
}

/* -- End Shared -- */

/* -- App -- */
.app {
	min-height: 100vh;
}

.app__sidebar {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 0;
	display: block;
	height: 100%;
	min-width: 250px;
	width: calc(50% - 265px);
}

.app__main {
	display: block;
	padding-left: calc(50% - 265px);
}

/* -- Sidebar -- */
.sidebar {
	color: #fff;
	text-align: right;
}

.sidebar__inner {
	display: inline-block;
	text-align: left;
	width: 250px;
	height: 100%;
	padding-left: 25px;
	padding-right: 25px;
	padding-top: 25px;
}

.sidebar__top-bottom {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.sidebar__top {
	flex: 1 1 auto;
}

.sidebar__heading-link {
	display: inline-block;
	width: 100%;
}

.sidebar__icon {
	display: block;
	margin: 0 auto;
}

.sidebar__heading {
	display: inline-block;
	font-size: 1.5em;
	font-weight: bold;
	margin: 0;
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
}

.sidebar__copy {
	line-height: 1.45rem;
}

.sidebar__icon {
	border-radius: 50px;
}

.sidebar__page-list-container {
	padding-top: 20px;
}

.sidebar__page-list-heading {
	padding-bottom: 12px;
	margin: 0;
}

.sidebar__page-list-icon {
	display: none;
	min-width: 30px;
	text-align: center;
}

.sidebar__page-list-link[href$="/games"] > .sidebar__page-list-icon--games,
.sidebar__page-list-link[href$="/open-source"] > .sidebar__page-list-icon--opensource,
.sidebar__page-list-link[href$="/twitter"] > .sidebar__page-list-icon--twitter,
.sidebar__page-list-link[href*="twitter.com/"] > .sidebar__page-list-icon--twitter {
	display: inline-block;
}

.sidebar__page-list-link,
.sidebar__page-list-link:hover,
.sidebar__page-list-link:focus {
	text-decoration: none;
}

.sidebar__page-list-link {
	display: inline-block;
	padding-top: 4px;
	padding-bottom: 5px;
}

.sidebar__page-list-link:hover .sidebar__page-list-text,
.sidebar__page-list-link:focus .sidebar__page-list-text {
	text-decoration: underline;
}

.sidebar__blog-link-list {
	display: flex;
	flex-direction: row;
}

.sidebar__blog-link-list > li {
	flex: 1 1 auto;
}

.sidebar__blog-link-list > li:first-child::before {
	display: none;
}

/* -- Search Form -- */
.search-form__input {
	width: 100%;
	margin-top: 18px;
	border-radius: 4px;
	border: 0;
	background-color: #fff;
	font-size: 16px;
	padding: 6px 6px;
	text-indent: 4px;
}

/* -- Tag List -- */
.tag-list {
	padding: 0;
	margin: 0;
	list-style: none;
}

.tag-list__item {
	display: inline-block;
}

/* -- Header -- */
.header__root {
	max-width: 100%;
	margin: 0 auto;
	padding: 1.5rem 0;
	background-color: #4483b3; /* Old, not AA accessible: #6394B9; */
	color: #fff;
}

.header__row {
	display: flex;
	flex-direction: row;

	justify-content: space-between;
}

.header__column {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.header__title {
	font-size: 1.25rem;
	font-weight: bold;
	text-transform: lowercase;
	letter-spacing: 0.0625em;
	text-decoration: none;
	color: #fff;
	/*letter-spacing: 0.09375em;*/
}

.header__title:hover,
.header__title:focus {
	color: #eaeaea;
}

.header__right {
	text-align: right;
}

.header__nav-item {
	display: inline-block;
	margin-left: 0.75rem;
}

.header__nav-item:first-child {
	margin-left: 0;
}

.header__nav-item-link {
	padding-left: 0;
	text-decoration: none;
	transition: none;
	outline-color: white;
}

.header__nav-item-link-text {
	position: relative;
	top: 0;
	z-index: 0;
	color: #fff;
	letter-spacing: 0.05125em;
	text-decoration: underline;
	transition: 0.42s all;
}

.header__nav-item-link:hover > .header__nav-item-link-text,
.header__nav-item-link:focus > .header__nav-item-link-text {
	top: 4px;
	color: #fff;
}
/* -- End Header -- */

/* -- Start Pagination -- */
.pagination__root {
	width: 100%;
	margin-top: 2rem;
}

.pagination__item {
	display: inline-block;
	margin-right: 0.5rem;
}

.pagination__link {
	display: inline-block;
	border-radius: 6px;
	padding: 0.5rem 0.75rem;
	border: 1px solid #110000;
	background-color: transparent;
	color: inherit;
	text-decoration: none;
	transition: 0.16s all;
}

.pagination__link:hover,
.pagination__link:focus,
.pagination__link--current {
	background-color: #2A5DB0;
	border-color: #110000;
	color: #fff;
}
/*<div class="pagination">
    <ol>
        <li id="current">1</li>
        <a href="/page/2"><li>2</li></a>
        <a href="/page/2"><li>»</li></a>
    </ol>
    Page 1 of 2
</div>*/

/* -- Content -- */
.post + .post {
	margin-top: 2.5rem;
	border-top: 1px dashed #666;
	padding-top: 1rem;
}

.copy h1,
.copy h2,
.copy h3,
.copy h4,
.copy h5,
.copy h6 {
	margin: 0;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.copy h1 {
	font-size: 2em;
	margin: 0.5em 0;
}

.copy h2 {
	font-size: 1.375em;
}

.copy h3 {
	font-size: 1.125em;
}

.copy h4,
.copy p {
	font-size: 1em;
}

.copy p {
	font-size: 1em;
	line-height: 1.5625em;
	margin: 1rem 0;
}

.copy pre {
	font-size: 1rem;
	background-color: #272822;
	color: #fff;
}

.copy code a,
.copy code a:hover,
.copy code a:focus {
	color: inherit;
}

.copy li {
	margin: 1rem 0;
	list-style-type: disc;
}

.copy h1 + h2 {
	margin-top: 0;
}

.copy h2 + * {
	margin-top: -0.15rem;
}
/* -- End Content -- */


/*  -- Pretty Printing Skin --  */
.pln { color: #fff }  /* plain text */

@media screen {
  .com { color: #75715e }  /* a comment */
  .typ { color: #66d9ef; }  /* a type name */
  .lit { color: #ae81ff }  /* a literal value */
  /* punctuation, lisp open bracket, lisp close bracket */
  .pun, .opn, .clo { color: #660 }
  .tag, .kwd { color: #f92672 }  /* a markup tag name, a keyword */
  .atn, .str { color: #a6e22e }  /* a markup attribute name or string content */
  .atv { color: #e6db74 }  /* a markup attribute value */
  .dec, .var { color: #606 }  /* a declaration; a variable name */
  .fun { color: red }  /* a function name */

  /* CSS Specific */
  .lang-css .kwd {color: #66d9ef;  font-style: italic; }

  /* CPP Specific */
  .lang-cpp .kwd { color: #66d9ef; font-style: italic; }
  .lang-cpp .typ { color: #a6e22e; }
}

/* Specify class=linenums on a pre to get line numbering */
ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 { list-style-type: none }
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 { background: #eee }
/*  -- End Pretty Printing Skin --  */

/* -- Start Footer -- */
.footer {
	position: relative;
	z-index: 1;
	color: #fff;
}
.footer--smallscreen {
	display: none;
}
/* -- End Footer -- */

@media only screen and (max-width: 1045px) {
	.app__sidebar {
		position: relative;
		width: 100%;
		height: auto;
	}

	.sidebar__inner {
		display: block;
		width: 100%;
	}

	.sidebar__top {
		display: flex;
		flex-direction: row;
		align-items: stretch;
		height: 100%;
	}

	.sidebar__info {
		flex: 1;
	}

	.sidebar__top-bottom {
		display: block;
	}

	.sidebar__copy {
		display: none;
	}

	.sidebar__icon-link,
	.sidebar__heading {
		display: inline-block;
		width: auto;
		vertical-align: middle;
		margin-top: 0;
		margin-bottom: 0;
	}

	.sidebar__links {
		display: flex;
		align-items: center;
	}

	.sidebar__heading {
		margin-top: 0;
		margin-left: 12px;
	}

	.sidebar__page-list-container {
		display: inline-block;
		padding-top: 0;
		width: 100%;
		text-align: center;
	}

	.sidebar__page-list-heading {
		display: none;
	}

	.sidebar__page-list {
		display: inline-block;
	}

	.sidebar__page-list-item {
		display: inline-block;
		text-align: left;
	}

	.sidebar__bottom {
		/* Footer */
		display: none;
	}

	.sidebar__blog-navigation {
		display: none;
	}

	.app__main {
		padding-left: 0;
	}

	.container {
		margin: 0 auto;
	}

	.footer--smallscreen {
		display: block;
		text-align: center;
		padding: 12px 25px 12px;
	}

	/* @media only screen and (max-width: 670px) { */
	.app__sidebar {
		position: static;
	}

	.sidebar__top-bottom {
		display: block;
		height: auto;
	}

	.sidebar__inner,
	.sidebar__icon,
	.sidebar__icon-link {
		height: auto;
	}

	.sidebar__top {
		display: block;
		height: auto;
	}

	.sidebar__info {
		text-align: center;
		padding-bottom: 15px;
	}

	.sidebar__icon {
		height: 60px;
	}
	/*}*/
}
