/* FONTS */

@font-face {
    font-family: n_Cormorant;
    src: url('/assets/fonts/Cormorant-Regular.ttf');
}

@font-face {
    font-family: n_Cormorant;
    src: url('/assets/fonts/Cormorant-Bold.ttf');
    font-weight:bold;
}

@font-face {
    font-family: n_Cormorant;
    src: url('/assets/fonts/Cormorant-Italic.ttf');
    font-style:italic;
}

@font-face {
    font-family: n_Garamond;
    src: url('/assets/fonts/EBGaramondSC12-Regular.ttf');
}

@font-face {
    font-family: n_Garamond;
    src: url('/assets/fonts/EBGaramond08-Regular.ttf');
    font-weight:bold;
}

@font-face {
    font-family: n_Fira Sans;
    src: url('/assets/fonts/FiraSans-Regular.otf');
}

body {
	padding:0;
	margin:0;
	font-family:n_Cormorant;
	font-size:15pt;
	color:white;
	background-color:black;
	display:flex;
	min-height: 100vh;    /* fallback for older browsers */
	min-height: 100dvh;
}

a {
	color:#ba7b00;
	text-decoration:none;
	
}
a:hover {
	text-decoration:underline;
}

/* HEADER - the lefthand rail */ 

#header {
	display:flex;
	flex-direction:column;
	max-width: 300px;
}

#header .site-title, #header .author-summary {
	padding:1rem;
}

#header div.site-title, #main-menu { 
	height:36px; /* sets height simultaneously for title and menu */
	align-items:center;
	font-family:n_Garamond;
}

#header div.site-title {
	display:flex;
	justify-content:center;
	background-image:url('images/dark-inked-bg.jpg');
}

#header div.site-title h1 {
	font-size:15pt;
	color:#ba7b00;
	margin:0;
	padding:0;
}

#header div.author {
	display:flex;
	flex-direction:column;
	flex:1;
}

#header div.author-img {
	height:485px;
	background-image:url('images/nathan-grover-gets-a-call.jpg');
	background-size:cover;
	background-position: center center;
	border-bottom:9px solid #ba7b00;
}

#header div.author-summary {
	flex:1;
	color:black;
	background-color:white;
}

/* MAIN CONTENT AREA */

main {
	display:flex;
	flex:1;
	flex-direction:column;
}

main > div {
	padding:1rem 2rem;
}

/* Main Menu */

#main-menu {
	display:flex;
	flex-direction:row;
	justify-content:right;
	background-color:white;
}

#main-menu ul {
	display:flex;
	list-style-type:none;
	gap:15px;
	margin:0 0 0 0;
	padding:0;
}
#main-menu ul li {
}

#main-menu a {
	color:black;
	text-decoration:none;
	transition: color 0.2s;
}
#main-menu a:hover {
	color:#ba7b00;
}

/* Content Area */

#content-area {
	display:flex;
	flex-direction:column;
	align-items:center;
	flex:1;
	background-image: url('images/dark-inked-bg.jpg');;
}

#content-area h2 {
	font-family:n_Cormorant;
	letter-spacing:3px;
	text-transform:uppercase;
	font-size:2.5em;
	font-weight:normal;
	padding-bottom:0.5em;
}

#content-area h2::after {
	content: "";
	display: block;
	width: 8rem;
	height:2rem;
	margin:0.75rem auto 0 auto;
	background: url('images/ng-content-ornament.svg') no-repeat center / contain;
}

#content {
	max-width: 600px;
}

#content h3 {
	margin:0 0 2rem 0;
	text-align:center;
	text-transform:uppercase;
}

/* UPDATES */

.update {
	display:flex;
	justify-content:flex-start;
	margin-bottom:1rem;
}

.update time.update-date {
	color:#747474;
	padding:0;
	margin:0 2rem 0 0;
	font-family:n_Garamond;
	font-weight:bold;
}

.update p.update-body {
	margin:0 0 1rem 0;
}

/* READ ME */

#content ul {
	list-style-type:none;
	margin:0 0 3rem 0;
	padding:0;
}

#content ul li {
	margin-bottom:1rem;
}

.img-feature-card {
	display:flex;
	background-color:#1c1c1c;
	min-height:260px;
	border-radius:8px;
	margin-bottom:2rem;
}

.img-feature-card:last-of-type {
	margin-bottom:3rem;
}

.img-feature-card-body {
	flex:1;
	padding:1rem;
}

.img-feature-card-body h4 {
	text-align:center;
	margin:0.5rem 0 0 0;
	padding:0;
	font-size:2rem;
}

.img-feature-card-img {
	flex: 0 0 50%;
	background-image: url('images/genesis-promo-small.jpg');
	background-size: cover;
	background-position: center center;
}


@media (min-width:651px) and (max-width: 850px) { /* book card image going vertical in narrow two-column layout */
	.update time.update-date {
		margin:0 1.25rem 0 0;
	}
	
	.img-feature-card {
		flex-direction:column;
	}

	.img-feature-card:last-of-type {
		margin-bottom:3rem;
	}

	.img-feature-card-body {		
		order:2;
	}

	.img-feature-card-body h4 {
		margin:0 0 0 0;
	}

	.img-feature-card-img {
		order:1;
		min-height:245px;
	}
}


/* Tablet and below */
@media (max-width: 650px) {
	body {
		flex-direction:column;
	}
	#header {
		max-width:none;
		width:100%;	
	}
	#header div.author {
		flex-direction:row;
		height: 380px;
	}
	#header div.author-img {
		flex: 1;
		max-width: 280px;
		height:235px;
		background-position:50% 30%;
	}
	
	#header div.author-summary {
		display:flex;
		align-items: center;
		border-bottom: 9px solid #ba7b00;
	}

	main {
		background-image: url('images/dark-inked-bg.jpg');
	}
	
	#main-menu {
		display:flex;
		flex-direction:row;
		justify-content:center;
		background-color:transparent;
	}
	#main-menu a {
		color:white;
	}
	
	main #content-area {
		background-image:none;
	}
	main #content-area h2 {
		margin-top:0px;
		margin-bottom:0.5rem;
	}
	
}


@media (max-width: 535px) {
	.update time.update-date {
		margin:0 1.25rem 0 0;
	}
	
	.img-feature-card { /* book card image going vertical in narrow one-column layout */
		flex-direction:column;
	}

	.img-feature-card:last-of-type {
		margin-bottom:3rem;
	}

	.img-feature-card-body {		
		order:2;
	}

	.img-feature-card-body h4 {
		margin:0 0 0 0;
	}

	.img-feature-card-img {
		order:1;
		min-height:245px;
	}
}


/* Phone */
@media (max-width: 480px) {
	.update time.update-date {
		margin:0 1.25rem 0 0;
	}
}