/*
Theme Name: Anthroparchies
Theme URI: https://on-tv.net
Author: Ioannis Ntizoglou
Description: Author website theme for the Anthroparchies saga. Dark navy and gold, with a Books section where every volume gets its own store buttons (Amazon Kindle, Paperback, Hardcover, Audiobook and other retailers).
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: anthroparchies
*/

:root {
	--bg: #0a0f1a;
	--bg-2: #0e1524;
	--panel: #121b2c;
	--panel-2: #172238;
	--line: rgba(212, 175, 106, .22);
	--line-soft: rgba(255, 255, 255, .08);
	--gold: #d4af6a;
	--gold-deep: #a8792f;
	--gold-light: #f3dfaa;
	--text: #ebe5d8;
	--muted: #a9a294;
	--display: "Cinzel", "Trajan Pro", Georgia, serif;
	--serif: "EB Garamond", Garamond, Georgia, serif;
	--radius: 4px;
	--wrap: 1180px;
	--shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--serif);
	font-size: 1.2rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; letter-spacing: .02em; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; background: var(--gold); color: #000; padding: 10px 16px; left: 10px; top: 10px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 780px; }

/* ---------- Gold type ---------- */
.gold-text {
	background: linear-gradient(180deg, #f8e7b8 0%, #e2bd76 45%, #b58237 75%, #e9c987 100%);
	-webkit-background-clip: text; background-clip: text;
	color: transparent;
}
.eyebrow {
	font-family: var(--display);
	font-size: .78rem;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 1rem;
	display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow::after { transform: scaleX(-1); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.2rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.section-head p { color: var(--muted); }

.divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 1.2rem auto; color: var(--gold); }
.divider::before, .divider::after { content: ""; height: 1px; width: 90px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { transform: scaleX(-1); }
.divider svg { width: 12px; height: 12px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font-family: var(--display); font-weight: 600;
	font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
	padding: 15px 28px; border-radius: var(--radius);
	border: 1px solid transparent; cursor: pointer;
	transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
	line-height: 1.2; text-align: center;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold {
	background: linear-gradient(180deg, #f1d695 0%, #d4a85a 55%, #b8873c 100%);
	color: #1a1206; border-color: #e6c27c;
	box-shadow: 0 10px 30px -10px rgba(212, 168, 90, .55);
}
.btn--gold:hover { color: #000; transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(212, 168, 90, .7); }
.btn--ghost { background: rgba(10, 15, 26, .35); color: var(--gold-light); border-color: var(--gold); }
.btn--ghost:hover { background: rgba(212, 175, 106, .12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(10, 15, 26, .82);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line-soft);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand .emblem { width: 52px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-size: 1.02rem; letter-spacing: .24em; text-transform: uppercase; }
.brand-tag { font-size: .85rem; font-style: italic; color: var(--muted); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
	display: block; padding: 10px 16px;
	font-family: var(--display); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
	color: var(--text); position: relative;
}
.main-nav a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-menu-ancestor > a { color: var(--gold-light); }
.main-nav a:hover::after, .main-nav .current-menu-item > a::after, .main-nav .current_page_item > a::after { transform: scaleX(1); }
.main-nav .sub-menu { display: none; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--gold); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 4px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-2); border-bottom: 1px solid var(--line); display: none; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; padding: 10px 16px 18px; }
	.main-nav a { padding: 14px 8px; border-bottom: 1px solid var(--line-soft); }
	.main-nav a::after { display: none; }
	.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
	.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
	.brand-tag { display: none; }
}

/* ---------- Emblem ---------- */
.emblem { color: var(--gold); }
.emblem text { font-family: var(--display); font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden;
	padding: clamp(60px, 9vw, 120px) 0 clamp(70px, 9vw, 130px);
	background: var(--bg);
}
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: .55; }
.hero__bg::after {
	content: ""; position: absolute; inset: 0;
	background:
		radial-gradient(ellipse at 75% 40%, rgba(240, 190, 100, .18), transparent 55%),
		linear-gradient(90deg, rgba(10, 15, 26, .97) 0%, rgba(10, 15, 26, .82) 45%, rgba(10, 15, 26, .45) 100%),
		linear-gradient(0deg, var(--bg) 0%, transparent 35%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 700; margin-bottom: .1em; letter-spacing: .03em; }
.hero__subtitle { font-family: var(--display); font-size: clamp(1.1rem, 2.2vw, 1.6rem); color: #f3ede1; letter-spacing: .08em; margin-bottom: 1.4rem; }
.hero__tagline { font-family: var(--display); font-size: .92rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.6rem; }
.hero__lead { font-size: 1.28rem; color: #d9d2c4; max-width: 560px; margin-bottom: 2.2rem; }
.hero__cover { position: relative; justify-self: center; max-width: 380px; width: 100%; }
.hero__cover::before { content: ""; position: absolute; inset: -12% -18%; background: radial-gradient(circle, rgba(232, 180, 90, .35), transparent 65%); filter: blur(10px); }
.hero__cover img { position: relative; border-radius: 3px; box-shadow: var(--shadow), 0 0 0 1px rgba(212, 175, 106, .35); transform: perspective(1200px) rotateY(-8deg); transition: transform .6s; }
.hero__cover:hover img { transform: perspective(1200px) rotateY(0); }
@media (max-width: 900px) {
	.hero .wrap { grid-template-columns: 1fr; text-align: center; gap: 44px; }
	.hero .btn-row { justify-content: center; }
	.hero__lead { margin-left: auto; margin-right: auto; }
	.hero__cover { max-width: 280px; }
	.hero__cover img { transform: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 9vw, 120px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* Featured book */
.feature { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.feature__cover img { box-shadow: var(--shadow), 0 0 0 1px rgba(212, 175, 106, .3); border-radius: 3px; }
.feature h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: .2em; }
.feature__meta { font-family: var(--display); font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; }
.opening-quote {
	border-left: 2px solid var(--gold); padding: 6px 0 6px 24px; margin: 0 0 1.6rem;
	font-size: 1.45rem; font-style: italic; color: #f3ede1; line-height: 1.45;
}
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 40px; } .feature__cover { max-width: 280px; margin: 0 auto; } }

/* Buy panel */
.buy { margin-top: 1.8rem; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(180deg, rgba(23, 34, 56, .75), rgba(14, 21, 36, .75)); padding: 26px; }
.buy__title { font-family: var(--display); font-size: .82rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.buy__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.buy__formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.format-btn {
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
	padding: 14px 16px; border-radius: var(--radius);
	background: linear-gradient(180deg, #f1d695 0%, #d4a85a 60%, #bb8a3f 100%);
	color: #1a1206; border: 1px solid #e6c27c;
	transition: transform .2s, box-shadow .2s;
}
.format-btn:hover { color: #000; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(212, 168, 90, .7); }
.format-btn__top { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.format-btn__top svg { width: 18px; height: 18px; }
.format-btn__sub { font-size: .9rem; opacity: .8; }
.buy__stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.store-btn { padding: 10px 18px; border: 1px solid var(--line); border-radius: 40px; font-size: 1rem; color: var(--text); background: rgba(255, 255, 255, .02); }
.store-btn:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(212, 175, 106, .08); }
.buy__group + .buy__group { margin-top: 22px; }
.buy--soon { text-align: center; color: var(--muted); }
.buy--soon strong { display: block; font-family: var(--display); color: var(--gold-light); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }

/* Name / meaning */
.meaning { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.meaning__word { padding: 44px; background: radial-gradient(circle at 30% 20%, rgba(212, 175, 106, .12), transparent 60%), var(--panel); border-right: 1px solid var(--line); }
.meaning__word .greek { font-size: 2.2rem; color: var(--gold-light); font-style: italic; line-height: 1.2; margin-bottom: .2em; }
.meaning__word .gloss { color: var(--muted); margin-bottom: 1.4em; }
.meaning__def { padding: 44px; background: var(--bg-2); }
.meaning__def h3 { font-size: 1.5rem; }
.pronounce { font-family: var(--display); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 800px) { .meaning { grid-template-columns: 1fr; } .meaning__word { border-right: 0; border-bottom: 1px solid var(--line); } .meaning__word, .meaning__def { padding: 30px 24px; } }

/* Journey / arcs */
.arcs { position: relative; max-width: 900px; margin: 0 auto; }
.arcs::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(180deg, transparent, var(--gold) 10%, var(--gold) 90%, transparent); }
.arc { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 28px; padding: 0 0 38px; }
.arc:last-child { padding-bottom: 0; }
.arc__dot {
	width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold); background: var(--bg);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--display); font-size: .78rem; color: var(--gold-light); letter-spacing: .04em; position: relative; z-index: 1;
	box-shadow: 0 0 0 6px var(--bg);
}
.arc__vols { font-family: var(--display); font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.arc h3 { font-size: 1.45rem; margin-bottom: .35em; }
.arc p { color: #cfc8ba; margin: 0; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.principle { border: 1px solid var(--line); border-radius: 6px; padding: 34px 30px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); position: relative; }
.principle__num { font-family: var(--display); font-size: 2.6rem; font-weight: 700; line-height: 1; margin-bottom: .3em; }
.principle__greek { font-style: italic; color: var(--gold-light); font-size: 1.15rem; }
.principle h3 { font-size: 1.3rem; margin: .2em 0 .7em; }
.principle blockquote { margin: 0 0 1em; font-style: italic; color: #e5dfd2; }
.principle__asks { font-size: 1rem; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 14px; margin: 0; }
.principle__asks strong { color: var(--gold); font-family: var(--display); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; display: block; font-weight: 600; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr; } }

/* Saga grid */
.saga-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 34px 26px; }
.book-card { display: block; color: var(--text); }
.book-card:hover { color: var(--text); }
.book-card__cover { position: relative; aspect-ratio: 2 / 3; border-radius: 3px; overflow: hidden; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(212, 175, 106, .2); transition: transform .3s, box-shadow .3s; background: var(--panel); }
.book-card:hover .book-card__cover { transform: translateY(-6px); box-shadow: 0 28px 50px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(212, 175, 106, .6); }
.book-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card__vol { font-family: var(--display); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 16px 0 2px; }
.book-card__title { font-family: var(--display); font-size: 1.02rem; line-height: 1.3; margin: 0; }
.badge { position: absolute; top: 10px; left: 10px; font-family: var(--display); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; padding: 5px 9px; border-radius: 2px; background: rgba(10, 15, 26, .85); color: var(--gold-light); border: 1px solid var(--line); }
.badge--new { background: linear-gradient(180deg, #f1d695, #c9974a); color: #1a1206; border-color: #e6c27c; }
.placeholder-cover {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px;
	background:
		radial-gradient(ellipse at 50% 30%, rgba(212, 175, 106, .14), transparent 60%),
		repeating-linear-gradient(135deg, rgba(255, 255, 255, .015) 0 2px, transparent 2px 9px),
		linear-gradient(180deg, #131d31, #0b111d);
}
.placeholder-cover::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); }
.placeholder-cover .emblem { width: 70px; height: 60px; opacity: .8; margin-bottom: 10px; }
.placeholder-cover__num { font-family: var(--display); font-size: 1.9rem; font-weight: 700; }
.placeholder-cover__soon { font-family: var(--display); font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.book-card--soon .book-card__title { color: var(--muted); }
.book-card--soon { cursor: default; }
.book-card--soon:hover .book-card__cover { transform: none; }
@media (max-width: 520px) { .saga-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; } }

/* Author */
.author { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; }
.author__photo { position: relative; }
.author__photo img { border-radius: 50%; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--gold); padding: 8px; background: var(--bg); }
.author__photo::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1px dashed rgba(212, 175, 106, .3); }
.author h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
@media (max-width: 860px) { .author { grid-template-columns: 1fr; text-align: center; gap: 40px; } .author__photo { max-width: 230px; margin: 0 auto; } .author .btn-row { justify-content: center; } }

/* Closing band */
.closing { text-align: center; padding: clamp(80px, 10vw, 130px) 0; position: relative; overflow: hidden; }
.closing__bg { position: absolute; inset: 0; background-size: cover; background-position: center 60%; opacity: .25; }
.closing__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg), rgba(10, 15, 26, .6) 50%, var(--bg)); }
.closing .wrap { position: relative; }
.closing p.big { font-family: var(--display); font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.35; margin-bottom: 2rem; }

/* ---------- Page header ---------- */
.page-hero { padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 5vw, 60px); text-align: center; border-bottom: 1px solid var(--line-soft); background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 106, .12), transparent 60%), var(--bg); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 1rem auto 0; }

/* ---------- Content ---------- */
.entry-content { font-size: 1.22rem; }
.entry-content h2 { font-size: 1.8rem; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.35rem; margin-top: 1.6em; color: var(--gold-light); }
.entry-content blockquote { border-left: 2px solid var(--gold); margin: 1.6em 0; padding: 4px 0 4px 24px; font-style: italic; color: #f0eadc; font-size: 1.35rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content img { border-radius: 4px; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }

/* About layout */
.about-layout { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
.about-layout__side { position: sticky; top: 110px; text-align: center; }
.about-layout__side .author__photo { margin-bottom: 30px; }
.about-layout__name { font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; font-size: 1rem; margin-bottom: .2em; }
.about-layout__role { color: var(--muted); font-style: italic; }
@media (max-width: 860px) { .about-layout { grid-template-columns: 1fr; gap: 30px; } .about-layout__side { position: static; max-width: 260px; margin: 0 auto; } }

/* Single book */
.book-single { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
.book-single__cover { position: sticky; top: 110px; }
.book-single__cover img { box-shadow: var(--shadow), 0 0 0 1px rgba(212, 175, 106, .3); border-radius: 3px; }
.book-single h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: .15em; }
.book-single__series { font-family: var(--display); letter-spacing: .24em; text-transform: uppercase; font-size: .8rem; color: var(--gold); margin-bottom: .6rem; }
.book-single__tagline { font-family: var(--display); color: var(--gold-light); letter-spacing: .08em; font-size: 1.05rem; margin-bottom: 1.4rem; }
.book-single__details { display: flex; flex-wrap: wrap; gap: 8px 26px; color: var(--muted); font-size: 1rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.book-single__details strong { color: var(--text); font-weight: 500; }
.sample { margin-top: 3.5rem; border-top: 1px solid var(--line); padding-top: 2.6rem; }
.sample h2 { font-size: 1.6rem; }
.sample__text { position: relative; max-height: 520px; overflow: hidden; }
.sample__text.is-open { max-height: none; }
.sample__text:not(.is-open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(transparent, var(--bg)); }
.sample__text p { margin-bottom: .7em; }
.sample__chapter { font-family: var(--display); color: var(--gold-light); font-size: 1.3rem; margin-bottom: 1rem; }
.book-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line-soft); }
.book-nav a { font-family: var(--display); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 900px) { .book-single { grid-template-columns: 1fr; gap: 40px; } .book-single__cover { position: static; max-width: 300px; margin: 0 auto; } }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.contact-card { border: 1px solid var(--line); border-radius: 6px; padding: 34px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.form-row { margin-bottom: 18px; }
.form-row--half { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; font-family: var(--display); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.contact-form input, .contact-form textarea, .contact-form select {
	width: 100%; font: inherit; font-size: 1.1rem; color: var(--text);
	background: rgba(5, 9, 16, .6); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px;
	transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 106, .15); }
.contact-form textarea { min-height: 180px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; }
.notice { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 22px; border: 1px solid; }
.notice--ok { border-color: rgba(120, 200, 140, .5); background: rgba(60, 140, 80, .12); color: #cfe9d4; }
.notice--err { border-color: rgba(220, 110, 100, .5); background: rgba(160, 60, 50, .14); color: #f1d0cc; }
.contact-info { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.contact-info li { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.contact-info strong { display: block; font-family: var(--display); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: 40px; } .form-row--half { grid-template-columns: 1fr; } .contact-card { padding: 24px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #070b13; padding: 64px 0 34px; text-align: center; }
.site-footer .emblem { width: 90px; height: 76px; margin: 0 auto 10px; }
.footer-name { font-family: var(--display); letter-spacing: .32em; text-transform: uppercase; font-size: 1.05rem; margin-bottom: .4rem; }
.footer-tag { color: var(--muted); font-style: italic; margin-bottom: 1.8rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; }
.footer-nav a { font-family: var(--display); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text); }
.footer-nav a:hover { color: var(--gold-light); }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 2rem; }
.socials a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 30px; font-size: .95rem; color: var(--muted); }
.socials a:hover { color: var(--gold-light); border-color: var(--gold); }
.copyright { font-size: .92rem; color: #6f6a61; margin: 0; padding-top: 24px; border-top: 1px solid var(--line-soft); }

/* WP core bits */
.alignwide { max-width: 1000px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: .9rem; color: var(--muted); }
.pagination { margin-top: 3rem; text-align: center; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); margin: 0 3px; border-radius: 3px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.no-js .reveal { opacity: 1; transform: none; }
.page-hero .emblem { width: 110px; height: 92px; margin: 0 auto 18px; display: block; }
.entry-content .btn { text-decoration: none; }
@media (max-width: 900px) { .feature__cover { display: none; } }
.entry-content .book-card { text-decoration: none; }
.saga-shortcode { margin: 2.4rem 0; }

/* Emblem sizes (square artwork) */
.brand .emblem { width: 50px; height: 50px; }
.site-footer .emblem { width: 100px; height: 100px; }
.placeholder-cover .emblem { width: 72px; height: 72px; }
.page-hero .emblem { width: 120px; height: 120px; }

/* Volume poster */
.vposter { margin-top: 3.5rem; border-top: 1px solid var(--line); padding-top: 2.6rem; }
.vposter__title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 1.4rem; }
.vposter__frame { position: relative; display: block; max-width: 720px; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px rgba(212, 175, 106, .35); cursor: zoom-in; }
.vposter__frame img { width: 100%; transition: transform .5s ease; }
.vposter__frame:hover img { transform: scale(1.015); }
.vposter__zoom { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 3px; background: rgba(10, 15, 26, .82); border: 1px solid var(--line); color: var(--gold-light); font-family: var(--display); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.vposter__zoom svg { width: 16px; height: 16px; }
.lb-inline { display: inline-block; cursor: zoom-in; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 10000; background: rgba(5, 8, 14, .94); display: none; }
.lb.is-open { display: block; }
.lb__stage { position: absolute; inset: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 56px 16px 48px; }
.lb__img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); user-select: none; -webkit-user-drag: none; }
.lb.is-zoomed .lb__stage { overflow: auto; display: block; padding: 0; cursor: grab; }
.lb.is-zoomed .lb__img { max-width: none; max-height: none; width: auto; height: auto; cursor: zoom-out; margin: 0 auto; display: block; }
.lb__close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10, 15, 26, .8); color: var(--gold-light); font-size: 28px; line-height: 1; cursor: pointer; }
.lb__close:hover { background: rgba(212, 175, 106, .15); }
.lb__hint { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; color: var(--muted); font-size: .95rem; pointer-events: none; }
.lb.is-zoomed .lb__hint { background: rgba(5, 8, 14, .7); padding: 6px; }
html.lb-lock, html.lb-lock body { overflow: hidden; }

/* Character index */
.cindex { margin-top: 3.5rem; border-top: 1px solid var(--line); padding-top: 2.6rem; }
.cindex__title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .4rem; }
.cindex__count { display: block; margin-top: 6px; font-family: var(--serif); font-size: 1.05rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.cindex__scope { color: var(--muted); font-style: italic; margin: 0 0 1rem; }
.cindex__search input { width: 100%; max-width: 380px; font: inherit; font-size: 1.05rem; color: var(--text); background: rgba(5, 9, 16, .6); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 14px; margin: .6rem 0 1.4rem; }
.cindex__search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 106, .15); }
.cindex__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cindex__item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: 6px; background: linear-gradient(180deg, rgba(23, 34, 56, .55), rgba(14, 21, 36, .55)); }
.cindex__num { font-family: var(--display); color: var(--gold); font-size: .9rem; padding-top: 3px; }
.cindex__name { font-family: var(--display); font-size: 1.08rem; color: var(--gold-light); margin: 0 0 2px; letter-spacing: .03em; }
.cindex__first { font-size: .92rem; color: var(--muted); font-style: italic; margin: 0 0 6px; }
.cindex__role { font-size: 1.02rem; line-height: 1.55; margin: 0; color: #d9d2c4; }
.cindex__list.is-collapsed:not(.is-searching) .is-extra { display: none; }
.cindex__item.is-hidden { display: none; }
.cindex__more { margin-top: 1.2rem; }
.cindex__none { color: var(--muted); }
.cindex__notes { margin-top: 1.6rem; font-size: 1rem; color: var(--muted); border-left: 2px solid var(--gold); padding-left: 14px; }
@media (max-width: 760px) { .cindex__list { grid-template-columns: 1fr; } }
.cindex__age { display: inline-block; margin: 2px 0 6px; padding: 1px 10px; border: 1px solid var(--line); border-radius: 20px; font-family: var(--serif); font-size: .92rem; letter-spacing: .02em; color: var(--gold); }

/* ---------------------------------------------------------------------------
 * Volumes & editions (complete edition + parts)
 * ------------------------------------------------------------------------ */
.saga-grid--volumes { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 44px 30px; align-items: start; }
.volume-card { display: flex; flex-direction: column; }
.volume-card__link { display: block; color: var(--text); }
.volume-card__link:hover { color: var(--text); }
.volume-card__link:hover .book-card__cover { transform: translateY(-6px); box-shadow: 0 28px 50px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(212, 175, 106, .6); }
.volume-card .book-card__cover { overflow: visible; }
.volume-card .book-card__cover > img { border-radius: 3px; position: relative; z-index: 1; }
.volume-card .book-card__cover > .placeholder-cover { border-radius: 3px; overflow: hidden; z-index: 1; }
.volume-card .book-card__cover { background: transparent; }
.volume-card .book-card__cover > .badge { z-index: 2; }
/* Split volumes look like a small stack of books */
.volume-card--split .book-card__cover::before,
.volume-card--split .book-card__cover::after {
	content: ""; position: absolute; inset: 0; border-radius: 3px;
	background: var(--panel-2); border: 1px solid var(--line);
	transform: translate(7px, -7px); z-index: 0;
}
.volume-card--split .book-card__cover::after { transform: translate(14px, -14px); opacity: .55; z-index: -1; }
.volume-card__count {
	position: absolute; right: 8px; bottom: 8px; z-index: 2;
	font-family: var(--display); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
	padding: 5px 8px; border-radius: 2px; background: rgba(10, 15, 26, .88); color: var(--gold-light); border: 1px solid var(--gold);
}

/* Edition chooser under each split-volume card */
.editions { margin-top: 14px; font-size: .95rem; }
.editions__single { margin: 0; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--muted); font-style: italic; }
.editions--split {
	padding: 14px 12px 12px; border: 1px solid var(--line); border-radius: 6px;
	background: linear-gradient(180deg, rgba(23, 34, 56, .75), rgba(14, 21, 36, .75));
}
.editions__heading { margin: 0 0 10px; text-align: center; font-family: var(--display); font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.editions__whole {
	position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%;
	padding: 9px 10px; border: 1px solid var(--gold); border-radius: var(--radius); text-align: center;
	background: linear-gradient(180deg, rgba(241, 214, 149, .16), rgba(201, 151, 74, .08)); color: var(--gold-light);
	transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.editions__whole span { font-family: var(--display); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.editions__whole small { font-size: .82rem; color: var(--muted); font-style: italic; }
.editions__whole::after { /* shimmer sweep on hover */
	content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255, 236, 190, .35), transparent); transform: skewX(-18deg); transition: left .6s ease;
}
a.editions__whole:hover { color: #fff; transform: translateY(-2px); background: linear-gradient(180deg, rgba(241, 214, 149, .28), rgba(201, 151, 74, .14)); box-shadow: 0 0 0 1px var(--gold-light), 0 0 18px rgba(212, 175, 106, .55), 0 10px 22px -10px rgba(0, 0, 0, .8); }
a.editions__whole:hover::after { left: 120%; }
.editions__whole.is-soon { border-color: var(--line); border-style: dashed; background: none; color: var(--muted); }
.editions__or { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; color: var(--gold); font-style: italic; font-size: .9rem; white-space: nowrap; }
.editions__or::before, .editions__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.editions__parts { --cols: 3; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 6px; }
.editions__parts li { margin: 0; padding: 0; }
.editions__parts li::before { content: none; }
.part-tile {
	display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 5px 2px;
	border: 1px solid rgba(212, 175, 106, .45); border-radius: var(--radius); background: rgba(10, 15, 26, .6); color: var(--gold-light);
	text-align: center; line-height: 1; transition: transform .22s, border-color .22s, box-shadow .22s, background .22s, color .22s;
}
.part-tile__label { font-family: var(--display); font-size: .54rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .22s; }
.part-tile__num { font-family: var(--display); font-size: 1.15rem; font-weight: 700; margin-top: 4px; }
a.part-tile:hover, a.part-tile:focus-visible {
	color: #1a1206; border-color: var(--gold-light); transform: translateY(-3px);
	background: linear-gradient(180deg, #f1d695, #c9974a);
	box-shadow: 0 0 0 1px rgba(243, 223, 170, .6), 0 0 16px rgba(212, 175, 106, .7), 0 8px 18px -8px rgba(0, 0, 0, .9);
	outline: none;
}
a.part-tile:hover .part-tile__label, a.part-tile:focus-visible .part-tile__label { color: #3a2a10; }
.part-tile.is-soon { border-style: dashed; border-color: var(--line); color: var(--muted); background: transparent; }
a.part-tile.is-soon:hover { background: rgba(212, 175, 106, .1); color: var(--gold-light); box-shadow: 0 0 12px rgba(212, 175, 106, .3); }
@media (prefers-reduced-motion: reduce) { .part-tile, .editions__whole, .editions__whole::after { transition: none; } a.part-tile:hover, a.editions__whole:hover { transform: none; } }

/* "Two ways to read" message */
.editions-callout {
	display: flex; align-items: center; gap: 22px; max-width: 760px; margin: 3.2rem auto 0; padding: 22px 28px;
	border: 1px solid var(--gold); border-left-width: 4px; border-radius: 6px;
	background: radial-gradient(ellipse at 0% 50%, rgba(212, 175, 106, .16), transparent 70%), rgba(18, 27, 44, .85);
	box-shadow: 0 0 30px -8px rgba(212, 175, 106, .35);
}
.editions-callout__icon { flex: 0 0 54px; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-light); background: rgba(10, 15, 26, .6); }
.editions-callout__icon svg { width: 26px; height: 26px; }
.editions-callout__title { margin: 0 0 4px; font-family: var(--display); font-size: 1.02rem; font-weight: 600; letter-spacing: .08em; color: var(--gold-light); }
.editions-callout__text { margin: 0; font-size: 1.08rem; color: var(--text); }
.editions-callout__text strong { color: var(--gold-light); font-weight: 600; }

/* Forthcoming volumes toggle (a button) */
.anth-forthcoming { margin-top: 2.6rem; }
.anth-forthcoming > summary.forthcoming-btn {
	display: flex; align-items: center; justify-content: center; gap: 18px; width: fit-content; max-width: 100%;
	margin: 0 auto; padding: 14px 18px 14px 30px; cursor: pointer; list-style: none; user-select: none;
	border: 1px solid var(--gold-light); border-radius: 999px; color: #1a1206;
	background: linear-gradient(180deg, #f1d695, #c9974a);
	box-shadow: 0 12px 30px -12px rgba(212, 168, 90, .7);
	transition: transform .25s, box-shadow .25s, filter .25s;
}
.anth-forthcoming > summary::marker { content: ""; }
.anth-forthcoming > summary::-webkit-details-marker { display: none; }
.anth-forthcoming > summary::after { content: none; }
.anth-forthcoming > summary.forthcoming-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 0 0 1px var(--gold-light), 0 0 26px rgba(212, 175, 106, .6), 0 16px 34px -12px rgba(212, 168, 90, .8); }
.anth-forthcoming > summary.forthcoming-btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.forthcoming-btn__text { display: flex; flex-direction: column; text-align: left; }
.forthcoming-btn__title { font-family: var(--display); font-weight: 700; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; }
.forthcoming-btn__meta { font-size: .95rem; color: #3a2a10; margin-top: 2px; }
.forthcoming-btn__chev { flex: 0 0 38px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(26, 18, 6, .88); color: var(--gold-light); transition: transform .3s; }
.forthcoming-btn__chev svg { width: 20px; height: 20px; }
.anth-forthcoming[open] > summary .forthcoming-btn__chev { transform: rotate(180deg); }
.anth-forthcoming .saga-grid { margin-top: 2.6rem; }
@media (max-width: 520px) {
	.editions-callout { flex-direction: column; text-align: center; gap: 12px; padding: 20px; border-left-width: 1px; border-top-width: 4px; }
	.anth-forthcoming > summary.forthcoming-btn { width: 100%; border-radius: 12px; padding: 14px 14px 14px 20px; gap: 12px; justify-content: space-between; }
	.forthcoming-btn__title { letter-spacing: .1em; }
	.forthcoming-btn__title { font-size: .78rem; }
	.editions--split { padding: 12px 8px 10px; }
	.part-tile { min-height: 44px; }
	.part-tile__label { font-size: .48rem; letter-spacing: .14em; }
}

/* "Choose your edition" panel on a book page */
.editions-panel { margin: 0 0 2rem; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18, 27, 44, .55); }
.editions-panel__group { font-family: var(--display); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.editions-panel__or { display: flex; align-items: center; gap: 14px; margin: 16px 0; color: var(--gold); font-style: italic; }
.editions-panel__or::before, .editions-panel__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.editions-panel__note { margin: 14px 0 0; color: var(--muted); font-size: .95rem; font-style: italic; }
.edition-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.edition-row {
	display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center;
	padding: 8px 12px 8px 8px; border: 1px solid var(--line-soft); border-radius: var(--radius); color: var(--text);
	transition: border-color .2s, background .2s;
}
.edition-row { position: relative; }
.edition-row:has(.edition-row__link:hover) { border-color: var(--gold); background: rgba(212, 175, 106, .06); }
.edition-row__link { color: var(--text); }
.edition-row__link::after { content: ""; position: absolute; inset: 0; } /* whole row opens the book page */
.edition-row__link:hover { color: var(--gold-light); }
.edition-row__buy {
	position: relative; z-index: 1; white-space: nowrap;
	font-family: var(--display); font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	padding: 9px 14px; border-radius: var(--radius); border: 1px solid #e6c27c; color: #1a1206;
	background: linear-gradient(180deg, #f1d695, #c9974a); transition: transform .2s, box-shadow .2s, filter .2s;
}
.edition-row__buy.is-disabled { background: none; border: 1px dashed var(--line); color: var(--muted); cursor: default; }
.buy-anchor { scroll-margin-top: 120px; }
a.edition-row__buy:hover, a.edition-row__buy:focus-visible { color: #1a1206; transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 0 0 1px var(--gold-light), 0 0 16px rgba(212, 175, 106, .6); outline: none; }
.edition-row.is-current { border-color: var(--gold); background: rgba(212, 175, 106, .1); }
.edition-row.is-soon:not(.is-current) { opacity: .7; }
.edition-thumb { width: 46px; aspect-ratio: 2 / 3; border-radius: 2px; overflow: hidden; display: block; box-shadow: 0 0 0 1px var(--line); }
.edition-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edition-thumb--empty { display: flex; align-items: center; justify-content: center; background: var(--panel-2); font-family: var(--display); font-size: .8rem; }
.edition-row__body { display: flex; flex-direction: column; min-width: 0; }
.edition-row__kicker { font-family: var(--display); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.edition-row__title { font-family: var(--display); font-size: .98rem; line-height: 1.3; }
.edition-row__meta { color: var(--muted); font-size: .92rem; }
.edition-row__status { font-family: var(--display); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); white-space: nowrap; }
.edition-row.is-soon .edition-row__status { color: var(--muted); }
.buy__heading { font-family: var(--display); font-size: .82rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 10px; }
@media (max-width: 520px) {
	.saga-grid--volumes { grid-template-columns: repeat(2, 1fr); gap: 34px 18px; }
	.edition-row { grid-template-columns: 40px 1fr; }
	.edition-row__status, .edition-row__buy { grid-column: 2; justify-self: start; }
	.volume-card--split .book-card__cover::after { display: none; }
}
