/* ==========================================================================
   Horror Books — main stylesheet
   ========================================================================== */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/cormorant-garamond.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400 500; font-display: swap; src: url('../fonts/cormorant-garamond-italic.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/jost.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('../fonts/newsreader.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/newsreader-italic.woff2') format('woff2'); }

:root {
	--hb-bg: #07080A;
	--hb-bg-alt: #0A0B0E;
	--hb-surface: #0E1013;
	--hb-text: #F1E8D8;
	--hb-text-soft: #CFC7B8;
	--hb-text-muted: #A9A397;
	--hb-text-faint: #8F897D;
	--hb-line: rgba(241, 232, 216, 0.14);
	--hb-line-strong: rgba(241, 232, 216, 0.5);
	--hb-accent: #E4622B;
	--hb-glow: rgba(255, 214, 150, 0.18);

	--hb-serif-display: 'Cormorant Garamond', Georgia, serif;
	--hb-serif: 'Newsreader', Georgia, serif;
	--hb-sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

	--hb-max: 1200px;
	--hb-gutter: clamp(16px, 4vw, 48px);
	--hb-section-y: clamp(64px, 9vw, 128px);
	--hb-header-h: 76px;
}

/* Base ------------------------------------------------------------------ */
@media (max-width: 860px) {
   section#buy div.container.split > div:nth-child(2) {
    justify-content: center;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
	}
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hb-header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--hb-bg);
	color: var(--hb-text);
	font-family: var(--hb-serif);
	font-size: 18px;
	line-height: 1.65;
	overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--hb-serif-display); font-weight: 400; line-height: 1.08; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--hb-text); outline-offset: 3px; }
::selection { background: var(--hb-accent); color: var(--hb-bg); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; clip: auto;
	padding: 12px 18px; background: var(--hb-text); color: var(--hb-bg); font-family: var(--hb-sans);
}

.container { width: 100%; max-width: var(--hb-max); margin-inline: auto; padding-inline: var(--hb-gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--hb-section-y); }
.section--alt { background: var(--hb-bg-alt); border-block: 1px solid var(--hb-line); }

/* Type helpers ---------------------------------------------------------- */
.eyebrow {
	display: block;
	font-family: var(--hb-sans); font-size: 12px; font-weight: 500;
	letter-spacing: 0.32em; text-transform: uppercase; color: var(--hb-accent);
}
.label {
	display: block;
	font-family: var(--hb-sans); font-size: 11px; font-weight: 400;
	letter-spacing: 0.3em; text-transform: uppercase; color: var(--hb-text-muted);
}
.section-title { margin-top: 20px; font-size: clamp(36px, 4.6vw, 62px); }
.section-title--italic { font-style: italic; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--hb-text-soft); }
.lead + .lead { margin-top: 22px; }
.lead-group p { font-size: clamp(18px, 1.6vw, 20px); color: var(--hb-text-soft); }
.lead-group p + p { margin-top: 22px; }
.section-title + .lead-group { margin-top: 28px; }
.rule { width: 56px; height: 2px; background: var(--hb-accent); border: 0; margin: 28px 0; }

/* Buttons --------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 0 28px;
	font-family: var(--hb-sans); font-size: 13px; font-weight: 500;
	letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
	border: 1px solid var(--hb-text); border-radius: 0; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.btn--solid { background: var(--hb-text); color: var(--hb-bg); }
.btn--solid:hover { background: transparent; color: var(--hb-text); }
.btn--ghost { background: transparent; color: var(--hb-text); border-color: var(--hb-line-strong); }
.btn--ghost:hover { border-color: var(--hb-text); background: rgba(241, 232, 216, 0.06); }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header ---------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	border-bottom: 1px solid transparent;
	transition: border-color .25s;
}
/* Blur lives on a pseudo-element so it doesn't become the containing block of the fixed mobile menu. */
.site-header::before {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background: rgba(7, 8, 10, 0.82);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nav-open .site-header::before { background: var(--hb-bg); }
.site-header.is-scrolled { border-bottom-color: var(--hb-line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--hb-header-h); }
.site-header__inner > .brand, .site-header__inner > .custom-logo-link { margin-right: auto; }
.primary-nav { order: 2; }
.cart-link { order: 3; }
.nav-toggle { order: 4; }

.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--hb-text-soft); text-decoration: none; }
.cart-link:hover { color: var(--hb-text); }
.cart-link__count {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
	background: var(--hb-accent); color: var(--hb-bg); font-family: var(--hb-sans); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}
.cart-link__count.is-empty { display: none; }
@media (max-width: 900px) { .site-header__inner { gap: 8px; } }

.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--hb-text); white-space: nowrap; }
.brand__name { font-family: var(--hb-serif-display); font-size: 25px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.brand__mark { color: var(--hb-accent); }
.brand .custom-logo { max-height: 48px; width: auto; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.primary-nav a {
	display: block; padding: 10px 0;
	font-family: var(--hb-sans); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
	text-decoration: none; color: var(--hb-text-soft); transition: color .2s;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--hb-text); }
.primary-nav .menu-cta > a, .primary-nav .nav-cta {
	padding: 12px 20px; background: var(--hb-text); color: var(--hb-bg); font-weight: 500;
}
.primary-nav .menu-cta > a:hover, .primary-nav .nav-cta:hover { background: var(--hb-accent); color: var(--hb-bg); }

.nav-toggle {
	display: none; width: 48px; height: 48px; margin-right: -12px; padding: 0;
	background: none; border: 0; color: var(--hb-text); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 24px; height: 1.5px; margin: 0 auto; background: currentColor;
	transition: transform .25s, opacity .25s; content: '';
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after { position: absolute; top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.primary-nav {
		position: fixed; inset: var(--hb-header-h) 0 0 0; z-index: 99;
		background: var(--hb-bg); padding: 32px var(--hb-gutter);
		overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
	}
	.nav-open .primary-nav { visibility: visible; opacity: 1; }
	.nav-open { overflow: hidden; }
	.primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav li { border-bottom: 1px solid var(--hb-line); }
	.primary-nav a { padding: 20px 0; font-size: 15px; }
	.primary-nav .menu-cta, .primary-nav li:has(.nav-cta) { border-bottom: 0; margin-top: 28px; }
	.primary-nav .menu-cta > a, .primary-nav .nav-cta { text-align: center; padding: 18px; }
}
@media (max-width: 900px) { .site-header__inner { gap: 8px; } }

@media (max-width: 356px) { .brand__name {
	font-size: 19px; }}
/* Hero ------------------------------------------------------------------ */
.hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(60% 55% at 76% 62%, rgba(255, 214, 150, 0.14), transparent 70%),
		radial-gradient(45% 40% at 10% 0%, rgba(120, 140, 170, 0.10), transparent 70%),
		var(--hb-bg);
}
.hero__inner {
	display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: center; gap: clamp(40px, 6vw, 88px);
	padding-block: clamp(48px, 7vw, 104px) clamp(64px, 8vw, 120px);
}
.hero__title {
	font-size: clamp(38px, 5.8vw, 84px); font-weight: 500; line-height: 0.95;
	letter-spacing: 0.05em; text-transform: uppercase;
	background: linear-gradient(90deg, #F7F0E2 0%, #E8DECB 45%, #7A766F 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	margin-top: 22px;
}
.hero__subtitle { font-family: var(--hb-serif-display); font-style: italic; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; }
.hero__tagline { margin-top: 22px; max-width: 460px; font-size: 19px; color: #B9B2A5; }
.hero .btn-row { margin-top: 38px; }
.hero__formats { margin-top: 26px; font-family: var(--hb-sans); font-size: 13px; letter-spacing: 0.12em; color: var(--hb-text-muted); }
.hero__cover { justify-self: center; width: 100%; max-width: 420px; }

.book-cover { position: relative; }
.book-cover img { width: 100%; box-shadow: 0 50px 140px var(--hb-glow), 0 0 0 1px rgba(241, 232, 216, 0.10); }

@media (max-width: 860px) {
	.hero__inner { grid-template-columns: 1fr; text-align: center; padding-top: 32px; }
	.hero__cover { order: -1; max-width: 300px; }
	.hero .rule { margin-inline: auto; }
	.hero__tagline { margin-inline: auto; }
	.hero .btn-row { justify-content: center; }
}
@media (max-width: 480px) {
	.hero .btn-row .btn { flex: 1 1 100%; }
	.hero__cover { max-width: 240px; }
}

/* Details strip --------------------------------------------------------- */
.details { background: var(--hb-bg-alt); border-block: 1px solid var(--hb-line); }
.details__grid {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 40px; padding-block: 36px; margin: 0;
}
.details__grid div { min-width: 0; }
.details__grid dd { margin: 4px 0 0; font-family: var(--hb-serif-display); font-size: 25px; line-height: 1.25; }
@media (max-width: 860px) { .details__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .details__grid { grid-template-columns: 1fr; } }



/* Split layout (story / author / buy) ----------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.split--center { align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.light-slit {
	width: 44px; height: 96px; margin-top: 48px;
	background: linear-gradient(180deg, #FFF3D6, #E6D2A3);
	box-shadow: 0 0 60px 10px rgba(255, 214, 150, 0.30), 0 0 120px 30px rgba(255, 214, 150, 0.10);
}
@media (max-width: 860px) { .story .light-slit { display: none; } }

.note-box { margin-top: 34px; padding: 22px 26px; border: 1px solid var(--hb-line); background: #0C0E11; }
.note-box p { margin-top: 6px; font-size: 17px; color: #B9B2A5; }

/* Excerpt --------------------------------------------------------------- */
.excerpt { text-align: center; }
.excerpt__page {
	position: relative; margin-top: 52px; max-height: 420px; overflow: hidden;
	background: var(--hb-text); color: #1A1714; text-align: left;
	box-shadow: 0 30px 100px rgba(255, 214, 150, 0.12);
	transition: max-height .6s ease;
}
.excerpt__page-inner { padding: clamp(32px, 5vw, 56px) clamp(22px, 5vw, 64px); }
.excerpt__page .label { color: #5A5348; text-align: center; }
.excerpt__page p { margin-top: 22px; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.75; }
.excerpt__fade {
	position: absolute; left: 0; right: 0; bottom: 0; height: 200px; pointer-events: none;
	background: linear-gradient(180deg, rgba(10, 11, 14, 0), var(--hb-bg-alt));
	transition: opacity .4s;
}
.excerpt.is-open .excerpt__page { max-height: none; }
.excerpt.is-open .excerpt__fade { opacity: 0; }
.excerpt .btn { margin-top: 40px; }

/* Author ---------------------------------------------------------------- */
.portrait {
	position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 400px;
	background: radial-gradient(70% 60% at 50% 40%, #1A1D22, #0C0E11);
	border: 1px solid var(--hb-line);
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait__initials { font-family: var(--hb-serif-display); font-size: 96px; letter-spacing: 0.08em; color: #5C5A56; }
.portrait::after { content: ''; position: absolute; left: -1px; bottom: -1px; width: 64px; height: 2px; background: var(--hb-accent); }
@media (max-width: 860px) { .portrait { max-width: 320px; margin-inline: auto; } }

.link-row { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 28px; }
.link-row a {
	padding: 10px 0; font-family: var(--hb-sans); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
	text-decoration: none; border-bottom: 1px solid var(--hb-accent);
}

/* Cards (reviews / formats) --------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 52px; }
@media (max-width: 960px) { .card-grid { grid-template-columns: 1fr; max-width: 640px; } }

.card { margin: 0; padding: 34px 30px; background: var(--hb-surface); border: 1px solid var(--hb-line); display: flex; flex-direction: column; }
.quote-mark { font-family: var(--hb-serif-display); font-size: 72px; line-height: 0.6; color: var(--hb-accent); }
.card blockquote { margin: 18px 0 0; font-size: 20px; color: #E3DACA; flex: 1; }
.card figcaption { margin-top: 24px; font-family: var(--hb-sans); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--hb-text-muted); }

/* Buy ------------------------------------------------------------------- */
.buy { background: radial-gradient(55% 60% at 15% 50%, rgba(255, 214, 150, 0.11), transparent 70%), var(--hb-bg); }
.buy__cover { max-width: 300px; width: 100%; justify-self: center; }
.buy__cover img { box-shadow: 0 30px 90px var(--hb-glow), 0 0 0 1px rgba(241, 232, 216, 0.10); }
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 42px; }
.format { padding: 26px 22px; background: var(--hb-surface); border: 1px solid var(--hb-line); display: flex; flex-direction: column; }
.format__price { font-family: var(--hb-serif-display); font-size: 40px; line-height: 1.2; margin: 6px 0 20px; flex: 1; }
.format__price del { font-size: 0.6em; color: var(--hb-text-faint); margin-right: 8px; }
.format__price ins { text-decoration: none; }
.format__price .woocommerce-Price-currencySymbol { font-size: 0.7em; vertical-align: 0.25em; margin-right: 1px; }
.btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.buy__note { margin-top: 22px; font-size: 16px; color: var(--hb-text-muted); }
@media (max-width: 1060px) and (min-width: 861px) { .formats { grid-template-columns: 1fr; } .format { flex-direction: row; align-items: center; gap: 20px; } .format__price { margin: 0; } .format .btn { width: auto; padding: 0 22px; } }
@media (max-width: 640px) { .formats { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .buy__cover { max-width: 220px; } }

/* Newsletter ------------------------------------------------------------ */
.newsletter__inner { max-width: 680px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.newsletter .light-slit { width: 34px; height: 76px; margin: 0 0 44px; }
.newsletter .lead { margin-top: 20px; }
.subscribe { display: flex; align-items: flex-end; gap: 12px; width: 100%; margin-top: 36px; text-align: left; }
.subscribe__field { flex: 1; min-width: 0; }
.subscribe label { margin-bottom: 8px; }
.subscribe input[type="email"] {
	width: 100%; height: 54px; padding: 0 18px; border-radius: 0;
	background: var(--hb-surface); color: var(--hb-text); border: 1px solid rgba(241, 232, 216, 0.45);
	font-family: var(--hb-serif); font-size: 18px;
}
.subscribe input::placeholder { color: var(--hb-text-faint); }
.subscribe .btn { min-height: 54px; }
.subscribe__msg { margin-top: 16px; font-size: 15px; color: var(--hb-text-faint); }
@media (max-width: 560px) { .subscribe { flex-direction: column; align-items: stretch; } }

/* Footer ---------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--hb-line); padding-block: 48px 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 26px; }
.footer-nav a { display: block; padding: 10px 0; font-family: var(--hb-sans); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--hb-text-soft); }
.footer-nav a:hover { color: var(--hb-text); }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 40px;
	margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--hb-line);
	font-family: var(--hb-sans); font-size: 12px; letter-spacing: 0.1em; color: var(--hb-text-faint);
}
.site-footer__bottom a { text-decoration: none; }
.site-footer__bottom a:hover { color: var(--hb-text); }
@media (max-width: 560px) { .site-footer__bottom{justify-content: center; text-align: center;}
.wc-block-components-order-summary-item__description .wc-block-components-product-metadata .wc-block-components-product-metadata__description p{
	font-size:13px;
	}
}
/* Generic WordPress content (pages, posts, 404) ------------------------- */
.page-wrap { padding-block: clamp(48px, 7vw, 96px); }
.entry-header { margin-bottom: 36px; }
.entry-title { font-size: clamp(40px, 5vw, 64px); }
.entry-meta { margin-top: 12px; font-family: var(--hb-sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hb-text-muted); }
.entry-content { color: var(--hb-text-soft); font-size: 19px; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3 { color: var(--hb-text); margin-top: 1.6em; }
.entry-content h2 { font-size: 38px; }
.entry-content h3 { font-size: 30px; }
.entry-content a { color: var(--hb-text); text-decoration-color: var(--hb-accent); text-underline-offset: 3px; }
.entry-content blockquote { margin-inline: 0; padding-left: 22px; border-left: 2px solid var(--hb-accent); font-style: italic; }
.entry-content img, .entry-content figure { max-width: 100%; height: auto; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.post-list { display: grid; gap: 40px; }
.post-list article { padding-bottom: 40px; border-bottom: 1px solid var(--hb-line); }
.post-list h2 { font-size: 36px; }
.post-list h2 a { text-decoration: none; }
.pagination { margin-top: 48px; font-family: var(--hb-sans); letter-spacing: 0.15em; text-transform: uppercase; font-size: 13px; }
.pagination .page-numbers { padding: 8px 12px; text-decoration: none; }
.pagination .current { color: var(--hb-accent); }

