/* ! A MODERN CSS RESET - Andy Bell ====== */
/* https://hankchizljaw.com/wrote/a-modern-css-reset/ */


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

/* Remove default padding */
ul[class],
ol[class] {
  padding: 0;
}

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

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

/* Remove list styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
  list-style: none;
}

/* 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;
/*   margin-left: auto; */ /* added by Greg */
/*   margin-right: auto; */  /* added by Greg */
}

/* 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 */
}



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




@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 === */

:root {
	
	--grey: #e6e6e6; /* Gainsboro = #dcdcdc */
	
	/* --pale: rgb(239, 242, 234); */
	--pale: rgb(234,246,250);
	
	--white: #f5f5f5; /* White Smoke */
	
	--full-white: #fff;
	
	--black: rgb(30,30,30);  /* Firefox dark-them (black) */
	
	/* --main-color: rgb(107,18,10); */
	--main-color: rgb(27,69,100);
	
	
	
	/* --heading: rgb(148,17,0); */
	--heading: rgb(182,47,81);
	
	--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: var(--black);

	
}


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


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


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

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


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

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







/* ! HORIZONTAL RULE ====== */d
/* 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 {
	border-top: 2px solid var(--white);
}




/* ! SITE NAME ====== */

.site-name {
  text-align: center;
/*   padding-top: var(--s0); */
/*   padding-bottom: var(--s0); */
/*   font-size: var(--small-font); */
  padding: 1rem 2rem 2rem 2rem;
/*   background-color: var(--main-color); */
 }

.site-name a {
	background-color: transparent;
	color: var(--white);
	font-family: var(--sans-serif);
	border-bottom: none !important;
	font-size: var(--big-font);
}

.site-name a.current {
		background-color: transparent !important;
}

.site-name a:active,
.site-name a:focus,
.site-name a:hover {
	background-color: var(--white) !important;
	color: var(--main-color);
	border-bottom: none !important;
/* 	padding: 0 1rem; */
}


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


.main-nav {
	padding: 0 2rem ;
	text-align: center;
	font-size: 0.95em;
	
	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(--serif);
	color: var(--heading);
	font-weight: normal;
	line-height: 1.25;
}


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


h2, .h2 {
	font-size: 1.5em;
	line-height: 1.65;
	margin-top: var(--s0) !important;
	letter-spacing: 0.01em;
	text-align: center;
}

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


h3, .h3 {
	font-size: 1.25em; 
	line-height: 1.65;
	/* line-height = 1.35 */
	/* text-align: center; */ 
	/* margin-top: 0 !important; */
	letter-spacing: 0.02em;
}



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

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

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



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


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

blockquote {
	font-size: var(--small-font);
	font-size: 0.95em;
	margin-left: 1rem;
	background-color: #eee;
	padding: 1em;
}

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: 1em;
	color: var(--text-color);
	text-align: left;
}


.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);
}

.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;
	text-align: left;
}

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: none;
}

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


li {margin-bottom: 1rem;}

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


ul.events-list {
	margin-top: 1.5em;
}
ul.events-list li {
	margin-bottom: 1.5em;
}


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; 
}
  
 
.bkg-white a:active, 
.bkg-white a:focus, 
.bkg-white a:hover {
	background-color: var(--grey);
	border-bottom: 1px solid #166ccd;
}

.bkg-grey a:active, 
.bkg-grey a:focus, 
.bkg-grey a:hover {
	background-color: var(--white);
	border-bottom: 1px solid #166ccd;
}


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 a {
	background-color: transparent;
	color: var(--white);
}

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



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

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



p.nav-button {
	margin-top: 1em;
	margin-bottom: 0.5em;
}

.nav-button a {
	border: 1px solid var(--link-color);
	padding: 5px 10px;
	border-radius: 5px;
	font-size: var(--small-font);
	
	
}

.nav-button a:active, 
.nav-button a:focus, 
.nav-button a:hover {
	border: 1px solid var(--link-color) !important;
	background-color: var(--grey);

	
}





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

.body-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);	
	padding-bottom: var(--s0);

}

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



figure {
	
}

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

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


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




/* ! 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) !important;
	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;
}

footer h3 {
	color: var(--white);
}



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

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

.email a:active, 
.email a:focus, 
.email a:hover,
.webdesign a:active, 
.webdesign a:focus, 
.webdesign a:hover {
	background: var(--white);
	color: var(--main-color);
}

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

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

.grey-text {
	color: #777;
}


.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-30ch {
	min-width: 30ch;
}


.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;
}


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

.border-box {
	border: 1px solid var(--grey);
	padding: var(--s1) var(--s1) var(--s0);
	border-radius: 10px;
}

.border-box-white {
	border: 2px solid var(--white);
	padding: var(--s-1) var(--s1) var(--s0);
	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;
}









