/*-- -------------------------- -->
<---           ROOT             -->
<--- -------------------------- -*/

:root {
	--color-primary: #335d32;
	--color-primary-dark: #274925;
	--color-light: #eaeaea;
	--color-light-dark: #d0d0d0;
	--color-dark: #000000;
	--color-panel: rgba(255, 255, 255, 0.15);
	--color-panel-green: rgba(51, 93, 50, 0.5);
	--color-border-light: rgba(255, 255, 255, 0.25);
	--color-shadow: rgba(0, 0, 0, 0.1);

	--radius-small: 4px;
	--radius-medium: 6px;
	--radius-large: 8px;
}

/*-- -------------------------- -->
<---           FONTS            -->
<--- -------------------------- -*/

@font-face {
	font-family: "Montserrat";
	src: url("../../fonts/Montserrat/static/Montserrat-Bold.ttf")
		format("truetype");
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: "Montserrat";
	src: url("../../fonts/Montserrat/static/Montserrat-SemiBold.ttf")
		format("truetype");
	font-weight: 600;
	font-style: normal;
}

@font-face {
	font-family: "Montserrat";
	src: url("../../fonts/Montserrat/static/Montserrat-Medium.ttf")
		format("truetype");
	font-weight: 500;
	font-style: normal;
}

@font-face {
	font-family: "Montserrat";
	src: url("../../fonts/Montserrat/static/Montserrat-Regular.ttf")
		format("truetype");
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: "Montserrat";
	src: url("../../fonts/Montserrat/static/Montserrat-Thin.ttf")
		format("truetype");
	font-weight: 100;
	font-style: normal;
}

/*-- -------------------------- -->
<---         HTML TAGS          -->
<--- -------------------------- -*/

* {
	font-family: "Montserrat", sans-serif;
}

html,
body {
	height: 100%;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	font-family: "Montserrat", sans-serif;
	background-image: url("../svgs/dragon.svg");
	background-size: cover;
}

/*-- -------------------------- -->
<---   HEADER & NAVAIGATION     -->
<--- -------------------------- -*/

.header {
	display: flex;
	flex-direction: column;
	background-color: var(--color-light);
	align-items: center;
	justify-content: center;
	width: 90vw;
	max-width: 1250px;
	margin: 0 auto;
}

.header-logo-link {
	display: block;
	width: 100%;
}

.header-logo-container,
.header-logo-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.header-logo {
	display: block;
	width: 100%;
	max-width: 750px;
	height: auto;
	margin: 0 auto;
}

#header-divider {
	border: none;
	height: 2px;
	background-color: var(--color-primary);
	width: 60%;
	margin: 2rem auto;
}

.navigation {
	display: flex;
	justify-content: center;
	margin: 1rem;
}

.navigation-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 1.5rem;
}

.navigation a {
	text-decoration: none;
	color: var(--color-dark);
	font-weight: 400;
	font-size: 18pt;
}

#header-navigation a:hover {
	color: var(--color-primary);
}

/*-- -------------------------- -->
<---       BOOKS DROPDOWN       -->
<--- -------------------------- -*/

#header-navigation-dropdown {
	position: relative;
}

#header-dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	min-width: 200px;
	padding: 0.5rem 0;
	margin: 0;
	list-style: none;
	background-color: var(--color-light);
	border: 1px solid var(--color-light-dark);
	box-shadow: 0 4px 10px var(--color-shadow);
	z-index: 1000;
}

#header-dropdown-menu li {
	margin: 0;
	padding: 0;
}

#header-dropdown-menu a {
	display: block;
	padding: 0.6rem 1rem;
	font-size: 14pt;
	text-align: center;
	white-space: nowrap;
}

#header-dropdown-menu a:hover {
	color: var(--color-primary);
	background-color: var(--color-light-dark);
}

#header-navigation-dropdown:hover #header-dropdown-menu {
	display: block;
}

#header-dropdown-toggle {
	background: none;
	border: none;
	padding: 0;
	font-family: inherit;
	color: var(--color-dark);
	font-weight: 400;
	font-size: 18pt;
	cursor: pointer;
}

#header-dropdown-toggle:hover {
	color: var(--color-primary);
}

/*-- -------------------------- -->
<---           MAIN             -->
<--- -------------------------- -*/

.main {
	background-color: var(--color-primary);
	color: var(--color-light);
	flex: 1;
	width: 90vw;
	max-width: 1250px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin: 0 auto;
}

/*-- -------------------------- -->
<---          INDEX             -->
<--- -------------------------- -*/

.index-logo {
	display: block;
	width: 100%;
	max-width: 750px;
	height: auto;
	margin: 0 auto;
}

#index-navigation a:hover {
	color: var(--color-light);
}

.index-main {
	background-color: var(--color-primary);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100vh;
}

.index-divider {
	background-color: var(--color-light);
	border: none;
	height: 2px;
	width: 60%;
	margin: 2rem auto;
}

/*-- -------------------------- -->
<---       UPCOMING BOOKS       -->
<--- -------------------------- -*/

.upcoming-book {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 900px;
	width: 90%;
	margin: 2rem auto;
	padding: 1.5rem;
	box-sizing: border-box;
	background-color: var(--color-panel);
	border-radius: var(--radius-large);
	color: var(--color-light);
	text-align: center;
}

.upcoming-book .book-cover {
	width: 250px;
	height: 400px;
	max-width: 250px;
	max-height: 400px;
	object-fit: contain;
	border-radius: var(--radius-medium);
}

.upcoming-book h2 {
	margin-top: 0.75rem;
	margin-bottom: 1rem;
	color: var(--color-light);
}

.release-date {
	margin: 0.75rem 0;
	padding: 0.6rem 1rem;
	background-color: var(--color-primary);
	border-radius: var(--radius-medium);
	color: var(--color-light);
	font-size: 1rem;
}

.release-date strong {
	font-weight: 600;
}

.upcoming-book .buy-links {
	margin-top: 0.5rem;
}

.upcoming-book .buy-button {
	display: inline-block;
	margin: 0.25rem;
	padding: 0.7rem 1.2rem;
	background-color: var(--color-primary);
	color: var(--color-light);
	border-radius: var(--radius-medium);
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.upcoming-book .buy-button:hover {
	background-color: var(--color-primary-dark);
}

/*-- -------------------------- -->
<---   IN PROGRESS BOOKS       -->
<--- -------------------------- -*/

.in-progress-books {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.in-progress-book {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	margin: 2rem 0;
	max-width: 1000px;
	width: 100%;
	padding: 0 1rem;
	box-sizing: border-box;
}

.in-progress-book .cover {
	width: 200px;
	max-width: 100%;
	object-fit: contain;
	border-radius: var(--radius-medium);
}

.in-progress-book .book-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	background-color: var(--color-panel);
	padding: 1rem;
	border-radius: var(--radius-large);
}

.in-progress-book .book-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 1rem 0;
	font-weight: 400;
	font-size: 1rem;
	color: var(--color-light);
	text-align: center;
}

.in-progress-book .divider-vertical {
	width: 2px;
	height: 20px;
	background-color: var(--color-light);
	opacity: 0.5;
}

.in-progress-book .meta-item {
	white-space: nowrap;
	text-wrap: wrap;
}

.in-progress-book .progress-group {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
	margin-top: 1rem;
}

.in-progress-book .progress-circle {
	width: 120px;
	text-align: center;
	margin: 1rem;
	color: var(--color-light);
	font-family: Montserrat, sans-serif;
}

.in-progress-book .progress-circle svg {
	width: 100%;
	height: auto;
	display: block;
}

.in-progress-book .bg {
	fill: none;
	stroke: var(--color-primary);
	stroke-width: 3.8;
}

.in-progress-book .progress {
	fill: none;
	stroke: var(--color-light);
	stroke-width: 3.8;
	stroke-linecap: round;
	transition: stroke-dasharray 0.6s ease;
	transform: rotate(-90deg);
	transform-origin: center;
}

.in-progress-book .percentage {
	fill: var(--color-light);
	font-size: 5pt;
	text-anchor: middle;
	alignment-baseline: middle;
	dominant-baseline: middle;
}

/*-- -------------------------- -->
<---       RELEASED BOOKS       -->
<--- -------------------------- -*/

.released-books {
	width: 100%;
	max-width: 1250px;
	box-sizing: border-box;
	margin: 2rem 0;
	padding: 2rem;
	background-color: var(--color-panel);
	border-radius: var(--radius-large);
	color: var(--color-light);
}

.released-books .series-title {
	margin: 0 0 2rem;
	text-align: center;
	color: var(--color-light);
}

.released-books .series-books {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.released-books .book-details {
	width: 100%;
	margin: 1.5rem 0;
	box-sizing: border-box;
}

.released-books .book-summary {
	cursor: pointer;
	list-style: none;
	text-align: center;
}

.released-books .book-summary::-webkit-details-marker {
	display: none;
}

.released-books .book-cover {
	width: 250px;
	height: 400px;
	min-width: 250px;
	min-height: 400px;
	display: block;
	margin: 0 auto;
	object-fit: contain;
	border-radius: var(--radius-medium);
	transition:
		transform 0.2s ease,
		opacity 0.2s ease;
}

.released-books .book-summary:hover .book-cover {
	transform: scale(1.03);
	opacity: 0.9;
}

.released-books .book-details[open] {
	display: grid;
	grid-template-columns: 250px 1fr;
	column-gap: 3rem;
	width: 100%;
	min-height: 450px;
	height: auto;
	box-sizing: border-box;
}

.released-books .book-details[open] .book-summary {
	width: 250px;
	height: 450px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.released-books .book-info {
	width: 100%;
	min-height: 450px;
	height: auto;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 2rem;
	text-align: center;
}

.released-books .book-info h3 {
	margin-top: 0;
	margin-bottom: 1rem;
	color: var(--color-light);
	text-align: center;
}

.released-books .book-blurb {
	width: 100%;
	max-width: 700px;
	line-height: 1.7;
	text-align: left;
}

.released-books .content-warning {
	width: 70%;
	max-width: 500px;
	box-sizing: border-box;
	margin: 1rem auto;
	padding: 0.7rem 1rem;
	background-color: var(--color-panel-green);
	border: 1px solid var(--color-border-light);
	border-radius: var(--radius-large);
	text-align: center;
}

.released-books .content-warning summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 0.9rem;
}

.released-books .content-warning p {
	margin: 0.75rem 0 0;
	font-size: 0.85rem;
	line-height: 1.5;
}

.released-books .buy-links {
	margin-top: 1rem;
	text-align: center;
}

.released-books .buy-links h4 {
	margin-bottom: 0.75rem;
}

.released-books .buy-button {
	display: inline-block;
	margin: 0.25rem;
	padding: 0.7rem 1.2rem;
	background-color: var(--color-primary);
	color: var(--color-light);
	border-radius: var(--radius-medium);
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.released-books .buy-button:hover {
	background-color: var(--color-primary-dark);
}

/*-- -------------------------- -->
<---           BLOG             -->
<--- -------------------------- -*/

.blog-list {
	list-style: none;
	max-width: 700px;
	width: 100%;
	margin: 0 auto;
	padding: 0 1rem;
	box-sizing: border-box;
}

.post {
	max-width: 1000px;
	width: 100%;
	margin: 2rem auto;
	padding: 1rem;
	color: var(--color-light);
	border-radius: var(--radius-large);
	box-sizing: border-box;
}

.post-title {
	font-size: 2rem;
	color: var(--color-light);
	margin-bottom: 0.5rem;
}

.post-date {
	font-size: 1rem;
	color: var(--color-light);
	margin-bottom: 1rem;
}

.post-content {
	display: flex;
	flex-direction: column;
	text-align: start;
	line-height: 1.2;
}

.blog-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	margin-bottom: 2rem;
	box-sizing: border-box;
}

.blog-meta {
	display: flex;
	flex-direction: column;
	text-align: center;
	margin-bottom: 1rem;
}

.blog-date {
	color: var(--color-light);
	margin-top: 0.5rem;
}

.blog-content-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 2rem;
	width: 100%;
	max-width: 800px;
	margin: 1rem auto;
}

figcaption {
	color: var(--color-light);
}

.blog-text {
	flex: 1;
	text-align: left;
	color: var(--color-light);
}

.blog-image {
	flex: 1;
	max-width: 500px;
	justify-self: center;
}

.blog-image img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-large);
}

.blog-item a {
	font-size: 1.5rem;
	text-decoration: none;
	color: var(--color-light);
}

.blog-description {
	margin-top: 0.5rem;
	color: var(--color-light);
}

.blog-item .read-more-button {
	display: inline-block;
	width: 100%;
	max-width: 300px;
	padding: 0.5rem;
	background-color: var(--color-light);
	color: var(--color-primary);
	text-decoration: none;
	font-weight: bold;
	border-radius: var(--radius-small);
	transition:
		background-color 0.3s ease,
		color 0.3s ease;
	text-align: center;
}

.read-more-button:hover {
	background-color: var(--color-dark);
	color: var(--color-primary);
}

/*-- -------------------------- -->
<---       FEATURED POST        -->
<--- -------------------------- -*/

.featured-posts {
	background-color: var(--color-dark);
	color: var(--color-light);
	border-radius: var(--radius-small);
	padding: 1rem;
}

.featured-post {
	padding-left: 2rem;
	padding-right: 2rem;
	margin-bottom: 3rem;
	border-radius: var(--radius-large);
	margin-left: auto;
	margin-right: auto;
}

.featured-post .blog-meta {
	text-align: center;
}

.featured-post .blog-image img {
	border: 3px solid var(--color-light);
}

.featured-post a {
	color: var(--color-light);
	text-decoration: none;
	padding: 0.5rem;
}

.featured-post a:hover {
	color: var(--color-primary);
	border-radius: var(--radius-small);
}

#featured-blog-date {
	color: var(--color-light);
	margin-top: 0.5rem;
}

#featured-blog-description {
	color: var(--color-light);
	margin-top: 0.5rem;
}

/*-- -------------------------- -->
<---          ABOUT             -->
<--- -------------------------- -*/

.about-description {
	margin: 0 5rem 3rem;
}

.newsletter-link {
	text-decoration: none;
	color: var(--color-dark);
	font-weight: bold;
}

/*-- -------------------------- -->
<---           FOOTER           -->
<--- -------------------------- -*/

.footer {
	background-color: var(--color-dark);
	color: var(--color-light);
	text-align: center;
	width: 90vw;
	max-width: 1250px;
	margin: 0 auto;
}

.social-media-icon {
	width: 25px;
	height: auto;
	margin: 0 10px;
	vertical-align: middle;
	filter: grayscale(1) brightness(0) invert(1);
}

.social-icons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	margin: 1rem 0;
}

/*-- -------------------------- -->
<---        MEDIA QUERIES       -->
<--- -------------------------- -*/

@media (max-width: 768px) {
	/* LOGOS */

	.header-logo,
	.index-logo {
		max-width: 600px;
	}

	/* UPCOMING BOOKS */

	.upcoming-book {
		width: 95%;
		padding: 1.5rem;
		margin: 2rem auto;
	}

	.upcoming-book .cover {
		width: 250px;
		height: 400px;
	}

	/* IN PROGRESS BOOKS */

	.book-row {
		flex-direction: column;
		align-items: center;
		width: 95%;
		padding: 1.5rem;
		gap: 1.5rem;
	}

	.book-row .cover {
		width: 250px;
		height: 400px;
	}

	.book-row .book-info {
		width: 100%;
		box-sizing: border-box;
	}

	/* RELEASED BOOKS */

	.series-page {
		width: 95%;
		padding: 1.5rem;
	}

	.book-details[open] {
		display: flex;
		flex-direction: column;
		align-items: center;
		min-height: 0;
		height: auto;
		gap: 1.5rem;
	}

	.book-details[open] .book-summary {
		width: 100%;
		height: auto;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.book-details[open] .book-cover {
		width: 250px;
		height: 400px;
		min-width: 250px;
		min-height: 400px;
	}

	.book-details[open] .book-info {
		width: 100%;
		min-height: 400px;
		height: auto;
		padding: 1.5rem;
	}

	/* GENERAL BOOK STYLES */

	.book-page,
	.upcoming-book {
		width: 95%;
		padding: 1.5rem;
		margin: 2rem auto;
	}

	.book-blurb {
		font-size: 0.95rem;
	}

	.buy-button {
		display: block;
		width: 80%;
		margin: 0.5rem auto;
	}

	.content-warning {
		width: 100%;
	}

	/* BLOG */

	.blog-content-row {
		flex-direction: column;
		align-items: center;
	}

	.blog-text {
		text-align: center;
	}

	/* SITE LAYOUT */

	.header,
	.footer,
	.main {
		width: 100vw;
		margin: 0;
		padding: 0 1rem;
		box-sizing: border-box;
	}
}

/* NAVIGATION */

@media (max-width: 700px) {
	.navigation-list {
		flex-direction: column;
		align-items: center;
		gap: 0.8rem;
	}

	.navigation-list > li {
		width: 100%;
		text-align: center;
	}

	#header-navigation-dropdown {
		width: 100%;
		text-align: center;
	}

	#header-dropdown-toggle {
		display: block;
		width: 100%;
		text-align: center;
		font-size: 18pt;
	}

	#header-dropdown-menu {
		position: static;
		transform: none;
		width: 100%;
		box-shadow: none;
		border: none;
		margin-top: 0.5rem;
	}

	#header-navigation-dropdown:hover #header-dropdown-menu {
		display: none;
	}

	#header-navigation-dropdown.open #header-dropdown-menu {
		display: block;
	}
}

@media (max-width: 480px) {
	/* LOGOS */

	.header-logo,
	.index-logo {
		width: 100%;
		max-width: 100%;
	}

	/* UPCOMING BOOKS */

	.upcoming-book {
		width: 100%;
		padding: 1rem;
	}

	.upcoming-book .cover {
		width: 200px;
		height: 320px;
	}

	/* IN PROGRESS BOOKS */

	.book-row {
		width: 100%;
		padding: 1rem;
	}

	.book-row .cover {
		width: 200px;
		height: 320px;
	}

	.book-row .book-info {
		padding: 1rem;
	}

	/* RELEASED BOOKS */

	.series-page {
		width: 100%;
		padding: 1rem;
	}

	.book-details[open] {
		width: 100%;
	}

	.book-details[open] .book-cover {
		width: 200px;
		height: 320px;
		min-width: 200px;
		min-height: 320px;
	}

	.book-details[open] .book-info {
		width: 100%;
		min-height: 320px;
		padding: 1rem;
	}

	/* GENERAL BOOK STYLES */

	.book-page,
	.upcoming-book {
		width: 100%;
		padding: 1rem;
	}

	.book-cover {
		width: 180px;
	}

	.book-page h2,
	.upcoming-book h2 {
		font-size: 1.4rem;
	}

	.buy-button {
		width: 90%;
	}

	/* BLOG */

	.post-title {
		font-size: 1.5rem;
	}

	.blog-item a {
		font-size: 1.2rem;
	}

	.blog-item .read-more-button {
		max-width: 100%;
		padding: 0.4rem;
	}
}
