/*
 * BRILLE — Free Journal page. Used only by template-free-journal.php.
 * Uses the Brille theme's fonts (Playfair Display, Montserrat, Merriweather,
 * Allura) when they are loaded, with safe fallbacks.
 */

.fj {
	--fj-navy: #1c2756;
	--fj-ink: #121212;
	--fj-pink: #e6087f;
	--fj-crimson: #d0124f;
	--fj-gold: #c48a14;
	--fj-blush: #fdeef0;
	--fj-line: #efdcda;
	--fj-display: var(--bl-display, "Playfair Display", Didot, Georgia, serif);
	--fj-serif: var(--bl-serif, Merriweather, Georgia, serif);
	--fj-sans: var(--bl-sans, Montserrat, "Helvetica Neue", Arial, sans-serif);
	--fj-script: var(--bl-script, Allura, "Brush Script MT", cursive);
	overflow: hidden;
	background: #fffaf9;
	color: var(--fj-navy);
	font-family: var(--fj-serif);
	-webkit-font-smoothing: antialiased;
}
.fj *, .fj *::before, .fj *::after { box-sizing: border-box; }
.fj :where(h1, h2, h3, p, ul) { margin: 0; padding: 0; }
.fj :where(ul) { list-style: none; }
.fj img { display: block; max-width: 100%; height: auto; }
.fj-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.fj-hl,
.fj-gold {
	background: linear-gradient(180deg, #e6b03c 0%, #d4971c 34%, #b06f08 56%, #d9a02b 82%, #ecc057 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--fj-gold);
}
.fj-heart { display: inline-block; width: .55em; height: auto; margin-left: .2em; vertical-align: -.05em; color: currentColor; }

/* ---------- button ---------- */

.fj-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 0 32px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(180deg, #ff46a3 0%, #f0138a 52%, #e0067b 100%);
	box-shadow: 0 8px 22px rgba(224, 6, 123, .3), inset 0 1px 0 rgba(255, 255, 255, .35);
	color: #fff;
	font: 700 15px/1 var(--fj-sans);
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.fj-btn:hover, .fj-btn:focus-visible { color: #fff; transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 12px 28px rgba(224, 6, 123, .36), inset 0 1px 0 rgba(255, 255, 255, .35); }
.fj-btn:focus-visible { outline: 3px solid var(--fj-navy); outline-offset: 3px; }
.fj-btn svg { width: 19px; height: 19px; flex: none; }

/* ---------- hero ---------- */

.fj-hero {
	position: relative;
	padding: 64px 0 72px;
	background:
		radial-gradient(ellipse 50% 70% at 78% 45%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0)),
		linear-gradient(115deg, #fde9ec 0%, #fbe3e7 45%, #f8dde1 100%);
}
.fj-flower { position: absolute; pointer-events: none; background: no-repeat center / contain; }
.fj-flower--tl { left: 0; top: 0; width: 300px; height: 320px; background-image: url(images/flowers-top-left.webp); background-position: left top; opacity: .9; }
.fj-flower--br { right: 0; bottom: 0; width: 320px; height: 300px; background-image: url(images/flowers-bottom-left.webp); background-position: left bottom; transform: scaleX(-1); opacity: .85; }

.fj-hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 56px; }
.fj-hero__copy { position: relative; z-index: 1; }
.fj-kicker {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(180, 80, 110, .1);
	font: 700 12px/1 var(--fj-sans);
	letter-spacing: .24em;
	color: var(--fj-pink);
}
.fj-title {
	margin-top: 20px;
	font: 900 clamp(36px, 4.6vw, 58px)/1 var(--fj-display);
	letter-spacing: -.025em;
	color: var(--fj-ink);
	text-wrap: balance;
}
.fj-script {
	margin-top: 4px;
	font: 400 clamp(46px, 5.4vw, 70px)/1.1 var(--fj-script);
	color: var(--fj-crimson);
	-webkit-text-stroke: .015em currentColor;
	transform: rotate(-4deg);
	transform-origin: left center;
}
.fj-script .fj-heart { width: .38em; margin-left: .15em; }
.fj-lead { max-width: 520px; margin-top: 14px; font-size: 17px; line-height: 1.75; color: var(--fj-navy); }

/* ---------- form card ---------- */

.fj-card {
	max-width: 520px;
	margin-top: 28px;
	padding: 26px 26px 20px;
	border: 1px solid #f1d6db;
	border-radius: 22px;
	background: rgba(255, 255, 255, .94);
	box-shadow: 0 22px 50px rgba(160, 60, 90, .14);
}
.fj-field { margin: 0 0 14px; }
.fj-field label { display: block; margin-bottom: 6px; font: 600 12.5px/1.2 var(--fj-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--fj-navy); }
.fj-field label span { color: var(--fj-pink); }
.fj-field input {
	display: block;
	width: 100%;
	min-height: 54px;
	padding: 12px 18px;
	border: 1px solid #e3cfd0;
	border-radius: 14px;
	background: #fff;
	color: var(--fj-navy);
	font: 500 16px/1.3 var(--fj-sans);
	box-shadow: none;
}
.fj-field input::placeholder { color: #a5a9bf; }
.fj-field input:focus { outline: none; border-color: var(--fj-pink); box-shadow: 0 0 0 4px rgba(230, 8, 127, .14); }
.fj-field input[aria-invalid="true"] { border-color: #c5221f; }
.fj-form .fj-btn { width: 100%; margin-top: 4px; }
.fj-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fj-note { display: block; margin-top: 14px; font: 500 12.5px/1.5 var(--fj-sans); color: #6c7191; text-align: center; }
.fj-note svg { display: inline-block; width: 15px; height: 15px; margin-right: 6px; vertical-align: -3px; }
.fj-error { margin: 0 0 14px; padding: 11px 14px; border-left: 4px solid #c5221f; border-radius: 10px; background: #fdecec; font: 600 14px/1.4 var(--fj-sans); color: #9b1c1c; }

.fj-card--thanks { text-align: center; padding: 32px 26px 24px; }
.fj-thanks__icon { width: 56px; height: 56px; margin: 0 auto 10px; color: var(--fj-pink); }
.fj-thanks__icon svg { width: 100%; height: 100%; }
.fj-thanks__title { font: 900 32px/1.1 var(--fj-display); color: var(--fj-ink); }
.fj-thanks__text { margin: 12px 0 20px; font-size: 16.5px; line-height: 1.7; }

/* ---------- book mock-up ---------- */

.fj-hero__book { position: relative; display: flex; justify-content: center; }
.fj-book { position: relative; width: min(100%, 400px); aspect-ratio: 2 / 3; margin-right: 50px; }
.fj-book__cover, .fj-book__page { position: absolute; top: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 6px 14px 14px 6px; }
.fj-book__page { left: 0; transform: translate(62px, 26px) rotate(7deg); box-shadow: 0 18px 40px rgba(120, 40, 70, .18); border: 1px solid #f0e2e2; }
.fj-book__cover {
	left: 0;
	transform: rotate(-3deg);
	box-shadow: 0 30px 60px rgba(120, 40, 70, .28), 0 4px 10px rgba(120, 40, 70, .12), inset 8px 0 14px rgba(0, 0, 0, .08);
}
.fj-badge {
	position: absolute;
	left: -28px;
	top: 34px;
	display: grid;
	place-items: center;
	width: 92px;
	height: 92px;
	border-radius: 50%;
	background: linear-gradient(180deg, #ecc057 0%, #d4971c 55%, #b9770e 100%);
	box-shadow: 0 10px 24px rgba(160, 100, 10, .35), inset 0 1px 0 rgba(255, 255, 255, .45);
	color: #fff;
	font: 800 15px/1.1 var(--fj-sans);
	letter-spacing: .12em;
	text-align: center;
	transform: rotate(-12deg);
}

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

.fj-bar { background: linear-gradient(90deg, #e0067b 0%, #f3239a 50%, #e0067b 100%); color: #fff; }
.fj-bar ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; padding-top: 16px; padding-bottom: 16px; }
.fj-bar li { font: 700 13px/1.4 var(--fj-sans); letter-spacing: .18em; }
.fj-bar li + li::before { content: "\2665"; margin: 0 18px; color: #ffe3a3; letter-spacing: 0; }

/* ---------- what's inside ---------- */

.fj-inside { padding: 76px 0 84px; text-align: center; }
.fj-h2 { font: 900 clamp(32px, 4vw, 48px)/1.05 var(--fj-display); letter-spacing: -.025em; color: var(--fj-ink); }
.fj-sub { margin-top: 12px; font: 600 13px/1.4 var(--fj-sans); letter-spacing: .22em; color: var(--fj-navy); }
.fj-pages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px; margin-top: 46px; }
.fj-pages li { text-align: center; }
.fj-pages__img {
	display: block;
	padding: 8px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 16px 36px rgba(150, 60, 90, .13);
	transition: transform .25s ease;
}
.fj-pages li:nth-child(odd) .fj-pages__img { transform: rotate(-2deg); }
.fj-pages li:nth-child(even) .fj-pages__img { transform: rotate(2deg); }
.fj-pages li:hover .fj-pages__img { transform: rotate(0) translateY(-4px); }
.fj-pages__img img { border-radius: 8px; }
.fj-pages h3 { margin-top: 22px; font: 700 14px/1.3 var(--fj-sans); letter-spacing: .12em; color: var(--fj-pink); }
.fj-pages p { margin-top: 8px; font-size: 14.5px; line-height: 1.65; color: var(--fj-navy); }

/* ---------- quote band ---------- */

.fj-quote {
	position: relative;
	padding: 70px 0;
	text-align: center;
	background: linear-gradient(115deg, #fde9ec 0%, #fbe1e6 50%, #f8dce1 100%);
}
.fj-quote::before, .fj-quote::after {
	content: "";
	position: absolute;
	bottom: 0;
	width: 260px;
	height: 240px;
	background: url(images/flowers-bottom-left.webp) left bottom / contain no-repeat;
	pointer-events: none;
}
.fj-quote::before { left: 0; }
.fj-quote::after { right: 0; transform: scaleX(-1); }
.fj-quote .fj-wrap { position: relative; z-index: 1; }
.fj-quote__l1 { font: 900 clamp(22px, 2.8vw, 34px)/1.15 var(--fj-display); letter-spacing: -.02em; color: var(--fj-ink); }
.fj-quote__l2 {
	margin-top: 4px;
	font: 900 clamp(48px, 6.4vw, 84px)/1.05 var(--fj-display);
	letter-spacing: -.03em;
	background: linear-gradient(180deg, #e6b03c 0%, #d4971c 34%, #b06f08 56%, #d9a02b 82%, #ecc057 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--fj-gold);
}
.fj-quote__l2 .fj-heart { width: .4em; color: var(--fj-crimson); -webkit-text-fill-color: initial; }
.fj-quote .fj-btn { margin-top: 26px; }

/* ---------- more ---------- */

.fj-more { padding: 66px 0 76px; text-align: center; }
.fj-more__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; max-width: 860px; margin: 34px auto 0; }
.fj-more__list a {
	display: block;
	height: 100%;
	padding: 30px 24px;
	border: 1px solid var(--fj-line);
	border-radius: 20px;
	background: linear-gradient(180deg, #fff, #fff7f7);
	text-decoration: none;
	color: var(--fj-navy);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.fj-more__list a:hover { transform: translateY(-3px); border-color: #e9b9c6; box-shadow: 0 16px 36px rgba(150, 60, 90, .12); }
.fj-more__list strong { display: block; font: 900 22px/1.15 var(--fj-display); color: var(--fj-ink); }
.fj-more__list span { display: block; margin-top: 8px; font-size: 15px; }
.fj-more__list em { display: inline-block; margin-top: 16px; font: 700 12.5px/1 var(--fj-sans); font-style: normal; letter-spacing: .14em; color: var(--fj-pink); }

/* ---------- tablet ---------- */

@media (max-width: 960px) {
	.fj-hero { padding: 44px 0 60px; }
	.fj-hero__in { grid-template-columns: 1fr; gap: 40px; text-align: center; }
	.fj-hero__book { order: -1; }
	.fj-book { width: min(62vw, 300px); margin-right: 44px; }
	.fj-badge { width: 76px; height: 76px; left: -22px; top: 22px; font-size: 13px; }
	.fj-lead, .fj-card { margin-left: auto; margin-right: auto; }
	.fj-script { transform-origin: center; }
	.fj-flower--tl { width: 200px; height: 210px; }
	.fj-flower--br { width: 200px; height: 190px; }
	.fj-pages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- phone ---------- */

@media (max-width: 600px) {
	.fj-wrap { padding: 0 16px; }
	.fj-hero { padding: 30px 0 46px; }
	.fj-hero__in { gap: 34px; }
	.fj-book { width: 58vw; margin-right: 38px; }
	.fj-book__page { transform: translate(40px, 18px) rotate(7deg); }
	.fj-badge { width: 64px; height: 64px; left: -18px; top: 16px; font-size: 11.5px; }
	.fj-flower--tl { width: 140px; height: 150px; opacity: .7; }
	.fj-flower--br { display: none; }
	.fj-lead { font-size: 16px; }
	.fj-card { padding: 20px 16px 16px; border-radius: 18px; }
	.fj-btn { min-height: 54px; padding: 0 22px; font-size: 14px; }
	.fj-bar ul { padding-top: 12px; padding-bottom: 12px; }
	.fj-bar li { font-size: 11px; letter-spacing: .12em; }
	.fj-bar li + li::before { margin: 0 9px; }
	.fj-inside { padding: 54px 0 60px; }
	.fj-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; margin-top: 32px; }
	.fj-pages li:last-child { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; }
	.fj-pages h3 { font-size: 12.5px; }
	.fj-pages p { font-size: 14px; }
	.fj-quote { padding: 54px 0; }
	.fj-quote::before, .fj-quote::after { width: 120px; height: 110px; opacity: .7; }
	.fj-more { padding: 50px 0 60px; }
}

@media (prefers-reduced-motion: reduce) {
	.fj * { transition: none !important; }
}
