/*
Theme Name: Lyra Lorne
Author: Seth McLean
Version: 1.0.0
*/

/* ══════════════════════════════════════════════
   FONTS
══════════════════════════════════════════════ */

@font-face {
	font-family: 'LeGrand';
	src: url('fonts/legrand-regular.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Lato';
	src: url('fonts/lato-regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Lato';
	src: url('fonts/lato-bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Lato';
	src: url('fonts/lato-italic.woff2') format('woff2');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Lato';
	src: url('fonts/lato-bold-italic.woff2') format('woff2');
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

/* ══════════════════════════════════════════════
   CSS CUSTOM PROPERTIES (defaults; overridden by inline style in <head>)
══════════════════════════════════════════════ */

:root {
	--color-primary:         #2a4a1a;
	--color-secondary:       #4a7a28;
	--color-accent:          #f9f2bb;
	--hero-overlay-opacity-left:   91%;
	--hero-overlay-opacity-right:  80%;
	--color-bg:        #f5f5f0;
	--color-white:     #ffffff;
	--color-black:     #000000;
	--color-dark:      #182a0f;
	--font-heading:    'LeGrand', Georgia, serif;
	--font-body:       'Lato', system-ui, sans-serif;
	--nav-height:      60px;
	--top-bar-height:  44px;
	--max-width:       1200px;
	--gutter:          1.25rem;

	/* Drop shadow — offset, color and alpha are overridable via the Customizer
	   (see ll_output_color_vars). Blur is fixed. */
	--shadow-offset-x: 0.5em;
	--shadow-offset-y: 0.5em;
	--shadow-color:    #000000;
	--shadow-alpha:    65%;
	--drop-shadow:     drop-shadow(var(--shadow-offset-x) var(--shadow-offset-y) 0.35em color-mix(in srgb, var(--shadow-color) var(--shadow-alpha), transparent));
}

/* ══════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
	font-family: var(--font-body);
	background-color: var(--color-bg);
	color: var(--color-black);
	line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	line-height: 1.2;
	font-weight: normal;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

/* ══════════════════════════════════════════════
   LAYOUT UTILITIES
══════════════════════════════════════════════ */

.container {
	width: 100%;
	max-width: var(--max-width);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
}

/* Reusable drop-shadow (offset ~half an em down/right, softly darkened).
   Uses filter rather than box-shadow so it follows the alpha shape — works
   on rectangular book covers and the transparent signature SVG alike.
   On grid cards it's applied to .book-card__cover (the container) rather than
   the <img>, because the cover's `overflow: hidden` (which clips the hover
   zoom) would otherwise clip the offset shadow off the image. */
.drop-shadow,
.book-card__cover,
.single-book__cover img,
.featured-book__cover img {
	filter: var(--drop-shadow);
}

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */

.btn, .contact-form input.btn {
	display: inline-block;
	padding: 0.6em 1.4em;
	background-color: var(--color-secondary);
	color: var(--color-white);
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s;
}
.btn:hover { background-color: var(--color-primary); text-decoration: none; color: var(--color-white); }
.btn--outline {
	background: transparent;
	border: 2px solid var(--color-white);
	color: var(--color-white);
}
.btn--outline:hover { background: var(--color-white); color: var(--color-primary); }

/* ══════════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════════ */

.top-bar {
	background-color: var(--color-dark);
	height: var(--top-bar-height);
	display: flex;
	align-items: center;
}
.top-bar .container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	position: relative;
}
.top-bar__social { display: flex; align-items: center; gap: 1rem; }
.top-bar__social a {
	color: var(--color-white);
	font-size: 1.1rem;
	transition: color 0.2s;
}
.top-bar__social a:hover { color: var(--color-accent); text-decoration: none; }

.top-bar__search-form {
	position: absolute;
	right: var(--gutter);
	display: none; /* below 768px the search lives in the hamburger menu instead */
	align-items: center;
}
.top-bar__search-form input[type="search"] {
	background: transparent;
	border: none;
	border-bottom: 1px solid rgba(255,255,255,0.35);
	color: rgba(255,255,255,0.6);
	font-family: var(--font-body);
	font-size: 0.85rem;
	padding: 0.2em 0.4em;
	width: 150px;
	outline: none;
}
.top-bar__search-form input::placeholder { color: rgba(255,255,255,0.4); }
.top-bar__search-form button[type="submit"] {
	background: none;
	border: none;
	color: rgba(255,255,255,0.5);
	cursor: pointer;
	font-size: 0.9rem;
	padding: 0 0 0 0.5rem;
	line-height: 1;
}
.top-bar__search-form button[type="submit"]:hover { color: var(--color-accent); }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */

.site-hero {
	position: relative;
	background-image: url('images/hero.jpg');
	background-size: cover;
	background-position-x: center;
	background-position-y: top 0px;
	min-height: 260px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}
.site-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		color-mix(in srgb, var(--color-primary) var(--hero-overlay-opacity-left), transparent),
		color-mix(in srgb, var(--color-secondary) var(--hero-overlay-opacity-right), transparent)
	);
}
.site-title {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem var(--gutter);
}
.site-title a {
	display: block;
	text-decoration: none;
	line-height: 0;
}
.site-title__signature {
	display: block;
	width: clamp(220px, 38vw, 460px);
	height: auto;
	fill: var(--color-signature);
}

@media (min-width: 768px) {
	.site-hero { min-height: 320px; }
}
@media (min-width: 1024px) {
	.site-hero { min-height: 400px; }
}
@media (min-width: 1200px) {
	.site-hero { min-height: 460px; }
}

/* ══════════════════════════════════════════════
   PRIMARY NAV
══════════════════════════════════════════════ */

.primary-nav {
	position: relative;
	z-index: 2;
}

/* Hamburger */
.nav-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 var(--gutter);
	height: var(--nav-height);
}
.nav-hamburger {
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 6px;
}
.nav-hamburger span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--color-white);
	transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-menu-wrapper {
	display: none;
	background-color: var(--color-primary);
}
.nav-menu-wrapper.is-open { display: block; }

/* Mobile: search above the menu (mirrors the top-bar search, which is hidden
   below 768px). Hidden again at ≥768px where the top-bar search returns. */
.nav-search {
	display: flex;
	align-items: center;
	padding: 0.75rem 1.5rem;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-search input[type="search"] {
	flex: 1;
	min-width: 0;
	background: transparent;
	border: none;
	border-bottom: 1px solid rgba(255,255,255,0.35);
	color: rgba(255,255,255,0.85);
	font-family: var(--font-body);
	font-size: 1rem; /* 16px — keeps iOS Safari from auto-zooming on focus */
	padding: 0.3em 0.4em;
	outline: none;
}
.nav-search input::placeholder { color: rgba(255,255,255,0.5); }
.nav-search button[type="submit"] {
	background: none;
	border: none;
	color: rgba(255,255,255,0.6);
	cursor: pointer;
	font-size: 0.95rem;
	padding: 0 0 0 0.75rem;
	line-height: 1;
}
.nav-search button[type="submit"]:hover { color: var(--color-accent); }

.primary-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.primary-nav ul li {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}
.primary-nav ul li > a { flex: 1; }
.primary-nav ul li > ul { flex-basis: 100%; }

/* Mobile: flat list */
.primary-nav ul a {
	display: block;
	color: var(--color-white);
	font-family: var(--font-body);
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.9rem 1.5rem;
	border-bottom: 1px solid rgba(255,255,255,0.1);
	transition: background-color 0.2s;
}
.primary-nav ul a:hover { background-color: var(--color-secondary); text-decoration: none; }
.primary-nav ul ul { background-color: rgba(0,0,0,0.2); display: none; }
.primary-nav ul ul.submenu-open { display: block; }
.primary-nav ul ul a { padding-left: 2.5rem; font-size: 0.85rem; }
.primary-nav ul ul ul a { padding-left: 4rem; }
.primary-nav ul ul ul ul a { padding-left: 5.5rem; }

/* Mobile: submenu toggle button — flex sibling of <a>, never overlaid */
.submenu-toggle {
	flex-shrink: 0;
	width: 48px;
	background: none;
	border: none;
	border-left: 1px solid rgba(255,255,255,0.15);
	border-bottom: 1px solid rgba(255,255,255,0.1);
	color: var(--color-white);
	cursor: pointer;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s;
}
.submenu-toggle:hover { background: rgba(255,255,255,0.15); }

/* Desktop nav */
@media (min-width: 768px) {
	/* Spacer after the nav — mirrors the flex:1 on .site-title so the nav
	   sits halfway between the title and the bottom of the hero. */
	.site-hero::before {
		content: '';
		flex: 1;
		order: 1;
	}

	.nav-toggle { display: none; }
	.nav-menu-wrapper {
		display: block !important;
		background: transparent;
	}

	/* Search moves back to the top bar; hide the in-menu copy. */
	.top-bar__search-form { display: flex; }
	.nav-search { display: none; }
	.primary-nav > .container { padding: 0; }
	.primary-nav ul.menu {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		padding-block: 0.5rem;
	}
	.primary-nav ul.menu > li > a {
		display: flex;
		align-items: center;
		padding: 0.6rem 1.25rem;
		border-bottom: none;
		font-size: 0.85rem;
	}
	.primary-nav ul.menu > li:hover > a,
	.primary-nav ul.menu > li.current-menu-item > a { background-color: rgba(0,0,0,0.3); }

	/* Hide mobile-only elements */
	.submenu-toggle { display: none; }
	.primary-nav .menu-item-has-children > a { padding-right: 1.25rem; }

	/* Dropdowns — shared base */
	.primary-nav ul ul {
		display: block;
		position: absolute;
		min-width: 200px;
		background-color: var(--color-primary);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.2s, transform 0.2s;
		box-shadow: 0 4px 16px rgba(0,0,0,0.3);
		z-index: 200;
	}
	/* First-level: drops below the nav bar */
	.primary-nav ul.menu > li > ul {
		top: 100%;
		left: 0;
		transform: translateY(-6px);
	}
	/* Second-level and deeper: flies out to the right */
	.primary-nav ul ul ul {
		top: 0;
		left: 100%;
		transform: translateX(-6px);
	}
	.primary-nav ul li:hover > ul,
	.primary-nav ul li.submenu-open > ul {
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}
	.primary-nav ul ul a,
	.primary-nav ul ul ul a,
	.primary-nav ul ul ul ul a {
		padding: 0.75rem 1.25rem;
		border-bottom: 1px solid rgba(255,255,255,0.08);
		font-size: 0.85rem;
	}
	.primary-nav ul ul li:last-child a { border-bottom: none; }
}

ul.no-bullets {
	list-style: none;
}

/* ══════════════════════════════════════════════
   PAGE CONTENT WRAPPER
══════════════════════════════════════════════ */

.site-content { padding-block: 3rem; }

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-bottom: 0.75rem; margin-top: 1.5rem; }
.entry-content ul,
.entry-content ol { margin: 0 0 1rem 1.5rem; }
.entry-content blockquote {
	border-left: 4px solid var(--color-accent);
	margin: 1.5rem 0;
	padding: 0.75rem 1.25rem;
	font-style: italic;
	color: #555;
}

/* ══════════════════════════════════════════════
   SECTION HEADINGS
══════════════════════════════════════════════ */

.section-heading {
	font-family: var(--font-heading);
	text-align: center;
	margin-bottom: 2rem;
	color: var(--color-primary);
}
.section-heading::after {
	content: '';
	display: block;
	width: 60px;
	height: 3px;
	background: var(--color-accent);
	margin: 0.5rem auto 0;
}

/* ══════════════════════════════════════════════
   FEATURED BOOK (home)
══════════════════════════════════════════════ */

.featured-book {
	padding-block: 3rem;
	background-color: var(--color-white);
}
.featured-book__inner {
	display: grid;
	gap: 2rem;
}
.featured-book__cover img {
	max-width: 260px;
	margin-inline: auto;
}
.featured-book__title { color: var(--color-primary); }
.featured-book__excerpt { color: #444; padding: 1rem 0;}

@media (min-width: 768px) {
	.featured-book__inner { grid-template-columns: auto 1fr; align-items: center; }
	.featured-book__cover img { margin-inline: 0; }
}

/* ══════════════════════════════════════════════
   BOOKS GRID
══════════════════════════════════════════════ */

.books-section { padding-block: 3rem; }
.books-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}
.book-card { text-align: center; }
.book-card__cover {
	position: relative;
	overflow: hidden;
	margin-bottom: 0.75rem;
}
.book-card__cover img {
	width: 100%;
	aspect-ratio: 2/3;
	object-fit: cover;
	transition: transform 0.3s;
}
.book-card:hover .book-card__cover img { transform: scale(1.04); }
.book-card__badge {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 2; /* lift above the cover image, which creates its own stacking context via `filter` */
	background: var(--color-secondary);
	color: var(--color-white);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.2em 0.5em;
}
.book-card__title {
	font-family: var(--font-heading);
	font-size: 1rem;
	color: var(--color-primary);
}
.book-card a { color: inherit; text-decoration: none; }
.book-card a:hover .book-card__title { text-decoration: underline; }

@media (min-width: 768px)  { .books-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .books-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .books-grid { grid-template-columns: repeat(5, 1fr); } }

/* ══════════════════════════════════════════════
   SINGLE BOOK
══════════════════════════════════════════════ */

.single-book { padding-block: 3rem; }
.single-book__inner {
	display: grid;
	gap: 2rem;
}
.single-book__cover img {
	max-width: 300px;
	margin-inline: auto;
}
.single-book__title { color: var(--color-primary); margin-bottom: 0.5rem; }
.single-book__series a { color: var(--color-secondary); font-weight: 600; }
.single-book__series { margin-bottom: 1rem; font-size: 0.9rem; }
.single-book__excerpt { color: #444; margin-bottom: 1.5rem; }

.book-buy-links { margin-bottom: 1.5rem; }
.book-buy-links__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 5px;
}
.book-buy-links__item {
	display: block;
	background: var(--color-accent);
	color: var(--color-primary);
	text-align: center;
	padding: .6rem 1rem;
	font-weight: 700;
	text-decoration: none;
	border-radius: 3px;
	transition: opacity .15s;
}
.book-buy-links__item:hover { opacity: .8; color: var(--color-primary); text-decoration: none; }

.content-warnings { margin-top: 2rem; }
.content-warnings__title {
	font-family: var(--font-heading);
	font-size: 1.35rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-primary);
	margin-bottom: 0.1rem;
}
.content-warnings__note { font-size: 0.9rem; color: #666; margin-bottom: 0.75rem; }
.content-warnings__list { list-style: none; margin: 0; padding: 0; }
.content-warnings__list li { margin-bottom: 0.2rem; }

/* Spoiler: blacked out until hovered or focused. */
.spoiler {
	background: #111;
	color: transparent;
	border-radius: 2px;
	padding: 0 .2em;
	cursor: help;
	transition: color .15s ease;
}
.spoiler:hover,
.spoiler:focus { color: #fff; outline: none; }

.pronunciation-guide { margin-top: 2rem; }
.pronunciation-guide__title {
	font-family: var(--font-heading);
	font-size: 1.35rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-primary);
	margin-bottom: 0.5rem;
}
.pronunciation-guide__intro { margin-bottom: 1rem; }
.pronunciation-guide__intro p:last-child { margin-bottom: 0; }
.pronunciation-guide__list { margin: 0 0 0 1.25rem; padding: 0; list-style: disc; }
.pronunciation-guide__list li { margin-bottom: 0.225rem; }

@media (min-width: 768px) {
	.single-book__inner { grid-template-columns: 280px 1fr; align-items: start; }
	.single-book__cover img { margin-inline: 0; }
	.book-buy-links__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
	.book-buy-links__grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ══════════════════════════════════════════════
   ARCHIVE HEADER
══════════════════════════════════════════════ */

.archive-header {
	/*background-color: var(--color-accent);*/
	color: var(--color-white);
	padding-block: 2.5rem;
	text-align: center;
}
.archive-header h1 { font-family: var(--font-heading); color: var(--color-primary); }
.archive-header .series-info { margin-top: 0.5rem; color: var(--color-dark); font-size: 0.95rem; }

/* ══════════════════════════════════════════════
   NEWS / POSTS
══════════════════════════════════════════════ */

.news-archive { padding-block: 3rem; }

.news-archive__inner {
	display: grid;
	gap: 3rem;
}
@media (min-width: 1024px) {
	.news-archive__inner { grid-template-columns: 1fr 280px; align-items: start; }
}

.news-list { display: flex; flex-direction: column; gap: 2rem; }

.news-card {
	background: var(--color-white);
	border-left: 4px solid var(--color-secondary);
	overflow: hidden;
}
.news-card > *:not(.news-card__thumb) { padding: 0 1.25rem 1.25rem 1.25rem; }
.news-card__thumb { padding-bottom: 1.25rem; }
.news-card__thumb img { width: 100%; display: block; }
.news-card__meta { font-size: 0.8rem; color: #777; }
.news-card__title { font-family: var(--font-heading); font-size: 1.4rem; margin: 0; }
.news-card__title a { color: var(--color-primary); }
.news-card__title a:hover { color: var(--color-secondary); text-decoration: none; }
.news-card__excerpt { color: #444; flex: 1; }


/* Sidebar */
.news-sidebar__heading {
	font-family: var(--font-heading);
	font-size: 1.3rem;
	color: var(--color-primary);
	padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--color-secondary);
	margin-bottom: 1.25rem;
}
.sidebar-posts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.sidebar-post { display: flex; gap: 0.75rem; align-items: flex-start; }
.sidebar-post__thumb { flex-shrink: 0; width: 70px; }
.sidebar-post__thumb img { width: 70px; height: 70px; object-fit: cover; display: block; }
.sidebar-post__info { display: flex; flex-direction: column; gap: 0.2rem; }
.sidebar-post__title { font-size: 0.9rem; font-weight: 600; color: var(--color-primary); line-height: 1.3; }
.sidebar-post__title:hover { color: var(--color-secondary); text-decoration: none; }
.sidebar-post__date { font-size: 0.75rem; color: #777; }

.single-news { padding-block: 3rem; }
.single-news__header { margin-bottom: 2rem; }
.single-news__title { color: var(--color-primary); }
.single-news__meta { font-size: 0.85rem; color: #777; margin-top: 0.4rem; }

/* ══════════════════════════════════════════════
   AUTHORS
══════════════════════════════════════════════ */

.authors-archive { padding-block: 3rem; }
.authors-list { display: flex; flex-direction: column; gap: 3.5rem; }

.author-card {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}
.author-card__photo img {
	width: 100%;
	/*aspect-ratio: 1 / 1;*/
	object-fit: cover;
	object-position: top;
	display: block;
}
.author-card__photo-placeholder {
	width: 100%;
	/*aspect-ratio: 1 / 1;*/
	background: var(--color-primary);
	display: flex;
	align-items: center;
	justify-content: center;
}
.author-card__photo-placeholder i {
	font-size: 4rem;
	color: rgba(255,255,255,0.3);
}
.author-card__name {
	font-family: var(--font-heading);
	font-size: clamp(1.6rem, 4vw, 2.25rem);
	color: var(--color-primary);
	margin-bottom: 0.75rem;
}
.author-card__name a { color: inherit; text-decoration: none; }
.author-card__name a:hover { color: var(--color-secondary); }
.author-card__excerpt { color: #444; margin-bottom: 1.25rem; }

@media (min-width: 600px) {
	.author-card {
		grid-template-columns: 220px 1fr;
		align-items: start;
	}
}
@media (min-width: 1024px) {
	.author-card { grid-template-columns: 260px 1fr; }
}

.single-author { padding-block: 3rem; }
.single-author__inner { display: grid; gap: 2rem; }
.single-author__photo img {
	width: 200px;
	/*height: 200px;*/
	/*border-radius: 50%;*/
	object-fit: cover;
	/*border: 4px solid var(--color-accent);*/
	margin-inline: auto;
}
.single-author__name { color: var(--color-primary); }

@media (min-width: 768px) {
	.single-author__inner { grid-template-columns: 220px 1fr; align-items: start; }
	.single-author__photo img { margin-inline: 0; }
}

/* ══════════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════════ */

.page-contact { padding-block: 3rem; }
.page-contact__inner { max-width: 680px; margin-inline: auto; }

.contact-form { margin-top: 2.5rem; }
.contact-form .form-row {
	display: grid;
	gap: 1rem;
	margin-bottom: 1rem;
}
.contact-form .form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.contact-form label { font-weight: 600; font-size: 0.9rem; }
.contact-form input:not(.btn),
.contact-form textarea,
.contact-form select {
	font-family: var(--font-body);
	font-size: 1rem;
	padding: 0.6em 0.8em;
	border: 1px solid #ccc;
	background: #fff;
	width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--color-secondary); border-color: transparent; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form .form-submit { margin-top: 1rem; }

@media (min-width: 768px) {
	.contact-form .form-row--two { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════
   SEARCH
══════════════════════════════════════════════ */

.search-page { padding-block: 3rem; }
.search-form-wrap { margin-bottom: 2.5rem; }
.search-form-wrap .search-form {
	display: flex;
	gap: 0;
	max-width: 560px;
}
.search-form-wrap .search-field {
	flex: 1;
	font-family: var(--font-body);
	font-size: 1rem;
	padding: 0.6em 0.8em;
	border: 2px solid var(--color-primary);
	border-right: none;
}
.search-form-wrap .search-submit {
	padding: 0.6em 1.2em;
	background: var(--color-primary);
	color: var(--color-white);
	border: none;
	cursor: pointer;
	font-family: var(--font-body);
	font-size: 0.9rem;
}
.search-form-wrap .search-submit:hover { background: var(--color-secondary); }

.search-results-count { color: #666; margin-bottom: 1.5rem; font-size: 0.9rem; }
.search-results { display: flex; flex-direction: column; gap: 1.5rem; }
.search-result {
	background: var(--color-white);
	padding: 1.25rem 1.5rem;
	border-left: 4px solid var(--color-accent);
}
.search-result__type {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: var(--color-accent);
	color: var(--color-white);
	padding: 0.15em 0.5em;
	margin-bottom: 0.4rem;
}
.search-result__title { font-family: var(--font-heading); font-size: 1.3rem; }
.search-result__title a { color: var(--color-primary); }
.search-result__title a:hover { color: var(--color-secondary); text-decoration: none; }
.search-result__excerpt { color: #444; font-size: 0.95rem; margin-top: 0.4rem; }
.search-no-results { color: #666; }

/* ══════════════════════════════════════════════
   PRIVACY POLICY PAGE
══════════════════════════════════════════════ */

body.privacy-policy main .entry-content h2,
body.privacy-policy main .entry-content h3,
body.privacy-policy main .entry-content h4 {
	font-family: var(--font-body);
	font-weight: 700;
	letter-spacing: 0;
}

/* ══════════════════════════════════════════════
   GENERIC PAGE
══════════════════════════════════════════════ */

.page-header {
	color: var(--color-white);
	padding-block: 2.5rem;
	text-align: center;
}
.page-header h1 { color: var(--color-primary); font-family: var(--font-heading); }

.page-content { padding-block: 3rem; }
.page-content__inner { max-width: 800px; margin-inline: auto; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */

.site-footer {
	background-color: var(--color-dark);
	color: rgba(255,255,255,0.8);
	padding-block: 3rem 1.5rem;
	font-size: 0.9rem;
}
.footer-grid {
	display: grid;
	gap: 2.5rem;
	margin-bottom: 2rem;
}
.footer-col__heading {
	font-family: var(--font-heading);
	font-size: 1.1rem;
	color: var(--color-white);
	margin-bottom: 1rem;
}
.footer-col p { color: rgba(255,255,255,0.7); }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social a {
	color: rgba(255,255,255,0.7);
	font-size: 1.1rem;
	transition: color 0.2s;
}
.footer-social a:hover { color: var(--color-accent); text-decoration: none; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--color-white); text-decoration: none; }

.footer-newsletter p { margin-bottom: 0.75rem; color: rgba(255,255,255,0.7); }
.footer-newsletter-note { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 0.5rem; }

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.1);
	padding-top: 1.25rem;
	text-align: center;
	font-size: 0.8rem;
	color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }

.site-footer .external-footer i { padding-inline: 0 1rem; }

@media (min-width: 768px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1.5fr; } }

/* ══════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════ */

.pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 3rem;
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--color-white);
	color: var(--color-primary);
	font-weight: 600;
	border: 1px solid #ddd;
	transition: background 0.2s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: var(--color-primary);
	color: var(--color-white);
	text-decoration: none;
	border-color: var(--color-primary);
}

/* ══════════════════════════════════════════════
   WORDPRESS ALIGNMENT HELPERS
══════════════════════════════════════════════ */

.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text { font-size: 0.8rem; color: #777; text-align: center; }

/* ══════════════════════════════════════════════
   404 PAGE
══════════════════════════════════════════════ */

.error-404 {
	padding-block: 5rem 6rem;
	background-color: var(--color-bg);
}
.error-404__inner {
	max-width: 640px;
	margin-inline: auto;
	text-align: center;
}
.error-404__icon {
	font-size: 4rem;
	color: var(--color-accent);
	margin-bottom: 1.25rem;
	opacity: 0.7;
}
.error-404__code {
	font-family: var(--font-heading);
	font-size: clamp(5rem, 18vw, 9rem);
	color: var(--color-primary);
	opacity: 0.12;
	line-height: 1;
	margin-bottom: -1.5rem;
	letter-spacing: 0.04em;
}
.error-404__heading {
	font-family: var(--font-heading);
	font-size: clamp(1.8rem, 5vw, 2.75rem);
	color: var(--color-primary);
	margin-bottom: 1.5rem;
}
.error-404__body {
	color: #555;
	font-size: 1.05rem;
	line-height: 1.7;
	margin-bottom: 1.5rem;
}
.error-404__body p { margin-bottom: 0.75rem; }
.error-404__body p:last-child { margin-bottom: 0; }
.error-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
	margin-top: 2.5rem;
}
.error-404__actions .btn--outline {
	border-color: var(--color-primary);
	color: var(--color-primary);
}
.error-404__actions .btn--outline:hover {
	background: var(--color-primary);
	color: var(--color-white);
}
