/**
 * Noir & 4Ever :: Core stylesheet
 *
 * Structure
 *   1.  Design tokens (custom properties -- overridden live by Theme Options)
 *   2.  Reset & base elements
 *   3.  Typography
 *   4.  Layout primitives
 *   5.  Buttons, forms, tables
 *   6.  Top strip
 *   7.  Header / navigation
 *   8.  Mobile drawer
 *   9.  Hero
 *   12. Generic sections (features, testimonials, FAQ, CTA)
 *   13. Blog, archive, comments
 *   14. Widgets & sidebar
 *   15. Footer
 *   17. Search overlay, back-to-top, preloader
 *   18. Accessibility & utilities
 *   19. Print
 *   20. Component styles for widget and template-part markup
 *   21. Film grain and noir accents
 *   22. Book covers and cards
 *   23. Book page and library
 *   24. Timeline, stats, steps
 *   25. Video
 *   26. Sign-up band and reader forms
 *   27. Elementor compatibility
 *   28. Gift page (ad landing)
 *   29. Christmas look
 *
 * Every colour, radius and font is a custom property so the Theme Options
 * panel can repaint the whole theme without touching this file.
 */

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
	/* Brand palette: black, gold and silver-screen ivory. */
	--nf-black: #050505;          /* header, footer, dark bands */
	--nf-ink: #0d0d0e;            /* page canvas */
	--nf-ink-2: #19181a;          /* raised panels, cards */
	--nf-primary: #d4af37;        /* gold: buttons, links, eyebrows, rules */
	--nf-primary-hover: #e6c65c;
	--nf-accent: #b3261e;         /* marquee red: new-release badges */
	--nf-surface: #141315;        /* inputs */
	--nf-surface-2: #222024;      /* hairlines, subtle fills */
	--nf-card: #111012;
	--nf-footer-bg: #050505;
	--nf-silver: #e8e4da;

	/* Derived / semantic */
	--nf-body-bg: var(--nf-ink);
	--nf-body-color: #c9c4b8;
	--nf-heading-color: #f4f0e6;
	--nf-muted: #8f8a80;
	--nf-muted-light: #6b665e;
	--nf-border: rgba(244, 240, 230, .1);
	--nf-border-gold: rgba(212, 175, 55, .35);
	--nf-white: #ffffff;

	/* Status */
	--nf-success: #6b9e6e;
	--nf-error: #d9534f;
	--nf-warning: #d4a017;
	--nf-info: #7aa7c7;

	/* Typography */
	--nf-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--nf-font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--nf-font-body: var(--nf-font-sans);
	--nf-font-heading: var(--nf-font-serif);
	--nf-body-size: 17px;
	--nf-body-weight: 400;
	--nf-body-line: 1.7;
	--nf-heading-weight: 600;
	--nf-heading-line: 1.12;

	/* Rhythm */
	--nf-container: 1280px;
	--nf-content-width: 760px;
	--nf-gutter: 1rem;
	--nf-section-y: 3.5rem;
	--nf-btn-text: #0d0d0e;
	--nf-radius: 2px;
	--nf-radius-lg: 4px;
	--nf-radius-pill: 999px;

	/* Elevation */
	--nf-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
	--nf-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
	--nf-shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .9);
	--nf-shadow-cover: 0 30px 60px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(244, 240, 230, .06);
	--nf-glow: 0 0 0 1px var(--nf-border-gold), 0 20px 50px -20px rgba(212, 175, 55, .35);

	/* Motion */
	--nf-ease: cubic-bezier(.4, 0, .2, 1);
	--nf-ease-out: cubic-bezier(.16, 1, .3, 1);
	--nf-speed: .3s;

	/* Layering -- single source of truth, keeps us out of z-index wars. */
	--nf-z-sticky: 40;
	--nf-z-topbar: 45;
	/*
	 * The backdrop must sit BELOW the panels it dims, otherwise the dark layer
	 * covers the drawer and nothing inside it can be clicked.
	 */
	--nf-z-overlay: 85;
	--nf-z-drawer: 90;
	--nf-z-modal: 100;
	--nf-z-grain: 110;

	/* Chrome heights -- JS keeps these in sync for scroll offsets. */
	--nf-header-h: 72px;
	--nf-admin-bar: 0px;
}

@media (min-width: 640px) {
	:root { --nf-gutter: 1.5rem; --nf-section-y: 4.5rem; }
}

@media (min-width: 1024px) {
	:root { --nf-gutter: 2rem; --nf-section-y: 6.5rem; }
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--nf-header-h) + var(--nf-admin-bar) + 16px);
}

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

body {
	margin: 0;
	background-color: var(--nf-body-bg);
	color: var(--nf-body-color);
	font-family: var(--nf-font-body);
	font-size: var(--nf-body-size);
	font-weight: var(--nf-body-weight);
	line-height: var(--nf-body-line);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.nf-no-scroll { overflow: hidden; }

img, svg, video, canvas, iframe, embed, object {
	display: block;
	max-width: 100%;
}

img, video { height: auto; }

svg { fill: currentColor; }

/* Icons in this theme are stroked, not filled -- opt out of the rule above. */
svg[stroke] { fill: none; }

a {
	color: var(--nf-primary);
	text-decoration: none;
	transition: color var(--nf-speed) var(--nf-ease);
}

a:hover { color: var(--nf-primary-hover); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--nf-primary);
	outline-offset: 2px;
	border-radius: var(--nf-radius);
}

hr {
	border: 0;
	border-top: 1px solid var(--nf-border);
	margin: 2rem 0;
}

::selection {
	background: var(--nf-primary);
	color: var(--nf-btn-text);
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .75em;
	color: var(--nf-heading-color);
	font-family: var(--nf-font-heading);
	font-weight: var(--nf-heading-weight);
	line-height: var(--nf-heading-line);
}

h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.875rem, 1.3rem + 2.3vw, 3.25rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem); }
h4 { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

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

ul, ol { margin: 0 0 1.25em; padding-left: 1.25em; }
li > ul, li > ol { margin-bottom: 0; }

blockquote {
	margin: 2rem 0;
	padding: 1rem 0 1rem 1.5rem;
	border-left: 3px solid var(--nf-primary);
	color: var(--nf-heading-color);
	font-family: var(--nf-font-heading);
	font-size: 1.25rem;
	font-style: italic;
}

blockquote cite {
	display: block;
	margin-top: .75rem;
	color: var(--nf-muted);
	font-family: var(--nf-font-body);
	font-size: .8125rem;
	font-style: normal;
	letter-spacing: .1em;
	text-transform: uppercase;
}

code, kbd, pre, samp {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .9em;
}

code {
	padding: .15em .4em;
	background: var(--nf-surface-2);
	border-radius: var(--nf-radius);
}

pre {
	overflow-x: auto;
	margin: 0 0 1.25em;
	padding: 1.25rem;
	background: var(--nf-black);
	color: var(--nf-white);
	border-radius: var(--nf-radius-lg);
}

pre code { background: none; padding: 0; color: inherit; }

figure { margin: 0 0 1.5em; }

figcaption {
	margin-top: .5rem;
	color: var(--nf-muted);
	font-size: .8125rem;
	text-align: center;
}

/* Shared editorial accents ------------------------------------------------ */

.nf-eyebrow {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin-bottom: 1rem;
	color: var(--nf-primary);
	font-family: var(--nf-font-body);
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .26em;
	line-height: 1.4;
	text-transform: uppercase;
}

.nf-eyebrow::before {
	content: "";
	flex: none;
	width: 2rem;
	height: 1px;
	background: currentColor;
}

.nf-eyebrow a { color: inherit; }

.nf-section-head--center .nf-eyebrow { justify-content: center; }
.nf-section-head--center .nf-eyebrow::before { display: none; }

@media (min-width: 768px) {
	.nf-eyebrow { font-size: .75rem; }
}

.nf-title { margin: 0; font-family: var(--nf-font-heading); }

.nf-subtitle {
	max-width: 40rem;
	margin-top: 1rem;
	color: var(--nf-body-color);
	font-weight: 300;
	font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
}

.nf-section-head--center .nf-subtitle { margin-inline: auto; }

.nf-monogram {
	display: inline-block;
	color: var(--nf-primary);
	font-family: var(--nf-font-heading);
	line-height: 1;
}

/* ==========================================================================
   4. Layout primitives
   ========================================================================== */

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

.nf-container--narrow { max-width: 1200px; }
.nf-container--content { max-width: var(--nf-content-width); }

.nf-section { padding-block: var(--nf-section-y); }
.nf-section--flush-top { padding-top: 0; }
.nf-section--flush-bottom { padding-bottom: 0; }

.nf-site { display: flex; flex-direction: column; min-height: 100vh; }
.nf-site-content { flex: 1 0 auto; }

/* Content + sidebar shell, used by blog/archive/page/shop. */
.nf-layout {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: minmax(0, 1fr);
	padding-block: var(--nf-section-y);
}

@media (min-width: 1024px) {
	.nf-layout--sidebar-right { grid-template-columns: minmax(0, 1fr) 320px; }
	.nf-layout--sidebar-left  { grid-template-columns: 320px minmax(0, 1fr); }
	.nf-layout--sidebar-left .nf-layout__main { order: 2; }
	.nf-layout--sidebar-left .nf-layout__aside { order: 1; }
	.nf-layout { gap: 3.5rem; }
}

.nf-layout__main { min-width: 0; }

/*
 * Page builder layouts supply their own section padding, so the wrapper drops
 * its own and the content starts directly under the header.
 */
.nf-layout--flush { padding-block: 0; }

/* Flexible grid used by posts and feature rows. */
.nf-grid { display: grid; gap: .75rem; }

@media (min-width: 640px) { .nf-grid { gap: 1rem; } }
@media (min-width: 768px) { .nf-grid { gap: 1.5rem; } }

.nf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nf-grid--auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

@media (min-width: 640px) {
	.nf-grid--sm-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nf-grid--sm-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
	.nf-grid--md-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nf-grid--md-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nf-grid--md-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.nf-grid--lg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nf-grid--lg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.nf-grid--lg-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.nf-grid--lg-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.nf-grid--lg-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

/* Section header: eyebrow + title on the left, a link on the right. */
.nf-section-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 2rem;
}

@media (min-width: 640px) {
	.nf-section-head {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		margin-bottom: 2.5rem;
	}
}

.nf-section-head--center {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.nf-section-head__link {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	color: var(--nf-heading-color);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	white-space: nowrap;
}

.nf-section-head__link:hover { color: var(--nf-primary); }
.nf-section-head__link svg { width: .875rem; height: .875rem; }

@media (min-width: 768px) {
	.nf-section-head__link { font-size: .875rem; }
	.nf-section-head__link svg { width: 1rem; height: 1rem; }
}

/* ==========================================================================
   5. Buttons, forms, tables
   ========================================================================== */

.nf-btn,
.nf-content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .75rem;
	padding: .875rem 1.625rem;
	border: 1px solid transparent;
	border-radius: var(--nf-radius);
	background: var(--nf-primary);
	color: var(--nf-btn-text);
	font-family: var(--nf-font-body);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .16em;
	line-height: 1.2;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	transition: background-color var(--nf-speed) var(--nf-ease),
	            color var(--nf-speed) var(--nf-ease),
	            border-color var(--nf-speed) var(--nf-ease),
	            transform var(--nf-speed) var(--nf-ease);
}

.nf-btn:hover {
	background: var(--nf-primary-hover);
	color: var(--nf-btn-text);
	box-shadow: 0 10px 30px -12px rgba(212, 175, 55, .6);
}

.nf-btn:active { transform: translateY(1px); }

.nf-btn svg { width: 1rem; height: 1rem; flex: none; }

@media (min-width: 640px) {
	.nf-btn { padding: 1rem 2.125rem; font-size: .75rem; }
}

.nf-btn--block { width: 100%; }

@media (min-width: 640px) {
	.nf-btn--block { width: auto; }
}

.nf-btn--outline {
	background: transparent;
	border-color: var(--nf-primary);
	color: var(--nf-primary);
}

.nf-btn--outline:hover {
	background: var(--nf-primary);
	color: var(--nf-btn-text);
}

.nf-btn--dark { background: var(--nf-black); color: var(--nf-white); }
.nf-btn--dark:hover { background: var(--nf-ink); color: var(--nf-white); }

/* Light buttons keep dark text; white on cream would be unreadable. */
.nf-btn--light { background: var(--nf-surface); color: var(--nf-white); }
.nf-btn--light:hover { background: var(--nf-card); color: var(--nf-white); }

.nf-btn--ghost {
	background: transparent;
	border-color: rgba(244, 240, 230, .35);
	color: var(--nf-silver);
}

.nf-btn--ghost:hover {
	background: transparent;
	border-color: var(--nf-primary);
	color: var(--nf-primary);
	box-shadow: none;
}

.nf-btn--sm { padding: .5rem 1rem; font-size: .6875rem; }
.nf-btn--lg { padding: 1.125rem 2.5rem; font-size: .9375rem; }

.nf-btn[disabled],
.nf-btn.nf-is-loading {
	opacity: .6;
	pointer-events: none;
}

.nf-btn.nf-is-loading::after {
	content: "";
	width: 1em;
	height: 1em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: nf-spin .6s linear infinite;
}

@keyframes nf-spin { to { transform: rotate(360deg); } }

/* Text link with an animated underline. */
.nf-link {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	color: var(--nf-muted);
	font-size: .625rem;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.nf-link:hover { color: var(--nf-primary); }
.nf-link svg { width: .75rem; height: .75rem; }

@media (min-width: 768px) { .nf-link { font-size: .75rem; } }

/* Forms ------------------------------------------------------------------- */

input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], input[type="date"],
input[type="month"], input[type="week"], input[type="time"], input[type="datetime-local"],
select, textarea {
	width: 100%;
	max-width: 100%;
	padding: .75rem 1rem;
	background: var(--nf-card);
	border: 1px solid var(--nf-border);
	border-radius: var(--nf-radius);
	color: var(--nf-body-color);
	font-family: inherit;
	font-size: .9375rem;
	line-height: 1.5;
	transition: border-color var(--nf-speed) var(--nf-ease), box-shadow var(--nf-speed) var(--nf-ease);
	appearance: none;
}

select {
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23d4af37' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .875rem center;
	background-size: 1rem;
}

input:focus, select:focus, textarea:focus {
	border-color: var(--nf-primary);
	box-shadow: 0 0 0 3px rgba(212, 175, 55, .2);
	outline: none;
}

textarea { min-height: 9rem; resize: vertical; }

::placeholder { color: var(--nf-muted-light); opacity: 1; }

label {
	display: block;
	margin-bottom: .375rem;
	color: var(--nf-heading-color);
	font-size: .8125rem;
	font-weight: 500;
}

input[type="checkbox"], input[type="radio"] {
	width: 1rem;
	height: 1rem;
	margin-right: .5rem;
	accent-color: var(--nf-primary);
	vertical-align: middle;
}

input[type="submit"], button[type="submit"] { cursor: pointer; }

fieldset {
	margin: 0 0 1.5rem;
	padding: 1.25rem;
	border: 1px solid var(--nf-border);
	border-radius: var(--nf-radius);
}

legend { padding-inline: .5rem; font-size: .8125rem; font-weight: 600; }

/* Tables ------------------------------------------------------------------ */

table {
	width: 100%;
	margin-bottom: 1.5rem;
	border-collapse: collapse;
	font-size: .9375rem;
}

th, td {
	padding: .875rem 1rem;
	border-bottom: 1px solid var(--nf-border);
	text-align: left;
}

th {
	color: var(--nf-heading-color);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* ==========================================================================
   6. Top strip
   ========================================================================== */

.nf-topbar {
	position: relative;
	z-index: var(--nf-z-topbar);
	width: 100%;
	background: var(--nf-black);
	border-bottom: 1px solid var(--nf-border);
	color: var(--nf-muted);
	font-size: .75rem;
	letter-spacing: .04em;
}

.nf-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .75rem 2rem;
	min-height: 2.5rem;
	padding-block: .375rem;
}

@media (min-width: 768px) {
	.nf-topbar__inner { justify-content: space-between; }
}

.nf-topbar a { color: inherit; }
.nf-topbar a:hover { color: var(--nf-primary); }

.nf-topbar__email {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	color: var(--nf-primary) !important;
}

.nf-topbar__email svg { width: 1rem; height: 1rem; flex: none; }

.nf-topbar__message {
	display: none;
	margin: 0;
	color: var(--nf-silver);
	letter-spacing: .12em;
	text-transform: uppercase;
	font-size: .6875rem;
}

.nf-topbar__message a { display: inline-flex; align-items: center; gap: .375rem; }
.nf-topbar__message svg { width: .875rem; height: .875rem; color: var(--nf-primary); }

@media (min-width: 900px) { .nf-topbar__message { display: block; } }

.nf-topbar__social { display: none; }

@media (min-width: 768px) { .nf-topbar__social { display: flex; } }

.nf-social--sm { gap: .375rem; }
.nf-social--sm a { width: 1.75rem; height: 1.75rem; border-color: transparent; }
.nf-social--sm svg { width: .875rem; height: .875rem; }

/* ==========================================================================
   7. Header / navigation
   ========================================================================== */

.nf-header {
	position: relative;
	z-index: var(--nf-z-sticky);
	width: 100%;
	background: rgba(5, 5, 5, .92);
	border-bottom: 1px solid var(--nf-border);
	backdrop-filter: saturate(1.2) blur(10px);
	-webkit-backdrop-filter: saturate(1.2) blur(10px);
	transition: background-color var(--nf-speed) var(--nf-ease), border-color var(--nf-speed) var(--nf-ease);
}

.nf-header--sticky { position: sticky; top: var(--nf-admin-bar); }

/* Shrink-on-scroll: purely a padding change so nothing reflows sideways. */
.nf-header--scrolled .nf-header__inner { padding-block: .5rem; }

@media (min-width: 640px) {
	.nf-header--scrolled .nf-header__inner { padding-block: .75rem; }
}

.nf-header--transparent {
	position: absolute;
	inset-inline: 0;
	background: linear-gradient(180deg, rgba(5, 5, 5, .75), transparent);
	border-bottom-color: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

/* A transparent header that is also sticky turns solid and fixed once scrolled. */
.nf-header--transparent,
.nf-header--transparent.nf-header--sticky { position: absolute; top: var(--nf-header-offset, 0px); }

/* Before the script measures it, assume the one-line top strip. */
.nf-has-topbar .nf-header--transparent,
.nf-has-topbar .nf-header--transparent.nf-header--sticky { top: var(--nf-header-offset, calc(2.5625rem + var(--nf-admin-bar))); }
.nf-header--transparent.nf-header--sticky.nf-header--scrolled { position: fixed; top: var(--nf-admin-bar); }
.nf-header--transparent.nf-header--scrolled {
	background: rgba(5, 5, 5, .94);
	border-bottom-color: var(--nf-border);
	backdrop-filter: saturate(1.2) blur(10px);
	-webkit-backdrop-filter: saturate(1.2) blur(10px);
}

.nf-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: .75rem;
	transition: padding var(--nf-speed) var(--nf-ease);
}

@media (min-width: 640px) { .nf-header__inner { padding-block: 1.25rem; } }

/* Brand -------------------------------------------------------------------- */

.nf-brand {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	flex: none;
	color: var(--nf-heading-color);
	line-height: 1;
}

.nf-brand:hover { color: var(--nf-heading-color); }

.nf-brand__text {
	font-family: var(--nf-font-heading);
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: .02em;
	white-space: nowrap;
}

.nf-brand__amp {
	color: var(--nf-primary);
	font-style: italic;
	font-weight: 400;
}

.nf-brand__tagline {
	margin-top: .375rem;
	color: var(--nf-muted);
	font-size: .5625rem;
	font-weight: 600;
	letter-spacing: .32em;
	text-transform: uppercase;
	white-space: nowrap;
}

@media (min-width: 640px) {
	.nf-brand__text { font-size: 1.75rem; }
	.nf-brand__tagline { font-size: .625rem; }
}

.nf-brand__logo { max-height: 56px; width: auto; }

/* Primary menu ------------------------------------------------------------- */

.nf-nav__list,
.nf-nav .menu {
	display: flex;
	align-items: center;
	gap: clamp(1.25rem, 2.2vw, 2.25rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nf-nav li { position: relative; }

.nf-nav { flex: 1; display: none; justify-content: center; }

@media (min-width: 1100px) { .nf-nav { display: flex; } }

.nf-nav a {
	display: flex;
	align-items: center;
	gap: .25rem;
	padding-block: .375rem;
	color: var(--nf-silver);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.nf-nav .sub-menu a { letter-spacing: .04em; text-transform: none; }

.nf-nav a:hover { color: var(--nf-primary); }

/* Current page gets the gold rule under it. */
.nf-nav .current-menu-item > a,
.nf-nav .current_page_item > a,
.nf-nav .current-menu-ancestor > a,
.nf-nav .current-menu-parent > a {
	color: var(--nf-primary);
	box-shadow: inset 0 -1px 0 var(--nf-primary);
}

/* Caret for items with children. */
.nf-nav .menu-item-has-children > a::after,
.nf-nav .page_item_has_children > a::after {
	content: "";
	width: .75rem;
	height: .75rem;
	flex: none;
	background: currentColor;
	-webkit-mask: var(--nf-caret) no-repeat center / contain;
	mask: var(--nf-caret) no-repeat center / contain;
	transition: transform var(--nf-speed) var(--nf-ease);
}

.nf-nav .menu-item-has-children:hover > a::after { transform: rotate(180deg); }

:root {
	--nf-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

/* Dropdowns ---------------------------------------------------------------- */

.nf-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	display: block;
	min-width: 260px;
	margin: 0;
	padding: .5rem 0;
	list-style: none;
	background: var(--nf-card);
	border: 1px solid var(--nf-border);
	border-top: 2px solid var(--nf-primary);
	box-shadow: var(--nf-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity var(--nf-speed) var(--nf-ease),
	            transform var(--nf-speed) var(--nf-ease),
	            visibility var(--nf-speed) var(--nf-ease);
}

.nf-nav li:hover > .sub-menu,
.nf-nav li:focus-within > .sub-menu,
.nf-nav li.nf-is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nf-nav .sub-menu a {
	padding: .625rem 1.25rem;
	color: var(--nf-body-color);
	font-size: .8125rem;
	white-space: nowrap;
}

.nf-nav .sub-menu a:hover {
	background: var(--nf-surface);
	color: var(--nf-primary);
}

/* Third level flies out to the side. */
.nf-nav .sub-menu .sub-menu { top: -.5rem; left: 100%; }
.nf-nav .sub-menu .menu-item-has-children > a::after { transform: rotate(-90deg); }

/* Flip the last two top-level dropdowns so they never leave the viewport. */
.nf-nav > ul > li:nth-last-child(-n+2) .sub-menu .sub-menu { left: auto; right: 100%; }

/* Mega menu (opt-in per menu item from Appearance > Menus). */
.nf-nav .nf-mega > .sub-menu {
	left: 50%;
	width: min(var(--nf-container), calc(100vw - 4rem));
	transform: translateX(-50%) translateY(8px);
	display: grid;
	grid-template-columns: repeat(var(--nf-mega-cols, 4), minmax(0, 1fr));
	gap: 1rem 2rem;
	padding: 2rem;
}

.nf-nav .nf-mega:hover > .sub-menu,
.nf-nav .nf-mega:focus-within > .sub-menu { transform: translateX(-50%) translateY(0); }

.nf-nav .nf-mega > .sub-menu > li > a {
	padding: 0 0 .5rem;
	margin-bottom: .5rem;
	border-bottom: 1px solid var(--nf-border);
	color: var(--nf-heading-color);
	font-family: var(--nf-font-heading);
	font-size: 1rem;
}

.nf-nav .nf-mega > .sub-menu > li > a:hover { background: none; }

.nf-nav .nf-mega .sub-menu {
	position: static;
	min-width: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	transform: none;
	background: none;
}

.nf-nav .nf-mega .sub-menu a { padding: .3125rem 0; }

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

.nf-header__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: var(--nf-heading-color);
}

@media (min-width: 640px) { .nf-header__actions { gap: 1.5rem; } }

.nf-icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
	transition: color var(--nf-speed) var(--nf-ease);
}

.nf-icon-btn:hover { color: var(--nf-primary); }
.nf-icon-btn svg { width: 1.25rem; height: 1.25rem; }

@media (min-width: 640px) { .nf-icon-btn svg { width: 1.5rem; height: 1.5rem; } }

/* Secondary icons hide on phones to keep the bar uncluttered. */
.nf-icon-btn--desktop { display: none; }

@media (min-width: 768px) { .nf-icon-btn--desktop { display: inline-flex; } }

.nf-count {
	position: absolute;
	top: -.25rem;
	right: -.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1rem;
	height: 1rem;
	background: var(--nf-primary);
	border-radius: var(--nf-radius-pill);
	color: var(--nf-btn-text);
	font-size: .5625rem;
	font-weight: 700;
	line-height: 1;
}

.nf-burger { display: inline-flex; }

@media (min-width: 1100px) { .nf-burger { display: none; } }

.nf-header__cta { display: none; }

@media (min-width: 640px) { .nf-header__cta { display: inline-flex; } }

/* Centred layout: logo over the menu. */
@media (min-width: 1100px) {
	.nf-header--layout-centered .nf-header__inner { flex-wrap: wrap; justify-content: center; }
	.nf-header--layout-centered .nf-brand { align-items: center; width: 100%; }
	.nf-header--layout-centered .nf-nav { order: 3; width: 100%; }
	.nf-header--layout-centered .nf-header__actions { position: absolute; right: var(--nf-gutter); top: 1.25rem; }
}

/* ==========================================================================
   8. Mobile drawer
   ========================================================================== */

.nf-overlay {
	position: fixed;
	inset: 0;
	z-index: var(--nf-z-overlay);
	background: rgba(0, 0, 0, .6);
	backdrop-filter: blur(2px);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--nf-speed) var(--nf-ease), visibility var(--nf-speed) var(--nf-ease);
}

.nf-overlay.nf-is-active { opacity: 1; visibility: visible; }

.nf-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	inset-inline-start: 0;
	z-index: var(--nf-z-drawer);
	display: flex;
	flex-direction: column;
	width: min(88vw, 400px);
	background: var(--nf-surface);
	box-shadow: var(--nf-shadow-lg);
	transform: translateX(-100%);
	transition: transform var(--nf-speed) var(--nf-ease);
	overscroll-behavior: contain;
}

.nf-drawer--end {
	inset-inline-start: auto;
	inset-inline-end: 0;
	transform: translateX(100%);
}

.nf-drawer.nf-is-active { transform: translateX(0); }

[dir="rtl"] .nf-drawer { transform: translateX(100%); }
[dir="rtl"] .nf-drawer--end { transform: translateX(-100%); }
[dir="rtl"] .nf-drawer.nf-is-active { transform: translateX(0); }

.nf-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex: none;
	padding: 1rem var(--nf-gutter);
	border-bottom: 1px solid var(--nf-border);
}

.nf-drawer__title {
	margin: 0;
	font-family: var(--nf-font-heading);
	font-size: 1.125rem;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.nf-drawer__close {
	display: inline-flex;
	padding: .5rem;
	margin: -.5rem;
	border: 0;
	background: none;
	color: var(--nf-heading-color);
	cursor: pointer;
}

.nf-drawer__close svg { width: 1.25rem; height: 1.25rem; }
.nf-drawer__close:hover { color: var(--nf-primary); }

.nf-drawer__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 1rem var(--nf-gutter) 2rem;
	-webkit-overflow-scrolling: touch;
}

.nf-drawer__foot {
	flex: none;
	padding: 1rem var(--nf-gutter) calc(1rem + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--nf-border);
	background: var(--nf-card);
}

/* Accordion menu inside the drawer. */
.nf-mobile-menu,
.nf-mobile-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nf-mobile-menu li { border-bottom: 1px solid var(--nf-border); }
.nf-mobile-menu ul li:last-child { border-bottom: 0; }

.nf-mobile-menu a {
	display: block;
	padding: .875rem 2.5rem .875rem 0;
	color: var(--nf-heading-color);
	font-size: .9375rem;
	font-weight: 500;
}

.nf-mobile-menu a:hover,
.nf-mobile-menu .current-menu-item > a { color: var(--nf-primary); }

.nf-mobile-menu .sub-menu {
	display: none;
	padding-left: 1rem;
	border-top: 1px solid var(--nf-border);
}

.nf-mobile-menu .nf-is-open > .sub-menu { display: block; }
.nf-mobile-menu .sub-menu a { font-size: .875rem; font-weight: 400; color: var(--nf-muted); }

/* The toggle sits on top of the row so the link itself stays tappable. */
.nf-submenu-toggle {
	position: absolute;
	top: .25rem;
	inset-inline-end: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	background: none;
	color: var(--nf-muted);
	cursor: pointer;
}

.nf-mobile-menu li { position: relative; }
.nf-submenu-toggle svg { width: 1rem; height: 1rem; transition: transform var(--nf-speed) var(--nf-ease); }
.nf-mobile-menu .nf-is-open > .nf-submenu-toggle svg { transform: rotate(180deg); }

/* ==========================================================================
   9. Hero
   ========================================================================== */

.nf-hero {
	--nf-hero-overlay: .55;
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(560px, 92vh, 980px);
	overflow: hidden;
	isolation: isolate;
	background: var(--nf-black);
	color: var(--nf-silver);
}

/* Under a transparent header the hero starts at the very top of the page. */
.nf-transparent-header .nf-hero { padding-top: var(--nf-header-h); }

.nf-hero__media,
.nf-hero__image,
.nf-hero__video,
.nf-hero__scrim,
.nf-hero__beam {
	position: absolute;
	inset: 0;
}

.nf-hero__media { z-index: -1; }

/* Scoped under .nf-hero to outrank Elementor's `.elementor img { height: auto }`. */
.nf-hero .nf-hero__image,
.nf-hero .nf-hero__video {
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: grayscale(.25) contrast(1.05) brightness(.95);
}

.nf-hero__image { animation: nf-hero-zoom 24s var(--nf-ease) both; }

@keyframes nf-hero-zoom {
	from { transform: scale(1.08); }
	to   { transform: scale(1); }
}

.nf-hero__video { opacity: 0; transition: opacity 1.2s var(--nf-ease); }
.nf-hero__video.nf-is-playing { opacity: 1; }

.nf-hero__scrim {
	background:
		radial-gradient(120% 90% at 70% 40%, transparent 30%, rgba(5, 5, 5, .85) 100%),
		linear-gradient(90deg, rgba(5, 5, 5, .9) 0%, rgba(5, 5, 5, .55) 45%, rgba(5, 5, 5, .1) 100%),
		rgba(5, 5, 5, var(--nf-hero-overlay));
}

.nf-hero--center .nf-hero__scrim {
	background:
		radial-gradient(100% 80% at 50% 50%, rgba(5, 5, 5, .25) 0%, rgba(5, 5, 5, .9) 100%),
		rgba(5, 5, 5, var(--nf-hero-overlay));
}

/* A slow projector beam sweeping across the frame. */
.nf-hero__beam {
	background: linear-gradient(115deg, transparent 35%, rgba(244, 228, 180, .07) 48%, rgba(244, 228, 180, .12) 50%, transparent 62%);
	mix-blend-mode: screen;
	animation: nf-beam 14s ease-in-out infinite alternate;
	pointer-events: none;
}

@keyframes nf-beam {
	from { transform: translateX(-12%); }
	to   { transform: translateX(12%); }
}

.nf-hero__inner {
	position: relative;
	display: grid;
	gap: 3rem;
	align-items: center;
	padding-block: clamp(5rem, 10vw, 9rem);
}

@media (min-width: 960px) {
	.nf-hero--has-cover .nf-hero__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}

.nf-hero__content { max-width: 46rem; }
.nf-hero--center .nf-hero__inner { justify-items: center; text-align: center; }
.nf-hero--center .nf-hero__content { margin-inline: auto; }
.nf-hero--center .nf-eyebrow::before { display: none; }

.nf-hero__title {
	margin-bottom: 1.5rem;
	color: var(--nf-heading-color);
	font-size: clamp(3rem, 1.6rem + 6.4vw, 7.5rem);
	font-weight: 700;
	line-height: .95;
	letter-spacing: -.02em;
	text-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}

.nf-hero__title em {
	color: var(--nf-primary);
	font-style: italic;
	font-weight: 500;
}

.nf-hero__text {
	max-width: 34rem;
	margin-bottom: 2.5rem;
	color: var(--nf-silver);
	font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem);
	font-weight: 300;
	line-height: 1.6;
}

.nf-hero--center .nf-hero__text { margin-inline: auto; }

.nf-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.nf-hero--center .nf-hero__actions { justify-content: center; }

.nf-hero__cover { display: none; justify-self: center; width: min(100%, 360px); }

@media (min-width: 960px) { .nf-hero__cover { display: block; } }

/* Scroll cue: a thin line that drips downward. */
.nf-hero__cue {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	width: 1px;
	height: 3.5rem;
	overflow: hidden;
	background: rgba(244, 240, 230, .15);
	transform: translateX(-50%);
}

.nf-hero__cue span {
	position: absolute;
	inset: 0;
	background: var(--nf-primary);
	animation: nf-cue 2.2s var(--nf-ease) infinite;
}

@keyframes nf-cue {
	from { transform: translateY(-100%); }
	to   { transform: translateY(100%); }
}

@media (prefers-reduced-motion: reduce) {
	.nf-hero__image, .nf-hero__beam, .nf-hero__cue span { animation: none; }
}

/* ==========================================================================
   12. Generic sections
   ========================================================================== */

/* Feature / trust row ------------------------------------------------------ */

.nf-features { display: grid; gap: 1.5rem; }

.nf-feature-card {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.5rem;
	background: var(--nf-card);
	border: 1px solid var(--nf-border);
	border-radius: var(--nf-radius);
}

/*
 * Line the icon circle up with the heading next to it.
 *
 * The circle is a good deal taller than one line of the title, so with both
 * simply top-aligned the circle's centre hangs ~10px below the heading it
 * belongs to and the row reads as sloppy. Nudging the text down by half the
 * difference puts the two centres on the same line, and keeps the circles
 * level with each other across a row of cards.
 */
.nf-feature-card,
.nf-feature {
	--nf-icon-size: 2rem;
}

.nf-feature-card { --nf-icon-line: 1.22rem; }
.nf-feature { --nf-icon-line: .8625rem; }

.nf-feature-card > :not(.nf-feature__icon),
.nf-feature > :not(.nf-feature__icon) {
	padding-top: calc( ( var(--nf-icon-size) - var(--nf-icon-line) ) / 2 );
}

@media (min-width: 768px) {
	.nf-feature-card,
	.nf-feature { --nf-icon-size: 2.5rem; }

	.nf-feature { --nf-icon-line: 1.00625rem; }
}

.nf-feature-card--center {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* Stacked variant puts the icon above the text, so no nudge is wanted. */
.nf-feature-card--center > :not(.nf-feature__icon) {
	padding-top: 0;
}

.nf-feature__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: var(--nf-icon-size, 2.5rem);
	height: var(--nf-icon-size, 2.5rem);
	border: 1px solid var(--nf-border-gold);
	border-radius: 50%;
	color: var(--nf-primary);
}

.nf-feature__icon svg { width: 55%; height: 55%; }

.nf-feature-card { transition: border-color var(--nf-speed) var(--nf-ease), transform var(--nf-speed) var(--nf-ease); }
.nf-feature-card--card:hover { border-color: var(--nf-border-gold); transform: translateY(-2px); }

.nf-feature-card--plain { background: none; border: 0; padding: 0; }
.nf-feature-card--plain .nf-feature-card__title { font-size: 1.375rem; }
.nf-feature-card--plain .nf-feature-card__text { color: var(--nf-body-color); font-size: 1rem; line-height: 1.7; }

.nf-feature-card__title {
	margin: 0 0 .375rem;
	font-family: var(--nf-font-heading);
	font-size: 1.0625rem;
}

.nf-feature-card__text { margin: 0; color: var(--nf-muted); font-size: .875rem; }

/* Call-to-action banner ---------------------------------------------------- */

.nf-cta {
	position: relative;
	overflow: hidden;
	padding: 3.5rem var(--nf-gutter);
	background: var(--nf-black);
	border-block: 1px solid var(--nf-border-gold);
	color: var(--nf-white);
	text-align: center;
}

@media (min-width: 768px) { .nf-cta { padding: 6.5rem 3rem; } }

.nf-cta__bg {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
	opacity: .22;
	filter: grayscale(1) contrast(1.1);
}

.nf-cta__inner { position: relative; z-index: 1; max-width: 46rem; margin-inline: auto; }
.nf-cta__title { color: var(--nf-white); margin-bottom: 1rem; }
.nf-cta__text { color: var(--nf-silver); font-weight: 300; margin-bottom: 2rem; }

/* Testimonials ------------------------------------------------------------- */

.nf-testimonial {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	height: 100%;
	padding: 2rem;
	background: var(--nf-card);
	border: 1px solid var(--nf-border);
	border-radius: var(--nf-radius);
}

.nf-testimonial__stars { display: flex; gap: .125rem; color: var(--nf-primary); }
.nf-testimonial__stars svg { width: 1rem; height: 1rem; fill: currentColor; stroke: none; }

.nf-testimonial__text {
	flex: 1;
	margin: 0;
	color: var(--nf-heading-color);
	font-family: var(--nf-font-heading);
	font-size: 1.0625rem;
	font-style: italic;
	line-height: 1.6;
}

.nf-testimonial__author { display: flex; align-items: center; gap: .875rem; }

.nf-testimonial__avatar {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	object-fit: cover;
}

.nf-testimonial__name {
	display: block;
	color: var(--nf-heading-color);
	font-size: .875rem;
	font-weight: 600;
}

.nf-testimonial__role {
	display: block;
	color: var(--nf-muted);
	font-size: .75rem;
	letter-spacing: .05em;
	text-transform: uppercase;
}

/* Accordion / FAQ ---------------------------------------------------------- */

.nf-accordion { border-top: 1px solid var(--nf-border); }
.nf-accordion__item { border-bottom: 1px solid var(--nf-border); }

.nf-accordion__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	padding: 1.25rem 0;
	border: 0;
	background: none;
	color: var(--nf-heading-color);
	font-family: var(--nf-font-heading);
	font-size: 1.0625rem;
	text-align: left;
	cursor: pointer;
}

.nf-accordion__trigger:hover { color: var(--nf-primary); }

.nf-accordion__icon {
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	color: var(--nf-primary);
	transition: transform var(--nf-speed) var(--nf-ease);
}

.nf-accordion__trigger[aria-expanded="true"] .nf-accordion__icon { transform: rotate(180deg); }

.nf-accordion__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows var(--nf-speed) var(--nf-ease);
}

.nf-accordion__panel[data-open="true"] { grid-template-rows: 1fr; }
.nf-accordion__panel > div { overflow: hidden; }
.nf-accordion__panel p { padding-bottom: 1.25rem; color: var(--nf-muted); font-size: .9375rem; }

/* Newsletter --------------------------------------------------------------- */

.nf-newsletter {
	padding: 2.5rem var(--nf-gutter);
	background: var(--nf-black);
	border-radius: var(--nf-radius);
	color: var(--nf-white);
	text-align: center;
}

@media (min-width: 768px) { .nf-newsletter { padding: 4rem 3rem; } }

.nf-newsletter__title { color: var(--nf-white); margin-bottom: .75rem; }
.nf-newsletter__text { color: #9ca3af; font-size: .9375rem; margin-bottom: 2rem; }

.nf-newsletter__form {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	max-width: 34rem;
	margin-inline: auto;
}

@media (min-width: 640px) { .nf-newsletter__form { flex-direction: row; } }

.nf-newsletter__form input[type="email"] {
	flex: 1;
	background: rgba(255, 255, 255, .06);
	border-color: rgba(255, 255, 255, .15);
	color: var(--nf-white);
}

.nf-newsletter__form input[type="email"]::placeholder { color: #6b7280; }

/* Any third-party form plugin dropped inside inherits the dark treatment. */
.nf-newsletter .mc4wp-form input[type="email"],
.nf-newsletter .wpcf7 input[type="email"] {
	background: rgba(255, 255, 255, .06);
	border-color: rgba(255, 255, 255, .15);
	color: var(--nf-white);
}

/* Media / text split ------------------------------------------------------- */

.nf-media-text { display: grid; gap: 2rem; align-items: center; }

@media (min-width: 900px) {
	.nf-media-text { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem; }
	.nf-media-text--reverse .nf-media-text__media { order: 2; }
}

.nf-media-text__media img { width: 100%; border-radius: var(--nf-radius); }

/* Logo strip --------------------------------------------------------------- */

.nf-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2rem 3rem;
}

.nf-logos img {
	max-height: 40px;
	width: auto;
	opacity: .55;
	filter: grayscale(1);
	transition: opacity var(--nf-speed) var(--nf-ease), filter var(--nf-speed) var(--nf-ease);
}

.nf-logos img:hover { opacity: 1; filter: none; }

/* Countdown / marquee strip ------------------------------------------------ */

.nf-marquee {
	overflow: hidden;
	padding-block: .75rem;
	background: var(--nf-black);
	color: var(--nf-primary);
	font-size: .75rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	white-space: nowrap;
}

.nf-marquee__track {
	display: inline-flex;
	gap: 3rem;
	animation: nf-marquee 30s linear infinite;
}

@keyframes nf-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* ==========================================================================
   13. Blog, archive, comments
   ========================================================================== */

.nf-page-header {
	padding-block: 3rem;
	background: var(--nf-ink);
	color: var(--nf-white);
	text-align: center;
}

@media (min-width: 768px) { .nf-page-header { padding-block: 4.5rem; } }

.nf-page-header__title { color: var(--nf-white); margin-bottom: .5rem; }
.nf-page-header__desc { color: #d1d5db; font-weight: 300; max-width: 42rem; margin-inline: auto; }

.nf-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	margin: 0;
	padding: 0;
	color: var(--nf-muted);
	font-size: .75rem;
	letter-spacing: .04em;
}

.nf-breadcrumbs a { color: inherit; }
.nf-breadcrumbs a:hover { color: var(--nf-primary); }
.nf-breadcrumbs__sep { opacity: .5; }
.nf-breadcrumbs__current { color: var(--nf-heading-color); }
.nf-page-header .nf-breadcrumbs { justify-content: center; color: rgba(255, 255, 255, .65); margin-bottom: 1rem; }
.nf-page-header .nf-breadcrumbs__current { color: var(--nf-primary); }

/* Post cards --------------------------------------------------------------- */

.nf-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--nf-card);
	border: 1px solid var(--nf-border);
	border-radius: var(--nf-radius);
	overflow: hidden;
	transition: box-shadow var(--nf-speed) var(--nf-ease);
}

.nf-post-card:hover { box-shadow: var(--nf-shadow); }

.nf-post-card__media { overflow: hidden; aspect-ratio: 16 / 10; background: var(--nf-surface-2); }

.nf-post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s var(--nf-ease);
}

.nf-post-card:hover .nf-post-card__media img { transform: scale(1.05); }

.nf-post-card__body { display: flex; flex-direction: column; flex: 1; gap: .75rem; padding: 1.5rem; }

.nf-post-card__title { margin: 0; font-size: 1.25rem; }
.nf-post-card__title a { color: var(--nf-heading-color); }
.nf-post-card__title a:hover { color: var(--nf-primary); }
.nf-post-card__excerpt { margin: 0; color: var(--nf-muted); font-size: .9375rem; }
.nf-post-card__footer { margin-top: auto; padding-top: .5rem; }

.nf-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem;
	color: var(--nf-muted-light);
	font-size: .6875rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.nf-post-meta a { color: inherit; }
.nf-post-meta a:hover { color: var(--nf-primary); }
.nf-post-meta svg { width: .875rem; height: .875rem; }
.nf-post-meta__item { display: inline-flex; align-items: center; gap: .375rem; }

/* Single post -------------------------------------------------------------- */

.nf-entry__thumb { margin-bottom: 2rem; }
.nf-entry__thumb img { width: 100%; border-radius: var(--nf-radius); }
.nf-entry__title { margin-bottom: 1rem; }
.nf-entry__meta { margin-bottom: 2rem; }

.nf-content > *:first-child { margin-top: 0; }
.nf-content > *:last-child { margin-bottom: 0; }
/*
 * Editorial heading rhythm, for prose typed into the editor.
 *
 * Excludes anything carrying a theme class: `.nf-content h3` is (0,1,1) and
 * would otherwise outrank a component's own `.nf-...__title` at (0,1,0),
 * pushing widget headings out of alignment wherever a shortcode or builder
 * layout renders inside post content.
 */
.nf-content :is( h2, h3, h4 ):not( [class*="nf-"] ) { margin-top: 2rem; }
.nf-content img { border-radius: var(--nf-radius); }

.nf-content .alignleft { float: left; margin: .375rem 1.75rem 1.25rem 0; }
.nf-content .alignright { float: right; margin: .375rem 0 1.25rem 1.75rem; }
.nf-content .aligncenter { margin-inline: auto; display: block; }

.nf-content .alignwide {
	width: min(100vw - 2 * var(--nf-gutter), 1200px);
	max-width: none;
	margin-inline: calc(50% - min(50vw - var(--nf-gutter), 600px));
}

.nf-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: calc(50% - 50vw);
}

.nf-entry__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--nf-border);
}

.nf-tags { display: flex; flex-wrap: wrap; gap: .5rem; }

.nf-tags a {
	padding: .25rem .75rem;
	background: var(--nf-surface-2);
	border-radius: var(--nf-radius-pill);
	color: var(--nf-body-color);
	font-size: .6875rem;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.nf-tags a:hover { background: var(--nf-primary); color: var(--nf-btn-text); }

.nf-share { display: flex; align-items: center; gap: .75rem; }
.nf-share a { color: var(--nf-muted); }
.nf-share a:hover { color: var(--nf-primary); }
.nf-share svg { width: 1.125rem; height: 1.125rem; }

/* Author box, post nav ----------------------------------------------------- */

.nf-author-box {
	display: flex;
	gap: 1.25rem;
	margin-top: 2.5rem;
	padding: 1.75rem;
	background: var(--nf-card);
	border: 1px solid var(--nf-border);
	border-radius: var(--nf-radius);
}

.nf-author-box img { flex: none; border-radius: 50%; }
.nf-author-box__name { margin: 0 0 .25rem; font-size: 1.125rem; }
.nf-author-box__bio { margin: 0; color: var(--nf-muted); font-size: .875rem; }

.nf-post-nav {
	display: grid;
	gap: 1rem;
	margin-top: 2.5rem;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) { .nf-post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.nf-post-nav a {
	display: block;
	padding: 1.25rem;
	background: var(--nf-card);
	border: 1px solid var(--nf-border);
	border-radius: var(--nf-radius);
	color: var(--nf-heading-color);
}

.nf-post-nav a:hover { border-color: var(--nf-primary); }
.nf-post-nav__label { display: block; color: var(--nf-muted); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .25rem; }
.nf-post-nav__title { font-family: var(--nf-font-heading); font-size: 1rem; }
.nf-post-nav__next { text-align: right; }

/* Pagination --------------------------------------------------------------- */

.nf-pagination { margin-top: 2.5rem; }

.nf-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding-inline: .5rem;
	margin: 0 .1875rem;
	background: var(--nf-card);
	border: 1px solid var(--nf-border);
	color: var(--nf-body-color);
	font-size: .875rem;
}

.nf-pagination .page-numbers:hover,
.nf-pagination .page-numbers.current {
	background: var(--nf-primary);
	border-color: var(--nf-primary);
	color: var(--nf-btn-text);
}

.nf-pagination .page-numbers.dots { background: none; border-color: transparent; }
.nf-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }

/* Comments ----------------------------------------------------------------- */

.nf-comments { margin-top: 3rem; }
.nf-comments__title { font-size: 1.5rem; margin-bottom: 1.5rem; }
.nf-comments__list { list-style: none; margin: 0 0 2rem; padding: 0; }
.nf-comments__list .children { list-style: none; margin: 0; padding-left: 1.5rem; }

@media (min-width: 640px) { .nf-comments__list .children { padding-left: 3rem; } }

.nf-comment { padding: 1.5rem 0; border-bottom: 1px solid var(--nf-border); }
.nf-comment__head { display: flex; align-items: center; gap: .875rem; margin-bottom: .75rem; }
.nf-comment__avatar img { border-radius: 50%; }
.nf-comment__author { font-weight: 600; color: var(--nf-heading-color); }
.nf-comment__date { display: block; color: var(--nf-muted-light); font-size: .75rem; }
.nf-comment__body { font-size: .9375rem; }
.nf-comment__actions { margin-top: .5rem; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; }
.nf-comment__actions a { margin-right: .75rem; }

.comment-respond { margin-top: 2rem; }
.comment-reply-title { font-size: 1.375rem; }
.comment-form { display: grid; gap: 1rem; }
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: .5rem; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; font-size: .8125rem; }

@media (min-width: 640px) {
	.comment-form .comment-form-author,
	.comment-form .comment-form-email { display: inline-block; width: calc(50% - .5rem); }
	.comment-form .comment-form-author { margin-right: .875rem; }
}

.comment-form .form-submit { margin: 0; }
.comment-form input[type="submit"] {
	padding: .875rem 2rem;
	background: var(--nf-primary);
	border: 0;
	border-radius: var(--nf-radius);
	color: var(--nf-btn-text);
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.comment-form input[type="submit"]:hover { background: var(--nf-primary-hover); }

/* Empty state -------------------------------------------------------------- */

.nf-none {
	padding: 3rem 1.5rem;
	background: var(--nf-card);
	border: 1px solid var(--nf-border);
	border-radius: var(--nf-radius);
	text-align: center;
}

.nf-none__title { margin-bottom: .75rem; }
.nf-none__text { color: var(--nf-muted); margin-bottom: 1.5rem; }

/* 404 ---------------------------------------------------------------------- */

.nf-404 { padding-block: 4rem; text-align: center; }

.nf-404__code {
	display: block;
	color: var(--nf-primary);
	font-family: var(--nf-font-heading);
	font-size: clamp(5rem, 3rem + 12vw, 11rem);
	line-height: 1;
}

.nf-404__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }

/* ==========================================================================
   14. Widgets & sidebar
   ========================================================================== */

.nf-sidebar { display: flex; flex-direction: column; gap: 2rem; }

.nf-widget {
	padding: 1.5rem;
	background: var(--nf-card);
	border: 1px solid var(--nf-border);
	border-radius: var(--nf-radius);
}

.nf-widget__title {
	margin: 0 0 1.25rem;
	padding-bottom: .75rem;
	border-bottom: 1px solid var(--nf-border);
	font-family: var(--nf-font-heading);
	font-size: 1.125rem;
}

.nf-widget ul { list-style: none; margin: 0; padding: 0; }
.nf-widget li { padding: .5rem 0; border-bottom: 1px solid var(--nf-border); font-size: .9375rem; }
.nf-widget li:last-child { border-bottom: 0; padding-bottom: 0; }
.nf-widget a { color: var(--nf-body-color); }
.nf-widget a:hover { color: var(--nf-primary); }
.nf-widget select { width: 100%; }

.nf-widget .tagcloud { display: flex; flex-wrap: wrap; gap: .5rem; }

.nf-widget .tagcloud a {
	padding: .25rem .75rem;
	background: var(--nf-surface);
	border: 1px solid var(--nf-border);
	border-radius: var(--nf-radius-pill);
	font-size: .75rem !important;
}

.nf-widget .tagcloud a:hover { background: var(--nf-primary); border-color: var(--nf-primary); color: var(--nf-btn-text); }

/* Search form -------------------------------------------------------------- */

.nf-search-form { position: relative; display: flex; }
.nf-search-form input[type="search"] { padding-right: 3rem; }

.nf-search-form button {
	position: absolute;
	inset-inline-end: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 100%;
	border: 0;
	background: none;
	color: var(--nf-muted);
	cursor: pointer;
}

.nf-search-form button:hover { color: var(--nf-primary); }
.nf-search-form svg { width: 1.125rem; height: 1.125rem; }

/* ==========================================================================
   15. Footer
   ========================================================================== */

.nf-footer {
	padding-block: 3rem;
	background: var(--nf-footer-bg);
	border-top: 1px solid rgba(255, 255, 255, .05);
	color: var(--nf-muted);
}

@media (min-width: 640px) { .nf-footer { padding-block: 5rem; } }

.nf-footer__cols {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: minmax(0, 1fr);
	margin-bottom: 3rem;
	text-align: center;
}

@media (min-width: 640px) {
	.nf-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; }
}

@media (min-width: 1024px) {
	.nf-footer__cols {
		grid-template-columns: repeat(var(--nf-footer-cols, 4), minmax(0, 1fr));
		gap: 2rem;
		margin-bottom: 4rem;
	}
}

.nf-footer__col { display: flex; flex-direction: column; align-items: center; }

@media (min-width: 640px) { .nf-footer__col { align-items: flex-start; } }

.nf-footer__brand { display: inline-flex; flex-direction: column; align-items: center; gap: 0; margin-bottom: 1rem; }

@media (min-width: 640px) { .nf-footer__brand { align-items: flex-start; } }

@media (min-width: 768px) { .nf-footer__brand { margin-bottom: 1.5rem; } }

.nf-footer__brand-mark { color: var(--nf-primary); font-family: var(--nf-font-heading); font-size: 1.875rem; line-height: 1; }

.nf-footer__brand-text {
	margin-top: .25rem;
	color: var(--nf-white);
	font-family: var(--nf-font-heading);
	font-size: 1.5rem;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.nf-footer__about { max-width: 20rem; margin-bottom: 1.5rem; font-size: .875rem; font-weight: 300; line-height: 1.7; }

.nf-footer__title {
	margin-bottom: 1rem;
	color: var(--nf-white);
	font-family: var(--nf-font-heading);
	font-size: 1.125rem;
}

@media (min-width: 768px) { .nf-footer__title { margin-bottom: 1.5rem; } }

.nf-footer__menu { list-style: none; margin: 0; padding: 0; font-size: .875rem; }
.nf-footer__menu li { margin-bottom: .5rem; }

@media (min-width: 768px) { .nf-footer__menu li { margin-bottom: .75rem; } }

.nf-footer__menu a { color: inherit; }
.nf-footer__menu a:hover { color: var(--nf-primary); }

.nf-footer__contact { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 20rem; font-size: .875rem; }
.nf-footer__contact li { display: flex; align-items: flex-start; justify-content: center; gap: .75rem; margin-bottom: 1rem; }

@media (min-width: 640px) { .nf-footer__contact li { justify-content: flex-start; } }

.nf-footer__contact svg { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .125rem; color: var(--nf-primary); }
.nf-footer__contact a { color: inherit; }
.nf-footer__contact a:hover { color: var(--nf-primary); }

.nf-social { display: flex; gap: .75rem; }

.nf-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: 50%;
	color: inherit;
}

.nf-social a:hover { background: var(--nf-primary); border-color: var(--nf-primary); color: var(--nf-btn-text); }
.nf-social svg { width: 1rem; height: 1rem; fill: currentColor; stroke: none; }


.nf-footer__bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 2rem;
	border-top: 1px solid var(--nf-border);
	font-size: .75rem;
	text-align: center;
}

@media (min-width: 768px) { .nf-footer__bottom { flex-direction: row; text-align: left; } }

.nf-footer__bottom p { margin: 0; }
.nf-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.nf-footer__legal a { color: inherit; }
.nf-footer__legal a:hover { color: var(--nf-white); }

.nf-footer .nf-brand { margin-bottom: 1.5rem; }
.nf-footer .nf-brand__text { font-size: 1.625rem; }
.nf-footer__menu-meta { margin-inline-start: .375rem; color: var(--nf-primary); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; }
.nf-footer__title { font-size: .75rem !important; font-family: var(--nf-font-body) !important; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--nf-primary) !important; }

/* ==========================================================================
   17. Search overlay, back to top, preloader
   ========================================================================== */

.nf-search-overlay {
	position: fixed;
	inset: 0;
	z-index: var(--nf-z-modal);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 6rem var(--nf-gutter) 2rem;
	background: rgba(0, 0, 0, .96);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--nf-speed) var(--nf-ease), visibility var(--nf-speed) var(--nf-ease);
}

.nf-search-overlay.nf-is-active { opacity: 1; visibility: visible; }
.nf-search-overlay__inner { width: 100%; max-width: 44rem; }

.nf-search-overlay__label {
	display: block;
	margin-bottom: 1rem;
	color: var(--nf-primary);
	font-size: .6875rem;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.nf-search-overlay input[type="search"] {
	padding: 1rem 3rem 1rem 0;
	background: transparent;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, .2);
	border-radius: 0;
	color: var(--nf-white);
	font-family: var(--nf-font-heading);
	font-size: 1.5rem;
}

@media (min-width: 768px) { .nf-search-overlay input[type="search"] { font-size: 2rem; } }

.nf-search-overlay input[type="search"]:focus { border-color: var(--nf-primary); box-shadow: none; }
.nf-search-overlay .nf-search-form button { color: var(--nf-primary); }

.nf-search-overlay__close {
	position: absolute;
	top: 1.5rem;
	inset-inline-end: 1.5rem;
	padding: .5rem;
	border: 0;
	background: none;
	color: var(--nf-white);
	cursor: pointer;
}

.nf-search-overlay__close svg { width: 1.5rem; height: 1.5rem; }

/* Live results dropdown. */
.nf-search-results { margin-top: 1.5rem; max-height: 50vh; overflow-y: auto; }

.nf-search-results__item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: .75rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	color: var(--nf-white);
}

.nf-search-results__item:hover { color: var(--nf-primary); }
.nf-search-results__item img { width: 3rem; height: 3rem; object-fit: cover; flex: none; }
.nf-search-results__title { font-size: .9375rem; }
.nf-search-results__title small { display: block; color: var(--nf-muted); font-size: .75rem; }

/* Back to top -------------------------------------------------------------- */

.nf-to-top {
	position: fixed;
	inset-inline-end: 1.25rem;
	bottom: calc(var(--nf-mobilenav-h) + 1.25rem + env(safe-area-inset-bottom, 0px));
	z-index: var(--nf-z-sticky);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: 50%;
	background: var(--nf-black);
	color: var(--nf-white);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all var(--nf-speed) var(--nf-ease);
}

@media (min-width: 768px) { .nf-to-top { bottom: 1.5rem; } }

.nf-to-top.nf-is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.nf-to-top:hover { background: var(--nf-primary); color: var(--nf-btn-text); }
.nf-to-top svg { width: 1.125rem; height: 1.125rem; }

/* Preloader ---------------------------------------------------------------- */

.nf-preloader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--nf-surface);
	transition: opacity .4s var(--nf-ease), visibility .4s var(--nf-ease);
}

.nf-preloader.nf-is-done { opacity: 0; visibility: hidden; }

.nf-preloader__mark {
	color: var(--nf-primary);
	font-family: var(--nf-font-heading);
	font-size: 3rem;
	animation: nf-pulse 1.4s var(--nf-ease) infinite;
}

@keyframes nf-pulse {
	0%, 100% { opacity: .35; transform: scale(.96); }
	50% { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   18. Accessibility & utilities
   ========================================================================== */

.screen-reader-text,
.nf-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: .5rem;
	left: .5rem;
	z-index: 9999;
	width: auto;
	height: auto;
	padding: .75rem 1.25rem;
	clip: auto;
	background: var(--nf-black);
	color: var(--nf-white);
	font-size: .875rem;
}

.nf-hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.nf-hide-scrollbar::-webkit-scrollbar { display: none; }

.nf-text-center { text-align: center; }
.nf-text-left { text-align: left; }
.nf-text-right { text-align: right; }
.nf-mt-0 { margin-top: 0; }
.nf-mb-0 { margin-bottom: 0; }

.nf-hide-mobile { display: none; }

@media (min-width: 768px) {
	.nf-hide-mobile { display: block; }
	.nf-hide-desktop { display: none; }
}

/* Horizontal scroller used by carousels before JS boots. */
.nf-scroller {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.nf-scroller::-webkit-scrollbar { display: none; }
.nf-scroller > * { flex: 0 0 auto; scroll-snap-align: start; width: min(78vw, 280px); }

/* Reveal-on-scroll, applied by theme.js. */
.nf-reveal { opacity: 0; transform: translateY(24px); }

.nf-reveal.nf-is-revealed {
	opacity: 1;
	transform: none;
	transition: opacity .7s var(--nf-ease), transform .7s var(--nf-ease);
}

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

/* Aspect ratio helpers for embeds. */
.nf-embed { position: relative; aspect-ratio: 16 / 9; }
.nf-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.wp-block-embed__wrapper iframe { width: 100%; }

/* ==========================================================================
   19. Print
   ========================================================================== */

@media print {
	.nf-topbar, .nf-header, .nf-footer, .nf-to-top, body.nf-grain::after,
	.nf-drawer, .nf-overlay, .nf-search-overlay, .nf-sidebar,
	.comment-respond, .nf-post-nav { display: none !important; }

	body { background: #fff; color: #000; padding: 0 !important; }
	a[href]::after { content: " (" attr(href) ")"; font-size: .8em; }
	.nf-layout { display: block; }
}

/* ==========================================================================
   20. Component styles for widget and template-part markup
   ========================================================================== */

/* Drawer extras ------------------------------------------------------------ */

.nf-drawer__extras {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--nf-border);
}

.nf-drawer__extra {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .625rem 0;
	color: var(--nf-body-color);
	font-size: .875rem;
}

.nf-drawer__extra:hover { color: var(--nf-primary); }
.nf-drawer__extra svg { width: 1.125rem; height: 1.125rem; color: var(--nf-primary); flex: none; }

.nf-drawer__social { margin-top: 1.5rem; }
.nf-drawer__social a { border-color: var(--nf-border); color: var(--nf-body-color); }

/* Nav item description (mega menus) ---------------------------------------- */

.nf-nav__desc {
	display: block;
	margin-top: .125rem;
	color: var(--nf-muted-light);
	font-size: .6875rem;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* Carousel controls -------------------------------------------------------- */

.nf-testimonials-wrap { position: relative; }

.nf-carousel-nav {
	position: absolute;
	top: 0;
	inset-inline-end: 0;
	display: none;
	gap: .5rem;
}

@media (min-width: 768px) { .nf-carousel-nav { display: flex; } }

.nf-carousel-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	background: var(--nf-card);
	border: 1px solid var(--nf-border);
	border-radius: 50%;
	color: var(--nf-heading-color);
	cursor: pointer;
	transition: all var(--nf-speed) var(--nf-ease);
}

.nf-carousel-btn:hover:not(:disabled) { background: var(--nf-primary); border-color: var(--nf-primary); color: var(--nf-btn-text); }
.nf-carousel-btn:disabled { opacity: .35; cursor: default; }
.nf-carousel-btn svg { width: 1rem; height: 1rem; }

/* Checklist ---------------------------------------------------------------- */

.nf-checklist { margin: 0 0 1.5rem; padding: 0; list-style: none; }

.nf-checklist li {
	display: flex;
	align-items: flex-start;
	gap: .625rem;
	margin-bottom: .625rem;
	font-size: .9375rem;
}

.nf-checklist svg { width: 1.125rem; height: 1.125rem; flex: none; margin-top: .1875rem; color: var(--nf-primary); }

/* Media & text ------------------------------------------------------------- */

.nf-media-text__title { margin-bottom: 1rem; }

/* Never stretch a small photo past its own size. */
.nf-media-text__media { display: flex; justify-content: center; }
.nf-media-text__media img { width: auto; max-width: 100%; border-radius: var(--nf-radius); box-shadow: var(--nf-shadow-lg); filter: grayscale(.2); }
.nf-media-text__text { margin-bottom: 1.5rem; color: var(--nf-muted); }

/* Newsletter consent ------------------------------------------------------- */

.nf-newsletter__consent {
	max-width: 34rem;
	margin: 1rem auto 0;
	color: #6b7280;
	font-size: .6875rem;
	line-height: 1.6;
}

/* Logo strip --------------------------------------------------------------- */

.nf-logo-strip { text-align: center; }

.nf-logo-strip__caption {
	margin-bottom: 1.5rem;
	color: var(--nf-muted);
	font-size: .6875rem;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.nf-logos--color img { filter: none; opacity: 1; }

/* Marquee text spacing ----------------------------------------------------- */

.nf-marquee__track > span { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
	.nf-marquee__track { animation: none; }
}

/* Blog list layout --------------------------------------------------------- */

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

.nf-post-row {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: minmax(0, 1fr);
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--nf-border);
}

@media (min-width: 640px) {
	.nf-post-row { grid-template-columns: 280px minmax(0, 1fr); gap: 2rem; align-items: start; }
}

.nf-post-row__media { overflow: hidden; border-radius: var(--nf-radius); aspect-ratio: 16 / 10; }
.nf-post-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--nf-ease); }
.nf-post-row:hover .nf-post-row__media img { transform: scale(1.04); }
.nf-post-row__title { margin: .5rem 0 .75rem; font-size: 1.5rem; }
.nf-post-row__title a { color: var(--nf-heading-color); }
.nf-post-row__title a:hover { color: var(--nf-primary); }

.nf-related-posts { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--nf-border); }

.nf-page-links {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin-top: 2rem;
	font-size: .875rem;
}

.nf-page-links .post-page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	border: 1px solid var(--nf-border);
	border-radius: var(--nf-radius);
}

.nf-page-links .post-page-numbers.current { background: var(--nf-primary); border-color: var(--nf-primary); color: var(--nf-btn-text); }

/* Share -------------------------------------------------------------------- */

.nf-share__label {
	color: var(--nf-muted);
	font-size: .6875rem;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.nf-share__copy {
	padding: 0;
	border: 0;
	background: none;
	color: var(--nf-muted);
	cursor: pointer;
}

.nf-share__copy:hover { color: var(--nf-primary); }
.nf-share__copy svg { width: 1.125rem; height: 1.125rem; }

/* 404 ---------------------------------------------------------------------- */

.nf-404__search { max-width: 30rem; margin: 2rem auto 0; }

/* Live search results ------------------------------------------------------ */

.nf-search-results__empty { color: #9ca3af; font-size: .9375rem; }

.nf-search-results__all {
	justify-content: center;
	color: var(--nf-primary);
	font-size: .75rem;
	letter-spacing: .1em;
	text-transform: uppercase;
}

/* Elementor-built front page ----------------------------------------------- */

.nf-front-page > .elementor { max-width: none; }

/* Copied state ------------------------------------------------------------- */

.nf-share__copy.nf-is-copied { color: var(--nf-success); }

.nf-footer__small { margin-top: .375rem; color: var(--nf-muted); font-size: .6875rem; }

.nf-drawer__cta { width: 100%; margin-top: 1.5rem; }

/* ==========================================================================
   21. Film grain and noir accents
   ========================================================================== */

/*
 * A faint, slowly shifting grain over everything, like a print on a
 * projector. It never intercepts clicks and switches off for visitors who
 * prefer reduced motion.
 */
body.nf-grain::after {
	content: "";
	position: fixed;
	inset: -50%;
	z-index: var(--nf-z-grain);
	width: 200%;
	height: 200%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	opacity: .05;
	pointer-events: none;
	animation: nf-grain 1.2s steps(6) infinite;
}

@keyframes nf-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); }
}

@media (prefers-reduced-motion: reduce) {
	body.nf-grain::after { animation: none; }
}

/* Gold hairline used as an ornament between blocks. */
.nf-rule {
	display: block;
	width: 4rem;
	height: 1px;
	margin: 2rem auto;
	border: 0;
	background: linear-gradient(90deg, transparent, var(--nf-primary), transparent);
}

/* Dark band sections built in Elementor. */
.nf-band { position: relative; }

.nf-band::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--nf-border-gold), transparent);
	pointer-events: none;
}

/* Arrow links ---------------------------------------------------------------- */

.nf-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	padding-bottom: .125rem;
	border-bottom: 1px solid transparent;
	color: var(--nf-primary);
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	transition: border-color var(--nf-speed) var(--nf-ease), color var(--nf-speed) var(--nf-ease);
}

.nf-link-arrow:hover { border-bottom-color: currentColor; color: var(--nf-primary-hover); }
.nf-link-arrow svg { width: .875rem; height: .875rem; transition: transform var(--nf-speed) var(--nf-ease); }
.nf-link-arrow:hover svg { transform: translateX(3px); }
.nf-link-arrow--buy { color: var(--nf-silver); }

/* Chips ---------------------------------------------------------------------- */

.nf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0 0 1.75rem;
	padding: 0;
	list-style: none;
}

.nf-chips li {
	padding: .375rem .875rem;
	border: 1px solid var(--nf-border-gold);
	border-radius: var(--nf-radius-pill);
	color: var(--nf-silver);
	font-size: .6875rem;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* ==========================================================================
   22. Book covers and cards
   ========================================================================== */

.nf-cover {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background:
		radial-gradient(80% 60% at 50% 35%, rgba(212, 175, 55, .08), transparent 70%),
		var(--nf-ink-2);
	border-radius: var(--nf-radius);
	box-shadow: var(--nf-shadow-cover);
	transition: transform .5s var(--nf-ease-out), box-shadow .5s var(--nf-ease-out);
}

.nf-cover img,
.nf-cover .nf-cover__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 6%;
	filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .6));
	transition: transform .6s var(--nf-ease-out);
}

a.nf-cover:hover,
.nf-book-card:hover .nf-cover {
	transform: translateY(-6px);
	box-shadow: var(--nf-glow);
}

a.nf-cover:hover img,
.nf-book-card:hover .nf-cover img { transform: scale(1.03); }

/* A large cover, angled like a book on a shelf. */
.nf-cover--lg { aspect-ratio: 2 / 3; }

.nf-cover--tilt {
	transform: perspective(1400px) rotateY(-10deg) rotateX(2deg);
	transform-origin: center left;
}

.nf-cover--tilt:hover { transform: perspective(1400px) rotateY(-4deg) translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
	.nf-cover--tilt, .nf-cover--tilt:hover { transform: none; }
}

.nf-cover__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .75rem;
	height: 100%;
	padding: 2rem 1.5rem;
	border: 1px solid var(--nf-border-gold);
	color: var(--nf-heading-color);
	font-family: var(--nf-font-heading);
	font-size: 1.25rem;
	line-height: 1.2;
	text-align: center;
}

.nf-cover__placeholder small {
	color: var(--nf-primary);
	font-family: var(--nf-font-body);
	font-size: .625rem;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.nf-cover__vol,
.nf-cover__badge {
	position: absolute;
	top: .75rem;
	padding: .3125rem .625rem;
	border-radius: var(--nf-radius);
	font-size: .625rem;
	font-weight: 700;
	letter-spacing: .14em;
	line-height: 1;
	text-transform: uppercase;
}

.nf-cover__vol { left: .75rem; background: var(--nf-primary); color: var(--nf-btn-text); }
.nf-cover__badge { right: .75rem; background: var(--nf-accent); color: var(--nf-white); }

/* Grid ------------------------------------------------------------------------ */

.nf-book-grid {
	--nf-cols: 4;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2.5rem 1rem;
}

@media (min-width: 768px) {
	.nf-book-grid { grid-template-columns: repeat(min(var(--nf-cols), 3), minmax(0, 1fr)); gap: 3rem 1.75rem; }
}

@media (min-width: 1100px) {
	.nf-book-grid { grid-template-columns: repeat(var(--nf-cols), minmax(0, 1fr)); gap: 3.5rem 2rem; }
}

/* Swipeable shelf: one row that scrolls sideways with snap points. */
.nf-book-grid--shelf {
	grid-template-columns: none !important;
	grid-auto-flow: column;
	grid-auto-columns: min(68vw, 260px);
	overflow-x: auto;
	padding-bottom: 1.5rem;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--nf-border-gold) transparent;
}

.nf-book-grid--shelf > * { scroll-snap-align: start; }

@media (min-width: 1100px) {
	.nf-book-grid--shelf { grid-auto-columns: calc((100% - (var(--nf-cols) - 1) * 2rem) / var(--nf-cols)); }
}

.nf-book-card { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }

.nf-book-card__body { display: flex; flex-direction: column; flex: 1; gap: .375rem; }

.nf-book-card__title {
	margin: 0;
	font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem);
	font-weight: 600;
	line-height: 1.25;
}

.nf-book-card__title a { color: var(--nf-heading-color); }
.nf-book-card__title a:hover { color: var(--nf-primary); }

.nf-book-card__subtitle {
	margin: 0;
	color: var(--nf-muted);
	font-size: .8125rem;
	line-height: 1.45;
}

.nf-book-card__excerpt {
	margin: .375rem 0 0;
	color: var(--nf-body-color);
	font-size: .875rem;
	line-height: 1.6;
}

.nf-book-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1.25rem;
	margin-top: auto;
	padding-top: .75rem;
}

.nf-empty,
.nf-notice {
	margin: 0;
	padding: 1rem 1.25rem;
	background: rgba(212, 175, 55, .06);
	border-left: 2px solid var(--nf-primary);
	color: var(--nf-body-color);
	font-size: .875rem;
}

/* Spotlight ------------------------------------------------------------------- */

.nf-feature-book {
	--nf-feature-cover: 380px;
	display: grid;
	gap: 3rem;
	align-items: center;
}

@media (min-width: 900px) {
	.nf-feature-book { grid-template-columns: minmax(0, var(--nf-feature-cover)) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); }
	.nf-feature-book--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, var(--nf-feature-cover)); }
	.nf-feature-book--reverse .nf-feature-book__media { order: 2; }
}

.nf-feature-book__media { width: min(100%, var(--nf-feature-cover)); margin-inline: auto; }

.nf-feature-book__title {
	margin-bottom: .5rem;
	font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem);
	font-weight: 700;
	letter-spacing: -.01em;
}

.nf-feature-book__title em { color: var(--nf-primary); }

.nf-feature-book__subtitle {
	margin-bottom: .75rem;
	color: var(--nf-silver);
	font-family: var(--nf-font-heading);
	font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem);
	font-style: italic;
	line-height: 1.35;
}

.nf-feature-book__author {
	margin-bottom: 1.5rem;
	color: var(--nf-muted);
	font-size: .75rem;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.nf-feature-book__text { max-width: 38rem; margin-bottom: 2rem; color: var(--nf-body-color); }

.nf-feature-book__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem 2rem;
}

/* Buy buttons ------------------------------------------------------------------ */

.nf-buy { display: flex; flex-wrap: wrap; gap: .75rem; }
.nf-buy--stack { display: grid; }
.nf-buy--stack .nf-btn { justify-content: space-between; width: 100%; }

/* Awards ------------------------------------------------------------------------ */

.nf-awards-list {
	display: grid;
	gap: .75rem;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.nf-awards-list li {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	color: var(--nf-silver);
	font-size: .875rem;
	line-height: 1.5;
}

.nf-awards-list svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--nf-primary); }

/* Kindle preview --------------------------------------------------------------- */

.nf-preview { width: 100%; margin-top: 1.5rem; }

.nf-preview > summary { list-style: none; cursor: pointer; }
.nf-preview > summary::-webkit-details-marker { display: none; }
.nf-preview > summary svg { width: 1rem; height: 1rem; }
.nf-preview[open] > summary { border-color: var(--nf-primary); color: var(--nf-primary); }

.nf-preview__frame {
	margin-top: 1rem;
	overflow: hidden;
	background: #fff;
	border-radius: var(--nf-radius-lg);
	box-shadow: var(--nf-shadow);
}

.nf-preview__frame iframe { width: 100%; height: min(70vh, 560px); border: 0; }

/* ==========================================================================
   23. Book page and library
   ========================================================================== */

.nf-book-hero {
	position: relative;
	overflow: hidden;
	padding-block: 2rem clamp(3rem, 7vw, 6rem);
	background: var(--nf-black);
	border-bottom: 1px solid var(--nf-border);
	isolation: isolate;
}

.nf-book-hero__backdrop {
	position: absolute;
	inset: -10%;
	z-index: -1;
	background-position: center;
	background-size: cover;
	filter: blur(70px) saturate(.6) brightness(.5);
	opacity: .45;
	transform: scale(1.2);
}

.nf-book-hero .nf-breadcrumbs { margin-bottom: 2.5rem; }

.nf-book-hero__grid { display: grid; gap: 3rem; align-items: center; }

@media (min-width: 900px) {
	.nf-book-hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); }
}

.nf-book-hero__cover { width: min(100%, 420px); margin-inline: auto; }

.nf-book-hero__title {
	margin-bottom: .5rem;
	font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4.75rem);
	font-weight: 700;
	letter-spacing: -.015em;
}

.nf-book-hero__subtitle {
	margin-bottom: 1rem;
	color: var(--nf-silver);
	font-family: var(--nf-font-heading);
	font-size: clamp(1.125rem, 1rem + .7vw, 1.625rem);
	font-style: italic;
	line-height: 1.35;
}

.nf-book-hero__author {
	margin-bottom: 1.75rem;
	color: var(--nf-muted);
	font-size: .8125rem;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.nf-book-hero__author strong { color: var(--nf-primary); font-weight: 600; }

.nf-book-hero__lede {
	max-width: 36rem;
	margin-bottom: 2rem;
	color: var(--nf-body-color);
	font-size: 1.0625rem;
}

.nf-book-hero__formats {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin: 1.25rem 0 0;
	color: var(--nf-muted);
	font-size: .8125rem;
}

.nf-book-hero__formats svg { width: 1rem; height: 1rem; color: var(--nf-primary); }

.nf-book-hero__extras {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1rem;
	margin-top: 1.75rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--nf-border);
}

.nf-book-hero__extras .nf-preview { width: auto; margin-top: 0; }
.nf-book-hero__extras .nf-preview[open] { flex-basis: 100%; }
.nf-book-hero__extras svg { width: 1rem; height: 1rem; }

.nf-book-body__grid { display: grid; gap: 3rem; }

@media (min-width: 1024px) {
	.nf-book-body__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 5rem; }
}

.nf-book-body__heading { margin-bottom: 1.5rem; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); }

.nf-book-body__aside { display: grid; gap: 1.5rem; align-content: start; }

@media (min-width: 1024px) {
	.nf-book-body__aside { position: sticky; top: calc(var(--nf-header-h) + var(--nf-admin-bar) + 1.5rem); }
}

.nf-panel {
	padding: 1.75rem;
	background: var(--nf-ink-2);
	border: 1px solid var(--nf-border);
	border-radius: var(--nf-radius-lg);
}

.nf-panel__title {
	margin-bottom: 1.25rem;
	color: var(--nf-primary);
	font-family: var(--nf-font-body);
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
}

.nf-panel .nf-awards-list { margin-bottom: 0; }

.nf-details { margin: 0; }

.nf-details > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-block: .625rem;
	border-bottom: 1px solid var(--nf-border);
	font-size: .875rem;
}

.nf-details > div:last-child { border-bottom: 0; }
.nf-details dt { color: var(--nf-muted); }
.nf-details dd { margin: 0; color: var(--nf-heading-color); text-align: right; }

.nf-section--related { background: var(--nf-black); border-top: 1px solid var(--nf-border); }

/* Library filter ------------------------------------------------------------------ */

.nf-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem;
	margin-bottom: 3rem;
}

.nf-filter a {
	padding: .5rem 1.125rem;
	border: 1px solid var(--nf-border);
	border-radius: var(--nf-radius-pill);
	color: var(--nf-silver);
	font-size: .75rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.nf-filter a:hover { border-color: var(--nf-primary); color: var(--nf-primary); }
.nf-filter a[aria-current="page"] { background: var(--nf-primary); border-color: var(--nf-primary); color: var(--nf-btn-text); }

/* ==========================================================================
   24. Timeline, stats, steps
   ========================================================================== */

.nf-timeline {
	max-width: 62rem;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.nf-timeline__item {
	display: grid;
	gap: .5rem 3rem;
	padding-block: 2rem;
	border-bottom: 1px solid var(--nf-border-gold);
}

.nf-timeline__item:first-child { border-top: 1px solid var(--nf-border-gold); }

@media (min-width: 640px) {
	.nf-timeline__item { grid-template-columns: 8rem minmax(0, 1fr); align-items: baseline; }
}

.nf-timeline__year {
	color: var(--nf-primary);
	font-family: var(--nf-font-heading);
	font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem);
	font-style: italic;
	font-weight: 500;
	line-height: 1;
}

.nf-timeline__title { margin-bottom: .5rem; font-size: clamp(1.375rem, 1.2rem + .8vw, 2rem); }
.nf-timeline__text { margin: 0; color: var(--nf-body-color); }

.nf-stats {
	--nf-cols: 3;
	display: grid;
	grid-template-columns: repeat(var(--nf-cols), minmax(0, 1fr));
	gap: 1rem;
	margin: 0 auto 2.5rem;
	max-width: 60rem;
}

.nf-stat {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	gap: .5rem;
	padding: 1.5rem .5rem;
	text-align: center;
}

.nf-stat + .nf-stat { border-left: 1px solid var(--nf-border); }

.nf-stat__value {
	margin: 0;
	color: var(--nf-primary);
	font-family: var(--nf-font-heading);
	font-size: clamp(2.5rem, 1.6rem + 4vw, 5rem);
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.nf-stat__label {
	color: var(--nf-muted);
	font-size: .6875rem;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.nf-steps__list {
	--nf-cols: 3;
	display: grid;
	gap: 1.5rem;
	margin: 0 0 2.5rem;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.nf-steps__list { grid-template-columns: repeat(var(--nf-cols), minmax(0, 1fr)); gap: 2rem; }
}

.nf-steps__item { padding-top: 1.5rem; border-top: 1px solid var(--nf-primary); }

.nf-steps__num {
	display: block;
	margin-bottom: .75rem;
	color: var(--nf-primary);
	font-family: var(--nf-font-heading);
	font-size: 2.5rem;
	font-style: italic;
	line-height: 1;
}

.nf-steps__title { margin-bottom: .5rem; font-size: 1.375rem; }
.nf-steps__text { margin: 0; color: var(--nf-body-color); font-size: .9375rem; }
.nf-steps__cta { text-align: center; }

/* ==========================================================================
   25. Video
   ========================================================================== */

.nf-video { margin: 0; }

.nf-video__frame {
	position: relative;
	overflow: hidden;
	background: var(--nf-black);
	border: 1px solid var(--nf-border);
	border-radius: var(--nf-radius-lg);
	box-shadow: var(--nf-shadow-lg);
}

.nf-video .nf-video__poster {
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	filter: grayscale(.3) brightness(.7);
	transition: transform .8s var(--nf-ease-out), filter .4s var(--nf-ease);
}

.nf-video__frame:hover .nf-video__poster { transform: scale(1.03); filter: grayscale(.1) brightness(.8); }

.nf-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: clamp(4rem, 3rem + 4vw, 6.5rem);
	height: clamp(4rem, 3rem + 4vw, 6.5rem);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(5, 5, 5, .45);
	color: var(--nf-primary);
	cursor: pointer;
	transform: translate(-50%, -50%);
	backdrop-filter: blur(4px);
	transition: transform var(--nf-speed) var(--nf-ease), background var(--nf-speed) var(--nf-ease);
}

.nf-video__play svg { width: 100%; height: 100%; }
.nf-video__play:hover { background: rgba(212, 175, 55, .15); transform: translate(-50%, -50%) scale(1.08); }

.nf-video__player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

.nf-video__frame.nf-is-playing .nf-video__play,
.nf-video__frame.nf-is-playing .nf-video__poster { visibility: hidden; }

.nf-video__caption { margin-top: 1rem; color: var(--nf-muted); font-size: .8125rem; text-align: center; }

/* ==========================================================================
   26. Sign-up band and reader forms
   ========================================================================== */

.nf-signup {
	position: relative;
	display: grid;
	gap: 2.5rem;
	align-items: center;
	padding: clamp(2rem, 1rem + 4vw, 4.5rem);
	overflow: hidden;
	background:
		radial-gradient(70% 90% at 100% 0%, rgba(212, 175, 55, .08), transparent 60%),
		var(--nf-ink-2);
	border: 1px solid var(--nf-border-gold);
	border-radius: var(--nf-radius-lg);
}

@media (min-width: 900px) {
	.nf-signup--has-image { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 5.5rem); }
	.nf-signup--reverse .nf-signup__media { order: 2; }
	.nf-signup--reverse.nf-signup--has-image { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}

.nf-signup__media { width: min(100%, 320px); margin-inline: auto; }

.nf-signup__title {
	margin-bottom: 1rem;
	font-size: clamp(1.875rem, 1.3rem + 2.2vw, 3.25rem);
	font-weight: 700;
}

.nf-signup__title em { color: var(--nf-primary); font-weight: 500; }

.nf-signup__text { max-width: 36rem; margin-bottom: 2rem; color: var(--nf-body-color); }

/* Forms ---------------------------------------------------------------------- */

.nf-form { position: relative; max-width: 40rem; }

.nf-form__fields { display: grid; gap: 1rem; }

@media (min-width: 640px) {
	.nf-form--contact .nf-form__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nf-form--contact .nf-form__field--subject,
	.nf-form--contact .nf-form__field--message { grid-column: 1 / -1; }
	.nf-form--inline .nf-form__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.nf-form__field { margin: 0; }

.nf-form label {
	color: var(--nf-silver);
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.nf-form__req { color: var(--nf-primary); }

.nf-form input[type="text"],
.nf-form input[type="email"],
.nf-form select,
.nf-form textarea {
	background: rgba(5, 5, 5, .6);
	border-color: rgba(244, 240, 230, .14);
	padding: .9375rem 1rem;
	font-size: 1rem;
}

.nf-form__check {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	margin: 1.25rem 0 0;
	color: var(--nf-body-color) !important;
	font-size: .875rem !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	line-height: 1.5;
	text-transform: none !important;
	cursor: pointer;
}

.nf-form__check input { margin: .2rem 0 0; flex: none; }

.nf-form__actions { margin-top: 1.5rem; }
.nf-form__submit { min-width: 14rem; }

.nf-form__note { margin: 1rem 0 0; color: var(--nf-muted); font-size: .75rem; }

/* Honeypot: off-screen rather than display:none, which some bots detect. */
.nf-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.nf-form.nf-is-sending .nf-form__submit { opacity: .6; pointer-events: none; }

.nf-form__status { margin-top: 1.5rem; outline: none; }
.nf-form__status:empty { display: none; }

.nf-form__success,
.nf-form__error {
	margin: 0 0 1rem;
	padding: 1rem 1.25rem;
	border-left: 2px solid var(--nf-primary);
	background: rgba(212, 175, 55, .08);
	color: var(--nf-heading-color);
}

.nf-form__error { border-left-color: var(--nf-error); background: rgba(217, 83, 79, .08); }

/* Once sent, the fields fold away and only the thank-you remains. */
.nf-form.nf-is-sent .nf-form__fields,
.nf-form.nf-is-sent .nf-form__check,
.nf-form.nf-is-sent .nf-form__actions,
.nf-form.nf-is-sent .nf-form__note { display: none; }

/* Grayscale map, to sit in the noir palette. */
.nf-map iframe { filter: grayscale(1) invert(.9) contrast(.9) brightness(.9); }

/* ==========================================================================
   27. Elementor compatibility
   ========================================================================== */

/* Core widgets pick up the theme type and colour scale. */
.elementor-widget-text-editor { max-width: 52rem; margin-inline: auto; color: var(--nf-body-color); }
.elementor-widget-text-editor a { color: var(--nf-primary); }
.elementor-widget-text-editor h3 { margin-top: 1.75rem; font-size: 1.375rem; }
.elementor-widget-heading .elementor-heading-title { font-family: var(--nf-font-heading); }

/* Theme widgets sit inside an Elementor column, so their own section
   wrappers would double the padding. */
.elementor-widget-noirand4ever-book-grid .nf-section,
.elementor-widget-noirand4ever-signup .nf-section { padding-block: 0; }

/* Full-bleed hero and banner in a full-width section. */
.elementor-section.elementor-section-full_width > .elementor-container > .elementor-column > .elementor-widget-wrap { padding: 0; }

.nf-book-body .nf-share { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--nf-border); }

/* ==========================================================================
   28. Gift page (ad landing)
   ========================================================================== */

/*
 * Warm and quietly festive, never seasonal: a dark velvet ground, a gold
 * spotlight and a few out-of-focus lights, so the same page carries the ads
 * from November to January, birthdays included.
 */
body.nf-gift-page {
	background-color: var(--nf-black);
	background-image:
		radial-gradient(60rem 32rem at 50% -8rem, rgba(212, 175, 55, .16), transparent 70%),
		radial-gradient(1.5rem 1.5rem at 12% 18%, rgba(230, 198, 92, .22), transparent 70%),
		radial-gradient(2.5rem 2.5rem at 86% 12%, rgba(230, 198, 92, .14), transparent 70%),
		radial-gradient(1rem 1rem at 78% 34%, rgba(244, 240, 230, .14), transparent 70%),
		radial-gradient(3rem 3rem at 6% 46%, rgba(179, 38, 30, .12), transparent 70%),
		radial-gradient(2rem 2rem at 94% 58%, rgba(230, 198, 92, .1), transparent 70%),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 5px),
		linear-gradient(180deg, #120d0b 0%, var(--nf-black) 55%);
	background-repeat: no-repeat;
}

/* Bar ------------------------------------------------------------------------ */

.nf-gift-bar {
	position: sticky;
	top: var(--nf-admin-bar);
	z-index: var(--nf-z-sticky);
	background: rgba(5, 5, 5, .86);
	border-bottom: 1px solid var(--nf-border-gold);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.nf-gift-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 60px;
}

.nf-gift-bar__brand {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	color: var(--nf-heading-color);
	font-family: var(--nf-font-heading);
	font-size: 1rem;
	line-height: 1.2;
}

.nf-gift-bar__logo {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 1px var(--nf-border-gold);
}

.nf-gift-bar__hook {
	display: none;
	align-items: center;
	gap: .5rem;
	color: var(--nf-primary);
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
}

.nf-gift-bar__hook svg { width: 1rem; height: 1rem; }

@media (min-width: 640px) {
	.nf-gift-bar__brand { font-size: 1.125rem; }
	.nf-gift-bar__hook { display: inline-flex; }
}

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

.nf-gift-hero { padding: 2.75rem 0 1.5rem; text-align: center; }

.nf-gift-hero__inner { display: flex; flex-direction: column; align-items: center; }

/* A satin ribbon with a small bow: says "gift" for any occasion. */
.nf-gift-hero__bow {
	position: relative;
	width: min(22rem, 70%);
	height: 2px;
	margin-bottom: 1.75rem;
	background: linear-gradient(90deg, transparent, var(--nf-primary) 20%, var(--nf-primary-hover) 50%, var(--nf-primary) 80%, transparent);
}

.nf-gift-hero__bow::before,
.nf-gift-hero__bow::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.125rem;
	height: .75rem;
	border: 2px solid var(--nf-primary);
	border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
	background: var(--nf-black);
}

.nf-gift-hero__bow::before { transform: translate(-100%, -50%) rotate(-18deg); }
.nf-gift-hero__bow::after { transform: translate(0, -50%) rotate(18deg); }

.nf-gift-hero .nf-eyebrow { justify-content: center; }
.nf-gift-hero .nf-eyebrow::before { display: none; }

.nf-gift-hero__title {
	margin: 0;
	font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);
	font-style: italic;
	line-height: 1.02;
}

.nf-gift-hero__intro {
	max-width: 40rem;
	margin: 1.25rem auto 0;
	color: var(--nf-body-color);
	font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
}

.nf-gift-hero__note {
	display: inline-flex;
	align-items: flex-start;
	gap: .625rem;
	max-width: 40rem;
	margin: 1.5rem auto 0;
	padding: .75rem 1.125rem;
	border: 1px solid var(--nf-border-gold);
	border-radius: var(--nf-radius-lg);
	background: rgba(212, 175, 55, .07);
	color: var(--nf-heading-color);
	font-size: .9375rem;
	line-height: 1.5;
	text-align: left;
}

.nf-gift-hero__note svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--nf-primary); }

.nf-gift-hero__points {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem 1.5rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
	color: var(--nf-muted);
	font-size: .75rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.nf-gift-hero__points li { display: inline-flex; align-items: center; gap: .5rem; }

/* Phones: keep the first covers within a thumb's reach of the top. */
@media (max-width: 639px) {
	.nf-gift-hero { padding: 1.75rem 0 .5rem; }
	.nf-gift-hero__bow { margin-bottom: 1.25rem; }
	.nf-gift-hero__intro { margin-top: .875rem; font-size: .9375rem; line-height: 1.55; }
	.nf-gift-hero__note { margin-top: 1rem; padding: .625rem .875rem; font-size: .8125rem; }
	.nf-gift-hero__points { gap: .375rem 1rem; margin-top: .875rem; font-size: .625rem; letter-spacing: .04em; }
}

.nf-gift-hero__points li::before {
	content: "";
	width: .3125rem;
	height: .3125rem;
	border-radius: 50%;
	background: var(--nf-primary);
}

/* Shelves -------------------------------------------------------------------- */

.nf-gift-shelves { padding: 1.5rem 0 4rem; }

.nf-gift-shelf + .nf-gift-shelf { margin-top: 3.5rem; }

.nf-gift-shelf__title {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0 0 1.75rem;
	font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem);
}

/* A gold rule runs out to the edge, like a shelf. */
.nf-gift-shelf__title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--nf-border-gold), transparent);
}

.nf-gift-shelf__count {
	order: 2;
	color: var(--nf-muted);
	font-family: var(--nf-font-body);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .14em;
}

.nf-gift-grid {
	--nf-cols: 4;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem .875rem;
}

/*
 * Wider screens wrap the cards in centred rows, so a short last row sits in
 * the middle (5, 5, 3 reads as a balanced shelf rather than a gap).
 */
@media (min-width: 768px) {
	.nf-gift-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem 1.5rem; }
	.nf-gift-grid > .nf-gift-card { width: calc((100% - 3rem) / 3); }
}

@media (min-width: 1100px) {
	.nf-gift-grid { max-width: calc(var(--nf-cols) * 13.5rem + (var(--nf-cols) - 1) * 2rem); margin-inline: auto; gap: 2.5rem 2rem; }
	.nf-gift-grid > .nf-gift-card { width: min(13.5rem, calc((100% - (var(--nf-cols) - 1) * 2rem) / var(--nf-cols))); }
}

/* Phones, swipe option: one row per shelf that scrolls sideways. */
@media (max-width: 767px) {
	.nf-gift-shelves--swipe .nf-gift-grid {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 62%;
		margin-inline: calc(var(--nf-gutter) * -1);
		padding: 0 var(--nf-gutter) 1rem;
		overflow-x: auto;
		scroll-padding-inline: var(--nf-gutter);
		scroll-snap-type: x mandatory;
		scrollbar-width: thin;
		scrollbar-color: var(--nf-border-gold) transparent;
	}

	.nf-gift-shelves--swipe .nf-gift-card { scroll-snap-align: start; }
}

/* Card ----------------------------------------------------------------------- */

.nf-gift-card { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }

.nf-gift-card__cover { aspect-ratio: 2 / 3; }

.nf-gift-card:hover .nf-gift-card__cover { transform: translateY(-4px); box-shadow: var(--nf-glow); }

.nf-gift-card__format {
	margin-bottom: .25rem;
	color: var(--nf-primary);
	font-size: .625rem;
	font-weight: 700;
	letter-spacing: .2em;
	line-height: 1;
	text-transform: uppercase;
}

.nf-gift-card__body { display: flex; flex-direction: column; flex: 1; gap: .25rem; text-align: center; }

.nf-gift-card__title {
	margin: 0;
	font-size: clamp(.9375rem, .9rem + .25vw, 1.0625rem);
	line-height: 1.25;
}

.nf-gift-card__subtitle {
	margin: 0;
	color: var(--nf-muted);
	font-size: .75rem;
	line-height: 1.4;
}

.nf-gift-card__actions {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	margin-top: auto;
	padding-top: .75rem;
}

/* Full-width, thumb-sized targets on every screen. */
.nf-gift-card__buy {
	width: 100%;
	min-height: 48px;
	padding: .75rem .875rem;
	gap: .5rem;
	letter-spacing: .1em;
}

.nf-gift-card__price {
	padding-left: .5rem;
	border-left: 1px solid currentColor;
	font-variant-numeric: tabular-nums;
	letter-spacing: .02em;
}

/* Two cards across a phone leave no room for label and price side by side. */
@media (max-width: 639px) {
	.nf-gift-card__buy { flex-direction: column; gap: .1875rem; padding: .625rem .5rem; letter-spacing: .08em; }
	.nf-gift-card__buy .nf-gift-card__price { padding-left: 0; border-left: 0; font-size: .8125rem; }
}

.nf-gift-card__ebook {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 44px;
	padding: .5rem .75rem;
	border: 1px solid var(--nf-border);
	border-radius: var(--nf-radius);
	color: var(--nf-silver);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	transition: border-color var(--nf-speed) var(--nf-ease), color var(--nf-speed) var(--nf-ease);
}

.nf-gift-card__ebook:hover { border-color: var(--nf-primary); color: var(--nf-primary); }

.nf-gift-card__ebook svg { flex: none; width: 1rem; height: 1rem; }

.nf-gift-card__ebook .nf-gift-card__price { color: var(--nf-muted); }

@media (max-width: 639px) {
	.nf-gift-card__ebook { gap: .375rem; padding: .5rem .375rem; font-size: .6875rem; letter-spacing: .04em; }
	.nf-gift-card__ebook svg { display: none; }
	.nf-gift-card__ebook .nf-gift-card__price { padding-left: .375rem; }
}

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

.nf-gift-foot {
	padding: 1.5rem 0;
	border-top: 1px solid var(--nf-border);
	color: var(--nf-muted);
	font-size: .8125rem;
}

.nf-gift-foot__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1.5rem;
}

.nf-gift-foot p { margin: 0; }

.nf-gift-foot__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

.nf-gift-foot__links a { color: var(--nf-muted); }
.nf-gift-foot__links a:hover { color: var(--nf-primary); }

@media (prefers-reduced-motion: reduce) {
	.nf-gift-card:hover .nf-gift-card__cover { transform: none; }
}

/* ==========================================================================
   29. Christmas look
   ========================================================================== */

/*
 * Everything below hangs off body.nf-christmas, which inc/seasonal.php adds
 * only while the Christmas look is on, so switching it off restores the
 * site exactly. Holly red and pine green sit beside the house gold rather
 * than replacing it.
 */
.nf-christmas {
	--nf-holly: #b3261e;
	--nf-holly-deep: #6e1410;
	--nf-pine: #1f5c3f;
}

/* Announcement bar ----------------------------------------------------------- */

.nf-season-bar {
	position: relative;
	z-index: var(--nf-z-topbar);
	background:
		linear-gradient(90deg, var(--nf-holly-deep), var(--nf-holly) 50%, var(--nf-holly-deep));
	color: var(--nf-heading-color);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .06em;
	line-height: 1.4;
	text-align: center;
}

.nf-season-bar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 2.25rem;
	padding-block: .375rem;
}

.nf-season-bar svg { flex: none; width: 1rem; height: 1rem; color: var(--nf-primary-hover); }

.nf-season-bar a {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	color: inherit;
}

.nf-season-bar a:hover { color: var(--nf-primary-hover); }

@media (min-width: 640px) {
	.nf-season-bar { font-size: .8125rem; }
}

/* String of lights ----------------------------------------------------------- */

/*
 * Red, gold and green bulbs on a fine wire just below the header. The
 * colours step along every 0.8s, like chaser lights; still for visitors who
 * prefer reduced motion.
 */
.nf-christmas-lights .nf-header::after,
.nf-christmas-lights .nf-gift-bar::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: 14px;
	pointer-events: none;
	background-image:
		radial-gradient(circle at 12px 8px, #ff6b5e 0 2.5px, rgba(255, 107, 94, .35) 3.5px, transparent 7px),
		radial-gradient(circle at 36px 8px, #f3d36b 0 2.5px, rgba(243, 211, 107, .35) 3.5px, transparent 7px),
		radial-gradient(circle at 60px 8px, #74d39a 0 2.5px, rgba(116, 211, 154, .3) 3.5px, transparent 7px),
		linear-gradient(rgba(244, 240, 230, .2), rgba(244, 240, 230, .2));
	background-size: 72px 14px, 72px 14px, 72px 14px, 100% 1px;
	background-position: 0 0, 0 0, 0 0, 0 4px;
	background-repeat: repeat-x, repeat-x, repeat-x, no-repeat;
	animation: nf-chase 2.4s steps(1) infinite;
}

@keyframes nf-chase {
	0%   { background-position: 0 0, 0 0, 0 0, 0 4px; }
	33%  { background-position: 24px 0, 24px 0, 24px 0, 0 4px; }
	66%  { background-position: 48px 0, 48px 0, 48px 0, 0 4px; }
}

/* Snow ----------------------------------------------------------------------- */

.nf-snow {
	position: fixed;
	inset: 0;
	z-index: calc(var(--nf-z-overlay) - 1);
	width: 100%;
	height: 100%;
	pointer-events: none;
}

/* Gift page ------------------------------------------------------------------ */

/* A holly-red ribbon with the gold bow, and a little pine and holly in the lights. */
.nf-christmas .nf-gift-hero__bow {
	background: linear-gradient(90deg, transparent, var(--nf-holly-deep) 15%, var(--nf-holly) 50%, var(--nf-holly-deep) 85%, transparent);
}

body.nf-gift-page.nf-christmas {
	background-image:
		radial-gradient(60rem 32rem at 50% -8rem, rgba(212, 175, 55, .16), transparent 70%),
		radial-gradient(40rem 24rem at 0% 30%, rgba(31, 92, 63, .16), transparent 70%),
		radial-gradient(40rem 24rem at 100% 55%, rgba(179, 38, 30, .12), transparent 70%),
		radial-gradient(1.5rem 1.5rem at 12% 18%, rgba(230, 198, 92, .22), transparent 70%),
		radial-gradient(2.5rem 2.5rem at 86% 12%, rgba(230, 198, 92, .14), transparent 70%),
		radial-gradient(1rem 1rem at 78% 34%, rgba(244, 240, 230, .14), transparent 70%),
		radial-gradient(3rem 3rem at 6% 46%, rgba(179, 38, 30, .16), transparent 70%),
		radial-gradient(2rem 2rem at 94% 58%, rgba(116, 211, 154, .1), transparent 70%),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 5px),
		linear-gradient(180deg, #120d0b 0%, var(--nf-black) 55%);
}

.nf-christmas .nf-gift-hero__note {
	border-color: rgba(179, 38, 30, .55);
	background: linear-gradient(90deg, rgba(179, 38, 30, .14), rgba(212, 175, 55, .06));
}

.nf-christmas .nf-gift-shelf__title::after {
	background: linear-gradient(90deg, rgba(179, 38, 30, .6), var(--nf-border-gold) 40%, transparent);
}

@media (prefers-reduced-motion: reduce) {
	.nf-christmas-lights .nf-header::after,
	.nf-christmas-lights .nf-gift-bar::after { animation: none; }
}
