@import 'ct.highlight.css';

article h1 {
	font-size: 50px;
	font-weight: 600;
	font-family: 'Raleway';
	color: var(--col-white);
	text-shadow: 1px 1px #000000;
	padding: 0;
	margin: 0 0 18px 0;
}
article h2 {
	font-size: 28px;
	padding: 0;
}

article h6 {
	font-size: 28px;
	padding: 0;
	margin: 0 0 0 0;
	color: var(--col-codethink-bright);
}

article img {
	width: 100%;
}

article code {
	background: #ececec;
	padding: 0.3em 0.4em;
	border-radius: 0.8em;
}

article > section {
	line-height: 1.7;
	padding: 60px 15%;
}
article > section > *:first-child,
article > section > div > *:first-child {
	margin-top: 0;
}
article > section p {
	max-width: 45em;
}

article section#overview {
	font-size: 20px;
	line-height: 1.5;
	padding-top: 30px;
}
article section#overview p {
	margin: 0;
	padding: 18px 0;
}

article section.flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 60px;
}
article section.flex:nth-of-type(even) {
	flex-direction: row-reverse;
}
article section.flex img {
	border-radius: 50%;
	width: 400px;
	flex: 0 0 auto;
}
article section.flex .text {
	margin: 0 60px 0 0;
}
article section.flex:nth-of-type(even) .text {
	margin: 0 0 0 60px;
}

article section.post,
article section.post-listings {
	display: flex;
	padding: 60px 15%;
}
article section.post {
	padding-top: 30px;
}

.post-content,
.post-list-detailed {
	flex: 2 1 0;
}
.post-list {
	flex: 1 0 0;
	padding: 0 0 0 60px;
}
.post-list ul {
	list-style: none;
	padding: 0;
}
.post-list h2 {
	font-weight: 400;
	margin: 0;
}
.post-list a {
	color: var(--col-green-800);
	padding: 10px;
	display: inline-block;
	width: 100%;
}
.post-splash {
	padding: 200px 60px 30px 60px;
	margin: 0;
	background-position: center;
}
.post-splash h1 {
	max-width: 20em;
}
.post-splash .date {
	color: var(--col-codethink-bright);
}
.post-splash .tags {
	display: flex;
	flex-wrap: wrap;
	margin: -6px;
}
.post-splash .tags .tag {
	color: var(--col-green-800);
	background-color: var(--col-green-200);
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	margin: 6px;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}
.post-splash .tags .tag svg {
	margin: 0 6px 0 0;
	height: 20px;
	width: 20px;
}
.post-metadata {
	color: var(--col-grey-100);
	margin: 12px 0 24px 0;
}
.post-metadata a {
	color: var(--col-white);
	font-weight: 600;
}
.post-metadata a:hover {
	color: var(--col-codethink-bright);
	text-decoration-thickness: 2px;
}
.post-content {
	flex: 2 1 0;
	min-width: 0;
}
.post-content *:first-child {
	margin-top: 0;
}
.post-content h1,
.post-content h2 {
	color: var(--col-gray-800);
	margin-top: 48px;
}
.post-content h3 {
	margin-top: 30px;
}
.post-content ul {
	max-width: 45em;
}
.post-content pre {
	overflow: auto;
	padding: 18px;
}
.post-content a {
	text-decoration: underline;
	color: var(--col-green-600);
	font-weight: 600;
}
.post-content a:hover {
	text-decoration: none;
}

.section-link {
	color: var(--col-green-800);
	display: flex;
	align-items: center;
	font-weight: 600;
	font-size: 20px;
}
.section-link svg {
	margin-left: 6px;
	width: 24px;
}

article.home section:nth-of-type(even) {
	background-color: var(--col-grey-200);
	color: var(--col-grey-900)
}
article.home section:nth-of-type(even) h2 {
	color: var(--col-grey-800)
}

article > section:last-of-type {
	padding-bottom: 150px;
}

.values {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
.value {
	display: flex;
	align-items: flex-start;
	padding: 24px 12px;
	flex: 0 0 calc(50% - 24px);
}
.value h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
}
.value .details {
	margin: 0 0 0 18px;
}
.value .details p {
	margin: 0;
}

.icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 24px;
	background-color: var(--col-green-200);
	color: var(--col-green-800);
	flex: 0 0 auto;
}
.icon svg {
	width: 24px;
	height: 24px;
}

.blog-post {
	display: flex;
	align-items: flex-start;
	margin: 0 0 48px 0;
	color: var(--col-main-fg);
}
.blog-post .content {
	margin: 0 0 0 36px;
}
.blog-post img {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
}
.blog-post h3 {
	font-size: 28px;
	font-weight: 400;
	margin: 0;
}
.blog-post .metadata p {
	font-weight: 600;
	color: var(--col-gray-800);
}
.blog-post p {
	max-width: 45em;
	margin: 0;
}
.blog-post .summary {
	margin: 18px 0 0 0;
}
.blog-post:hover {
	text-decoration: none;
}
.blog-post:hover h3 {
	text-decoration: underline;
}

.post-item__image, .post-item__image_60, .post-item__image_80, .post-item__image_left {
  overflow: hidden;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2%;
  margin-bottom: 2%;
  width: 50%;
  text-align: center;
  background: white;
}

.post-item__image_60 {
  width: 60%;
}

.post-item__image_80 {
  width: 80%;
}

.post-item__image_left {
  width: 80%;
  max-width: 36em;
	margin-left: 5%;
}

@media only screen and (max-width: 1024px) {
	article > section,
	article section.post-listings {
		padding: 60px 30px;
	}
	article section.post {
		padding: 30px 30px 60px 30px;
	}
}

@media only screen and (max-width: 768px) {
	article > section {
		display: block;
	}
	article > section > section {
		width: auto;
	}
	article section:last-of-type {
		padding-bottom: 100px;
	}
	article section.flex,
	article section.flex:nth-of-type(even) {
		flex-direction: column-reverse;
		align-items: center;
	}
	article section.flex img {
		width: 200px;
		height: 200px;
		margin-bottom: 30px;
	}
	article section.flex .text,
	article section.flex:nth-of-type(even) .text {
		margin: 0;
	}
	article section.flex p:last-of-type {
		margin-bottom: 0;
	}
	.values {
		flex-direction: column;
	}
	.value {
		padding: 24px 0;
	}
	.value:last-of-type {
		padding-bottom: 0;
	}
	.blog-post {
        align-items: center;
		flex-direction: column;
		font-size: 14px;
	}
	.blog-post .content {
		margin: 0;
	}
	.blog-post h3 {
		margin: 12px 0;
		font-size: 16px;
		font-weight: 600;
	}
	.blog-post img {
		width: 150px;
		height: 150px;
	}

	.post-list { display: none; }
	.post-splash {
		padding: 150px 30px 30px 30px;
		margin: 0 -30px;
	}
	.post-splash h1 {
		font-size: 30px;
	}
}

article.glossy {
	font-size: 14px;
}
article.glossy h2 {
	margin: 0.5em 0 1em 0;
	padding: 0;
}

article.glossy h3 {
	margin: 0;
	padding: 18px 0 0 0;
	font-size: 118%;
}

article.glossy h6 {
	margin: 0.5em 0 1em 0;
	padding: 0;
	color: var(--col-codethink-bright);
}

article.glossy > section {
	line-height: 1.7;
	column-count: 3;
	justify-content: space-between;
	padding-bottom: 100px;
}
article.glossy > section > section {
	width: 31%;
}
@media only screen and (max-width: 768px) {
	article.glossy > section {
		display: block;
		column-count: 1;
		padding-bottom: 80px;
	}
	article.glossy > section > section {
		width: auto;
	}
}
article.glossy > section.links {
	display: block;
}
article.glossy img {
	display: block;
	max-width: 100%;
}

article.gallery ul {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	list-style-type: none;
}

article.gallery ul > li {
	width: 27%;
	padding: 2%;
	margin-bottom: 36px;
}

article.gallery ul > li > a {
	display: flex;
	height: 300px;
	align-items: center;
}

article.gallery ul > li > em {
	font-size: 18px;
}

article.gallery ul > li > a > img {
	display: block;
	width: 100%;
	padding-bottom: 10%;
}

article.gallery h2 {
	margin-top: 3.5em;
	border-top: 2px solid gray;
	padding-top: 0.7em;
}

@media only screen and (max-width: 768px) {
	article.gallery ul > li {
		width: 40%;
		padding: 5%;
	}
}

/* Admonition boxes. Styles adapted from Sphinx Basicstrap theme:
 * https://pythonhosted.org/sphinxjp.themes.basicstrap/sample.html#admonitions-docutils-origin */

div.admonition {
	padding: 1rem;
	margin-bottom: 20px;
	color: #734900;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
	background-color: #fcf8e3;
	border: 1px solid #fbeed5;
	border-radius: 4px;
}

div.admonition p {
    margin: 0;
}

div.admonition pre {
}

div.admonition p.admonition-title {
	font-weight: bold;
}

div.admonition ul, div.admonition ol {
}

div.danger,
div.error {
	color: #8c110f;
	background-color: #f2dede;
	border-color: #eed3d7;
}

div.warning,
div.caution,
div.attention {
}

div.note,
div.important {
	color: #035304;
	background-color: #dff0d8;
	border-color: #d6e9c6;
}

div.hint,
div.tip {
	color: #3a87ad;
	background-color: #d9edf7;
	border-color: #bce8f1;
}
