/*
Theme Name: Link Miller Noir
Theme URI: https://linkmiller.com/
Author: JAGTEK
Author URI: https://jagtek.net/
Description: Cinematic block theme for Link Miller — novelist, screenwriter, Marine aviator. Dark studio palette, marquee typography, screenplay slate.
Version: 1.2.0
Requires at least: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: linkmiller-noir
*/

/* ---------- Base ------------------------------------------------------------ */

:root {
	--lm-ink: var(--wp--preset--color--ink, #0a0a0b);
	--lm-charcoal: var(--wp--preset--color--charcoal, #131315);
	--lm-smoke: var(--wp--preset--color--smoke, #1d1d21);
	--lm-line: var(--wp--preset--color--line, #2b2b31);
	--lm-ivory: var(--wp--preset--color--ivory, #f2ece0);
	--lm-muted: var(--wp--preset--color--muted, #a59f93);
	--lm-gold: var(--wp--preset--color--gold, #c9a45c);
	--lm-gold-bright: var(--wp--preset--color--gold-bright, #e8c77e);
	--lm-crimson: var(--wp--preset--color--crimson, #9b1c26);
	--lm-display: var(--wp--preset--font-family--display);
	--lm-serif: var(--wp--preset--font-family--serif);
	--lm-ease: cubic-bezier(.2, .7, .2, 1);
	--lm-header-h: 76px;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
::selection { background: var(--lm-gold); color: var(--lm-ink); }
img { height: auto; max-width: 100%; }

/* Film grain over everything. Fixed, so it doesn't scroll like a texture. */
body::after {
	content: "";
	position: fixed;
	inset: -50%;
	z-index: 9999;
	pointer-events: none;
	opacity: .055;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	animation: lm-grain 1.2s steps(6) infinite;
}
@keyframes lm-grain {
	0% { transform: translate(0, 0); }
	20% { transform: translate(-3%, 2%); }
	40% { transform: translate(2%, -3%); }
	60% { transform: translate(-2%, -1%); }
	80% { transform: translate(3%, 3%); }
	100% { transform: translate(0, 0); }
}

.wp-site-blocks { padding-top: 0; }
.wp-site-blocks > main { margin-block-start: 0; }

/* Shared type treatments */
.lm-kicker,
.is-style-lm-kicker {
	font-family: var(--wp--preset--font-family--sans) !important;
	font-size: .75rem !important;
	font-weight: 600 !important;
	letter-spacing: .32em !important;
	text-transform: uppercase;
	color: var(--lm-gold);
	line-height: 1.4 !important;
	display: flex;
	align-items: center;
	gap: 1rem;
}
.lm-kicker::before,
.is-style-lm-kicker::before {
	content: "";
	width: 2.5rem;
	height: 1px;
	background: currentColor;
	flex: none;
}
.has-text-align-center.lm-kicker,
.has-text-align-center.is-style-lm-kicker { justify-content: center; }
.has-text-align-center.lm-kicker::after,
.has-text-align-center.is-style-lm-kicker::after {
	content: "";
	width: 2.5rem;
	height: 1px;
	background: currentColor;
	flex: none;
}

.lm-serif,
.lm-lede {
	font-family: var(--lm-serif);
	font-style: italic;
	font-weight: 500;
}
.lm-lede {
	font-size: clamp(1.35rem, 2.4vw, 1.9rem);
	line-height: 1.35;
	color: var(--lm-ivory);
}
.lm-muted { color: var(--lm-muted); }
.lm-gold { color: var(--lm-gold); }

/* Buttons */
.wp-block-button__link { transition: background-color .3s var(--lm-ease), color .3s var(--lm-ease), box-shadow .3s var(--lm-ease), transform .3s var(--lm-ease); }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(201, 164, 92, .55); }
.is-style-lm-ghost .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--lm-ivory) !important;
	border: 1px solid rgba(242, 236, 224, .45);
}
.is-style-lm-ghost .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--lm-gold);
	color: var(--lm-gold-bright) !important;
	box-shadow: none;
}

/* ---------- Header ---------------------------------------------------------- */

.lm-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	transition: background-color .4s var(--lm-ease), backdrop-filter .4s, border-color .4s;
	border-bottom: 1px solid transparent;
	background: linear-gradient(to bottom, rgba(10, 10, 11, .75), rgba(10, 10, 11, 0));
}
.admin-bar .lm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .lm-header { top: 46px; } }
.lm-scrolled .lm-header {
	background: rgba(10, 10, 11, .86);
	backdrop-filter: blur(12px) saturate(1.2);
	-webkit-backdrop-filter: blur(12px) saturate(1.2);
	border-bottom-color: rgba(201, 164, 92, .18);
}
.lm-header__inner {
	min-height: var(--lm-header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	max-width: 1400px;
	margin: 0 auto !important;
	padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.lm-wordmark {
	margin: 0 !important;
	font-family: var(--lm-display);
	font-size: 1.75rem;
	letter-spacing: .14em;
	line-height: 1;
	white-space: nowrap;
}
.lm-wordmark a { color: var(--lm-ivory); }
.lm-wordmark a:hover { color: var(--lm-gold-bright); }
.lm-wordmark small {
	font-family: var(--wp--preset--font-family--sans);
	font-size: .55rem;
	letter-spacing: .5em;
	color: var(--lm-gold);
	margin-left: .6rem;
	vertical-align: middle;
}

.lm-nav {
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .24em;
	text-transform: uppercase;
}
.lm-nav .wp-block-navigation__container { gap: 2rem; }
.lm-nav .wp-block-navigation-item__content { color: var(--lm-ivory); position: relative; padding: .35rem 0; }
.lm-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 1px;
	background: var(--lm-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s var(--lm-ease);
}
.lm-nav .wp-block-navigation-item__content:hover { color: var(--lm-gold-bright); }
.lm-nav .wp-block-navigation-item__content:hover::after,
.lm-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.lm-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: rgba(10, 10, 11, .97) !important;
	color: var(--lm-ivory) !important;
	padding: 6rem 2rem 2rem;
}
.lm-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 1.6rem;
	font-family: var(--lm-display);
	font-size: 2.4rem;
	letter-spacing: .06em;
}
.lm-nav .wp-block-navigation__responsive-container-open svg,
.lm-nav .wp-block-navigation__responsive-container-close svg { fill: var(--lm-ivory); }

/* ---------- Hero ------------------------------------------------------------ */

.lm-hero {
	position: relative;
	isolation: isolate;
	min-height: min(100vh, 64rem);
	min-height: min(100svh, 64rem);
	display: flex !important;
	flex-direction: column;
	justify-content: flex-end;
	padding: calc(var(--lm-header-h) + 4rem) clamp(1rem, 6vw, 5rem) clamp(4rem, 9vh, 6.5rem) !important;
	overflow: hidden;
	margin-block-start: 0 !important;
	background: var(--lm-ink);
	/* Letterbox bars. Borders sit outside the padding box, so overflow clips the plates
	   inside them: the frame reads as cinema before a word is read. */
	border-top: clamp(14px, 3vh, 30px) solid #000;
	border-bottom: clamp(14px, 3vh, 30px) solid #000;
}
/* Two plates, crossfading with a slow push-in. */
.lm-hero::before,
.lm-hero::after {
	content: "";
	position: absolute;
	inset: -4%;
	z-index: -2;
	background-size: cover;
	background-position: center 35%;
	animation: lm-plate 22s var(--lm-ease) infinite;
}
.lm-hero::before {
	background-image:
		linear-gradient(90deg, rgba(10,10,11,.92) 0%, rgba(10,10,11,.55) 45%, rgba(10,10,11,.15) 100%),
		linear-gradient(0deg, var(--lm-ink) 0%, rgba(10,10,11,0) 45%),
		url("assets/img/sparta.jpg");
}
.lm-hero::after {
	background-image:
		linear-gradient(90deg, rgba(10,10,11,.92) 0%, rgba(10,10,11,.55) 45%, rgba(10,10,11,.15) 100%),
		linear-gradient(0deg, var(--lm-ink) 0%, rgba(10,10,11,0) 45%),
		url("assets/img/goggles.jpg");
	animation-delay: -11s;
}
@keyframes lm-plate {
	0% { opacity: 0; transform: scale(1.0); }
	8% { opacity: 1; }
	46% { opacity: 1; }
	54% { opacity: 0; transform: scale(1.09); }
	100% { opacity: 0; transform: scale(1.09); }
}
.lm-hero > * { position: relative; max-width: 1240px; width: 100%; margin-left: auto !important; margin-right: auto !important; }
.lm-hero h1,
.lm-hero .lm-marquee {
	font-size: var(--wp--preset--font-size--marquee) !important;
	line-height: .86 !important;
	letter-spacing: .015em;
	margin: .2rem 0 0 !important;
	text-shadow: 0 6px 40px rgba(0, 0, 0, .55);
	background: linear-gradient(180deg, #fff 0%, var(--lm-ivory) 55%, #cdbfa4 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
/* Narrower than its siblings but still on their left edge, not centred. */
.lm-hero .lm-lede {
	max-width: 34rem;
	margin-top: 1rem !important;
	margin-left: max(0px, calc((100% - 1240px) / 2)) !important;
	margin-right: auto !important;
}
.lm-hero .wp-block-buttons { margin-top: 2.25rem !important; gap: 1rem; }

.lm-hero__credits {
	margin-top: clamp(2.5rem, 7vh, 4.5rem) !important;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(242, 236, 224, .14);
	font-size: .7rem !important;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--lm-muted);
}
.lm-hero__credits strong { color: var(--lm-ivory); font-weight: 500; }

.lm-scroll-cue {
	position: absolute !important;
	right: clamp(1rem, 4vw, 3rem);
	bottom: clamp(3rem, 7vh, 5rem);
	width: auto !important;
	writing-mode: vertical-rl;
	font-size: .62rem !important;
	letter-spacing: .4em;
	text-transform: uppercase;
	color: var(--lm-muted);
	margin: 0 !important;
}
.lm-scroll-cue::after {
	content: "";
	display: block;
	width: 1px;
	height: 3.5rem;
	margin: 1rem auto 0;
	background: linear-gradient(var(--lm-gold), transparent);
	animation: lm-cue 2.4s var(--lm-ease) infinite;
}
@keyframes lm-cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 700px) { .lm-scroll-cue { display: none; } }

/* ---------- Sections -------------------------------------------------------- */

.lm-section {
	padding-top: var(--wp--preset--spacing--70) !important;
	padding-bottom: var(--wp--preset--spacing--70) !important;
	margin-block-start: 0 !important;
}
.is-style-lm-section-dark,
.lm-section--dark { background: var(--lm-charcoal); }
.lm-section--rule { border-top: 1px solid var(--lm-line); }
.lm-section h2 { margin-top: .75rem; }

.lm-statement {
	text-align: center;
}
.lm-statement p.lm-lede {
	font-size: clamp(1.7rem, 3.6vw, 3rem);
	line-height: 1.22;
	max-width: 26ch;
	margin-left: auto !important;
	margin-right: auto !important;
}
.lm-statement .lm-signature {
	font-family: var(--lm-display);
	letter-spacing: .3em;
	color: var(--lm-gold);
	font-size: 1.1rem;
	margin-top: 2rem !important;
}

.lm-section-head {
	display: flex !important;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	margin-bottom: clamp(2rem, 5vw, 3.5rem) !important;
}
.lm-section-head > * { margin: 0 !important; }
.lm-section-head p:not(.lm-kicker) { max-width: 30rem; color: var(--lm-muted); }

/* ---------- Trailer --------------------------------------------------------- */

.lm-trailer {
	position: relative;
	padding: clamp(.6rem, 1.4vw, 1rem);
	background: #000;
	box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px var(--lm-line);
}
.lm-trailer::before,
.lm-trailer::after {
	content: "";
	position: absolute;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--lm-gold);
	pointer-events: none;
}
.lm-trailer::before { top: -.6rem; left: -.6rem; border-right: 0; border-bottom: 0; }
.lm-trailer::after { bottom: -.6rem; right: -.6rem; border-left: 0; border-top: 0; }
.lm-trailer .wp-block-embed { margin: 0; }
.lm-trailer figcaption { margin-bottom: 0; }

/* ---------- Slate (screenplay one-sheets) ---------------------------------- */

.lm-slate {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
	gap: clamp(1rem, 2vw, 1.75rem);
}
.lm-slate > * { margin: 0 !important; }

.lm-card {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 32rem;
	display: flex !important;
	flex-direction: column;
	justify-content: flex-end;
	padding: clamp(1.5rem, 3vw, 2.25rem) !important;
	background: var(--lm-smoke);
	border: 1px solid var(--lm-line);
	transition: transform .6s var(--lm-ease), border-color .6s var(--lm-ease), box-shadow .6s var(--lm-ease);
}
.lm-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background-size: cover;
	background-position: center;
	transition: transform 1.2s var(--lm-ease), filter 1.2s var(--lm-ease);
	filter: saturate(.85) brightness(.85);
}
.lm-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(0deg, rgba(10,10,11,.97) 8%, rgba(10,10,11,.7) 48%, rgba(10,10,11,.15) 100%);
}
.lm-card:hover { transform: translateY(-6px); border-color: rgba(201, 164, 92, .55); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.lm-card:hover::before { transform: scale(1.06); filter: saturate(1) brightness(1); }
.lm-card > * { margin: 0 !important; }
.lm-card__no {
	position: absolute !important;
	top: clamp(1.25rem, 2.5vw, 1.75rem);
	left: clamp(1.5rem, 3vw, 2.25rem);
	font-family: var(--lm-display);
	font-size: 1rem !important;
	letter-spacing: .3em;
	color: var(--lm-gold);
}
.lm-card__genre {
	font-size: .66rem !important;
	font-weight: 600;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--lm-gold);
}
.lm-card h3 {
	font-size: clamp(2.4rem, 4vw, 3.4rem) !important;
	margin-top: .6rem !important;
	line-height: .9 !important;
}
.lm-card__logline {
	margin-top: 1rem !important;
	font-size: .95rem !important;
	line-height: 1.6 !important;
	color: rgba(242, 236, 224, .82);
}
.lm-card__tag {
	margin-top: 1.4rem !important;
	padding-top: 1rem;
	border-top: 1px solid rgba(242, 236, 224, .14);
	font-size: .66rem !important;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--lm-muted);
}
.lm-card__tag a { color: var(--lm-gold-bright); }

/* Plates: artwork where it exists, painted light where it doesn't. */
.lm-card--sparta::before { background-image: url("assets/img/sparta.jpg"); background-position: 30% center; }
.lm-card--goggles::before { background-image: url("assets/img/goggles.jpg"); }
.lm-card--ash::before {
	background:
		radial-gradient(ellipse 80% 55% at 70% 18%, rgba(255, 110, 40, .55), transparent 60%),
		radial-gradient(ellipse 60% 40% at 20% 30%, rgba(160, 40, 20, .5), transparent 70%),
		linear-gradient(180deg, #2a120b, #0d0807);
}
.lm-card--ice::before {
	background:
		radial-gradient(ellipse 90% 50% at 60% 10%, rgba(170, 205, 235, .4), transparent 65%),
		repeating-linear-gradient(115deg, rgba(255,255,255,.02) 0 2px, transparent 2px 9px),
		linear-gradient(180deg, #1b2733, #0a0e13);
}
.lm-card--sea::before {
	background:
		radial-gradient(ellipse 70% 45% at 40% 15%, rgba(90, 160, 130, .38), transparent 65%),
		radial-gradient(ellipse 50% 30% at 80% 40%, rgba(150, 20, 25, .35), transparent 70%),
		linear-gradient(180deg, #0f2220, #050a0a);
}
.lm-card--frontier::before {
	background:
		radial-gradient(ellipse 85% 55% at 65% 15%, rgba(230, 170, 90, .45), transparent 62%),
		linear-gradient(180deg, #3a2614, #120b06);
}
.lm-card--ash h3, .lm-card--ice h3, .lm-card--sea h3, .lm-card--frontier h3 { text-shadow: 0 4px 30px rgba(0,0,0,.6); }

/* Large slate entries on the Screenplays page */
.lm-slate--full .lm-card { min-height: 36rem; }

/* ---------- Books & feature splits ----------------------------------------- */

.lm-split {
	display: grid !important;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: center;
}
.lm-split--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.lm-split--flip > :first-child { order: 2; }
.lm-split > * { margin: 0 !important; }
@media (max-width: 860px) {
	.lm-split, .lm-split--flip { grid-template-columns: 1fr; }
	.lm-split--flip > :first-child { order: 0; }
}

.lm-frame img,
.is-style-lm-frame img {
	box-shadow: 0 40px 100px -35px rgba(0, 0, 0, .95);
	outline: 1px solid rgba(201, 164, 92, .45);
	outline-offset: 12px;
}
.lm-frame,
.is-style-lm-frame { margin: 12px; }

.lm-book {
	background: var(--lm-smoke);
	border: 1px solid var(--lm-line);
	display: flex !important;
	flex-direction: column;
	overflow: hidden;
	transition: transform .6s var(--lm-ease), border-color .6s var(--lm-ease);
}
.lm-book:hover { transform: translateY(-5px); border-color: rgba(201, 164, 92, .5); }
.lm-book > * { margin: 0 !important; }
.lm-book .wp-block-image { aspect-ratio: 4 / 3; overflow: hidden; }
.lm-book .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--lm-ease); }
.lm-book:hover .wp-block-image img { transform: scale(1.05); }
.lm-book__body { padding: 1.6rem 1.75rem 1.9rem !important; display: flex; flex-direction: column; gap: .7rem; }
.lm-book__body > * { margin: 0 !important; }
.lm-book h3 { font-size: 2.2rem !important; }
.lm-book p { font-size: .95rem; color: rgba(242, 236, 224, .8); }

.lm-shelf {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
	gap: clamp(1rem, 2vw, 1.75rem);
}
.lm-shelf > * { margin: 0 !important; }

.lm-badge {
	display: inline-block;
	align-self: flex-start;
	padding: .35rem .7rem;
	border: 1px solid var(--lm-gold);
	color: var(--lm-gold);
	font-size: .62rem !important;
	font-weight: 600;
	letter-spacing: .28em;
	text-transform: uppercase;
	line-height: 1.2 !important;
}
.lm-badge--solid { background: var(--lm-gold); color: var(--lm-ink); }

/* Then / now portraits on About */
.lm-duo {
	display: grid !important;
	grid-template-columns: 1.6fr 1fr;
	gap: 1rem;
	align-items: end;
}
.lm-duo > * { margin: 0 !important; }
.lm-duo figure { position: relative; }
.lm-duo img { width: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.05); }
.lm-duo figcaption {
	position: absolute;
	left: .9rem; bottom: .6rem;
	margin: 0 !important;
	font-family: var(--lm-display);
	font-size: 1.1rem !important;
	letter-spacing: .3em;
	color: var(--lm-ivory) !important;
	text-shadow: 0 2px 12px rgba(0,0,0,.8);
}

/* Fact strip */
.lm-facts {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
	border-top: 1px solid var(--lm-line);
	border-bottom: 1px solid var(--lm-line);
}
.lm-facts > * { margin: 0 !important; padding: 1.75rem 1.25rem; border-right: 1px solid var(--lm-line); }
.lm-facts > *:last-child { border-right: 0; }
.lm-facts strong {
	display: block;
	font-family: var(--lm-display);
	font-weight: 400;
	font-size: 2.6rem;
	line-height: 1;
	color: var(--lm-gold);
	letter-spacing: .03em;
}
.lm-facts span { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--lm-muted); }
@media (max-width: 640px) { .lm-facts > * { border-right: 0; border-bottom: 1px solid var(--lm-line); } .lm-facts > *:last-child { border-bottom: 0; } }

/* ---------- Press / on the scene ------------------------------------------ */

.lm-press.wp-block-gallery,
.lm-press {
	gap: clamp(.6rem, 1.4vw, 1rem) !important;
}
.lm-press figure img { filter: grayscale(.15) contrast(1.05); transition: filter .8s var(--lm-ease), transform 1.2s var(--lm-ease); }
.lm-press figure:hover img { filter: none; transform: scale(1.03); }
.lm-press figure { overflow: hidden; }
.lm-press figcaption {
	font-size: .66rem !important;
	letter-spacing: .24em;
	text-transform: uppercase;
	background: linear-gradient(0deg, rgba(10,10,11,.9), transparent) !important;
	padding: 2.5rem .9rem .8rem !important;
	text-align: left !important;
}

/* ---------- Contact CTA ---------------------------------------------------- */

.lm-cta {
	position: relative;
	isolation: isolate;
	text-align: center;
	overflow: hidden;
}
.lm-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 60% 70% at 50% 0%, rgba(201, 164, 92, .16), transparent 70%),
		radial-gradient(ellipse 40% 50% at 50% 100%, rgba(155, 28, 38, .18), transparent 70%);
}
.lm-cta h2 { font-size: clamp(3rem, 8vw, 6.5rem) !important; }
.lm-cta .lm-email {
	font-family: var(--lm-serif);
	font-style: italic;
	font-size: clamp(1.3rem, 3vw, 2rem);
	margin-top: 1.5rem !important;
}
.lm-cta .lm-email a { border-bottom: 1px solid rgba(201, 164, 92, .4); padding-bottom: .15rem; }
.lm-cta .wp-block-social-links { justify-content: center; margin-top: 2rem !important; }

/* Social icons: hairline circles */
.wp-block-social-links.is-style-logos-only .wp-social-link {
	border: 1px solid rgba(242, 236, 224, .25);
	border-radius: 50%;
	padding: .55rem;
	transition: border-color .3s, color .3s, transform .3s;
	color: var(--lm-ivory);
}
.wp-block-social-links.is-style-logos-only .wp-social-link:hover { border-color: var(--lm-gold); color: var(--lm-gold); transform: translateY(-2px); }

/* ---------- Interior page hero -------------------------------------------- */

.lm-pagehero {
	position: relative;
	isolation: isolate;
	padding: calc(var(--lm-header-h) + clamp(4rem, 12vh, 8rem)) clamp(1rem, 6vw, 5rem) clamp(3rem, 8vh, 5rem) !important;
	margin-block-start: 0 !important;
	border-bottom: 1px solid var(--lm-line);
	overflow: hidden;
}
.lm-pagehero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 55% 90% at 85% 0%, rgba(201, 164, 92, .14), transparent 70%),
		radial-gradient(ellipse 40% 70% at 0% 100%, rgba(155, 28, 38, .14), transparent 70%),
		var(--lm-ink);
}
.lm-pagehero > * { max-width: 1240px; margin-left: auto !important; margin-right: auto !important; }
.lm-pagehero .wp-block-post-title {
	font-size: clamp(3.75rem, 11vw, 9rem) !important;
	line-height: .86;
	margin-top: .75rem !important;
}

.lm-page-content { padding-bottom: var(--wp--preset--spacing--60); }
.lm-page-content > .wp-block-group.alignfull:first-child { margin-top: 0 !important; }

/* ---------- Trailer poster: click-to-play, never shows YouTube's 480px thumbnail ---------- */

.lm-trailer.alignwide { max-width: 1000px !important; margin-left: auto !important; margin-right: auto !important; }
.lm-trailer__poster,
.lm-trailer__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; background: #0d0807; }
.lm-trailer__poster {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: clamp(1.25rem, 4vw, 3rem);
	cursor: pointer;
}
.lm-trailer__poster > * { margin: 0 !important; }
.lm-trailer__bg {
	position: absolute;
	inset: -40px;
	z-index: -2;
	background-size: cover;
	background-position: center;
	filter: blur(22px) saturate(1.25) brightness(.55);
	transition: transform 1.4s var(--lm-ease);
}
.lm-trailer__poster::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 70% 60% at 72% 18%, rgba(255, 110, 40, .32), transparent 60%),
		linear-gradient(0deg, rgba(5, 5, 6, .94) 0%, rgba(5, 5, 6, .15) 62%, rgba(5, 5, 6, .55) 100%);
}
.lm-trailer__title { font-size: clamp(2.75rem, 8vw, 6.5rem) !important; line-height: .88; margin-top: .6rem !important; }
.lm-trailer__sub { color: var(--lm-muted); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; margin-top: .8rem !important; }
.lm-trailer__play {
	position: absolute;
	top: 42%;
	left: 50%;
	width: clamp(4.25rem, 9vw, 6.5rem);
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	border: 1px solid rgba(201, 164, 92, .75);
	background: rgba(10, 10, 12, .35);
	backdrop-filter: blur(6px);
	transition: transform .5s var(--lm-ease), background-color .5s var(--lm-ease);
}
.lm-trailer__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: .8rem 0 .8rem 1.35rem;
	border-color: transparent transparent transparent var(--lm-gold-bright);
	transition: border-color .5s var(--lm-ease);
}
.lm-trailer__poster:hover .lm-trailer__bg { transform: scale(1.06); }
.lm-trailer__poster:hover .lm-trailer__play { transform: translate(-50%, -50%) scale(1.08); background-color: var(--lm-gold); }
.lm-trailer__poster:hover .lm-trailer__play::after { border-left-color: var(--lm-ink); }
.lm-trailer__poster:focus-visible { outline: 2px solid var(--lm-gold); outline-offset: 4px; }
.lm-trailer__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) { .lm-trailer__play { top: 30%; width: 3.75rem; } .lm-trailer__play::after { border-width: .6rem 0 .6rem 1rem; } }

/* ---------- Patricia Chandler imprint: crimson velvet, gold serif ---------- */

.lm-pagehero--velvet::before {
	background:
		radial-gradient(ellipse 55% 90% at 82% 0%, rgba(201, 164, 92, .2), transparent 70%),
		radial-gradient(ellipse 75% 110% at 5% 100%, rgba(155, 28, 38, .6), transparent 70%),
		linear-gradient(165deg, #2b0609 0%, #12070a 55%, var(--lm-ink) 100%);
}
.lm-pagehero--velvet .wp-block-post-title,
.lm-imprint__name {
	font-family: var(--lm-serif) !important;
	font-weight: 500 !important;
	text-transform: none !important;
	letter-spacing: .01em !important;
	line-height: .95 !important;
	color: var(--lm-gold-bright);
}
.lm-pagehero--velvet .wp-block-post-title { font-size: clamp(3.25rem, 9vw, 7.5rem) !important; }
.lm-imprint__name { font-size: clamp(2.75rem, 6vw, 4.75rem) !important; }
.lm-imprint__tagline {
	font-family: var(--lm-serif);
	font-style: italic;
	font-size: clamp(1.25rem, 2.4vw, 1.75rem);
	color: var(--lm-ivory);
	margin-top: 1.25rem !important;
}
.lm-section--velvet {
	background:
		radial-gradient(ellipse 70% 110% at 0% 0%, rgba(155, 28, 38, .32), transparent 65%),
		radial-gradient(ellipse 50% 80% at 100% 100%, rgba(201, 164, 92, .08), transparent 70%),
		#110709;
}
.lm-imprint h2 { font-family: var(--lm-serif); font-weight: 500; text-transform: none; letter-spacing: .01em; }
.lm-cover { max-width: 26rem; justify-self: center; }
.lm-cover img { width: 100%; }
.lm-imprint__logo img { max-width: min(100%, 26rem); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .95); }
.lm-imprint__logo { justify-self: center; }
.lm-section--velvet .wp-block-buttons.is-content-justification-center { margin-top: 2.5rem; }
.lm-imprint > .lm-page-content { margin-block-start: 0 !important; }

.lm-shelf--duo { grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); }
.lm-shelf--duo .wp-block-image { aspect-ratio: 16 / 9; }

/* ---------- Footer --------------------------------------------------------- */

.lm-footer {
	border-top: 1px solid var(--lm-line);
	padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 2.5rem) 2rem !important;
	background: #070708;
	margin-block-start: 0 !important;
}
.lm-footer__top {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 2rem;
	max-width: 1240px;
	margin: 0 auto !important;
}
.lm-footer__top > * { margin: 0 !important; }
.lm-footer .lm-wordmark { font-size: clamp(2.5rem, 6vw, 4rem); }
.lm-footer .lm-tagline { font-family: var(--lm-serif); font-style: italic; font-size: 1.25rem; color: var(--lm-muted); margin-top: .5rem !important; }
.lm-footer__bottom {
	max-width: 1240px;
	margin: 3rem auto 0 !important;
	padding-top: 1.5rem;
	border-top: 1px solid var(--lm-line);
	display: flex !important;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--lm-muted);
}
.lm-footer__bottom > * { margin: 0 !important; }
.lm-footer__bottom a { color: var(--lm-muted); }
.lm-footer__bottom a:hover { color: var(--lm-gold); }

/* ---------- Motion --------------------------------------------------------- */

.lm-motion .lm-reveal,
.lm-motion .lm-card,
.lm-motion .lm-book,
.lm-motion .lm-press figure {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 1s var(--lm-ease), transform 1s var(--lm-ease), border-color .6s var(--lm-ease), box-shadow .6s var(--lm-ease);
}
.lm-motion .is-visible { opacity: 1 !important; transform: none; }
.lm-motion .lm-card.is-visible:hover,
.lm-motion .lm-book.is-visible:hover { transform: translateY(-6px); }
.lm-slate > *:nth-child(3n+2), .lm-shelf > *:nth-child(3n+2) { transition-delay: .08s; }
.lm-slate > *:nth-child(3n+3), .lm-shelf > *:nth-child(3n+3) { transition-delay: .16s; }

.lm-hero .lm-kicker, .lm-hero h1, .lm-hero .lm-lede, .lm-hero .wp-block-buttons, .lm-hero__credits {
	animation: lm-rise 1.4s var(--lm-ease) both;
}
.lm-hero h1 { animation-delay: .15s; }
.lm-hero .lm-lede { animation-delay: .35s; }
.lm-hero .wp-block-buttons { animation-delay: .5s; }
.lm-hero__credits { animation-delay: .7s; }
@keyframes lm-rise { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.lm-hero::after { display: none; }
	.lm-hero::before { opacity: 1; }
}

/* ---------- Editor --------------------------------------------------------- */

.editor-styles-wrapper .lm-header { position: relative; }
.editor-styles-wrapper .lm-hero { min-height: 70vh; }
.editor-styles-wrapper .lm-card,
.editor-styles-wrapper .lm-book,
.editor-styles-wrapper .lm-reveal { opacity: 1 !important; transform: none !important; }
