/*
Theme Name: Forgotten Rites
Theme URI: https://forgottenritespublishing.com/
Author: Forgotten Rites Publishing
Author URI: https://forgottenritespublishing.com/
Description: A dark mythic block theme for Forgotten Rites Publishing, built for books, authors, events, free reads, newsletters, and WooCommerce.
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.0
Version: 0.1.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: forgotten-rites
Tags: block-patterns, block-styles, custom-colors, custom-logo, editor-style, full-site-editing, wide-blocks, e-commerce
*/

:root {
	--frp-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
	--frp-border: 1px solid rgba(199, 156, 79, 0.24);
}

html {
	scroll-behavior: smooth;
}

body {
	background:
		radial-gradient(circle at 12% 8%, rgba(106, 42, 34, 0.15), transparent 28rem),
		radial-gradient(circle at 88% 30%, rgba(104, 88, 51, 0.10), transparent 30rem),
		#11100f;
}

a {
	text-underline-offset: 0.18em;
}

.wp-site-blocks {
	overflow: hidden;
}

.frp-site-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid rgba(199, 156, 79, 0.16);
	background: rgba(17, 16, 15, 0.94);
	backdrop-filter: blur(14px);
}

.frp-site-header .wp-block-site-title a {
	text-decoration: none;
	letter-spacing: 0.035em;
}

.frp-site-header .wp-block-navigation-item__content {
	text-decoration: none;
}

.frp-hero {
	position: relative;
	min-height: min(760px, 82vh);
	isolation: isolate;
	overflow: hidden;
	border-bottom: 1px solid rgba(199, 156, 79, 0.2);
	background:
		linear-gradient(90deg, rgba(17, 16, 15, 0.98) 0%, rgba(17, 16, 15, 0.78) 53%, rgba(17, 16, 15, 0.24) 100%),
		radial-gradient(circle at 79% 47%, rgba(184, 74, 46, 0.34), transparent 18rem),
		linear-gradient(135deg, #161310 0%, #2a201b 55%, #11100f 100%);
}

.frp-hero::before,
.frp-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	border: 1px solid rgba(199, 156, 79, 0.24);
	border-radius: 50%;
}

.frp-hero::before {
	width: 34rem;
	height: 34rem;
	right: -8rem;
	top: 4rem;
	box-shadow:
		0 0 0 3rem rgba(199, 156, 79, 0.025),
		0 0 0 8rem rgba(199, 156, 79, 0.018);
}

.frp-hero::after {
	width: 16rem;
	height: 16rem;
	right: 10rem;
	top: 13rem;
	border-color: rgba(224, 212, 187, 0.18);
}

.frp-eyebrow {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--copper);
}

.frp-section {
	position: relative;
}

.frp-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: min(84%, 70rem);
	height: 1px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, transparent, rgba(199, 156, 79, 0.35), transparent);
}

.frp-card,
.frp-author-card,
.frp-event-card {
	height: 100%;
	border: var(--frp-border);
	border-radius: 4px;
	background:
		linear-gradient(160deg, rgba(255, 255, 255, 0.035), transparent 45%),
		#1a1816;
	box-shadow: var(--frp-shadow);
}

.frp-card {
	transition: transform 180ms ease, border-color 180ms ease;
}

.frp-card:hover {
	transform: translateY(-4px);
	border-color: rgba(199, 156, 79, 0.52);
}

.frp-book-placeholder {
	aspect-ratio: 2 / 3;
	display: grid;
	place-items: center;
	border: 1px solid rgba(224, 212, 187, 0.12);
	background:
		linear-gradient(145deg, rgba(199, 156, 79, 0.18), transparent 52%),
		radial-gradient(circle at 50% 36%, rgba(184, 74, 46, 0.26), transparent 28%),
		#24201c;
}

.frp-book-placeholder::before {
	content: "FRP";
	display: grid;
	place-items: center;
	width: 5.5rem;
	height: 5.5rem;
	border: 1px solid rgba(199, 156, 79, 0.58);
	border-radius: 50%;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.1rem;
	letter-spacing: 0.14em;
	color: var(--wp--preset--color--copper);
}

.frp-author-mark {
	width: 5rem;
	height: 5rem;
	display: grid;
	place-items: center;
	border: 1px solid rgba(199, 156, 79, 0.46);
	border-radius: 50%;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.25rem;
	color: var(--wp--preset--color--copper);
	background: rgba(199, 156, 79, 0.05);
}

.frp-quote {
	border-left: 3px solid var(--wp--preset--color--ember);
}

.frp-newsletter {
	border-top: 1px solid rgba(199, 156, 79, 0.28);
	border-bottom: 1px solid rgba(199, 156, 79, 0.28);
	background:
		linear-gradient(105deg, rgba(184, 74, 46, 0.15), transparent 45%),
		#1a1715;
}

.frp-site-footer {
	border-top: 1px solid rgba(199, 156, 79, 0.2);
	background: #0d0c0b;
}

.frp-site-footer a {
	color: var(--wp--preset--color--bone);
}

.frp-site-footer a:hover {
	color: var(--wp--preset--color--copper);
}

.woocommerce ul.products li.product,
.wc-block-grid__product,
.wc-block-product {
	border: var(--frp-border);
	padding: 1rem;
	background: #1a1816;
}

.woocommerce span.onsale {
	background: var(--wp--preset--color--ember);
	color: var(--wp--preset--color--parchment);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price,
.wc-block-components-product-price {
	color: var(--wp--preset--color--copper);
}

.woocommerce-message,
.woocommerce-info {
	border-top-color: var(--wp--preset--color--copper);
	background: #1a1816;
	color: var(--wp--preset--color--bone);
}

@media (max-width: 781px) {
	.frp-hero {
		min-height: auto;
		background:
			linear-gradient(rgba(17, 16, 15, 0.80), rgba(17, 16, 15, 0.96)),
			radial-gradient(circle at 80% 25%, rgba(184, 74, 46, 0.35), transparent 15rem),
			#171411;
	}

	.frp-hero::before {
		width: 22rem;
		height: 22rem;
		right: -11rem;
		top: 2rem;
	}

	.frp-hero::after {
		display: none;
	}
}

/* Version 0.1.1 layout corrections */
.wp-site-blocks {
	padding-top: 0;
	padding-bottom: 0;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

.frp-hero h1 {
	max-width: 920px;
	font-size: clamp(3.9rem, 4.8vw, 5.6rem);
	text-wrap: balance;
}

.frp-hero .has-large-font-size {
	max-width: 760px;
}

@media (max-width: 781px) {
	.frp-hero h1 {
		max-width: 100%;
		font-size: clamp(3rem, 13vw, 4.35rem);
		text-wrap: pretty;
	}
}


/* FRP: Hide single-product category metadata */
.single-product .product_meta .posted_in,
.single-product .wp-block-woocommerce-product-categories {
    display: none !important;
}