@font-face {
	font-family: 'Ibarra Real Nova';
	src: url('/fonts/IbarraRealNova-Regular.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Georgia';
	src: url('/fonts/Georgia.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
html {
	overflow-y: scroll;
}

:root {
	--bgcolor: #FBFCFA;
	--fontcolor: #444;
	--linkcolor: #0000a6;
	--visitedcolor: #3b1261;
	--precolor: #fff;
	--prebgcolor: #2A3439;
	--article-max-width: 600px;
	--photo-width: 140%;
	--title-width: 100%;
	--article-font-weight: normal;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bgcolor: #1F2022;
		--fontcolor: white;
		--linkcolor: #5bf;
		--visitedcolor: #ae5ee0;
		--precolor: #fff;
		--prebgcolor: #383838;
	}
}

@media only screen and (width: 430px) and (height: 932px) and (-webkit-device-pixel-ratio: 3) {
	--article-max-width: 100%;
	--article-font-weight: normal;
	.read {
		font-weight: var(--article-font-weight);
	}
}

.hero-img {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 2em;
}

@media (min-width: 1200px){
	.hero-img {
		margin-left: -300px;
		width: 1200px;
	}
}

@media (max-width: 1199px){
	.gallery-img {
		margin-left: auto;
		margin-right: auto;
		width: 100%;
		margin-bottom: 10%;
	}
}

@media (min-width: 1200px){
	.gallery-img {
		margin-left: -300px;
		margin-right: auto;
		min-width: 1200px;
		margin-bottom: 20%;
	}
}

@media only screen and (min-width: 620px){
	:root{
		--title-width: 65vw;
	}
	.post-title{
		width: var(--title-width);
	}
}

h1 {
	font:2em 'Ibarra Real Nova';
	font-weight:700;
	font-weight:bold;
}

.read > h1 {
	font:1.9em 'Ibarra Real Nova';
	margin-bottom: -0.3em;
	margin-top: 0em;
}

.read > h2 {
	font:1.3em 'Ibarra Real Nova';
	font-weight:900;
	margin-bottom: -0.3em;
}

.read > h3 {
	font:1.2em 'Ibarra Real Nova';
	font-weight:900;
	margin-bottom: -0.3em;
}

.read > h4 {
	font:1.0em 'Ibarra Real Nova';
	font-weight:900;
	margin-bottom: -0.3em;
}

.read {
	font:0.9em 'Georgia';
	font-weight: var(--article-font-weight);
	line-height:1.7;
	margin-top: 0;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	text-wrap: pretty;
}

/* Opt-in table of contents (layouts/partials/toc.html). Colours come from the
   custom properties only: the dark-mode toggle in partials/header.html rewrites
   the media list of every prefers-color-scheme rule, so a literal colour here
   would not follow the toggle. */
.toc {
	font: 0.8em/1.6 monospace;
	margin: 2em auto;
	max-width: 600px;
	padding-left: 1em;
	border-left: 3px solid var(--fontcolor);
}

#TableOfContents ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#TableOfContents ul ul {
	padding-left: 1.5em;
}

#TableOfContents li {
	margin: 0.15em 0;
}

#TableOfContents a {
	text-decoration: none;
}

#TableOfContents a:hover,
#TableOfContents a:focus {
	text-decoration: underline;
}

#prev-post-header{
	font:1.2em/1.5 monospace;
	font-weight: bold;
	line-height:1.2;
}

.list-title {
	font:1.2em/1.5 monospace;
	font-weight: bold;
	line-height:1.2;
}

.post-title{
	font-size: 250%;
	margin-bottom: 0.3em;
	text-decoration: underline;
	width: var(--title-width);
}

body{
	max-width: var(--article-max-width);
	margin:40px auto;
	padding:0 10px;
	font:1.2em/1.5 monospace;
	color:var(--fontcolor);
	background: var(--bgcolor);
}

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

p > code{
	color: var(--precolor);
	background: var(--prebgcolor);
	padding:2px;
	padding-right:0.5em;
	padding-left:0.5em;
}

code{
	border-radius: 4px;
	color: var(--precolor);
	background: var(--prebgcolor);
	padding:2px;
	padding-right:0.5em;
	padding-left:0.5em;
	font-family: monospace;
}

pre{
	border-radius: 8px;
	color: var(--precolor);
	background: var(--prebgcolor);
	padding:24px;
	overflow-x: auto;
}

article{
}

table {
	display: block;
	overflow-x: auto;
	max-width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: 0.85em;
}

@media (min-width: 900px) {
	table {
		width: max-content;
		max-width: min(1100px, calc(100vw - 40px));
		position: relative;
		left: 50%;
		transform: translateX(-50%);
	}
}

th, td {
	border: 1px solid var(--fontcolor);
	padding: 6px 10px;
	text-align: left;
	white-space: nowrap;
}

thead th {
	font-weight: bold;
}

.center {
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

figcaption {
	color: #888;
	font: 12px/1.5 monospace;
	text-align: center;
}

figure {
	margin: auto;
}

img {
	border-radius: 4px;
	display: block;
	max-width: 100%;
	height: auto;
	margin: auto;
	margin-top: 1em;
	margin-bottom: 1em;
}

blockquote{    
	margin: 20px 0;
	overflow: hidden;
	padding: 0 0 0 20px;    
	position: relative;
}

blockquote:before {
	content: "";
	border-left: 3px solid var(	--fontcolor);
	position: absolute;
	bottom: 14px;
	top: 13px;
	left: 0;
}

/* Button styling to match links */
button {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	font: inherit;
	color: var(--linkcolor);
	cursor: pointer;
	text-decoration: underline;
	display: inline;
}

button:hover {
	text-decoration: underline;
}

/* Ensure button appears inline like links */
nav button {
	display: inline;
}

/* Accessibility: Keyboard focus styles */
a:focus,
button:focus {
	outline: 2px solid var(--linkcolor);
	outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
	outline: none;
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--linkcolor);
	outline-offset: 2px;
}

/* Skip link */
.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--linkcolor);
	color: var(--bgcolor);
	padding: 8px;
	text-decoration: none;
	z-index: 100;
}

.skip-link:focus {
	top: 0;
}
