#ghost-portal-root,
    a[href^="https://ghost.org"],
    a[href^="#/portal/signup"] { display: none; }

:root {
	color-scheme: dark;
}

::selection {
	background: hsl(0 0% 12%);
	color: hsl(268.1deg 52.81% 73.2%);
}

.title-span::after {
	content: attr(data-scramble-suffix);
}

* {
	padding: 0;
	margin: 0;
}

html, body {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	height: 100%;
	font-weight: 300;
    background: rgba(6, 6, 6, .97);
	color: hsl(0 0% 62%);
	overflow-y: auto;
}

#site-nav {
	display: flex;
	align-items: center;
	font-size: 14px;
	gap: 16px;
	color: white;
}

#site-nav a {
	color: white;
}
html {
	height: 100%;
}

#profile h1 {
	margin: 0;
}
#main-section {
	display: flex;
	flex-direction: column;
}            
/* Blocks */
#content {
	display: flex;
	flex-direction: column;
	align-content: center;
	max-width: 720px;
	padding-top: 5em;
	height: 100%;
	line-height: 28px;
	margin: 0 auto;
}
footer {
	padding: 1em 0em 2.5em 0em;
	font-size:0.8em;
	line-height: 1.5em;
	color: #888;
}
article {
	padding-bottom: 1.7em;
	max-width: 56em;
	color: hsl(0 0% 92%);
	font-size: 16px;
	line-height: 28px;
}

#infobox p {
	margin: 0px;
}

article p {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

article a {
	color: hsl(268.1deg 82.81% 73.2%);
}
article h1 {
	font-size: 1.5em;
	margin-top: 0.7em;
	margin-bottom: 0.7em;
	color: white;
}

article a:hover {
	text-decoration: underline;
}

article .post-title {
	font-size: 16px;
	margin: 0;
	color: white;
}
/* Headings */
h1, h2, h3, h4, h5, h6 {
	font-weight: 400 !important;
}

h2 {
	font-size:1.9em;
	line-height: 1.2em;
	margin-top: 0.7em;
	margin-bottom: 0.7em;	
}

h3 {
	font-size:1.4em;
	line-height: 1.3em;
	
}

h4 {
	font-size:1.3em;
}

h5 {
	font-size:1.2em;
}

h6 {
	font-size:1.1em;
}

.page-number {
	font-size: 14px;
}

.older-posts, .newer-posts {
	font-size: 14px;
	color: white;
}

img, iframe {
	max-width: 100%;
}

/* Ghost sets width/height attributes on uploads; without this the box keeps the
   intrinsic height while the picture is scaled down, leaving huge empty gaps. */
img {
	height: auto;
}

a {
	font-weight:700;
	text-decoration:none;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
	font-weight:400 !important;
}
strong {
	font-weight: 700;
}

blockquote {
	border-left: 0.4em solid #eee;
	padding-left: 1.2em;
	font-size: 1.3em;
}

hr{
 	border: 0;
	height: 1px;
	background: hsl(0 0% 12%);
}

ul, ol {
	margin-left: 3em; 
}

/* Inline code only - `pre code` is left to highlight.js */
:not(pre) > code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
	font-size: 0.875em;
	font-weight: 400;
	line-height: inherit;
	color: hsl(268.1deg 82.81% 73.2%);
	background: #151515;
	padding: 0.15em 0.4em;
	border-radius: 0.3em;
}

pre {
	font-size: 0.8em;
	line-height: 2em;
	word-break: break-all;
	word-wrap: break-word;
	white-space: pre;
	white-space: -moz-pre-wrap;
	white-space: pre-wrap;
	white-space: pre\9; 
}
input {
	font-size:1em;
	padding: 0.3em;
}
/* Sidebar */
header h1 a {
	color:#444;
}  
header h1 a:hover {
	text-decoration:none;
}
header #logo img {
	width: 92px;
	border: none;
	border-radius: 20%;
}
#infobox h1 {
	font-size:18px;
	color: white !important;
}
#infobox a {
	color: white;
}
#infobox p {
	font-size: 16px;
	color: rgb(158, 158, 158);
}
#profile {
	display: flex;
	gap: 1em;
	padding-bottom: 1em;
	align-items: center;
}
#follow-icons {
	font-size: 0.7em;
	margin-top: -0.7em;
	margin-bottom: 1.5em;
}
#follow-icons a {
	color: #ccc;
}	
#follow-icons span {
	vertical-align:top;
	margin-left:-0.15em;
	margin-right:-0.15em;
}
#follow-icons span .fa-stack-1x {
	font-size:1.05em;
	line-height:1.9em;
}

/* Posts */
.post-stamp time {
	color: hsl(0 0% 62%);
}

h3.post-title {
	/* margin-top:0.4em; */
	/* padding-bottom:0.9em; */
	/* border-bottom: 1px solid #eee; */
	font-size: 16px;
	color: white;
	padding: 1em;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 4px;
	overflow: hidden;
}
.post-title time {
	color: #888;
}
.post {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

h3.post-title:hover {
	font-size: 16px;
	background: rgb(15, 15, 15);
	border-radius: 0.5em;
}

.post-title .feature-star {
	font-size: 0.9em;
}
.separator, .taglist, .feature-star {
	background-color: #2d2d2d;
	flex-grow: 1;
	height: 1px;
	text-wrap: nowrap;
	overflow:hidden;
}
.taglist a {
	background-color:#ccc;
	color:#fff;
	display: inline-block;   
	line-height: 1.5em;
	padding:0.3em 0.6em 0.3em 0.6em;
	vertical-align:20%;  
	font-size:0.5em;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	font-weight: 700 !important;
	text-transform:uppercase;
	letter-spacing:0.05em;
	border-radius:0.25em;
	-moz-border-radius: 0.25em;
	-webkit-border-radius: 0.25em;
}
#social-bar {
	margin-top:1.5em;
	background-color:#eee;
	padding:0.5em;
}

/* Footer */
.pagination {
	margin-bottom:1em;
}

.shortened {
	display: none;
}

.kg-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	align-self: center;
	width: 100%;
}

.kg-card img {
	object-fit: contain;
}

/* Large Screens */
@media only screen and (min-width: 1281px) {
	html, body {
		font-size: 1.1em;
	} 
}
/* Small Screens */
@media only screen and (max-width: 800px) { 
	body {
		padding:0;
	}
	header {
		border-right: none;
		padding-bottom:1em;
	}

	.title-span {
		flex: 1 1 auto;
		margin-right: 16px;
	}

	.full-time {
		display: none;
		white-space: nowrap;
	}

	.shortened {
		display: block;
		white-space: nowrap;
	}

	#profile {
		flex-direction: column;
		gap: 0;
		align-items: baseline;
	}

	.separator {
		display: none;
	}

	#content {
		margin-left: 0;
		padding: 2em 2em 1em 2em;
		width: auto;
	}
	footer {
		padding: 0 2.5em 2em 2.5em;
	}
	.kg-card {
		align-self: normal;
	}
}
/* Tiny Screens */
@media only screen and (max-width: 320px) { 
	header {
		padding: 1.2em 1.2em 0.6em 1.2em;
	}
	#content {
		padding: 1.2em 1.2em 0.6em 1.2em;
	}
	footer {
		padding: 0 1.5em 1.2em 1.5em;
	}
	ul, ol {
		margin-left: 2em; 
	}
	.kg-card {
		margin: 0;
	}
}

/* ghost compatibility */

.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: auto calc(50% - 50vw);
  transform: translateX(calc(50vw - 50%));
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.kg-bookmark-card {
    width: 100%;
    position: relative;
}

.kg-bookmark-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    color: currentColor;
    font-family: inherit;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.kg-bookmark-container:hover {
    text-decoration: none;
}

.kg-bookmark-content {
    flex-basis: 0;
    flex-grow: 999;
    padding: 20px;
    order: 1;
}

.kg-bookmark-title {
    font-weight: 600;
}

.kg-bookmark-metadata,
.kg-bookmark-description {
    margin-top: .5em;
}

.kg-bookmark-metadata {
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kg-bookmark-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.kg-bookmark-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: text-bottom;
    margin-right: .5em;
    margin-bottom: .05em;
}

.kg-bookmark-thumbnail {
    display: flex;
    flex-basis: 24rem;
    flex-grow: 1;
}

.kg-bookmark-thumbnail img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    object-fit: cover;
}

.kg-bookmark-author {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.kg-bookmark-publisher::before {
    content: "•";
    margin: 0 .5em;
}

.kg-image-card,
.kg-gallery-card {
    margin: 1.5em 0;
}

.kg-image-card figcaption,
.kg-gallery-card figcaption {
    margin: 0.75em 0 0;
    font-size: 0.85em;
    line-height: 1.4;
    color: hsl(0 0% 55%);
    text-align: center;
}

.kg-gallery-container {
    display: flex;
    flex-direction: column;
    margin: 1.5em auto;
    max-width: 1040px;
    width: 100vw;
}

.kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.kg-gallery-image img {
    display: block;
    margin: 0;
    width: 100%;
    height: 100%;
}

.kg-gallery-row:not(:first-of-type) {
    margin: 0.75em 0 0 0;
}

.kg-gallery-image:not(:first-of-type) {
    margin: 0 0 0 0.75em;
}

iframe[data-tweet-id] {
	border-radius: 12px;
}