/*	
Theme Name: Kantor.com 2022-Grid
Description: Theme for Andrew's Home
Author: Andrew Kantor
Author URI: http://www.kantor.com
Version: v7.1
*/

html {
	font-size: 17px;
	text-align: left;
	height: 100%;
	background: #e0e0e0;
	background: url("art/farm-background.jpg") top center fixed; 
	background-size: cover;
	}

body {
	font-family: Lora, "Droid Serif", Georgia, Times New Roman, Times, serif;
	font-size: 1.05rem;
	font-weight: 400;
	margin: 0 auto;
	background-color: rgba(255, 255, 255, .80);
	max-width: 1200px;
	height: auto;
	color: #0c0c0c;
	border-radius: 0 50px 0 0;
}

/* apply a natural box layout model to all elements */
*, *:before, *:after {
	-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}

/* ----- COLORS ----------------------- */
:root {
	--akblue: #0B2265;
	--akorange: #ff5819;
	--akgray: #515151;
	--akdarkblue: darkblue;
}
/* USE:	color: var(--akblue); */


/* STRUCTURE ------------------------------------------------------ */
#top {
	display: grid;
	grid-template-columns: 66% 30%;
	column-gap: 30px;
	justify-content: stretch;
	justify-items: stretch;
	align-items: start;
	grid-template-areas:
		"logo quote";
	padding: 0;
	margin: 0 auto 40px auto;
}

#home, #archive, #post, #single, #search, #page {
	display: grid;
	grid-template-columns: 70% 30%;
	column-gap: 0;
	justify-content: stretch;
	justify-items: stretch;
	align-items: start;
	grid-template-areas:
		"intro intro"  
    	"mainbar sidebar"
		"bottom bottom"
		"footer footer";
	padding: 0 0 0 0;
	margin: 0 auto;
}

#logo {
	grid-area: logo;
    padding: 12px 0 2px 30px;
}

#quote  {
	grid-area: quote;
     float: right;
     margin: 24px 2em 0 0;
     text-align: right;
     font-size: 1.1em;
	 font-family: Lora, "Droid Serif", Georgia, Times New Roman, Times, serif;
     line-height: 1.2;
}

#intro {
	grid-area: intro;
	width: 100%;
	padding: 10px 60px 10px 30px;
	margin: 0 0 10px 0;
}

#mainbar {
	grid-area: mainbar;
	padding: 0 30px;
}

#home #mainbar {
/*	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: stretch;
	align-content: flex-start;
	*/
}

#sidebar {
	grid-area: sidebar;
	padding: 30px;
	margin-left: 3%;
	height: 100%;
	border-radius: 20px 0 0 0;
	background-image: linear-gradient(to right bottom, rgba(255, 255, 255, .80), rgba(255, 255, 255, 0) 30% );
}

#bottom {
	grid-area: bottom;
	width: 100%;
	padding: 10px 30px;
}

#footer {
	grid-area: footer;
	padding: 10px 0;
	background-color: rgba(255, 255, 255, .20);
	text-align: center; margin: 0 auto;
}

/* HOME PAGE FORMATTING -------------------------------------------------------- */

#homeleft, #homeright {
	flex-basis: 48.5%;
	flex-shrink: 1;
	padding: 0;
}

#photo {
	float: left;
	margin: 0 1% 0 1%;
	padding: 5px;
}

.simplebox, .homepagebox, .listbox, .box {
	display: inline-block; 
	padding: 15px;
    margin-bottom: 20px; 
    border: 1px solid #999999;
	background-color: #fafafa;
    width: 100%;
	border-radius: 0 10px 10px 10px;
	box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);
}

h2.boxtitle {
	font-size: 1.55rem !important;
	font-weight: normal !important;
	text-transform: uppercase;
	margin: 1em 0 9px 0 !important;
	text-shadow: 0;
	letter-spacing: 0 !important;
}


/* 
.listbox p:nth-child(odd) {
    background-color: #eeeeee;
}
*/

/* GENERAL FORMATTING -------------------------------------------- */

p, td {
     font-family: Lora, "Droid Serif", Georgia, Times New Roman, Times, serif;
     font-size: 1.05rem;
     line-height: 1.55;
     text-align: left !important;
     margin :0 0 12px 0;
     font-weight: normal;
	 letter-spacing: -.25px;
}

#sidebar p {
	font-family: Arial, Helvetica, sans-serif; 
	font-size: 1.0rem; 
	color: #333;
	line-height: 1.35;
	margin-bottom: 9px;
}

.listbox p {
	padding: 4px 8px;
	margin: 6px 0;
}

.box p {
	padding: 4px 8px;
	margin: 6px 0;
}

td {
     vertical-align: top;
	text-align: left;
	padding: 10px;
}

h1, h2, h3 {
     font-family: 'Special Elite', 'Open Sans Condensed', "Open Sans", "Noto Sans", Tahoma, Arial, sans-serif;
     font-weight: normal;
}

h1 /* section title or header*/  {
     font-size: 1.75rem;
     color: white;
     text-align: left;
     background-color: #000;
     margin: 0 0 1em 0;
	 padding: 10px 0 6px 10px;
	 border-radius: 10px 10px 10px 0;
	 box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);
}

h2 {
     	font-size: 2.5rem;
		font-weight: bold;
     	line-height: 1.05;
     	background-color: transparent;
     	text-align: left;
		letter-spacing: -1px;
     	margin-top: 12px;
     	margin-bottom: 6px; 
}

#home h2 {
     font-size: 2.2rem;
     font-weight: bold;
     line-height: .95;
     text-align: left;
     margin-top: 0;
/* margin-bottom: 1em; */
     letter-spacing: -1px;
}

h3, h4, h5 /* subheds */  {
	margin: 1.3em 0 .5em 0;
	text-align: left;
}

h3 {
    font-size: 2rem;
	letter-spacing: -.5px;
	line-height: 1.20;
     }

#home h3 {
    font-size: 1.42rem;
     margin-top: 1.25em;
	 margin-bottom: 6px;
	 padding-left: 8px;
}

#single h3 {
	text-align: left;
	font-size: 1.55rem;
	margin-top: 1.25em;
	border-top: 2px solid #fcfcfc;
}

#single h3:first-of-type {border:none;}

#page h3 {
	text-align: left;
	font-size: 1.8rem;
}

h4 {text-align: left;
    font-size: 1.1rem;
	text-transform: uppercase;
    letter-spacing: -0.02em;
}

h4:before { content: "\0025B8";}

h5, small, aside { 
	display: block; 
	font-weight: normal; 
	font-size: .7rem; 
	font-style: italic; 
	text-align:left; 
	color: black; 
	line-height: 1.35; 
	margin: 2.0em 0 3em 0 !important;
}

h6, .tldr {	
	font-weight: normal; 
	font-size: .9rem; 
	text-align: left;
	line-height: 1.25;
	margin: 1em 0 2.5em 0 !important;
	padding: 3px 10px 3px 4px;
	background: #dcdcdc;
	border: 1px solid #dcdcdc;
	border-radius: 5px 5px 5px 0;
}

img {
    max-width: 100%; 
	height: auto;
}

figure {margin: 0;}


ul, ol {
     margin: 0 0 1em 16px;
     text-align: left;
}

ul { list-style-type: square; }

#sidebar ul {margin-left:0; padding-left: 0;}

li {
     font-family:  Lora, "Droid Serif", Georgia, Times New Roman, Times, serif;
     font-weight: normal;
     font-size: 1.05rem;
	 line-height: 1.3;
     margin: 0 10% 4px 0;
     padding: 0;
     text-align: left;
}

#sidebar li {
     font-family:  Arial, Helvetica, Helv, sans-serif;
	 font-size: .95rem;
     list-style-type: none;
	 margin: 0 0 .75em 0;
	 }

blockquote, .excerpt {
     font-size: 95%;
     line-height: 1.05;
     margin: 10px 10% 10px 0;
     padding-left: 10px;
     border-left: 6px solid Silver;
	font-style: italic; 
}

pre, code {
     font-family: 'Courier New', Courier, monospace;
     font-size: .8rem;
     line-height: 1.05;
     padding-left: 0;
     margin: 6px 0 6px 0;
     text-align: left;
     border: none;
     width: 90%;
}

#page pre, code {
     width: 100%;
}

.copyright, .caption, .wp-caption-text, .legal {
     font-family: Calibri, Verdana, Tahoma, Arial, sans-serif;
     font-size: .8em;
     font-style: italic;
     text-align: center !important;
     margin: 3px auto 2em auto;
}

figcaption {
     font-family: Calibri, Verdana, Tahoma, Arial, sans-serif;
     font-size: .8em;
     font-style: italic;
     text-align: center !important;
     margin: 3px auto 2em auto;
}

.date {
     font-family: Calibri, Verdana, Tahoma, Arial, sans-serif;
     font-size: .85em;
     font-style: italic;
     margin-bottom: 12px;
}

#single .date {
     font-family: Calibri, Verdana, Tahoma, Arial, sans-serif;
     font-size: .9rem;
     font-style: italic;
	 color: black;
     text-align: left;
     margin-bottom: 2em;
	 margin-top: 6px;
}

.jump {
	text-align: left;
	border-top: 2px solid #01529c; 
	border-bottom: 2px solid #01529c; 
	margin-bottom: 24px;
	padding: 6px 0px; 
	font-weight: bold;
	font-size: 1rem;
}

 
/* SIDEBAR FORMATTING ---------------------------------------------- */

#sidebar #true p:nth-child(odd) {
    font-weight:bold;
}


#sidebar h1 {
     text-align:left;
     margin-top:0;
     margin-right:6px;
}

#sidebar h2 {
     text-align:left;
     font-size: 2.4rem;
     font-weight: bold;
     line-height: .95;
     background-color: transparent;
     text-align: left;
     margin: 0 0 6px 0 !important;
	 border: 0 !important;
}

#sidebar h3 {
     font-size: 1.43rem;
	 font-weight:bold;
     padding: 4px 0 0 0;
     margin: 16px 0 12px 0;
}

#sidebar h4 {
     text-align:left;
     padding: 0 8px 0 0;
     margin: 0 0 0 15px;
}

/* 
#sidebar h5 {
     padding: 0 8px 0 0;
     margin: 12px 0 0 0;
     font-variant: small-caps;
}

*/

.rss-date:before { content: " (";}
.rss-date:after { content: ")";}

#sidebar small {
     text-align:left;
     margin: 6px 0 2px 0;
}

.sidebox {
	padding: 12px;
	margin: 6px 0 12px 0;
	border-radius: 0 0 30px 0;
     -moz-border-radius: 0 0 30px 0;
     -webkit-border-radius: 0 0 0 30px 0;
     -o-border-radius: 0 0 30px 0;
     background: linear-gradient(to top left, #cccccc, #ececec 50%) no-repeat;
}

.widget_search .screen-reader-text {
    display:none;
}

.intouch img {
     float: left; 
}

#sidebar a:link {
     text-decoration: none;
}

#sidebar a:active {
     color: FFA640;
}

#sidebar a:hover     {
     color: #c00;
     text-decoration: none;
}

/* SINGLE ITEM STUFF ----------------------------------------------  */
#single .entry {
    margin: 4px 0 9px;
    padding: 2px 4px;
}

.dek {
     font-family: Lora, Georgia, Times New Roman, Times, TmsRmn, serif;
     font-size: 1.2rem;
     line-height: 1.4;
     font-style: italic;
     font-weight: normal;
	margin: .75em 10% 2em 0; 
}

/* PAGE STUFF -------------------------------------------------------- */
#page #dek {
	font-family: Calibri, Verdana, Tahoma, Arial, sans-serif;
	font-size: 1.2rem;
	text-align: left;
     line-height: 1.2;
     font-style: italic;
     font-weight: normal;
     margin-left: 10%;
     margin-right:10%;
     margin-bottom: 18px;
}

#page .date {
     font-family: Calibri, Verdana, Tahoma, Arial, sans-serif;
     font-size: .9rem;
     font-style: italic;
     text-align: left;
     margin-bottom: 20px;
}

#page #toc {
	float: left; 
	vertical-align: top; 
	width: 50%;
}

#page #toc .date {
	font-size: .85rem;
	font-style: italic;
	margin: 0 0 3px 0;
}

#page #toc h4 {
	margin: 12px 0 3px 0; 
}

#page #toc h4:first-of-class {
	margin: 0 0 3px 0; 
}


/* -- FLEXBOXES OF THINGS ------------------------------------------- */
.thinglist {
    display: flex;
    flex-wrap: wrap; /* creates multiple rows */
    align-content: flex-start;
    justify-content: center;
    }

.thing {
    flex: 0 1 200px;
    padding: 8px;
    margin: 5px auto; 
/* width: 250px; */
    border: 1px solid #ececec; border-radius:5px; box-shadow: 1px 3px 5px 0  #dcdcdc;
    text-align: center !important;
	}

.thing .name {
    font-family: 'Roboto Slab', 'Nunito Sans', Arial, sans-serif; font-weight:bold;
    margin:6px auto 2px auto;
	text-align: center;
    }

.thing p {text-align: center;}

.thing img {
    box-shadow:5px;
    text-align: center;
	}

.thing h3 {margin-top:4px;}

/* GENERAL -------------------------------------------------------- */
a:link {
     color: var(--akblue);
     background-color: transparent;
     text-decoration: none;
}

a:active {
     color: var(--akblue);
     background-color: transparent;
     text-decoration: none;
}

a:visited {
     color: var(--akblue);
     background-color: transparent;
     text-decoration: none;
}

a:hover     {
     color: var(--akorange) !important;
     text-decoration: none;
     background-color: transparent;
}

sup {vertical-align: top; font-size: 0.6em;}

.red {color:#b62025;}
.blue {color: #1e3364;}
.green {color: #538135;}

.footnote {font-size: .8rem; font-weight: normal; font-style: italic; line-height: 1.2; margin-top:2rem !important;}
.center {text-align:center !important; margin: 12px auto 12px auto;}
.image {text-align:center; margin-top:24px; margin-bottom:12px; max-width:100%;}
.spaced {margin-top: 24px; margin-bottom: 24px;}
.narrow {margin-left: 25% !important; margin-right:25% !important;}
.lined {border:1px solid #cdcdcd; padding: 5px;}

.alignleft { padding: 4px 8px 4px 0; }
.alignright { float: right !important; margin: 4px 0 4px 8px; }


/* ----- MEDIA QUERIES ----- */
@media all and (max-width: 949px) {

	html {font-size: 14px; background: none !important;}
	.hideme {display: none;}

	#top {
	grid-template-columns: 1fr;
	grid-template-areas:
		"logo"
		"quote";
	padding: 0 20px 0 0;
	margin: 0 auto 20px auto;
	}

#intro h2, #intro p {float: left; clear:both;}

	#home, #archive, #post, #single, #search, #page {
	grid-template-columns: 1fr !important;
	grid-template-areas:
		"intro"  
    	"mainbar"
		"sidebar"
		"bottom"
		"footer";
	margin: 0 auto 0 auto;
	padding: 0 0 20px 0;
	}
	#sidebar {padding-left: 30px;}
	#homeleft, #homeright { flex-basis: 100%; }


} /* -- END MEDIA --*/