/*
 * The Neuroscience of the Lord's Prayer - pre-order landing page.
 * Loaded only on this page (inc/lords-prayer.php). Layout comes from
 * templates/page-neuroscience-of-the-lords-prayer.html and the lords-prayer-*
 * patterns. No global header or footer.
 *
 * Desktop values follow the 1440px Figma frame (content width 1296px).
 *
 * Fonts: headings use Garamond Premier Pro from the Adobe Fonts kit orn1cjd (enqueued in
 * inc/lords-prayer.php). The self-hosted EB Garamond below is only a fallback in case
 * the kit fails to load. Body copy uses self-hosted Raleway.
 */

@font-face {
	font-family: "EB Garamond";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/lords-prayer/eb-garamond-400-normal.woff2") format("woff2");
}

@font-face {
	font-family: "EB Garamond";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/lords-prayer/eb-garamond-500-normal.woff2") format("woff2");
}

@font-face {
	font-family: "EB Garamond";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/lords-prayer/eb-garamond-600-normal.woff2") format("woff2");
}

@font-face {
	font-family: "EB Garamond";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/lords-prayer/eb-garamond-400-italic.woff2") format("woff2");
}

@font-face {
	font-family: "EB Garamond";
	font-style: italic;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/lords-prayer/eb-garamond-500-italic.woff2") format("woff2");
}

/* Body copy: Raleway (variable, 100-900, latin subset), self-hosted */
@font-face {
	font-family: "Raleway";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/lords-prayer/raleway-latin-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Raleway";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/lords-prayer/raleway-latin-italic.woff2") format("woff2");
}

:root {
	--nlp-font: "garamond-premier-pro", "EB Garamond", Garamond, Georgia, serif;
	--nlp-body-font: "Raleway", "Helvetica Neue", Arial, sans-serif;
	--nlp-ink: rgba(0, 0, 0, 0.9);
	--nlp-ink-soft: rgba(0, 0, 0, 0.75);
	--nlp-gold: #c1953c;
	--nlp-gold-deep: linear-gradient(270deg, #896317 0%, rgba(224, 165, 38, 0.9) 59.5%, #896317 100%);
	--nlp-gold-bright: linear-gradient(270deg, #c1953c 0%, #f8d17d 50%, #c1953c 100%);
	--nlp-content-width: 1296px;
	--nlp-gutter: 72px;
	--nlp-section-gap: 72px;
}

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

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	font-family: var(--nlp-body-font);
	font-size: 24px;
	line-height: 1.5;
	color: var(--nlp-ink-soft);
	background: #ffffff;
	-webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure {
	margin: 0;
	padding: 0;
}

em {
	font-style: italic;
}

/* Undo the theme's block-gap margins and heading tracking inside these pages.
   Zero specificity past .nlp-page, so the section rules below still win. */
.nlp-page :where(main, footer, h1, h2, h3, p, ul, ol, figure, picture, img, a, div, section) {
	margin-block: 0;
}

.nlp-page :where(h1, h2, h3) {
	letter-spacing: normal;
}

/* Headings, wordmark, gift numbers and buttons stay in Garamond */
h1,
h2,
h3,
.nlp-heading,
.nlp-gift__title,
.nlp-gift__number,
.nlp-wordmark {
	font-family: var(--nlp-font);
}

/* Text for screen readers only */
.nlp-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Line breaks that only apply in the mobile layout */
.nlp-br-mobile {
	display: none;
}

.nlp-container {
	width: 100%;
	max-width: calc(var(--nlp-content-width) + var(--nlp-gutter) * 2);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--nlp-gutter);
	padding-right: var(--nlp-gutter);
}

/* Type */
.nlp-heading {
	font-size: 32px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--nlp-ink);
}

.nlp-heading em {
	font-weight: 500;
}

.nlp-body {
	font-size: 20px;
	line-height: 1.5;
	color: var(--nlp-ink-soft);
}

.nlp-body strong {
	font-weight: 600;
}

/* Body copy that stays in the heading serif */
.nlp-body--serif {
	font-family: var(--nlp-font);
	font-size: 24px;
}

.nlp-section-title {
	text-align: center;
}

.nlp-gold-text {
	background-image: linear-gradient(-74.92deg, #896317 0%, rgba(224, 165, 38, 0.9) 59.5%, #896317 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.nlp-gold-text--flat {
	background-image: var(--nlp-gold-deep);
}

.nlp-gold-text--bright {
	background-image: var(--nlp-gold-bright);
}

/* Wordmark (header + footer) */
.nlp-wordmark {
	font-size: 24px;
	font-weight: 500;
	line-height: 1;
	color: var(--nlp-ink);
	white-space: nowrap;
}

.nlp-wordmark em {
	font-weight: 400;
}

.nlp-wordmark .nlp-wordmark__of {
	font-weight: 500;
}

.nlp-wordmark__caps {
	letter-spacing: 0.05em;
}

.nlp-wordmark--footer {
	font-size: 32px;
	color: #ffffff;
}

/* Buttons */
.nlp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 23px 48px;
	border: 2px solid var(--nlp-gold);
	border-radius: 1000px;
	font-family: var(--nlp-font);
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--nlp-ink);
	white-space: nowrap;
}

/* Hover (Figma "Variant2"): a gold down arrow slides in 10px after the label */
.nlp-button::after {
	content: "";
	flex: none;
	width: 0;
	height: 18px;
	margin-left: 0;
	opacity: 0;
	background: url("../images/lords-prayer/arrow-down.svg") left center / 14px 18px no-repeat;
	transition: width 0.25s ease, margin-left 0.25s ease, opacity 0.25s ease;
}

.nlp-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.nlp-button:hover::after,
.nlp-button:focus-visible::after {
	width: 14px;
	margin-left: 10px;
	opacity: 1;
}

.nlp-button--nav::after {
	height: 16px;
	background-image: url("../images/lords-prayer/arrow-down-light.svg");
	background-size: 12px 16px;
}

.nlp-button--nav:hover::after,
.nlp-button--nav:focus-visible::after {
	width: 12px;
}

@media (prefers-reduced-motion: reduce) {
	.nlp-button::after {
		transition: none;
	}
}

.nlp-button--glass {
	background-color: rgba(255, 255, 255, 0.1);
	-webkit-backdrop-filter: blur(25px);
	backdrop-filter: blur(25px);
}

.nlp-button--nav {
	padding: 15px 32px;
	font-size: 16px;
	color: #ffffff;
	background-color: rgba(103, 103, 103, 0.36);
	-webkit-backdrop-filter: blur(25px);
	backdrop-filter: blur(25px);
}

.nlp-page .nlp-button:hover {
	color: var(--nlp-ink);
}

.nlp-page .nlp-button--nav:hover {
	color: #ffffff;
}

/* Photos */
.nlp-photo {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--nlp-gold);
	border-radius: 20px;
}

.nlp-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Notched panel: corner cut-outs from the Figma vector, kept undistorted at any size */
.nlp-notched {
	border-style: solid;
	border-width: 24px;
	border-image-source: url("../images/lords-prayer/gift-card-bg.svg");
	border-image-slice: 28 fill;
	border-image-width: 28px;
	border-image-repeat: stretch;
}

.nlp-questions__list.nlp-notched {
	border-image-source: url("../images/lords-prayer/callout-bg.svg");
}

/* Header */
.nlp-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 95px;
	padding: 0 48px;
}

.nlp-header .nlp-button--nav {
	position: absolute;
	top: 24px;
	right: 48px;
}

/* Hero */
.nlp-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	/* Scale with the viewport like the 1440x695 Figma frame so the books keep their place */
	aspect-ratio: 1440 / 695;
	min-height: 560px;
	padding: 142px 0 120px;
}

.nlp-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* When the frame has to crop, crop from the left - the books sit on the right */
	object-position: right center;
}

.nlp-hero__blur {
	position: absolute;
	top: 0;
	left: 0;
	width: 701px;
	height: 100%;
	max-width: none;
	filter: blur(25px);
	pointer-events: none;
}

.nlp-hero__inner {
	position: relative;
	z-index: 1;
}

.nlp-hero__content {
	max-width: 650px;
	padding-left: 24px;
}

.nlp-hero__title {
	font-size: clamp(34px, 3.06vw, 44px);
	font-weight: 500;
	line-height: 1.2;
}

.nlp-hero__lead {
	margin-top: 24px;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--nlp-ink-soft);
}

.nlp-hero__lead .nlp-gold-text {
	font-weight: 700;
}

.nlp-hero__content .nlp-button {
	margin-top: 32px;
}

/* Section 1 */
.nlp-story {
	display: grid;
	grid-template-columns: minmax(0, 550px) minmax(0, 640px);
	justify-content: space-between;
	align-items: center;
	gap: 48px;
	margin-top: var(--nlp-section-gap);
}

.nlp-story__content > * + * {
	margin-top: 24px;
}

.nlp-story__body {
	max-width: 523px;
}

.nlp-story__photo {
	aspect-ratio: 640 / 426;
}

/* Section 2 */
.nlp-questions {
	margin-top: var(--nlp-section-gap);
}

.nlp-questions__intro {
	max-width: 671px;
	margin: 0 auto;
	text-align: center;
}

.nlp-questions__intro + .nlp-questions__intro {
	margin-top: 16px;
}

.nlp-questions__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 48px;
	margin-top: 32px;
	padding: 24px 48px;
	list-style: none;
	font-family: var(--nlp-font);
	font-size: 24px;
	font-style: italic;
	line-height: 1.5;
	color: var(--nlp-ink);
	text-align: center;
}

.nlp-questions__break {
	flex-basis: 100%;
	height: 0;
	margin: -24px 0;
}

/* Section 3 */
.nlp-intro {
	position: relative;
	padding-top: 121px;
	padding-bottom: 72px;
}

.nlp-intro__content {
	position: relative;
	z-index: 1;
	max-width: 650px;
	margin: 0 auto;
	text-align: center;
}

.nlp-intro__content > .nlp-body {
	margin-top: 24px;
}

.nlp-intro__content .nlp-button {
	margin-top: 32px;
}

.nlp-intro__photo {
	position: absolute;
	width: 200px;
	aspect-ratio: 2 / 3;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nlp-intro__photo--left {
	top: 77px;
	left: calc(var(--nlp-gutter) + 53px);
	transform: rotate(-6deg);
}

.nlp-intro__photo--right {
	top: 301px;
	right: calc(var(--nlp-gutter) + 27px);
	transform: rotate(6deg);
}

/* Sections 4-6 sit on a faint gold wash that starts halfway down the gift cards */
.nlp-tinted {
	--nlp-tint-start: 353px;
	padding-top: 73px;
	background:
		linear-gradient(#ffffff, #ffffff) top / 100% var(--nlp-tint-start) no-repeat,
		linear-gradient(-47.97deg, rgba(225, 174, 72, 0.05) 0%, rgba(248, 209, 125, 0.05) 50%, rgba(225, 174, 72, 0.05) 100%),
		#ffffff;
}

/* Section 4 */
.nlp-gifts {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.nlp-gifts__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
	margin-top: 32px;
	list-style: none;
}

.nlp-gift {
	position: relative;
	padding-top: 24px;
}

.nlp-gift__number {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	transform: translateX(-50%);
	background: url("../images/lords-prayer/gift-number-circle.svg") center / 100% 100% no-repeat;
	font-size: 28px;
	font-weight: 500;
	line-height: 1;
	color: var(--nlp-ink);
}

.nlp-gift__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	min-height: 323px;
	padding: 24px 0 8px;
	text-align: center;
}

/* Gift 4: narrower side borders so "A Special Supplement" fits on one line
   (the notched corners are drawn by border-image-width, so they are unchanged) */
.nlp-gift__card--wide {
	border-left-width: 8px;
	border-right-width: 8px;
}

.nlp-gift__title {
	font-size: 32px;
	line-height: 1.2;
	/* Three lines of room so the dividers line up across the row */
	min-height: 3.6em;
	align-content: center;
}

.nlp-gift__divider {
	width: 112px;
	height: 1px;
	margin: 24px 0;
}

.nlp-gift__body {
	font-size: 18px;
	line-height: 1.5;
	color: var(--nlp-ink-soft);
}

/* Footnote under gift 4's description */
.nlp-gift__note {
	margin-top: 12px;
	font-size: 18px;
	line-height: 1.5;
	color: var(--nlp-ink-soft);
}

.nlp-gifts > .nlp-button {
	margin-top: 32px;
}

/* Section 5 */
.nlp-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 96px;
}

.nlp-more__title {
	max-width: 400px;
}

.nlp-more__lead {
	margin-top: 24px;
	text-align: center;
}

.nlp-more__columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 17px;
	width: 100%;
	margin-top: 32px;
}

.nlp-more > .nlp-button {
	margin-top: 32px;
}

/* Section 6 */
.nlp-start {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 499px) minmax(0, 640px);
	align-items: start;
	gap: 48px;
	margin-top: 96px;
	padding-left: calc(var(--nlp-gutter) + 109px);
}

/* Beats the theme's margin reset on a last child */
.nlp-page .nlp-start {
	margin-bottom: -48px;
}

.nlp-start__photo {
	aspect-ratio: 499 / 618;
	background: #fafafa;
}

/* Figma crop: image is scaled past "cover" and anchored top-left */
.nlp-start__photo img {
	position: absolute;
	top: -18.59%;
	left: 0;
	width: 112.22%;
	height: 121.36%;
	max-width: none;
}

.nlp-start__content {
	padding-top: 72px;
}

.nlp-start__content > * + * {
	margin-top: 24px;
}

.nlp-start__content > .nlp-button {
	margin-top: 32px;
}

.nlp-checklist {
	list-style: none;
	font-size: 21px;
	font-weight: 600;
	line-height: 28px;
	color: var(--nlp-ink);
}

.nlp-checklist li::before {
	content: "\2713";
	content: "\2713" / "";
	margin-right: 0.3em;
	background-image: var(--nlp-gold-bright);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Dark closing area: claim steps + wordmark. Section 6's photo overlaps its top 48px */
.nlp-closing {
	background: linear-gradient(270deg, #040404 0%, rgba(5, 5, 5, 0.9) 50%, #040404 100%), #ffffff;
}

/* Claim your gifts */
.nlp-claim {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 144px;
	text-align: center;
}

.nlp-claim__title {
	font-size: 40px;
}

.nlp-claim > .nlp-claim__step {
	margin-top: 48px;
}

/* Target of every Pre-order Today button */
.nlp-claim__form {
	width: 100%;
	margin-top: 48px;
	scroll-margin-top: 48px;
}

.nlp-claim__body {
	margin-top: 24px;
	color: #ffffff;
}

/* Gravity Form 3. !important matches the theme's other forms: Gravity's own
   stylesheets load after this one and set most of these. */
.nlp-claim__gravity-form {
	width: 100%;
	max-width: 608px;
	margin: 32px auto 0;
	text-align: left;
}

.nlp-claim__gravity-form .gform_wrapper {
	--gf-form-gap-y: 16px;
	--gf-form-gap-x: 16px;
	margin: 0 !important;
	padding: 0 !important;
}

/* Every part of the form (sub-labels, legends, notes, button) in the body font */
.nlp-claim__gravity-form .gform_wrapper,
.nlp-claim__gravity-form .gform_wrapper * {
	font-family: var(--nlp-body-font) !important;
}

.nlp-claim__gravity-form .gform_heading,
.nlp-claim__gravity-form .gform_required_legend,
.nlp-claim__gravity-form .gfield_required {
	display: none !important;
}

.nlp-claim__gravity-form .gform_fields {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 16px !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Flex so error messages can sit under the input (see order below) */
.nlp-claim__gravity-form .gfield {
	display: flex !important;
	flex-direction: column;
	grid-column: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
}

.nlp-claim__gravity-form .gfield--type-name {
	grid-column: 1 / -1 !important;
	border: 0;
}

.nlp-claim__gravity-form .ginput_container--name {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 16px !important;
	margin: 0 !important;
}

.nlp-claim__gravity-form .ginput_container--name > span {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.nlp-claim__gravity-form .gfield.hidden_label > .gfield_label {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
}

.nlp-claim__gravity-form .gform-field-label {
	display: block !important;
	margin: 0 0 8px !important;
	font-family: var(--nlp-body-font) !important;
	font-size: 21px !important;
	font-weight: 500 !important;
	line-height: 25px !important;
	color: #ffffff !important;
}

.nlp-claim__gravity-form input:not([type="submit"]):not([type="hidden"]) {
	width: 100% !important;
	height: 48px !important;
	margin: 0 !important;
	padding: 0 16px !important;
	border: 1px solid rgba(0, 0, 0, 0.6) !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	background: #ffffff !important;
	font-family: var(--nlp-body-font) !important;
	font-size: 16px !important;
	line-height: 16px !important;
	color: var(--nlp-ink) !important;
}

.nlp-claim__gravity-form input::placeholder {
	opacity: 1;
	color: rgba(40, 40, 69, 0.75) !important;
}

.nlp-claim__gravity-form input:not([type="submit"]):focus {
	outline: 2px solid var(--nlp-gold) !important;
	outline-offset: 1px !important;
}

.nlp-claim__gravity-form .gform-footer {
	display: flex !important;
	justify-content: center !important;
	margin: 32px 0 0 !important;
	padding: 0 !important;
}

/* Same look as .nlp-button, in white */
.nlp-claim__gravity-form .gform_wrapper .gform_button.button {
	width: auto !important;
	height: 64px !important;
	margin: 0 !important;
	padding: 0 48px !important;
	border: 2px solid var(--nlp-gold) !important;
	border-radius: 1000px !important;
	box-shadow: none !important;
	background: transparent !important;
	font-family: var(--nlp-font) !important;
	font-size: 18px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	letter-spacing: 0.05em !important;
	text-transform: uppercase !important;
	color: #ffffff !important;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.nlp-claim__gravity-form .gform_wrapper .gform_button.button:hover,
.nlp-claim__gravity-form .gform_wrapper .gform_button.button:focus-visible {
	background: rgba(193, 149, 60, 0.15) !important;
}

.nlp-claim__gravity-form .gform_wrapper .gform_button.button:focus-visible {
	outline: 2px solid #ffffff !important;
	outline-offset: 3px !important;
}

/* Validation and confirmation, on the dark background */
.nlp-claim__gravity-form .gform_validation_errors {
	margin: 0 0 16px !important;
	padding: 12px 16px !important;
	border: 1px solid #f2a59c !important;
	border-radius: 10px !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: rgba(242, 165, 156, 0.12) !important;
}

.nlp-claim__gravity-form .gform_validation_errors :is(h2, ol, li, a, span) {
	font-family: var(--nlp-body-font) !important;
	font-size: 18px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	color: #ffffff !important;
}

.nlp-claim__gravity-form .gfield_validation_message {
	order: 1;
	margin: 6px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	font-family: var(--nlp-body-font) !important;
	font-size: 16px !important;
	color: #f2a59c !important;
}

.nlp-claim__gravity-form .gfield_error input:not([type="submit"]) {
	border-color: #e0604f !important;
}

.nlp-claim__gravity-form .gform_confirmation_message {
	font-family: var(--nlp-body-font);
	font-size: 24px;
	line-height: 1.5;
	text-align: center;
	color: #ffffff;
}

.nlp-retailers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px 8px;
	max-width: 1152px;
	margin-top: 28px;
	list-style: none;
}

.nlp-retailer {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 282px;
	height: 84px;
	padding: 20px 8px;
	overflow: hidden;
	border: 2px solid var(--nlp-gold);
	border-radius: 20px;
	background: linear-gradient(-17.1deg, rgba(225, 174, 72, 0.05) 0%, rgba(248, 209, 125, 0.05) 50%, rgba(225, 174, 72, 0.05) 100%), #ffffff;
}

/* Hover (Figma "Amazon Button" Hover variant): the gold tint deepens to 40% */
.nlp-retailer::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0;
	background: linear-gradient(-17.1deg, rgba(225, 174, 72, 0.4) 0%, rgba(248, 209, 125, 0.4) 50%, rgba(225, 174, 72, 0.4) 100%);
	transition: opacity 0.25s ease;
}

.nlp-retailer:hover::before,
.nlp-retailer:focus-visible::before {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.nlp-retailer::before {
		transition: none;
	}
}

.nlp-retailer:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

/* Logo boxes and crops follow the Figma image fills */
.nlp-retailer__logo {
	position: relative;
	display: block;
	flex: none;
	width: calc(var(--nlp-logo-width) * var(--nlp-logo-scale, 1));
	height: calc(var(--nlp-logo-height) * var(--nlp-logo-scale, 1));
	overflow: hidden;
}

.nlp-retailer__logo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
}

.nlp-retailer__logo--amazon {
	--nlp-logo-width: 125px;
	--nlp-logo-height: 40px;
}

.nlp-retailer__logo--amazon img {
	top: -37.03%;
	height: 176.18%;
}

.nlp-retailer__logo--simon-schuster {
	--nlp-logo-width: 198px;
	--nlp-logo-height: 32px;
}

/* This logo is a JPEG: multiply drops its white box on the tinted button */
.nlp-retailer__logo--simon-schuster img {
	mix-blend-mode: multiply;
	top: -42.4%;
	left: -1.01%;
	width: 102.02%;
	height: 184.8%;
}

.nlp-retailer__logo--audible {
	--nlp-logo-width: 129px;
	--nlp-logo-height: 40px;
}

.nlp-retailer__logo--google-books {
	--nlp-logo-width: 122px;
	--nlp-logo-height: 40px;
}

.nlp-retailer__logo--target {
	--nlp-logo-width: 148px;
	--nlp-logo-height: 32px;
}

.nlp-retailer__logo--target img {
	top: -80.94%;
	height: 260.55%;
}

.nlp-retailer__logo--barnes-noble {
	--nlp-logo-width: 191px;
	--nlp-logo-height: 36px;
}

.nlp-retailer__logo--books-a-million {
	--nlp-logo-width: 108px;
	--nlp-logo-height: 40px;
}

.nlp-retailer__logo--books-a-million img {
	object-fit: cover;
}

/* Footer */
.nlp-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 138px 16px;
	text-align: center;
}

/* Tablet */
@media (max-width: 1280px) {
	:root {
		--nlp-gutter: 40px;
	}

	.nlp-gifts__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 32px;
	}

	.nlp-tinted {
		--nlp-tint-start: 0px;
	}

	.nlp-start {
		padding-left: var(--nlp-gutter);
	}

	.nlp-intro__photo {
		width: 160px;
	}

	.nlp-intro__photo--left {
		left: 16px;
	}

	.nlp-intro__photo--right {
		right: 16px;
	}
}

/* Narrow desktop: keep the wordmark clear of the nav button */
@media (min-width: 783px) and (max-width: 1100px) {
	.nlp-header {
		justify-content: flex-start;
	}

	.nlp-wordmark {
		font-size: 20px;
	}
}

/* Mobile - follows the 393px "Mobile - Home" Figma frame */
@media (max-width: 782px) {
	:root {
		--nlp-gutter: 24px;
	}

	.nlp-br-desktop {
		display: none;
	}

	.nlp-br-mobile {
		display: inline;
	}

	/* The theme hides every line break in headings and forces their size on
	   mobile, but these pages set their own mobile breaks */
	.nlp-page .wp-block-heading br:not(.nlp-br-desktop) {
		display: inline;
	}

	.nlp-heading {
		font-size: 21px;
	}

	.nlp-page h2.nlp-heading {
		font-size: 21px !important;
	}

	.nlp-body {
		font-size: 18px;
	}

	/* Header: wordmark only, on the hero's sky-blue panel */
	.nlp-header {
		position: relative;
		height: auto;
		padding: 72px 16px 0;
		background: #dcf3ff;
	}

	.nlp-header .nlp-button--nav {
		display: none;
	}

	.nlp-wordmark {
		font-size: 16px;
	}

	/* Hero: centred copy on sky blue, then the book photo fading up into it */
	.nlp-hero {
		flex-direction: column;
		align-items: stretch;
		aspect-ratio: auto;
		min-height: 0;
		padding: 0;
		background: #dcf3ff;
	}

	.nlp-hero__blur {
		display: none;
	}

	.nlp-hero__inner {
		order: 1;
		padding: 48px 16px 0;
	}

	.nlp-hero__content {
		max-width: none;
		padding-left: 0;
		text-align: center;
	}

	.nlp-hero__title {
		font-size: 24px;
	}

	.nlp-hero__lead {
		margin-top: 12px;
		font-size: 18px;
	}

	.nlp-hero__content .nlp-button {
		margin-top: 24px;
	}

	.nlp-page .nlp-hero__media {
		order: 2;
		display: block;
		margin-top: 12px;
	}

	.nlp-hero__image {
		position: static;
		height: 280px;
		object-position: right top;
		-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 60px);
		mask-image: linear-gradient(to bottom, transparent 0, #000 60px);
	}

	/* Section 1 */
	.nlp-story {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		margin-top: 24px;
		text-align: center;
	}

	.nlp-story__content > * + * {
		margin-top: 12px;
	}

	.nlp-story__content > .nlp-story__body {
		max-width: none;
		margin-top: 16px;
	}

	.nlp-story__photo {
		justify-self: center;
		width: 100%;
		max-width: 297px;
		aspect-ratio: 297 / 200;
		border-radius: 10px;
	}

	/* Section 2: questions stack in a tall notched panel */
	.nlp-questions {
		margin-top: 32px;
	}

	.nlp-questions__list {
		flex-direction: column;
		align-items: center;
		gap: 24px;
		margin-top: 24px;
		padding: 8px 0;
	}

	.nlp-questions__break {
		display: none;
	}

	/* Section 3: tilted photos sit above the copy */
	.nlp-intro {
		display: flex;
		flex-direction: column;
		padding-top: 0;
		padding-bottom: 0;
	}

	.nlp-intro__photos {
		order: -1;
		display: flex;
		justify-content: center;
		align-items: flex-start;
		gap: 63px;
		margin-top: 28px;
	}

	.nlp-intro__photo {
		position: relative;
		top: auto;
		left: auto;
		right: auto;
		width: 110px;
		aspect-ratio: 110 / 164;
		border-radius: 4px;
		box-shadow: none;
	}

	.nlp-intro__photo--left {
		transform: rotate(-5deg);
	}

	.nlp-intro__photo--right {
		margin-top: 19px;
		transform: rotate(5deg);
	}

	.nlp-page .nlp-intro__content {
		max-width: none;
		margin-top: 20px;
	}

	.nlp-intro__content > .nlp-body {
		margin-top: 16px;
	}

	.nlp-intro__content .nlp-button {
		margin-top: 24px;
	}

	/* Sections 4-6: gold wash starts halfway down the first gift card */
	.nlp-tinted {
		--nlp-tint-start: 261px;
		padding-top: 48px;
		background:
			linear-gradient(#ffffff, #ffffff) top / 100% var(--nlp-tint-start) no-repeat,
			linear-gradient(-81.54deg, rgba(225, 174, 72, 0.05) 0%, rgba(248, 209, 125, 0.05) 50%, rgba(225, 174, 72, 0.05) 100%),
			#ffffff;
	}

	/* Section 4 */
	.nlp-gifts__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		margin-top: 24px;
		padding: 0 8px;
	}

	.nlp-gift__card {
		min-height: 0;
	}

	.nlp-gift__title {
		max-width: 264px;
		min-height: 0;
		font-size: 28px;
	}

	.nlp-gift__card--wide .nlp-gift__title {
		max-width: none;
	}

	.nlp-gift__body {
		max-width: 264px;
	}

	/* No button after the gift cards on mobile */
	.nlp-gifts > .nlp-button {
		display: none;
	}

	/* Section 5 */
	.nlp-more {
		margin-top: 32px;
	}

	.nlp-more__title {
		max-width: none;
	}

	.nlp-more__lead {
		margin-top: 16px;
	}

	.nlp-more__columns {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		margin-top: 24px;
	}

	/* Section 6: copy first, then the photo overlapping the footer */
	.nlp-start {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
		margin-top: 48px;
		text-align: center;
	}

	.nlp-start__photo {
		order: 2;
		justify-self: center;
		width: 100%;
		max-width: 249px;
		border-radius: 10px;
	}

	.nlp-start__content {
		padding-top: 0;
	}

	.nlp-start__content > * + * {
		margin-top: 16px;
	}

	.nlp-start__content > .nlp-button {
		margin-top: 24px;
	}

	.nlp-checklist {
		font-size: 16px;
		text-align: left;
	}

	/* Claim your gifts: no mobile Figma frame yet, sized to match the mobile type */
	.nlp-claim {
		padding-top: 96px;
	}

	.nlp-page h2.nlp-claim__title {
		font-size: 24px !important;
	}

	.nlp-claim > .nlp-claim__step,
	.nlp-claim__form {
		margin-top: 32px;
	}

	.nlp-claim__body {
		margin-top: 16px;
	}

	.nlp-retailers {
		gap: 8px;
		margin-top: 24px;
	}

	.nlp-claim__gravity-form {
		margin-top: 24px;
	}

	.nlp-claim__gravity-form .gform_fields,
	.nlp-claim__gravity-form .ginput_container--name {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.nlp-claim__gravity-form .gform-footer {
		margin-top: 24px !important;
	}

	.nlp-retailers li {
		flex: 0 0 calc(50% - 4px);
	}

	.nlp-retailer {
		width: 100%;
		height: 64px;
		padding: 12px 8px;
		border-radius: 16px;
	}

	.nlp-retailer__logo {
		--nlp-logo-scale: 0.7;
	}

	/* Footer */
	.nlp-footer {
		padding: 72px 16px 62px;
	}

	.nlp-wordmark--footer {
		font-size: 16px;
	}
}

/* Very narrow phones (320px): let the wordmarks wrap rather than overflow */
@media (max-width: 359px) {
	.nlp-wordmark {
		white-space: normal;
	}
}
