/* ! BASED ON TRAVERSO.CSS */


/* ! A MODERN CSS RESET - Andy Bell ====== */

/* OLD VERSION 1 October 2019 https://hankchizljaw.com/wrote/a-modern-css-reset/ */

/* https://piccalil.li/blog/a-modern-css-reset/ */
/* Updated to version 6 November 2020 */


/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}


/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}


/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}



/* Set core body defaults */
body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img {
  max-width: 100%;
  display: block;
}

/* Natural flow and rhythm in articles by default */
/* article > * + * {
  margin-top: 1em;
} */

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}



/*  ! EVERY LAYOUT ====== */
 
 :root {
  --measure: 60ch;
  
  --ratio: 1.5;
  --s-5: calc(var(--s-4) / var(--ratio));
  --s-4: calc(var(--s-3) / var(--ratio));
  --s-3: calc(var(--s-2) / var(--ratio));
  --s-2: calc(var(--s-1) / var(--ratio));
  --s-1: calc(var(--s0) / var(--ratio));
  --s0: 1rem;
  --s1: calc(var(--s0) * var(--ratio));
  --s2: calc(var(--s1) * var(--ratio));
  --s3: calc(var(--s2) * var(--ratio));
  --s4: calc(var(--s3) * var(--ratio));
  --s5: calc(var(--s4) * var(--ratio));
}


* {
  max-width: var(--measure);
}


html,
body,
header,
nav,
main,
section,
article,
aside,
div,
footer {
  max-width: none;
  
}




.box {
  padding: var(--s1); /* added to .center because I'm not using .box */
}



.center {
  box-sizing: content-box;
  
  max-width: 50rem; /* necessary because .center is the outer containter */
  
  display: flex;
  flex-direction: column;
  align-items: center;
  
  padding: var(--s1); /* added by Greg from .box */
  
  padding-bottom: var(--s2); /*  added by Greg */ 
}




@media screen and (min-width: 50rem) {
	
	.center {
		padding-left: var(--s2); /* added by Greg */
		padding-right: var(--s2); /* added by Greg */
	}

}




.stack {
  --space: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.stack > * {
  margin-top: 0;
  margin-bottom: 0;
} 

.stack > * + * {
  margin-top: var(--space);
}





/* ! GDIK STYLES (TRAVERSO) ====== */

:root {
	
	--grey: #e6e6e6; /* Gainsboro = #dcdcdc */
	
	--pale: rgb(226,231,237);
	
	--white: #f5f5f5; /* White Smoke */
	
	--black: rgb(24,24,26);  /* Firefox dark-them (black) */
		
	--dark-blue: rgb(2,64,142);
	
	--site-name: #e6e6e6;
	
	
/* 	--main-color: rgb(64,128,181); */
	
	
	
	--text-color: #333;
	
	--link-color: #1565c0;
	
	--small-font: 0.8em;
	
	--big-font: 1.1em;
	
	--serif: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
	
	--fancy-font: "IM Fell English", "Palatino Linotype", "Book Antiqua", Palatino, serif;
	
	--sans-serif: "Open Sans", Helvetica, Arial, sans-serif;

	
}



html {
	
}


body {
	max-width: 50rem;
	margin: 0 auto;
	
	font-family: var(--serif);
	
/* 	font-size: 112.5%; */   /* 18px */
	font-size: calc(1rem + 0.4vw);
	color: var(--text-color);
	line-height: 1.5;
	background-color:#312416;
}


/* ! BACKGROUNDS ====== */


.bkg-pale {
	background-color: var(--pale);
}


.bkg-white {
	background-color: var(--white);
} 



.bkg-grey {
	background-color: var(--grey);
}

.bkg-dark {
	/* background-color: #663300; */
	/* background-color: rgb(71,55,44); */
	background-color: rgb(102, 65, 27);
}

.border-top-img {
	border-top: 2px solid rgb(102, 65, 27);
}


/* ! HORIZONTAL RULE ====== */
/* A better looking default horizontal rule */

hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 2px solid var(--grey);
	margin: 2rem 0 1rem !important;
	padding: 0;

}

.bkg-grey hr,
.bkg-pale hr {
	border-top: 1px solid #aaa;
}


/* ! === Site Name === */
.site-name {
  text-align: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
 }

.site-name a {
	font-family: var(--sans-serif);
	border-bottom: 1px dotted transparent;
	color: var(--site-name) !important;
}

 .site-name a:active, .site-name a:focus, .site-name a:hover {
	background-color: transparent !important;
	border-bottom: 1px dotted var(--site-name) !important;
}

.site-name a.current {
	background-color: transparent !important;
	color: var(--site-name) !important;
	border-bottom: 1px dotted transparent !important;
}





/* ! MAIN NAV ====== */

.main-nav {
	padding: 0 2rem ;
	text-align: center;
	font-size: 0.8em;
	
	font-family: var(--sans-serif);
	
/* 	margin-top: -1rem; */

}

.main-nav ul {
	padding-left: 0;
	max-width: 100%;
	text-align: center;
}

.main-nav li {
	display: inline;
	margin-right: 1em;
	line-height: 1.75;
}

.main-nav a {
	border-bottom: none;
/* 	color: var(--heading) */
}


/* .bkg-white .main-nav a:active, a:focus, a:hover {
	border-bottom: 1px dotted var(--heading) !important;

} */


/* ! HEADINGS ====== */

h1, h2, h3, h4 {
	font-family: var(--fancy-font);
	color: #663300;
	font-weight: normal;
	line-height: 1.5;
}


h1, .h1 {
	font-size: 1.75em;
	letter-spacing: 0.01em;
	text-align: center;
	color: var(--white);
/* 	margin-top: var(--s0) !important; */
/* 	margin-bottom: var(--s0) !important; */
	padding: 1rem 2rem 0.75rem 2rem;
}


h2, .h2 {
	font-size: 1.75em;
	margin-top: var(--s-5) !important;
	letter-spacing: 0.01em;
	text-align: center;
/* 	max-width: 40ch; */
/* 	margin-left: auto; required with max-width */
/* 	margin-right: auto; */
}

h2.margin-top {
	margin-top: var(--s2) !important;
}

h3, .h3 {
	font-size: 1.4em; /* line-height = 1.35 */
	text-align: center; 
/* 	margin-top: var(--s-5) !important; */
	letter-spacing: 0.02em;
/* 	max-width: 45ch; */
/* 	margin-left: auto; required with max-width */
/* 	margin-right: auto; */
}


h4, .h4 {
	font-size: 1.25em;
	margin-bottom: 0;
}

h4.plain-font {
	font-weight: bold;
}


.first-heading {margin-top: var(--s1) !important;}



/* ! TEXT ====== */


mark {
	background-color: rgba(208, 243, 54, 0.3);
}

blockquote {
	font-size: var(--small-font);
	margin-left: 1rem;
}

blockquote p + p {margin-top: 1rem;}

blockquote.featured {
	
	font-style: italic;
	margin-top: var(--s1);
	margin-left: auto;
	margin-right: auto;
	max-width: 40ch;
	font-size: 1.1em;
	color: var(--main-color);
	text-align: center;
}


.quote {
	font-size: var(--big-font);
	color: var(--main-color);
	padding: var(--s0) var(--s1);
	border-left: 2px dotted var(--main-color);
}

.call-out {
	font-size: var(--big-font);
	color: var(--main-color);
	padding: var(--s0) var(--s1);
/* 	border-left: 2px dotted var(--main-color); */
}


/* .quote-1xxx {
	font-size: var(--big-font);
	color: var(--main-color);
	border: 1px solid var(--main-color);
	padding: var(--s0) var(--s1);
	border-radius: 10px;
} */

.citation {
	text-align: center;
	font-size: var(--small-font);
	margin-top: 0;
}


.plain-font {
	font-family: var(--serif);
}

.center-text {
	text-align: center;
	margin-left: auto; /* required for small font or little text */
	margin-right: auto;
}

.left-text {
	text-align: left;
}

.footnote {
	font-size: var(--small-font);
	margin-left: 0.1em;
	margin-right: 0.1em;
	vertical-align: top;
	border-bottom: none;
}


.small-font {
	font-size: var(--small-font);
}

.smaller-font {
	font-size: 0.9em;
}

.big-font {
	font-size: var(--big-font);
}

small {
	font-style: italic;
	font-size: var(--small-font);
}





.copyright {
	color: var(--white);
}


/* ! === LISTS === */



ul {
	list-style: circle;
	padding-left: 2rem;
}

ol {
	padding-left: 2rem;
}


ul.ul-padding-left-0 {
	padding-left: 0;
	list-style: circle;
}

ul + ul {
	margin-top: var(--s2) !important;
}


/* ul ul {
	list-style: disc;
} */

ul ul li {
	margin-top: var(--s0) !important;
}

/* ul ul ul {
	list-style: circle;
} */

li.no-style {
	list-style: none;
	margin-left: 0;
}

li {margin-bottom: 1rem;}

li:nth-last-child(1) {margin-bottom: 0;}




ul.bibliography {
	list-style: none;
	padding-left: 0;
	margin-top: var(--s0);
}

.endnotes {
	font-size: var(--small-font);
}

.endnotes ol {
	padding-left: 1.25rem;
}

.endnotes ol ul {
	padding-left: 1rem;
}




/* ! LINKS ====== */


a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 150ms ease;
  border-bottom: 1px dotted #166ccd; 
}
  
 
 a:active, a:focus, a:hover {
	border-bottom: 1px solid #166ccd;
    background-color: var(--white);
}

.bkg-white a:active, 
.bkg-white a:focus, 
.bkg-white a:hover {
	background-color: var(--grey);
}




/* Baseline state */
.button {
  border: 0;
  border-radius: 0.25rem;
  background: #1E88E5;
  color: white;
  font-family: var(--serif);
  font-size: inherit;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  
  max-width: 30ch;
  margin: 0 auto;
  
}

a.button {
	text-decoration: none;
	border-bottom: none;
}


a.button:active, 
a.button:focus, 
a.button:hover {
	background-color: #286090;
}


h2 a,
h3 a {
	color: var(--heading);
	border-bottom: 1px dotted var(--heading);
}

.bkg-white h2 a:active,
.bkg-white h2 a:focus,
.bkg-white h2 a:hover {
	background-color: var(--grey);
	border-bottom: 1px dotted var(--heading);
}


.bkg-pale h3 a:active,
.bkg-pale h3 a:focus,
.bkg-pale h3 a:hover {
	background-color: var(--grey);
	border-bottom: 1px dotted var(--heading);
}



.bkg-grey h2 a:active,
.bkg-gry h2 a:focus,
.bkg-grey h2 a:hover,
.bkg-grey h3 a:active,
.bkg-gry h3 a:focus,
.bkg-grey h3 a:hover {
	background-color: var(--white);
	border-bottom: 1px dotted var(--heading);
}





.copyright {
	color: var(--white);
}


.copyright a {
	border-bottom-color: var(--white);
}


a.current {
	background-color: var(--grey);
}


a:active.current, 
a:focus.current, 
a:hover.current {
	border-bottom: none;
	background-color: var(--grey);
}






/* ! IMAGES / FIGURES ====== */


.body-img {
/* 	margin-top: 0; */
/* 	margin-bottom: 0; */
}

.body-img img {
	border-radius: 50%;
/* 	margin: var(--s1) 0 var(--s0) 0; */
/* 	border: 1px solid #fff; */
	box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5)
}

.caption {
	font-size: var(--small-font);
	font-family: var(--sans-serif);
	color: #666;
	margin-top: var(--s-2);	

}

.header-img-caption {
	color: #fff; 
	margin-top: -1.75em; 
	padding-left: 1em; 
	font-family: var(--sans-serif);
}


.musical-example {
/* 	border-top: 1px solid #ccc; */
/* 	border-bottom: 1px solid #ccc; */
	font-size: var(--small-font);
/* 	text-align: center; */
}

.musical-example img {
	 
}


figure {
	
}

figure + figure {
	margin-top: -1rem !important; 
}

figcaption {
	max-width: 45ch;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}





/* ! === TABLES === */


table {
/* 	margin: 2rem auto !important; */

/* 	width: 100%; */
}

th
	{
	border-bottom: 2px solid #ccc;
	font-weight: bold;
	text-align: left;
	}
		
td
	{
	border-bottom: 1px solid #ddd;
	}
		
th,td
	{
	padding: 0.5em 2em 0.5em 0;
	vertical-align: top;
	}
		
tfoot
	{
	font-style: italic;
	}
		
caption
	{
		background: var(--grey);
		padding: 0.5rem 0;
	}


/* ! FOOTER NAV ====== */


.footer-nav ul,
.social-links ul {
	list-style: none;
	padding-left: 0;
	text-align: center; 
}

.footer-nav a,
.social-links a {
	color: var(--white);
	text-decoration: none;
	font-family: var(--sans-serif);
	/* font-size: var(--small-font); */
	border-bottom: none;
	letter-spacing: 0.03em;
}



.footer-nav a.current {
	border-bottom: 1px dotted var(--white);
	background-color: transparent;
}

.footer-nav a:active, 
.footer-nav a:focus, 
.footer-nav a:hover,
.social-links a:active, 
.social-links a:focus, 
.social-links a:hover {
	border-bottom: 1px dotted var(--white);
	background: none;
}

.footer-nav a:active.current, 
.footer-nav a:focus.current, 
.footer-nav a:hover.current {
	border-bottom: 1px dotted var(--white);
	background: none;
}



.webdesign,
.email {
	color: var(--white);
}


.webdesign a,
a.email {
	border-bottom: 1px dotted var(--white);
}

a.email:hover {
	color: rgb(102, 65, 27);
	border-bottom: 1px dotted rgb(102, 65, 27);
}


/* ! === UTILITY CLASSES === */

.white-text {
	color: var(--white);
}

.grey-text {
	color: #777;
}

.italic-text {
	font-style: italic;
}


.max-width-25ch {
	max-width: 25ch;
}

.max-width-35ch {
	max-width: 35ch;
}

.max-width-40ch {
	max-width: 40ch;
}

.max-width-45ch {
	max-width: 45ch;
}

.max-width-50ch {
	max-width: 50ch;
}


.min-width-15ch {
	min-width: 15ch;
}

.min-width-20ch {
	min-width: 20ch;
}


.min-width-25ch {
	min-width: 25ch;
}

.min-width-35ch {
	min-width: 35ch;
}

.margin-top-0 {
	margin-top: 0 !important;
}

.margin-top {
	margin-top: var(--s1) !important; /* 1.5rem */
}

.margin-top-s2 {
	margin-top: var(--s2) !important; /* 2.25rem */
}

.margin-top-s3 {
	margin-top: var(--s3) !important; /* 3.38rem */
}

.margin-top-s4 {
	margin-top: var(--s4) !important; /* 5.06rem */
}


.margin-bottom-0 {
	margin-bottom: 0 !important;
}

.margin-bottom {
	margin-bottom: var(--s1) !important;
}

.margin-bottom-s2 {
	margin-bottom: var(--s2) !important;
}



.border-top {
	border-top: 2px solid var(--grey);
}

.border-box {
	border: 2px solid var(--grey);
	/* padding: var(--s1); */
	padding: 0.5em 0.75em;
	border-radius: 10px;
}

.center-block {
	margin-left: auto;
	margin-right: auto;
}

.padding-all {
	padding: var(--s0);
}



/* ! TOC ====== */


.toc-box {
	border: 1px solid var(--grey);
	padding: 0 2rem 1rem;
	border-radius: 10px;
}



.toc-box ul {
	list-style: none;
	margin-left: -1.5rem;
}


/* ! VIDEO ====== */


.youtube-video-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.youtube-video-container::after {
  display: block;
  content: "";
  padding-top: 75%;
}

.youtube-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}





