/* -----------------------------
   Variables for Light/Dark Mode
-------------------------------*/
:root {
  --bg: #ffffff;
  --bgrgba: 255,255,255;
  --text: #101820;
  --muted: #707479;
	--supermuted: #CFD1D3;
  /* --hoover: #E56A54;  signal */
  --hoover: #F9E6A5; /* highlight light */
  --fontmed: 2rem;
  --fontxl: 3.5rem;
  --fontbold: 700;
}

@media (prefers-color-scheme: dark) {
  :root {
	--bg: #101820; /* asphalt */ 
	--bgrgba: 16,24,32;
  --text: #ffffff;
  --muted: #9FA3A6;
	--supermuted: #40464D;
	--hoover: rgba(130,173,190 , 0.42); /* ocean light x%  */
  }
}

/* -----------------------------
   Global Reset & Body
-------------------------------*/
* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-size: 16px;
}

body {
  margin: 0;	
	font-family: "Karla", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
  background: var(--bg);
  color: var(--text);
  line-height: 1.625;
}

body, p {
	font-size: 1.3125rem;
}

em, i {
  font-style: normal;
}
em {
	font-weight: inherit;
}
b, strong {
	font-weight: var(--fontbold);
}


p, h1, h2, h3, h4, h5, h6 {
	margin: 1.3125rem 0;
}
h1, h2, h3 {
  font-weight: var(--fontbold);
  line-height: 1.2;
  font-size: var(--fontmed);
}

img { margin: 0; border: 0; outline: 0; }

a {
  color: inherit;
  text-decoration: none;
  background: 
		linear-gradient(to right, transparent, transparent ),
		linear-gradient(to right, var(--hoover), var(--hoover) );
  background-size: 100% 50%, 0 50%;
  background-position: 100% 100%, 0 100%;
  background-repeat: no-repeat;
  transition: background-size 300ms, color 200ms;
}

.current a {
  background: 
		linear-gradient(to right, var(--hoover), var(--hoover) ),
		linear-gradient(to right, var(--hoover), var(--hoover) );
	background-size: 100% 50%, 0 50%;
	background-position: 100% 100%, 0 100%;
	background-repeat: no-repeat;
}

a:hover, .current a:hover {
  text-decoration: none;
  color: inherit;
  background-size: 0 50%, 100% 50%;
}

/* -----------------------------
   Container & Sections
-------------------------------*/
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 9rem 1.875rem 3rem;
}


section, footer {
  margin-top: 4rem;
}



/* Later
:before {
color: currentColor;
content: "↳";
cursor: pointer;
left: -1.5rem;
position: absolute;
}
*/


/* -----------------------------
   Fixed Marker
-------------------------------*/
.marker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 1.875rem;
  font-weight: var(--fontbold);
  background: rgba( var(--bgrgba), .8 );
  z-index: 100;
  font-size: var(--fontmed);
  line-height: 1;
  transition: box-shadow 200ms;
}


html.is-scrolled .marker {
	box-shadow: 
		0 2px 4px rgba(16, 24, 32, 0.04),
		0 10px 20px rgba(16, 24, 32, 0.08);
}


.marker span {
	background: transparent;
	font-size: inherit;
}
.marker span.signature {
	padding-left: 0.1rem;
}
.marker span.suffix {
	padding-left: 0.15rem;
}
.marker span.suffix:after {
	content: ".";
}

.nav {
	position: fixed;
	top: 0;
	right: 0;
	padding: 1.5rem 1.875rem 1.5rem 0;
	/* font-weight: 400; */
	font-weight: var(--fontbold); 
	z-index: 120;
	font-size: var(--fontmed);
	line-height: 1;
	background-color: transparent;
}
.nav ul, .nav ul li {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: inherit;
	line-height: inherit;
	background-color: transparent;
}
.nav ul {
	padding-right: 0.25rem;
}
.nav ul li { 
	padding-left: 0.75rem;
	display: inline-block;
}


.nav ul li a:after {
	content: ".";
}


.nav-handle {
	display: none;
	position: fixed;
	right: 1.625rem;
	top: 1.5rem;
  	width: var(--fontmed);
	height: var(--fontmed);
	margin: 0;
	padding: 0;
	padding-top: 10px;
	cursor: pointer;
	z-index: 120;
	background: none;
	text-decoration: none;
	color: inherit;
}
.nav-handle:hover {
	text-decoration: none;
	background: none;
	color: inherit;
}

.nav-handle-text {
	display: none;
}

.nav-handle-bar {
	display: inline-block;
	width: 100%;
	background: var(--text);
	height: 2px;
	overflow: hidden;
	margin: 2px 0;
	float: left;
	transition: 200ms;
	position: relative;
}



/* -----------------------------
   Hero
-------------------------------*/
.hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: top;
}

.hero h1 {
  font-weight: var(--fontbold);
  font-size: var(--fontxl);
  line-height: 1.1;
  margin: 0 0 2rem 0;
}

.lead {
  font-weight: 400;
  font-size: var(--fontmed);
  margin: 0;
  line-height: 1.2;
  color: var(--muted);
}

.subline {
  font-weight: 400;
  font-size: var(--fontmed);
  margin: 0.5rem 0 0 0;
  line-height: 1.2;
}

.subline em {
	font-weight: inherit;
	font-style: inherit;
	color: inherit;
	white-space: nowrap;
}

.subline span.subline-statement { 
	display: block;
}

.hero img {
  width: 100%;
  height: auto;
  /* filter: grayscale(100%); */
}

/* -----------------------------
   Topic Intro Section
-------------------------------*/


.topic h1 {
	font-weight: var(--fontbold);
	font-size: var(--fontxl);
	line-height: 1.1;
	margin: 0 0 2rem 0;
}

.page-head h1 {
	font-weight: var(--fontbold);
	line-height: 1.2;
	font-size: var(--fontmed);
	margin: 0 0 2rem 0;
}



/* -----------------------------
   Details Section
-------------------------------*/

.details p { /* details is a section */
	margin: 0;
	padding: 1.3125rem 0;
	border-top: 1px solid var(--supermuted);
}
.details p:last-child {
	border-bottom: 1px solid var(--supermuted);
}
.details p b {
	font-weight: 400;
	display: block;
	font-size: 1.0625rem; 
	padding-bottom: 0.25em;
	color: var(--muted);
}



/* -----------------------------
   Image Section
-------------------------------*/

.image {
	position: relative;
}

.image img {
	display: block;
	width: 100%;
	height: auto;
}

.image p {
	display: block;
	margin: 0;
	padding: 0.75rem 0 0.75rem;
}

.image .series-marker {
	display: block;
	position: absolute;
	top: 0.625rem;
	left: 0.625rem;
	width: 1rem;
	height: 1rem;
	white-space: nowrap;
	text-indent: -999rem;
	background: #FFF;
	border-radius: 1px;
	z-index: 10;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: 
		0 2px 4px rgba(16, 24, 32, 0.04),
		0 10px 20px rgba(16, 24, 32, 0.08);
}
.image .series-marker:after {
	display: block;
	content: "";
	width: 2px;
	height: 100%;
	background: #FFF;
	position: absolute;
	right: -5px;
	top: 5px;
	border-radius: 1px;
	border: 0;
	box-shadow: 
		0 2px 4px rgba(16, 24, 32, 0.04),
		0 10px 20px rgba(16, 24, 32, 0.08);
}
.image .series-marker:before {
	display: block;
	content: "";
	width: 100%;
	height: 2px;
	background: #FFF;
	position: absolute;
	bottom: -5px;
	left: 5px;
	border-radius: 1px;
	border: 0;
	box-shadow: 
		0 2px 4px rgba(16, 24, 32, 0.04),
		0 10px 20px rgba(16, 24, 32, 0.08);
}


.image-grid {
  display: grid;
  grid-template-columns: 1fr calc(50% - 0.9375rem);
  gap: 1.875rem;
  align-items: center;
}

.image-grid .image a {
	display: inline;
	background: transparent;
	text-decoration: none;
	color: inherit;
}
.image-grid .image a:hover {
	background: transparent;
	text-decoration: none;
	color: inherit;
}
.image-grid .image a img {
	transition: transform 200ms;
}
.image-grid .image a img:hover {
	/* filter: brightness(88%); */
	transform: scale(1.01);
}
.image-grid .image a .title {
	display: inline;
	background: 
		linear-gradient(to right, transparent, transparent ),
		linear-gradient(to right, var(--hoover), var(--hoover) );
	background-size: 100% 50%, 0 50%;
	background-position: 100% 100%, 0 100%;
	background-repeat: no-repeat;
	transition: background-size 300ms, color 200ms;
}
.image-grid .image a:hover .title {
	background-size: 0 50%, 100% 50%;
}


.image-stack .image {
	padding-bottom: 1.875rem;
}

.image-stack .image-sm {
	padding-left: 20.94%;
	padding-right: 20.94%;
}


/* -----------------------------
   Contact Section
-------------------------------*/
.contact p {
  margin-bottom: 0.75rem;
}

/* -----------------------------
   Footer
-------------------------------*/

.footer { 
  padding-top: 3rem;
	font-size: 1.0625rem;
	color: var(--muted);
}
.footer p {
	font-size: inherit;
  margin: 0;
}
.footer p span {
	display: block;
}

.footer a {
	background: 
		linear-gradient(to right, transparent, transparent ),
		linear-gradient(to right, var(--muted), var(--muted) );
	background-size: 100% 1px, 0 1px;
	background-position: 100% 100%, 0 100%;
	background-repeat: no-repeat;
	white-space: nowrap;
}

.footer a:hover {
  background-size: 0 1px, 100% 1px;
}




/* -----------------------------
   Responsive
-------------------------------*/
@media (max-width: 900px) {
	
  :root {
		--fontmed: 1.75rem;
		--fontxl: 2.625rem;
  }

  body, p {
		font-size: 1.1875rem;
  }
  
  p, h1, h2, h3, h4, h5, h6 {
  	margin: 1.1875rem 0;
  }
	
  .hero, .image-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
	  padding-top: 5rem;
	  transition-delay: opacity 200ms;
	  transition: opacity 200ms;
	  opacity: 1;
  }
  
  .columns {
    grid-template-columns: 1fr;
  }
  .footer p span {
  	display: inline;
  }
  
  .nav {
	  font-weight: 400;
	  background-color: var(--bg);
	  z-index: 80;
	  height: 0;
	  overflow: hidden;
	  width: 100%;
	  opacity: 0;
	  padding-top: 0;
	  padding-bottom: 0;
	  transition: opacity 200ms;
  }
  
  html.nav-open .nav {
  	height: 100vh;
		overflow: scroll;
		opacity: 1;
  }
  
  .nav ul {
	  display: block; 
	  width: 100%;
	  padding: 9rem 0 1.5rem 0;
	  margin: 0;
	  font-size: var(--fontxl);
	  line-height: 1.1;
  }
  .nav ul li { 
		display: block;
		width: 100%;
		text-align: right;
  	padding: 0;
		margin-bottom: 0.25em;
  }
  
  
  .nav ul li a:after {
  	content: "";
  }
  
  
  .nav-handle {
	  display: block;
  }
  
  html.nav-open .nav-handle .nav-handle-bar {
	  transform: rotate(-45deg);
	  left: -3px;
	  background-color: var(--muted);
	  top: 2px;
  }
  html.nav-open .nav-handle .nav-handle-bar:last-child {
	  transform: rotate(45deg);
	  left: -3px;
	  top: -4px;
  }
  
  html.nav-open {
	  overflow-y: hidden;
  }
  
  html.nav-open .container {
	 opacity: 0; 
  }
  
  html.nav-open .marker {
	  box-shadow: none !important;
  }
  
  .subline span.subline-statement {
	  margin-top: 0.375em;
  }
  
  .hero h1 {
	  word-spacing: 99rem;
  }
	
	
	.image-stack .image-sm {
		padding-left: 13%;
		padding-right: 13%;
	}
	
  
}

@media (max-width: 594px) {
	
	.image-stack {
		margin-left: -1.875rem;
		margin-right: -1.875rem;
	}
	
	.image-stack p {
		padding-left: 1.875rem;
		padding-right: 1.875rem;
	}
	
	.image-stack .image-sm {
		padding-left: 1.875rem;
		padding-right: 1.875rem;
	}
	.image-stack .image-sm p {
		padding-left: 0;
		padding-right: 0;
	}
}

@media (min-width: 1280px) {
	
	.container {
	  padding-top: 11rem;
	}

  .image-grid {
    margin-left: -85px;
		margin-right: -85px;
  }
  
}
