/*
Theme Name: Eckler Maritime
Theme URI: https://nateeckler.com
Author: Built for Nate Eckler
Author URI: https://ishkeesh.com
Description: A premium author theme for maritime fiction. Deepwater palette, Cormorant Garamond display type, and a working-waterfront restraint. Includes a Books custom post type, retailer link management, praise/blurb rotation, and a newsletter capture block. Designed to sit alongside the Ishkeesh Marine Services brand.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eckler-maritime
Tags: author, books, one-column, custom-colors, custom-menu, custom-logo, featured-images, block-styles, wide-blocks, editor-style
*/

/* ==========================================================================
   0.  TOKENS
   Palette lifted from the Ishkeesh Marine Services brand:
   deepwater #0D1820 · brass #C9AA71 · bone #E8E4DB · steel #8FA8BE
   ========================================================================== */

:root {
	/* Surfaces — deepest to lightest */
	--em-deepwater: #0D1820;
	--em-hull: #131E28;
	--em-hull-raised: #18242F;
	--em-waterline: #1E2C38;

	/* Ink */
	--em-bone: #E8E4DB;
	--em-bone-dim: rgba(232, 228, 219, 0.72);
	--em-bone-faint: rgba(232, 228, 219, 0.44);
	--em-chart-white: #F7FAFC;

	/* Brass — the single accent. Used sparingly. */
	--em-brass: #C9AA71;
	--em-brass-lit: #DCC58F;
	--em-brass-deep: #A2823F;
	--em-brass-veil: rgba(201, 170, 113, 0.10);
	--em-brass-hair: rgba(201, 170, 113, 0.28);

	/* Signal red — from the VIGILANT cover and the Coast Guard racing stripe.
	   Deliberately NOT wired into the accent system: used only where something
	   is genuinely urgent or new. Brass stays the brand accent. */
	--em-signal: #C0202A;
	--em-signal-hair: rgba(192, 32, 42, 0.34);

	/* Steel — labels, meta, secondary nav */
	--em-steel: #8FA8BE;
	--em-steel-deep: #3A5A74;
	--em-steel-shadow: #2A4A62;

	/* Rules */
	--em-hairline: rgba(232, 228, 219, 0.10);
	--em-hairline-strong: rgba(232, 228, 219, 0.18);

	/* Type */
	--em-display: "Cormorant Garamond", Cormorant, Georgia, "Times New Roman", serif;
	--em-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--em-label: "Barlow Condensed", "Barlow", "Helvetica Neue", Arial, sans-serif;

	/* Measure & rhythm */
	--em-shell: 1240px;
	--em-shell-narrow: 720px;
	--em-gutter: clamp(1.25rem, 5vw, 4rem);
	--em-section: clamp(4.5rem, 11vh, 9rem);

	/* Motion */
	--em-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--em-slow: 620ms;
	--em-med: 340ms;
	--em-fast: 180ms;
}

/* ==========================================================================
   1.  RESET / BASE
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background-color: var(--em-deepwater);
	color: var(--em-bone);
	font-family: var(--em-body);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.72;
	letter-spacing: 0.002em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img, svg, video, canvas {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--em-brass);
	text-decoration: none;
	transition: color var(--em-fast) var(--em-ease);
}
a:hover, a:focus-visible { color: var(--em-brass-lit); }

:focus-visible {
	outline: 2px solid var(--em-brass);
	outline-offset: 3px;
	border-radius: 1px;
}

::selection {
	background: var(--em-brass);
	color: var(--em-deepwater);
}

hr {
	border: 0;
	height: 1px;
	background: var(--em-hairline);
	margin: var(--em-section) 0;
}

/* ==========================================================================
   2.  TYPE SCALE
   ========================================================================== */

h1, h2, h3, h4, .em-display {
	font-family: var(--em-display);
	font-weight: 300;
	line-height: 1.02;
	letter-spacing: -0.01em;
	color: var(--em-chart-white);
	margin: 0 0 0.6em;
	text-wrap: balance;
}

h1, .em-h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); }
h2, .em-h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3, .em-h3 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); line-height: 1.18; }
h4, .em-h4 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.28; }

h5, h6 {
	font-family: var(--em-label);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	font-size: 0.8125rem;
	color: var(--em-steel);
	margin: 0 0 0.75em;
}

p { margin: 0 0 1.35em; }
p:last-child { margin-bottom: 0; }

em, i { font-style: italic; }

strong, b { font-weight: 600; color: var(--em-chart-white); }

blockquote {
	margin: 2.5rem 0;
	padding-left: clamp(1.25rem, 3vw, 2.25rem);
	border-left: 1px solid var(--em-brass-hair);
	font-family: var(--em-display);
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
	font-style: italic;
	font-weight: 300;
	line-height: 1.42;
	color: var(--em-bone);
}
blockquote cite {
	display: block;
	margin-top: 1rem;
	font-family: var(--em-label);
	font-style: normal;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--em-steel);
}

code, pre, kbd {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 0.9em;
}
code {
	background: var(--em-brass-veil);
	color: var(--em-brass-lit);
	padding: 0.15em 0.4em;
	border-radius: 2px;
}
pre {
	background: var(--em-hull);
	border: 1px solid var(--em-hairline);
	padding: 1.5rem;
	overflow-x: auto;
	border-radius: 2px;
}

/* The "eyebrow" — condensed, tracked-out label. Core to the brand voice.
   Mirrors the 11px / 1.1px tracking of the Ishkeesh nav. */
.em-eyebrow {
	display: block;
	font-family: var(--em-label);
	font-size: 0.6875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	line-height: 1.4;
	color: var(--em-steel);
	margin: 0 0 1.25rem;
}
.em-eyebrow--brass { color: var(--em-brass); }

/* Eyebrow with a leading brass tick, like a chart mark. */
.em-eyebrow--tick { display: flex; align-items: center; gap: 0.75rem; }
.em-eyebrow--tick::before {
	content: "";
	width: 1.75rem;
	height: 1px;
	background: var(--em-brass);
	flex: 0 0 auto;
}

/* Lead paragraph */
.em-lead {
	font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
	line-height: 1.66;
	color: var(--em-bone-dim);
	font-weight: 300;
}

/* Depth-sounding section numeral — a restrained nod to a chart, not a badge. */
.em-sounding {
	font-family: var(--em-label);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	color: var(--em-bone-faint);
}

/* ==========================================================================
   3.  LAYOUT
   ========================================================================== */

.em-shell {
	width: 100%;
	max-width: var(--em-shell);
	margin-inline: auto;
	padding-inline: var(--em-gutter);
}
.em-shell--narrow { max-width: var(--em-shell-narrow); }
.em-shell--wide { max-width: 1480px; }

.em-section { padding-block: var(--em-section); position: relative; }
.em-section--tight { padding-block: clamp(3rem, 7vh, 5rem); }
.em-section--hull { background: var(--em-hull); }
.em-section--raised { background: var(--em-hull-raised); }

/* Hairline top border used to separate stacked sections without a heavy rule. */
.em-section--ruled { border-top: 1px solid var(--em-hairline); }

.em-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--em-hairline);
	flex-wrap: wrap;
}
.em-section__head h2 { margin: 0; }
.em-section__head .em-eyebrow { margin: 0 0 0.5rem; }

.em-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.em-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.em-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }

.em-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 1rem 1.5rem;
	background: var(--em-brass);
	color: var(--em-deepwater);
	font-family: var(--em-label);
	text-transform: uppercase;
	letter-spacing: 0.12em;
}
.em-skip:focus { left: 1rem; top: 1rem; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ==========================================================================
   4.  BUTTONS
   ========================================================================== */

.em-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	font-family: var(--em-label);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	line-height: 1;
	padding: 1.0625rem 1.875rem;
	border: 1px solid var(--em-brass);
	background: transparent;
	color: var(--em-brass);
	cursor: pointer;
	border-radius: 1px;
	transition: background var(--em-med) var(--em-ease),
	            color var(--em-med) var(--em-ease),
	            border-color var(--em-med) var(--em-ease);
	text-align: center;
}
.em-btn:hover, .em-btn:focus-visible {
	background: var(--em-brass);
	color: var(--em-deepwater);
	border-color: var(--em-brass);
}

.em-btn--solid {
	background: var(--em-brass);
	color: var(--em-deepwater);
}
.em-btn--solid:hover, .em-btn--solid:focus-visible {
	background: var(--em-brass-lit);
	border-color: var(--em-brass-lit);
	color: var(--em-deepwater);
}

.em-btn--quiet {
	border-color: var(--em-hairline-strong);
	color: var(--em-bone);
	padding-inline: 1.5rem;
}
.em-btn--quiet:hover, .em-btn--quiet:focus-visible {
	background: transparent;
	border-color: var(--em-brass);
	color: var(--em-brass);
}

.em-btn--sm { padding: 0.8125rem 1.25rem; font-size: 0.6875rem; }

.em-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.875rem;
	align-items: center;
}

/* Text link with an underline that draws on hover — quieter than a button. */
.em-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--em-label);
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--em-brass);
	padding-bottom: 0.35rem;
	position: relative;
}
.em-link::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 100%;
	height: 1px;
	background: var(--em-brass);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--em-med) var(--em-ease);
}
.em-link:hover::after, .em-link:focus-visible::after { transform: scaleX(1); }
.em-link .em-link__arrow { transition: transform var(--em-med) var(--em-ease); }
.em-link:hover .em-link__arrow { transform: translateX(4px); }

/* ==========================================================================
   5.  HEADER / NAV
   ========================================================================== */

.em-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	background: transparent;
	transition: background var(--em-med) var(--em-ease),
	            border-color var(--em-med) var(--em-ease),
	            padding var(--em-med) var(--em-ease);
	border-bottom: 1px solid transparent;
}
.em-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: 5.5rem;
	transition: min-height var(--em-med) var(--em-ease);
}
.em-header.is-stuck {
	background: rgba(13, 24, 32, 0.94);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom-color: var(--em-hairline);
}
.em-header.is-stuck .em-header__inner { min-height: 4.5rem; }

/* Wordmark — the author's name set in the display serif, letterspaced.
   Reads as a signature, not a logo. */
.em-brand {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	text-decoration: none;
	color: var(--em-chart-white);
	flex: 0 0 auto;
}
.em-brand:hover { color: var(--em-chart-white); }
.em-brand__name {
	font-family: var(--em-display);
	font-size: clamp(1.1rem, 1.8vw, 1.4rem);
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	line-height: 1;
}
.em-brand__rule {
	display: block;
	width: 100%;
	height: 1px;
	background: var(--em-brass-hair);
}
.em-brand__tag {
	font-family: var(--em-label);
	font-size: 0.5625rem;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--em-steel);
	line-height: 1;
	padding-top: 0.3rem;
}
.em-brand img { max-height: 3rem; width: auto; }

.em-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.em-nav ul {
	display: flex;
	align-items: center;
	gap: clamp(1.25rem, 2.5vw, 2.25rem);
	list-style: none;
	margin: 0;
	padding: 0;
}
.em-nav li { position: relative; }
.em-nav a {
	font-family: var(--em-label);
	font-size: 0.6875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--em-steel);
	padding-block: 0.5rem;
	display: inline-block;
	position: relative;
}
.em-nav a::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 100%;
	height: 1px;
	background: var(--em-brass);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--em-med) var(--em-ease);
}
.em-nav a:hover, .em-nav a:focus-visible,
.em-nav .current-menu-item > a,
.em-nav .current_page_item > a { color: var(--em-bone); }
.em-nav a:hover::after,
.em-nav a:focus-visible::after,
.em-nav .current-menu-item > a::after,
.em-nav .current_page_item > a::after { transform: scaleX(1); }

/* Submenus */
.em-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: -1rem;
	min-width: 13rem;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	background: rgba(19, 30, 40, 0.98);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid var(--em-hairline);
	padding: 0.5rem 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--em-med) var(--em-ease),
	            transform var(--em-med) var(--em-ease),
	            visibility var(--em-med);
}
.em-nav li:hover > .sub-menu,
.em-nav li:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.em-nav .sub-menu a { display: block; padding: 0.6rem 1rem; }
.em-nav .sub-menu a::after { display: none; }
.em-nav .sub-menu a:hover { background: var(--em-brass-veil); color: var(--em-brass); }

.em-header__cta { flex: 0 0 auto; }

/* Mobile toggle */
.em-burger {
	display: none;
	width: 2.75rem; height: 2.75rem;
	background: transparent;
	border: 1px solid var(--em-hairline-strong);
	cursor: pointer;
	position: relative;
	border-radius: 1px;
	flex: 0 0 auto;
}
.em-burger span {
	position: absolute;
	left: 50%; top: 50%;
	width: 1.125rem; height: 1px;
	background: var(--em-bone);
	transform: translate(-50%, -50%);
	transition: transform var(--em-med) var(--em-ease), opacity var(--em-fast);
}
.em-burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 4px)); }
.em-burger span:nth-child(3) { transform: translate(-50%, calc(-50% + 4px)); }
.em-burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.em-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.em-burger[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 900px) {
	.em-burger { display: block; }
	.em-header__cta { display: none; }
	.em-nav {
		position: fixed;
		inset: 5.5rem 0 auto 0;
		background: rgba(13, 24, 32, 0.985);
		backdrop-filter: blur(18px);
		-webkit-backdrop-filter: blur(18px);
		border-bottom: 1px solid var(--em-hairline);
		padding: 1.5rem var(--em-gutter) 2.5rem;
		max-height: calc(100vh - 5.5rem);
		overflow-y: auto;
		clip-path: inset(0 0 100% 0);
		transition: clip-path var(--em-slow) var(--em-ease);
	}
	.em-nav.is-open { clip-path: inset(0 0 0 0); }
	.em-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
	.em-nav li { border-bottom: 1px solid var(--em-hairline); }
	.em-nav a {
		display: block;
		padding: 1.125rem 0;
		font-size: 0.8125rem;
		letter-spacing: 0.16em;
	}
	.em-nav a::after { display: none; }
	.em-nav .sub-menu {
		position: static;
		opacity: 1; visibility: visible; transform: none;
		background: transparent;
		border: 0;
		padding: 0 0 0.75rem 1rem;
		min-width: 0;
	}
	.em-nav .sub-menu li { border: 0; }
	.em-nav .sub-menu a { padding: 0.5rem 0; color: var(--em-bone-faint); }
}

/* ==========================================================================
   6.  HERO
   ========================================================================== */

.em-hero {
	position: relative;
	min-height: min(92vh, 56rem);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--em-deepwater);
	padding-block: 9rem clamp(4rem, 10vh, 7rem);
	isolation: isolate;
}

.em-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}
.em-hero__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: center 42%;
}

/* Two-stop scrim: a deep vertical wash plus a left-weighted horizontal one,
   so text stays legible over any waterfront photograph. */
.em-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to top, var(--em-deepwater) 2%, rgba(13, 24, 32, 0.78) 34%, rgba(13, 24, 32, 0.34) 68%, rgba(13, 24, 32, 0.55) 100%),
		linear-gradient(to right, rgba(13, 24, 32, 0.86) 0%, rgba(13, 24, 32, 0.42) 48%, rgba(13, 24, 32, 0.14) 100%);
}

/* Fallback atmosphere when no hero image is set: a horizon gradient. */
.em-hero--noimage .em-hero__scrim {
	background:
		radial-gradient(120% 90% at 22% 88%, rgba(58, 90, 116, 0.42) 0%, transparent 62%),
		radial-gradient(90% 70% at 78% 12%, rgba(201, 170, 113, 0.10) 0%, transparent 58%),
		linear-gradient(to bottom, #0A141C 0%, #0D1820 58%, #101D26 100%);
}

.em-hero__inner { position: relative; width: 100%; }
.em-hero__body { max-width: 46rem; }

.em-hero h1 {
	margin: 0 0 1.5rem;
	font-size: clamp(2.75rem, 7vw, 5.25rem);
	line-height: 0.98;
	letter-spacing: -0.015em;
}
.em-hero h1 em {
	display: block;
	font-style: italic;
	color: var(--em-brass);
}

.em-hero__lede {
	max-width: 34rem;
	margin-bottom: 2.5rem;
	font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
	line-height: 1.7;
	color: var(--em-bone-dim);
}

/* Hero footer strip: credentials line, set as tracked-out condensed caps
   separated by brass ticks. Understated proof, not a badge wall. */
/* Separation is done with space, not punctuation. Interpuncts or bullets
   between items strand themselves at the end of a wrapped line, and this strip
   wraps at almost every width once there are more than three credentials. */
.em-hero__creds {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.875rem 2.75rem;
	margin-top: clamp(3rem, 8vh, 5rem);
	padding-top: 1.5rem;
	border-top: 1px solid var(--em-hairline);
	font-family: var(--em-label);
	font-size: 0.6875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--em-bone-faint);
}
/* A short brass rule above each item — reads as a chart tick, and unlike an
   inline separator it belongs to its own item wherever that item lands. */
.em-hero__creds span {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.em-hero__creds span::before {
	content: "";
	width: 1.25rem;
	height: 1px;
	background: var(--em-brass-hair);
}

/* ==========================================================================
   7.  FEATURED BOOK
   ========================================================================== */

.em-feature {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 6vw, 5.5rem);
	align-items: center;
}
@media (max-width: 860px) {
	.em-feature { grid-template-columns: 1fr; gap: 3rem; }
}

/* Cover treatment: no drop shadow cliché. A brass hairline offset behind the
   cover reads like a chart frame and keeps the edge crisp on dark. */
.em-cover {
	position: relative;
	display: block;
	max-width: 24rem;
	margin-inline: auto;
}
.em-cover__frame {
	position: absolute;
	inset: 1.25rem -1.25rem -1.25rem 1.25rem;
	border: 1px solid var(--em-brass-hair);
	z-index: 0;
	transition: inset var(--em-slow) var(--em-ease);
	pointer-events: none;
}
.em-cover img {
	position: relative;
	z-index: 1;
	width: 100%;
	box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75);
}
.em-cover:hover .em-cover__frame { inset: 0.75rem -0.75rem -0.75rem 0.75rem; }

.em-cover--placeholder {
	aspect-ratio: 2 / 3;
	background: linear-gradient(155deg, var(--em-waterline) 0%, var(--em-hull) 100%);
	border: 1px solid var(--em-hairline);
	display: grid;
	place-content: center;
	text-align: center;
	padding: 2rem;
	position: relative;
	z-index: 1;
}
.em-cover--placeholder .em-cover__ph-title {
	font-family: var(--em-display);
	font-size: 1.5rem;
	font-weight: 300;
	color: var(--em-bone-dim);
	line-height: 1.15;
}

.em-feature__series {
	font-family: var(--em-label);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--em-brass);
	margin-bottom: 1rem;
	display: block;
}
.em-feature h2 { margin-bottom: 0.5rem; }
.em-feature__sub {
	font-family: var(--em-display);
	font-size: clamp(1.15rem, 1.8vw, 1.5rem);
	font-style: italic;
	font-weight: 300;
	color: var(--em-steel);
	margin: 0 0 1.75rem;
	line-height: 1.3;
}
.em-feature__blurb { color: var(--em-bone-dim); margin-bottom: 2rem; }

/* Retailer buttons — quiet row, brass only on hover so no single retailer
   visually outranks the book itself. */
.em-retailers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin-top: 1.75rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--em-hairline);
}
.em-retailers__label {
	flex: 0 0 100%;
	font-family: var(--em-label);
	font-size: 0.625rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--em-bone-faint);
	margin-bottom: 0.5rem;
}

/* ==========================================================================
   8.  PRAISE
   ========================================================================== */

.em-praise { text-align: center; }
.em-praise__quote {
	font-family: var(--em-display);
	font-size: clamp(1.5rem, 3.4vw, 2.5rem);
	font-style: italic;
	font-weight: 300;
	line-height: 1.34;
	color: var(--em-bone);
	max-width: 46rem;
	margin: 0 auto 2rem;
	text-wrap: balance;
}
.em-praise__cite {
	font-family: var(--em-label);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--em-steel);
	font-style: normal;
	display: block;
}

/* Rotator. Slides stack in a single grid cell so the track is always as tall
   as the longest quote — no height jump when the quote changes, and no
   absolute positioning to knock the caption out of flow.
   Without JS the slides simply stack and all of them read. */
.no-js .em-praise__slide + .em-praise__slide { margin-top: 3.5rem; }

.js .em-praise__track { display: grid; }
.js .em-praise__slide {
	grid-area: 1 / 1;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(6px);
	/* Outgoing slide leaves first; the incoming one waits for it. Without the
	   delay the two quotes overlap mid-fade and both become unreadable. */
	transition: opacity 300ms var(--em-ease),
	            transform 300ms var(--em-ease),
	            visibility 300ms;
}
.js .em-praise__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
	transition-delay: 320ms;
}

.em-praise__dots {
	display: flex;
	justify-content: center;
	gap: 0.625rem;
	margin-top: 3rem;
}
.em-praise__dot {
	width: 1.5rem; height: 1px;
	background: var(--em-hairline-strong);
	border: 0;
	padding: 0.5rem 0;
	background-clip: content-box;
	cursor: pointer;
	transition: background var(--em-med) var(--em-ease);
}
.em-praise__dot.is-active { background: var(--em-brass); background-clip: content-box; }

/* ==========================================================================
   9.  BOOK CARDS
   ========================================================================== */

.em-card {
	display: flex;
	flex-direction: column;
	position: relative;
}
.em-card__media {
	position: relative;
	overflow: hidden;
	background: var(--em-hull);
	margin-bottom: 1.5rem;
	aspect-ratio: 2 / 3;
}
.em-card__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform var(--em-slow) var(--em-ease), filter var(--em-slow) var(--em-ease);
	filter: saturate(0.92);
}
.em-card:hover .em-card__media img { transform: scale(1.035); filter: saturate(1); }

/* Brass hairline that draws across the top of the card media on hover. */
.em-card__media::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 2px;
	background: var(--em-brass);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--em-slow) var(--em-ease);
}
.em-card:hover .em-card__media::after { transform: scaleX(1); }

.em-card__series {
	font-family: var(--em-label);
	font-size: 0.625rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--em-brass);
	margin-bottom: 0.625rem;
	display: block;
}
.em-card h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); margin-bottom: 0.4rem; }
.em-card h3 a { color: inherit; }
.em-card:hover h3 a { color: var(--em-chart-white); }
.em-card__sub {
	font-family: var(--em-display);
	font-style: italic;
	font-weight: 300;
	color: var(--em-steel);
	font-size: 1.0625rem;
	margin: 0 0 0.875rem;
	line-height: 1.35;
}
.em-card__excerpt {
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--em-bone-dim);
	margin: 0 0 1.25rem;
}
.em-card__foot { margin-top: auto; }

/* Whole-card link overlay so the hover target is generous. */
.em-card__link {
	position: absolute;
	inset: 0;
	z-index: 2;
}
.em-card__link span { position: absolute; left: -9999px; }

/* Availability label. This is the theme's ONE use of signal red: it marks the
   single genuinely time-sensitive thing on the page, which is how the VIGILANT
   cover uses red too. Brass remains the brand accent everywhere else — if red
   spread to buttons and links it would stop reading as urgency. */
.em-card__status,
.em-status {
	display: inline-block;
	/* The card and the featured-book body are both flex columns, where a block
	   child stretches to full width and turns this badge into a banner. */
	align-self: flex-start;
	width: fit-content;
	font-family: var(--em-label);
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	/* Chart white rather than bone: at 10px with this much tracking, bone on
	   signal red measures only 4.75:1. This measures 5.75:1 — comfortable AA. */
	color: var(--em-chart-white);
	background: var(--em-signal);
	padding: 0.3rem 0.6rem;
	line-height: 1;
	margin-bottom: 0.875rem;
}
.em-status--quiet {
	background: transparent;
	color: var(--em-steel);
	border: 1px solid var(--em-hairline-strong);
	padding: 0.35rem 0.6rem;
}

/* ==========================================================================
   10. ABOUT
   ========================================================================== */

.em-about {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 6vw, 5.5rem);
	align-items: center;
}
@media (max-width: 860px) { .em-about { grid-template-columns: 1fr; gap: 2.5rem; } }

.em-portrait { position: relative; }
.em-portrait img {
	width: 100%;
	filter: saturate(0.88) contrast(1.04);
}
/* Offset brass rule bottom-left of the portrait — echoes the cover frame. */
.em-portrait::after {
	content: "";
	position: absolute;
	left: -1.25rem; bottom: -1.25rem;
	width: 55%; height: 1px;
	background: var(--em-brass-hair);
}
.em-portrait--placeholder {
	aspect-ratio: 4 / 5;
	background: linear-gradient(155deg, var(--em-waterline), var(--em-hull));
	border: 1px solid var(--em-hairline);
}

/* Credentials as a hairline-separated list — reads like a ship's document,
   not a resume or a badge grid. */
.em-creds {
	list-style: none;
	margin: 2.5rem 0 0;
	padding: 0;
	border-top: 1px solid var(--em-hairline);
}
.em-creds li {
	display: flex;
	gap: 1.5rem;
	align-items: baseline;
	padding: 1rem 0;
	border-bottom: 1px solid var(--em-hairline);
}
.em-creds__key {
	flex: 0 0 6.5rem;
	font-family: var(--em-label);
	font-size: 0.625rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--em-bone-faint);
	padding-top: 0.25rem;
}
.em-creds__val { font-size: 0.9375rem; color: var(--em-bone-dim); line-height: 1.55; }

/* ==========================================================================
   11. DISPATCHES (blog)
   ========================================================================== */

.em-post-card { position: relative; display: flex; flex-direction: column; }
.em-post-card__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--em-hull);
	margin-bottom: 1.375rem;
}
.em-post-card__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	filter: saturate(0.9);
	transition: transform var(--em-slow) var(--em-ease), filter var(--em-slow) var(--em-ease);
}
.em-post-card:hover .em-post-card__media img { transform: scale(1.035); filter: saturate(1); }

.em-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--em-label);
	font-size: 0.625rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--em-bone-faint);
	margin-bottom: 0.875rem;
}
.em-meta a { color: var(--em-steel); }
.em-meta__sep { width: 3px; height: 3px; background: var(--em-brass); border-radius: 50%; }

.em-post-card h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); margin-bottom: 0.6rem; }
.em-post-card h3 a { color: inherit; }
.em-post-card:hover h3 a { color: var(--em-chart-white); }
.em-post-card__excerpt {
	font-size: 0.9375rem;
	color: var(--em-bone-dim);
	line-height: 1.65;
	margin: 0;
}

/* ==========================================================================
   12. NEWSLETTER
   ========================================================================== */

.em-signup {
	position: relative;
	background: var(--em-hull);
	border-top: 1px solid var(--em-brass-hair);
	overflow: hidden;
}
/* Faint sounding-line pattern: horizontal hairlines fading out. Suggests a
   chart without printing an anchor on the page. */
.em-signup::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		to bottom,
		rgba(232, 228, 219, 0.035) 0px,
		rgba(232, 228, 219, 0.035) 1px,
		transparent 1px,
		transparent 2.5rem
	);
	mask-image: radial-gradient(120% 100% at 50% 0%, #000 0%, transparent 72%);
	-webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 0%, transparent 72%);
	pointer-events: none;
}
.em-signup__inner {
	position: relative;
	max-width: 44rem;
	margin-inline: auto;
	text-align: center;
}
.em-signup h2 { margin-bottom: 1rem; }
.em-signup__note {
	margin-top: 1.25rem;
	font-family: var(--em-label);
	font-size: 0.625rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--em-bone-faint);
}

/* Native fallback form. Styled to match whatever ESP embed replaces it. */
.em-form {
	display: flex;
	gap: 0.625rem;
	margin-top: 2.25rem;
	flex-wrap: wrap;
	justify-content: center;
}
.em-form input[type="email"],
.em-form input[type="text"],
.em-signup input[type="email"] {
	flex: 1 1 20rem;
	background: rgba(13, 24, 32, 0.6);
	border: 1px solid var(--em-hairline-strong);
	color: var(--em-bone);
	font-family: var(--em-body);
	font-size: 0.9375rem;
	padding: 1.0625rem 1.25rem;
	border-radius: 1px;
	transition: border-color var(--em-med) var(--em-ease);
}
.em-form input::placeholder { color: var(--em-bone-faint); }
.em-form input:focus { border-color: var(--em-brass); outline: none; }

/* ==========================================================================
   13. FOOTER
   ========================================================================== */

.em-footer {
	background: #0A131A;
	border-top: 1px solid var(--em-hairline);
	padding-block: clamp(3.5rem, 8vh, 5.5rem) 2.5rem;
	font-size: 0.9375rem;
}
.em-footer__cols {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(9rem, 1fr));
	gap: clamp(2rem, 5vw, 4rem);
	padding-bottom: 3rem;
	border-bottom: 1px solid var(--em-hairline);
}
.em-footer h2, .em-footer h3, .em-footer .widget-title {
	font-family: var(--em-label);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--em-steel);
	margin-bottom: 1.25rem;
}
.em-footer ul { list-style: none; margin: 0; padding: 0; }
.em-footer li { margin-bottom: 0.7rem; }
.em-footer a { color: var(--em-bone-dim); }
.em-footer a:hover { color: var(--em-brass); }

.em-footer__blurb {
	font-size: 0.9375rem;
	color: var(--em-bone-faint);
	max-width: 24rem;
	line-height: 1.7;
}
/* Keep the footer wordmark's hairline tight to the name rather than letting it
   stretch across the whole grid column. */
.em-footer .em-brand { margin-bottom: 1.5rem; align-items: flex-start; width: fit-content; }

.em-social { display: flex; gap: 0.875rem; margin-top: 1.5rem; }
.em-social a {
	width: 2.5rem; height: 2.5rem;
	border: 1px solid var(--em-hairline-strong);
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: var(--em-steel);
	transition: border-color var(--em-med) var(--em-ease), color var(--em-med) var(--em-ease);
}
.em-social a:hover { border-color: var(--em-brass); color: var(--em-brass); }
.em-social svg { width: 1rem; height: 1rem; fill: currentColor; }

.em-footer__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding-top: 2rem;
	font-family: var(--em-label);
	font-size: 0.625rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--em-bone-faint);
}
.em-footer__bar a { color: var(--em-bone-faint); }
.em-footer__bar a:hover { color: var(--em-brass); }

/* Legal menu renders inline on the bar, not as a stacked column. */
.em-footer__legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.em-footer__legal li { margin: 0; }

/* ==========================================================================
   14. PAGE HEADS / SINGLE / ARCHIVES
   ========================================================================== */

.em-pagehead {
	padding-block: clamp(9rem, 20vh, 13rem) clamp(3rem, 7vh, 5rem);
	position: relative;
	border-bottom: 1px solid var(--em-hairline);
	background:
		radial-gradient(100% 120% at 12% 100%, rgba(58, 90, 116, 0.28) 0%, transparent 60%),
		linear-gradient(to bottom, #0A141C, var(--em-deepwater));
}
.em-pagehead h1 { margin: 0; max-width: 40rem; }
.em-pagehead__lede { max-width: 38rem; margin-top: 1.5rem; }

/* Article body — reading measure and vertical rhythm for long-form. */
.em-prose {
	max-width: 40rem;
	font-size: 1.09375rem;
	line-height: 1.8;
	color: var(--em-bone-dim);
}
.em-prose > * + * { margin-top: 1.4em; }
.em-prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 2.6em; margin-bottom: 0.6em; }
.em-prose h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); margin-top: 2.2em; margin-bottom: 0.5em; }
.em-prose ul, .em-prose ol { padding-left: 1.4em; }
.em-prose li { margin-bottom: 0.6em; }
.em-prose li::marker { color: var(--em-brass); }
.em-prose a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.em-prose img, .em-prose figure { margin-block: 2.5em; }
.em-prose figcaption {
	font-family: var(--em-label);
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--em-bone-faint);
	margin-top: 0.875rem;
}
/* Drop the first-letter flourish only on excerpt pages, never on the blog. */
.em-prose--excerpt > p:first-of-type::first-letter {
	font-family: var(--em-display);
	font-size: 3.6em;
	line-height: 0.82;
	float: left;
	padding: 0.06em 0.14em 0 0;
	color: var(--em-brass);
	font-weight: 300;
}

.em-single__hero {
	aspect-ratio: 21 / 9;
	overflow: hidden;
	margin-bottom: clamp(2.5rem, 6vh, 4rem);
	background: var(--em-hull);
}
.em-single__hero img { width: 100%; height: 100%; object-fit: cover; }

.em-pagination {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	margin-top: clamp(3rem, 7vh, 5rem);
	font-family: var(--em-label);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.em-pagination .page-numbers {
	min-width: 2.75rem;
	height: 2.75rem;
	display: grid;
	place-items: center;
	border: 1px solid var(--em-hairline);
	color: var(--em-bone-dim);
	padding-inline: 0.75rem;
	transition: border-color var(--em-med) var(--em-ease), color var(--em-med) var(--em-ease);
}
.em-pagination .page-numbers:hover { border-color: var(--em-brass); color: var(--em-brass); }
.em-pagination .page-numbers.current {
	background: var(--em-brass);
	border-color: var(--em-brass);
	color: var(--em-deepwater);
}

/* Book single: sticky cover rail beside the description. */
.em-booksingle {
	display: grid;
	grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 6vw, 5.5rem);
	align-items: start;
}
.em-booksingle__rail { position: sticky; top: 7rem; }
@media (max-width: 900px) {
	.em-booksingle { grid-template-columns: 1fr; gap: 3rem; }
	.em-booksingle__rail { position: static; }
}

/* Book detail table — publication facts, hairline separated. */
.em-specs { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--em-hairline); }
.em-specs li { display: flex; gap: 1.5rem; padding: 0.8rem 0; border-bottom: 1px solid var(--em-hairline); }
.em-specs dt, .em-specs__key {
	flex: 0 0 8rem;
	font-family: var(--em-label);
	font-size: 0.625rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--em-bone-faint);
	padding-top: 0.2rem;
}
.em-specs__val { font-size: 0.9375rem; color: var(--em-bone-dim); }

/* ==========================================================================
   14b. SAMPLE CHAPTER
   A reading page, not a marketing page. Longer measure and looser leading than
   the blog, because someone assessing the writing will read several pages.
   ========================================================================== */

.em-pagehead--excerpt { text-align: center; }
.em-pagehead--excerpt h1 {
	margin-inline: auto;
	font-size: clamp(2rem, 4vw, 3rem);
}
.em-pagehead--excerpt .em-eyebrow--tick { justify-content: center; }

.em-excerpt__from {
	font-family: var(--em-label);
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--em-bone-faint);
	margin-bottom: 1.25rem;
}
.em-excerpt__from a { color: var(--em-brass); }

.em-excerpt__subtitle {
	font-family: var(--em-display);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(1.1rem, 1.6vw, 1.35rem);
	color: var(--em-steel);
	margin: 0;
}

.em-excerpt .em-prose--excerpt {
	max-width: 34rem;
	margin-inline: auto;
	font-size: 1.15rem;
	line-height: 1.92;
	color: var(--em-bone);
}
.em-excerpt .em-prose--excerpt p { margin-bottom: 1.6em; }

/* Scene break: a centred brass mark rather than three asterisks. */
.em-excerpt .em-prose--excerpt hr,
.em-excerpt .em-prose--excerpt .wp-block-separator {
	margin: 3rem auto;
	max-width: 2.5rem;
	background: var(--em-brass-hair);
}

.em-excerpt__end {
	max-width: 34rem;
	margin: clamp(3.5rem, 8vh, 5.5rem) auto 0;
	padding-top: 2.5rem;
	border-top: 1px solid var(--em-hairline);
	text-align: center;
}
.em-excerpt__end .em-eyebrow { margin-bottom: 1.5rem; }
.em-excerpt__end .em-retailers { justify-content: center; border: 0; padding-top: 0; margin-top: 0; }

/* Small brass diamond marking the end of the extract. */
.em-excerpt__mark {
	display: block;
	width: 5px; height: 5px;
	margin: 0 auto 2rem;
	background: var(--em-brass);
	transform: rotate(45deg);
}

/* ==========================================================================
   14c. PRESS & MEDIA
   ========================================================================== */

.em-press {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
	gap: clamp(2.5rem, 5vw, 4.5rem);
	align-items: start;
}
@media (max-width: 900px) {
	.em-press { grid-template-columns: 1fr; }
	.em-press__rail { order: -1; }
}

.em-press__block {
	margin-top: clamp(2.5rem, 6vh, 4rem);
	padding-top: clamp(2.5rem, 6vh, 4rem);
	border-top: 1px solid var(--em-hairline);
}
.em-press__block > h2 { margin-bottom: 1.5rem; }

.em-press__book {
	display: grid;
	grid-template-columns: 9rem minmax(0, 1fr);
	gap: clamp(1.5rem, 3vw, 2.5rem);
	padding-block: 2rem;
	border-bottom: 1px solid var(--em-hairline);
}
.em-press__book:last-child { border-bottom: 0; }
@media (max-width: 620px) {
	.em-press__book { grid-template-columns: 1fr; }
	.em-press__book-cover { max-width: 11rem; }
}
.em-press__book-cover img { width: 100%; border: 1px solid var(--em-hairline); }

.em-press__dl {
	display: block;
	margin-top: 0.625rem;
	font-family: var(--em-label);
	font-size: 0.5625rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--em-bone-faint);
	line-height: 1.4;
}

/* The fact sheet stays with the reader as they scroll the bios. */
.em-press__rail { position: sticky; top: 7rem; }
@media (max-width: 900px) { .em-press__rail { position: static; } }

.em-press__card {
	background: var(--em-hull);
	border: 1px solid var(--em-hairline);
	border-top: 1px solid var(--em-brass-hair);
	padding: clamp(1.5rem, 2.5vw, 2rem);
}
.em-press__card .em-specs li:last-child { border-bottom: 0; padding-bottom: 0; }
.em-press__card .em-specs__key { flex-basis: 4.5rem; }

.em-press__downloads {
	margin-top: 1.75rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--em-hairline);
}
.em-press__photo { display: block; }
.em-press__photo img {
	width: 100%;
	filter: saturate(0.9);
	border: 1px solid var(--em-hairline);
	transition: filter var(--em-med) var(--em-ease);
}
.em-press__photo:hover img { filter: saturate(1); }

/* ==========================================================================
   15. WORDPRESS CORE CLASSES
   ========================================================================== */

.alignleft { float: left; margin: 0.4em 2em 1.5em 0; }
.alignright { float: right; margin: 0.4em 0 1.5em 2em; }
.aligncenter { margin-inline: auto; }
.alignwide { width: min(100vw - 2 * var(--em-gutter), 1080px); margin-inline: auto; }
.alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: none; }

.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption {
	font-family: var(--em-label);
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--em-bone-faint);
}
.sticky .em-post-card__media::before { content: ""; }
.bypostauthor { display: block; }

.wp-block-quote { border-left: 1px solid var(--em-brass-hair); }
.wp-block-pullquote { border-block: 1px solid var(--em-brass-hair); padding-block: 2rem; text-align: center; }
.wp-block-separator { border: 0; height: 1px; background: var(--em-hairline); max-width: 6rem; margin-inline: auto; }
.wp-block-button__link {
	font-family: var(--em-label);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.75rem;
	border-radius: 1px;
}
.wp-block-table { font-size: 0.9375rem; }
.wp-block-table td, .wp-block-table th { border-color: var(--em-hairline); padding: 0.75rem 1rem; }
.wp-block-table th { font-family: var(--em-label); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.6875rem; color: var(--em-steel); }

/* Comments — kept plain; most author sites disable them. */
.em-comments { max-width: 40rem; margin-top: clamp(3rem, 7vh, 5rem); padding-top: 3rem; border-top: 1px solid var(--em-hairline); }
.em-comments ol { list-style: none; margin: 0; padding: 0; }
.em-comments .comment-body { padding: 1.5rem 0; border-bottom: 1px solid var(--em-hairline); }
.em-comments .comment-author { font-family: var(--em-label); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--em-steel); }
.em-comments textarea, .em-comments input[type="text"], .em-comments input[type="email"], .em-comments input[type="url"] {
	width: 100%;
	background: rgba(13, 24, 32, 0.6);
	border: 1px solid var(--em-hairline-strong);
	color: var(--em-bone);
	font-family: var(--em-body);
	padding: 0.875rem 1rem;
	border-radius: 1px;
	margin-bottom: 1rem;
}
.em-comments .submit {
	font-family: var(--em-label);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.75rem;
	padding: 1rem 1.75rem;
	background: transparent;
	border: 1px solid var(--em-brass);
	color: var(--em-brass);
	cursor: pointer;
}
.em-comments .submit:hover { background: var(--em-brass); color: var(--em-deepwater); }

/* Search form */
.em-searchform { display: flex; gap: 0.5rem; max-width: 26rem; }
.em-searchform input[type="search"] {
	flex: 1;
	background: rgba(13, 24, 32, 0.6);
	border: 1px solid var(--em-hairline-strong);
	color: var(--em-bone);
	font-family: var(--em-body);
	padding: 0.875rem 1rem;
	border-radius: 1px;
}
.em-searchform input[type="search"]:focus { border-color: var(--em-brass); outline: none; }

/* ==========================================================================
   16. REVEAL ON SCROLL
   ========================================================================== */

.js .em-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity var(--em-slow) var(--em-ease), transform var(--em-slow) var(--em-ease);
}
.js .em-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.js .em-reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   17. PRINT
   ========================================================================== */

@media print {
	.em-header, .em-footer, .em-signup, .em-hero__media, .em-hero__scrim { display: none !important; }
	body { background: #fff; color: #111; }
	h1, h2, h3, h4 { color: #000; }
	a { color: #000; text-decoration: underline; }
}
