/* ==========================================================================
   Jane Austen Photo Studio
   The app's palette (AppTheme.swift): ivory, parchment and cream grounds, antique
   gold, deep plum, warm ink. EB Garamond for everything literary; the system sans,
   small and tracked, for labels, exactly as the app's BrandMark and kickers.
   ========================================================================== */

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

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

:root {
	/* Surfaces */
	--ivory: #fbf6ec;
	--cream: #f6eedd;
	--parchment: #fffdf8;
	--card: #ffffff;
	--hairline: rgba(46, 42, 36, 0.1);
	--hairline-gold: rgba(169, 133, 47, 0.28);

	/* Accents */
	--gold: #c2a14d;
	--gold-deep: #a9852f;
	--gold-light: #e3c878;
	--gold-pale: #f2d9a0;
	--plum: #6e3d52;
	--plum-ink: #4b2536;
	--plum-deep: #432332;
	--night: #180e13;
	--rose: #c98b86;
	--sage: #8a9a7b;

	/* Text */
	--ink: #2e2a24;
	--ink-2: #6b6253;
	--ink-muted: #9a8e78;
	--ivory-text: #fff9ee;

	/* Gradients */
	--gold-cta: linear-gradient(135deg, #d9be74 0%, #c2a14d 50%, #a9852f 100%);
	--gilt: linear-gradient(135deg, #8a6424 0%, #f0d89d 18%, #b68b46 36%, #f4deab 55%, #92662d 76%, #e3c878 100%);
	--candlelight: radial-gradient(ellipse at 50% 0%, rgba(242, 217, 160, 0.42), rgba(242, 217, 160, 0) 62%);

	/* Type */
	--serif: "EB Garamond", "Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* Rhythm */
	--gutter: 16px;
	--max: 1200px;
	--section: clamp(76px, 10vw, 140px);
	--radius: 18px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--ease-soft: cubic-bezier(0.45, 0, 0.2, 1);

	--shadow-card: 0 1px 2px rgba(46, 42, 36, 0.06), 0 10px 26px -12px rgba(46, 42, 36, 0.22);
	--shadow-lift: 0 2px 4px rgba(46, 42, 36, 0.06), 0 24px 44px -18px rgba(75, 37, 54, 0.38);
	--header-h: 68px;
	/* Anchor links land with their content this far below the header (and contents bar). The
	   covered height itself is measured by main.js into --anchor-top. */
	--anchor-gap: 16px;
}

@media (min-width: 640px) {
	:root { --gutter: 28px; }
}

@media (min-width: 1100px) {
	:root { --gutter: 40px; --header-h: 78px; }
}

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

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: var(--anchor-top, var(--header-h));
}
/* Smooth only once the page has loaded (main.js): a smooth jump to a #link while the page is
   still loading gets cancelled, leaving the visitor at the top. */
html.smooth-scroll { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--ivory);
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.1875rem;
	line-height: 1.6;
	font-variant-numeric: oldstyle-nums;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

/* A faint laid-paper grain over the whole page, like the app's parchment cards. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.5;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .25 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.has-paper body::before,
body.has-paper::before {
	opacity: 0.35;
	background-image: url("../images/ornaments/paper.webp");
	background-size: 512px;
}

[hidden] { display: none !important; }

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

a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--gold-deep); }

button { font: inherit; color: inherit; }

:focus-visible {
	outline: 2px solid var(--gold-deep);
	outline-offset: 3px;
	border-radius: 6px;
}

::selection { background: rgba(227, 200, 120, 0.55); color: var(--ink); }

h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 500;
	color: var(--plum-ink);
	line-height: 1.08;
	letter-spacing: -0.005em;
	margin: 0;
	text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.site-main,
.site-footer { position: relative; z-index: 1; }

.screen-reader-text {
	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 {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 1000;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--plum-ink);
	color: var(--ivory-text);
	font-family: var(--sans);
	font-size: 14px;
	transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--ivory-text); }

/* --------------------------------------------------------------------------
   Ornaments: the app's gold line art. White-ground originals multiply onto the
   page (the app's `.darken`); Codex's transparent cut-outs need nothing.
   -------------------------------------------------------------------------- */

.orn { pointer-events: none; user-select: none; }
.orn[data-ground="white"] { mix-blend-mode: multiply; }
.orn[data-ground="black"] { display: none; }

/* Codex ornaments: each appears only once its file exists (see the Codex brief). */
.corner { position: absolute; z-index: 1; width: clamp(44px, 6vw, 70px); }
.corner--tl { top: 10px; left: 10px; }
.corner--tr { top: 10px; right: 10px; transform: scaleX(-1); }
.corner--bl { bottom: 10px; left: 10px; transform: scaleY(-1); }
.corner--br { bottom: 10px; right: 10px; transform: scale(-1, -1); }
.quiz-card__garland { position: absolute; top: -38px; left: 50%; z-index: 2; width: min(380px, 72%); transform: translateX(-50%); }
.plan__seal { position: absolute; top: -20px; right: -14px; z-index: 2; width: 84px; transform: rotate(-9deg); filter: drop-shadow(0 6px 8px rgba(67, 35, 50, 0.3)); }
.finale__festoon { width: min(520px, 86%); margin-bottom: 18px; }
.faq__quill { width: 150px; margin-top: 34px; }
.salon--carved .gilt__frame { padding: 9%; background: none; box-shadow: none; }
.salon--carved .gilt__frame::after { display: none; }
.gilt__carving { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; filter: drop-shadow(0 16px 18px rgba(46, 30, 20, 0.4)); }

/* --------------------------------------------------------------------------
   Type helpers
   -------------------------------------------------------------------------- */

.kicker {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	font-family: var(--sans);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--gold-deep);
	font-variant-numeric: lining-nums;
}
.kicker::before,
.kicker::after {
	content: "";
	width: 30px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold));
}
.kicker::after { background: linear-gradient(90deg, var(--gold), transparent); }
.kicker--left::before { display: none; }
.kicker--left::after { width: 40px; }

.section-head { max-width: 780px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head .kicker { display: flex; width: max-content; margin-left: auto; margin-right: auto; }
.section-head--left .kicker { margin-left: 0; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head--left .kicker::before { display: none; }
.section-head--left .kicker::after { width: 40px; }

.section-title {
	font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.9rem);
	line-height: 1.04;
}
.section-title em { font-style: italic; color: var(--plum); }

.section-head__rule {
	width: min(300px, 70%);
	margin: 22px auto 22px;
}
.section-head--left .section-head__rule { margin-left: -12px; }

.section-strap {
	font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
	font-style: italic;
	color: var(--ink-2);
	line-height: 1.5;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--serif);
	font-size: 1.15rem;
	font-style: italic;
	color: var(--plum);
	text-decoration: none;
	background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1px no-repeat;
	padding-bottom: 2px;
	transition: color 0.3s var(--ease), background-size 0.4s var(--ease);
}
.text-link .icon { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.text-link:hover { color: var(--gold-deep); }
.text-link:hover .icon { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Buttons: the app's GoldButton (gold gradient, tracked capitals) and friends
   -------------------------------------------------------------------------- */

.btn {
	--btn-pad: 16px 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: var(--btn-pad);
	border: 0;
	border-radius: 14px;
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
	cursor: pointer;
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease);
	-webkit-tap-highlight-color: transparent;
}

.btn--gold {
	position: relative;
	overflow: hidden;
	background: var(--gold-cta);
	color: #fff;
	text-shadow: 0 1px 1px rgba(90, 64, 10, 0.35);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 10px 22px -10px rgba(169, 133, 47, 0.75);
}
.btn--gold::after {
	/* A slow glint across the gilt on hover. */
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 246, 220, 0.6) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform 0.9s var(--ease-soft);
}
.btn--gold:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 16px 28px -12px rgba(169, 133, 47, 0.85); }
.btn--gold:hover::after { transform: translateX(120%); }
.btn--gold:active { transform: translateY(0) scale(0.985); }

.btn--outline {
	background: var(--parchment);
	color: var(--plum-ink);
	box-shadow: inset 0 0 0 1px var(--gold);
}
.btn--outline:hover { color: var(--plum-ink); background: #fff; box-shadow: inset 0 0 0 1px var(--gold-deep), 0 10px 22px -14px rgba(169, 133, 47, 0.6); }

.btn--small { --btn-pad: 11px 18px; font-size: 11.5px; border-radius: 12px; }

.round-btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--parchment);
	color: var(--ink);
	box-shadow: inset 0 0 0 1px rgba(194, 161, 77, 0.55), 0 6px 14px -8px rgba(46, 42, 36, 0.35);
	cursor: pointer;
	transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.round-btn .icon { width: 18px; height: 18px; }
.round-btn:hover { background: #fff; transform: translateY(-1px); }
.round-btn:disabled { opacity: 0.35; cursor: default; transform: none; }

/* The official App Store badge. If it cannot load, a typeset stand-in appears. */
.app-badge {
	display: inline-block;
	flex: none;
	width: 180px;
	height: 60px;
	border-radius: 11px;
	overflow: hidden;
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
	box-shadow: 0 10px 22px -12px rgba(24, 14, 19, 0.55);
}
.app-badge img { width: 100%; height: 100%; }
.app-badge:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -14px rgba(24, 14, 19, 0.6); }
.app-badge__text { display: none; }
.app-badge.is-fallback {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 20px;
	background: #0b0b0b;
	color: #fff;
	text-decoration: none;
	font-family: var(--sans);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.01em;
}
.app-badge.is-fallback img { display: none; }
.app-badge.is-fallback .app-badge__text { display: flex; flex-direction: column; }
.app-badge.is-fallback small { font-size: 11px; font-weight: 500; letter-spacing: 0.02em; }

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--header-h);
	background: rgba(255, 253, 248, 0);
	transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.site-header.is-scrolled,
.menu-open .site-header {
	background: rgba(255, 253, 248, 0.9);
	-webkit-backdrop-filter: saturate(1.2) blur(14px);
	backdrop-filter: saturate(1.2) blur(14px);
	box-shadow: 0 1px 0 var(--hairline);
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	height: 100%;
	max-width: calc(var(--max) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* BrandMark: the camera icon beside JANE AUSTEN / PHOTO STUDIO. */
.brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	flex: none;
	color: var(--ink);
	text-decoration: none;
}
.brand__mark { width: auto; height: 38px; filter: drop-shadow(0 3px 5px rgba(46, 42, 36, 0.14)); }
.brand__words { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.brand__name {
	font-family: var(--serif);
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 0.146em;
	text-transform: uppercase;
	color: var(--ink);
}
.brand__sub {
	font-family: var(--sans);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--gold-deep);
}
.brand:hover { color: var(--ink); }

.site-nav { display: none; margin-left: auto; }
.site-nav__list { display: flex; gap: clamp(18px, 2.2vw, 32px); margin: 0; padding: 0; list-style: none; }
.site-nav__list a {
	position: relative;
	font-size: 1.12rem;
	color: var(--ink);
	text-decoration: none;
	padding: 6px 0;
}
.site-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.45s var(--ease);
}
.site-nav__list > li > a:hover { color: var(--plum); }
.site-nav__list > li > a:hover::after,
.site-nav__list > li > a[aria-current]::after { transform: scaleX(1); }
.site-nav__list > li { position: relative; display: flex; align-items: center; }

/* The Novels and Guides: menus that open on click (main.js). */
.site-nav__toggle {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--ink);
	font: inherit;
	font-size: 1.12rem;
	cursor: pointer;
}
.site-nav__toggle .icon { width: 15px; height: 15px; color: var(--gold-deep); transition: transform 0.35s var(--ease); }
.site-nav__toggle:hover,
.site-nav__menu.is-open .site-nav__toggle { color: var(--plum); }
.site-nav__menu.is-open .site-nav__toggle .icon { transform: rotate(180deg); }
.site-nav__panel {
	position: absolute;
	top: calc(100% + 14px);
	left: 50%;
	z-index: 60;
	min-width: 250px;
	padding: 10px;
	border-radius: 18px;
	background: rgba(255, 253, 248, 0.98);
	box-shadow: inset 0 0 0 1px var(--hairline-gold), 0 24px 44px -18px rgba(75, 37, 54, 0.38);
	transform: translateX(-50%);
	animation: nav-panel-in 0.3s var(--ease);
}
.site-nav__panel::before {
	/* A gilt diamond pointing up at the menu's name. */
	content: "";
	position: absolute;
	top: -5px;
	left: 50%;
	width: 9px;
	height: 9px;
	margin-left: -4.5px;
	background: var(--gold);
	transform: rotate(45deg);
}
.site-nav__panel ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav__panel a {
	display: block;
	padding: 9px 14px;
	border-radius: 11px;
	color: var(--ink);
	font-size: 1.05rem;
	text-decoration: none;
	white-space: nowrap;
}
.site-nav__panel a:hover,
.site-nav__panel a:focus-visible { background: var(--parchment); color: var(--plum); }
.site-nav__panel a[aria-current] { color: var(--plum); font-weight: 600; }
@keyframes nav-panel-in {
	from { opacity: 0; transform: translate(-50%, -6px); }
	to { opacity: 1; transform: translateX(-50%); }
}

.site-header__cta { display: none; }

.menu-toggle {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--cream);
	box-shadow: inset 0 0 0 1px var(--hairline);
	cursor: pointer;
}
.menu-toggle__bars { display: grid; gap: 6px; width: 18px; }
.menu-toggle__bars i { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 0.4s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
	position: fixed;
	inset: var(--header-h) 0 0;
	z-index: 49;
	overflow-y: auto;
	background: rgba(255, 253, 248, 0.97);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	opacity: 0;
	transition: opacity 0.35s var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__inner { display: grid; justify-items: center; gap: 22px; padding: 40px var(--gutter) 60px; text-align: center; }
.mobile-menu__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.mobile-menu__list a { font-size: 2rem; color: var(--plum-ink); text-decoration: none; }
/* The built-in menu: two groups of links under small headings, then The Quiz. */
.mobile-menu__nav { display: grid; justify-items: center; gap: 26px; }
.mobile-menu__group { display: grid; justify-items: center; gap: 10px; }
.mobile-menu__heading { margin: 0; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); }
.mobile-menu__group .mobile-menu__list { gap: 4px; }
.mobile-menu__group .mobile-menu__list a { font-size: 1.4rem; }
.mobile-menu__list a[aria-current] { color: var(--plum); font-style: italic; }
.mobile-menu__solo { margin: 0; }
.mobile-menu__solo a { font-size: 2rem; color: var(--plum-ink); text-decoration: none; }
.mobile-menu__rule { width: 220px; }
.mobile-menu__note { font-style: italic; color: var(--ink-2); }

@media (min-width: 1000px) {
	.site-nav { display: block; }
	.site-header__cta { display: inline-flex; }
	.menu-toggle, .mobile-menu { display: none; }
}

@media (max-width: 380px) {
	.brand__name { font-size: 16px; }
	.brand__sub { font-size: 8.5px; }
	.brand__mark { height: 32px; }
}

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

.section { position: relative; padding: var(--section) 0; scroll-margin-top: calc(var(--anchor-gap) - var(--section)); }
.section__inner {
	position: relative;
	max-width: calc(var(--max) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* Grounds alternate as the app's screens do: ivory, parchment, cream. */
.section--novels { background: var(--parchment); }
.section--film { background: var(--ivory); }
.section--likeness { background: var(--ivory); }
.section--how { background: var(--cream); }
.section--quiz { background: var(--ivory); overflow: hidden; overflow: clip; }
.section--fashion { background: var(--parchment); }
.section--couples { background: var(--ivory); }
.section--icons { background: var(--cream); }
.section--pricing { background: var(--parchment); }
.section--faq { background: var(--ivory); }

.section--novels,
.section--fashion,
.section--pricing { box-shadow: 0 -1px 0 var(--hairline), 0 1px 0 var(--hairline); }

.section--novels::before,
.section--quiz::before,
.section--pricing::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 420px;
	background: var(--candlelight);
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Reveal on scroll: a gentle rise and fade, staggered by --d.
   -------------------------------------------------------------------------- */

.js .reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.9s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms);
}
.js .reveal.is-in,
.no-script-fallback .reveal { opacity: 1; transform: none; }

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

.hero {
	position: relative;
	margin-top: calc(var(--header-h) * -1);
	padding: calc(var(--header-h) + clamp(28px, 5vw, 64px)) 0 clamp(56px, 7vw, 96px);
	overflow: hidden;
	overflow: clip;
	background:
		radial-gradient(ellipse 70% 60% at 72% 30%, rgba(242, 217, 160, 0.38), rgba(242, 217, 160, 0) 70%),
		linear-gradient(180deg, var(--parchment) 0%, var(--ivory) 60%, var(--cream) 100%);
}
.hero__glow {
	position: absolute;
	inset: -20% -10% auto auto;
	width: 70vw;
	height: 70vw;
	max-width: 900px;
	max-height: 900px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 244, 214, 0.9), rgba(255, 244, 214, 0) 65%);
	pointer-events: none;
}
.hero__spray { position: absolute; width: clamp(180px, 26vw, 360px); opacity: 0.8; }
.hero__spray--left { left: -40px; top: calc(var(--header-h) + 10px); }
.hero__spray--right { right: -30px; bottom: -20px; transform: scaleX(-1) rotate(8deg); opacity: 0.55; }

.hero__inner {
	position: relative;
	display: grid;
	gap: clamp(36px, 5vw, 56px);
	align-items: center;
	max-width: calc(var(--max) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.hero__copy { position: relative; z-index: 2; }
.hero__title { font-size: clamp(2.6rem, 1.4rem + 4.9vw, 5rem); line-height: 1; letter-spacing: -0.012em; }
.hero__lead-in { display: block; }
.hero__name {
	display: block;
	margin-top: 0.06em;
	font-style: italic;
	color: var(--plum);
	white-space: nowrap;
	transition: opacity 0.6s var(--ease), transform 0.8s var(--ease), filter 0.6s var(--ease);
}
.hero__name.is-leaving { opacity: 0; transform: translateY(0.18em); filter: blur(6px); }
.hero__name.is-arriving { opacity: 0; transform: translateY(-0.12em); filter: blur(6px); transition: none; }

.hero__lede {
	max-width: 33em;
	margin-top: clamp(20px, 2.4vw, 28px);
	font-size: clamp(1.18rem, 1.05rem + 0.45vw, 1.4rem);
	line-height: 1.5;
	color: var(--ink-2);
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 28px;
	margin-top: clamp(26px, 3vw, 36px);
}
.hero__assurances {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
	font-family: var(--sans);
	font-size: 12.5px;
	letter-spacing: 0.04em;
	color: var(--ink-2);
}
.hero__assurances li { display: inline-flex; align-items: center; gap: 9px; }
.hero__assurances li::before {
	content: "";
	width: 6px;
	height: 6px;
	background: var(--gold);
	transform: rotate(45deg);
}

.hero__stage { position: relative; z-index: 1; width: 100%; max-width: 560px; margin: 0 auto; }

@media (min-width: 900px) {
	.hero { min-height: min(100svh, 980px); display: flex; align-items: center; }
	.hero__inner { grid-template-columns: 1.05fr 1fr; width: 100%; }
}

/* On phones the sitting comes straight after the headline: the portrait is the hook. */
@media (max-width: 899px) {
	.hero__inner { gap: 0; }
	.hero__copy { display: contents; }
	.hero__kicker { order: 1; }
	.hero__title { order: 2; position: relative; z-index: 3; }
	.hero__stage { order: 3; margin-top: 26px; }
	.hero__lede { order: 4; margin-top: 30px; }
	.hero__actions { order: 5; }
	.hero__assurances { order: 6; }
	.hero__kicker::after { display: none; }
}

@media (max-width: 480px) {
	.kicker { font-size: 10.5px; letter-spacing: 0.2em; }
	.promise__title { font-size: 1.08rem; }
	.promise__text { font-size: 0.95rem; }
}

/* Falling leaves: the app's FallingLeaves, drifting slowly down the hero. */
.leaves {
	position: absolute;
	inset: 0;
	z-index: 2;
	overflow: hidden;
	pointer-events: none;
	mix-blend-mode: multiply;
}
.leaf {
	position: absolute;
	top: -12%;
	left: var(--x);
	width: var(--size);
	opacity: 0;
	animation: leaf-fall var(--dur) linear var(--delay) infinite;
}
.leaf img { width: 100%; animation: leaf-sway calc(var(--dur) / 3) ease-in-out var(--delay) infinite alternate; }
.leaves.is-paused .leaf,
.leaves.is-paused .leaf img { animation-play-state: paused; }
@keyframes leaf-fall {
	0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
	8% { opacity: var(--alpha); }
	85% { opacity: var(--alpha); }
	100% { transform: translate3d(var(--drift), 118vh, 0) rotate(var(--spin)); opacity: 0; }
}
@keyframes leaf-sway {
	from { transform: translateX(-14px) rotate(-12deg); }
	to { transform: translateX(14px) rotate(14deg); }
}

/* The sitting: photo in its oval, the portrait developing in a gilt arch. */
.sitting { position: relative; margin: 0; padding: 0 0 0 16%; }
.sitting__arch {
	position: relative;
	padding: 6px;
	aspect-ratio: 4 / 5;
	border-radius: 50% 50% 14px 14px / 40% 40% 14px 14px;
	background: var(--gilt);
	box-shadow: 0 2px 0 rgba(255, 255, 255, 0.6) inset, 0 40px 70px -34px rgba(75, 37, 54, 0.55), 0 18px 30px -18px rgba(46, 42, 36, 0.35);
}
.sitting__canvas {
	position: relative;
	cursor: pointer;
	height: 100%;
	overflow: hidden;
	border-radius: 50% 50% 9px 9px / 40% 40% 9px 9px;
	background: #3a2a24;
	box-shadow: inset 0 0 0 1px rgba(255, 240, 200, 0.5);
	isolation: isolate;
}
.sitting__layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sitting__layer.is-developing { z-index: 1; animation: develop 2.4s var(--ease) both; }
@keyframes develop {
	0% { clip-path: circle(0% at 50% 30%); filter: blur(16px) saturate(0.25) sepia(0.45) brightness(1.12); }
	45% { clip-path: circle(62% at 50% 30%); filter: blur(9px) saturate(0.55) sepia(0.25) brightness(1.06); }
	100% { clip-path: circle(120% at 50% 30%); filter: blur(0) saturate(1) sepia(0) brightness(1); }
}
.sitting__sheen {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(115deg, transparent 35%, rgba(255, 240, 205, 0.55) 50%, transparent 65%) no-repeat;
	background-size: 260% 100%;
	background-position: 150% 0;
	opacity: 0;
}
.sitting.is-painting .sitting__sheen { animation: sheen 2.2s var(--ease-soft) 0.3s; }
@keyframes sheen {
	0% { background-position: 150% 0; opacity: 0; }
	20% { opacity: 1; }
	100% { background-position: -60% 0; opacity: 0; }
}

.sitting__cameo {
	position: absolute;
	left: 0;
	top: 44%;
	z-index: 3;
	width: 33%;
	aspect-ratio: 226 / 302;
	filter: drop-shadow(0 14px 22px rgba(75, 37, 54, 0.25));
}
.sitting__photo {
	position: absolute;
	left: 9.3%;
	top: 6.6%;
	width: 81.4%;
	height: 86.8%;
	overflow: hidden;
	border-radius: 50%;
	background: var(--parchment);
}
.sitting__face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: opacity 0.9s var(--ease); }
.sitting__face.is-entering { opacity: 0; }
.sitting__frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.sitting__cameo-label {
	position: absolute;
	top: 94%;
	left: 50%;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--parchment);
	box-shadow: inset 0 0 0 1px var(--hairline-gold), 0 4px 10px -4px rgba(46, 42, 36, 0.3);
	font-family: var(--sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--gold-deep);
	transform: translateX(-50%);
}
.sitting__caption {
	display: grid;
	justify-items: center;
	gap: 10px;
	margin: 18px 0 0;
	min-height: 64px;
	text-align: center;
}
/* The status is always two lines tall (name, then scene), so swapping to the one-line
   "Painting · 40%" never moves the thumbnails below or the vertically centred hero. */
.sitting__caption { --name-size: 1.35rem; --scene-size: 1.1875rem; }
@media (max-width: 899px) { .sitting__caption { --scene-size: 1rem; } }
.sitting__status {
	display: grid;
	gap: 2px;
	align-content: center;
	max-width: 100%;
	min-height: calc((var(--name-size) + var(--scene-size)) * 1.6 + 2px);
	transition: opacity 0.5s var(--ease);
}
.sitting__status.is-fading { opacity: 0; }
.sitting__name,
.sitting__scene { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.6; }
.sitting__name { font-size: var(--name-size); font-weight: 600; color: var(--plum-ink); }
.sitting__scene { font-size: var(--scene-size); font-style: italic; color: var(--ink-2); }
.sitting__painting { font-family: var(--sans); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); font-variant-numeric: lining-nums tabular-nums; }
.sitting__meter { display: block; width: 120px; height: 2px; border-radius: 2px; background: rgba(194, 161, 77, 0.22); overflow: hidden; }
.sitting__meter i { display: block; height: 100%; width: 100%; background: var(--gold-cta); transform-origin: left; transform: scaleX(1); }

.sitting__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 18px;
	padding-left: 16%;
}
.sitting__thumbs { display: flex; gap: 8px; }
.sitting__thumb {
	position: relative;
	width: 38px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	overflow: hidden;
	cursor: pointer;
	background: var(--cream);
	opacity: 0.55;
	box-shadow: inset 0 0 0 1px var(--hairline-gold);
	transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.sitting__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.sitting__thumb:hover { opacity: 0.9; transform: translateY(-2px); }
.sitting__thumb.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--parchment), 0 0 0 3.5px var(--gold); }
.sitting__pause {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--gold-deep);
	box-shadow: inset 0 0 0 1px var(--hairline-gold);
	cursor: pointer;
}
.sitting__pause .icon { width: 14px; height: 14px; }
.sitting__play-icon,
.sitting__pause[aria-pressed="true"] .sitting__pause-icon { display: none; }
.sitting__pause[aria-pressed="true"] .sitting__play-icon { display: block; }

@media (max-width: 480px) {
	.sitting__thumb { width: 32px; height: 40px; }
	.sitting__thumbs { gap: 6px; }
}

/* --------------------------------------------------------------------------
   Promise strip
   -------------------------------------------------------------------------- */

.promise { position: relative; background: var(--cream); box-shadow: 0 -1px 0 var(--hairline); }
.promise__list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 26px 18px;
	max-width: calc(var(--max) + var(--gutter) * 2);
	margin: 0 auto;
	padding: clamp(30px, 4vw, 44px) var(--gutter);
	list-style: none;
}
.promise__item { display: grid; justify-items: center; gap: 4px; text-align: center; }
.promise__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 6px;
	border-radius: 50%;
	color: var(--gold-deep);
	background: var(--parchment);
	box-shadow: inset 0 0 0 1px var(--hairline-gold);
}
.promise__icon .icon { width: 22px; height: 22px; }
.promise__title { font-size: 1.2rem; font-weight: 600; color: var(--plum-ink); line-height: 1.2; }
.promise__text { font-size: 1rem; font-style: italic; color: var(--ink-2); line-height: 1.35; }

@media (min-width: 900px) {
	.promise__list { grid-template-columns: repeat(4, 1fr); }
	.promise__item + .promise__item { border-left: 1px solid var(--hairline); }
}

/* --------------------------------------------------------------------------
   The bookcase: seven spines on a gilt ledge
   -------------------------------------------------------------------------- */

.bookcase { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); padding: 0 4px; }
.bookcase__spines {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: clamp(4px, 1vw, 9px);
	height: clamp(250px, 30vw, 330px);
}
.spine {
	--gilt-ink: var(--gold-light);
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 0 1 68px;
	min-width: 38px;
	height: var(--h);
	padding: 14px 0 12px;
	border: 0;
	border-radius: 4px 4px 2px 2px;
	cursor: pointer;
	color: var(--gilt-ink);
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0%, rgba(255, 255, 255, 0.14) 16%, rgba(255, 255, 255, 0.04) 34%, rgba(0, 0, 0, 0.06) 62%, rgba(0, 0, 0, 0.36) 100%),
		var(--cloth);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 12px 16px -12px rgba(24, 14, 19, 0.6);
	transform-origin: bottom center;
	transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), filter 0.6s var(--ease);
}
.spine--icons { --gilt-ink: #7a5a1c; }
.spine__band {
	width: 70%;
	height: 7px;
	flex: none;
	border-top: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	opacity: 0.8;
}
.spine__band--foot { margin-top: 10px; }
.spine__title {
	flex: 1;
	min-height: 0;
	margin: 12px 0 8px;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: clamp(11px, 1.2vw, 13px);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.spine__year { font-size: 11px; font-style: italic; font-variant-numeric: lining-nums; opacity: 0.85; }
.spine:hover { transform: translateY(-6px); filter: brightness(1.06); }
.spine[aria-selected="true"] {
	transform: translateY(-20px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 26px 26px -18px rgba(24, 14, 19, 0.7), 0 0 0 1.5px rgba(227, 200, 120, 0.7);
}
.bookcase__ledge {
	position: relative;
	height: 14px;
	margin: 0 -8px;
	border-radius: 3px;
	background: linear-gradient(180deg, #f0d89d 0%, #c2a14d 30%, #a9852f 70%, #7c5d20 100%);
	box-shadow: 0 16px 24px -14px rgba(75, 37, 54, 0.55);
}
.bookcase__ledge::after {
	content: "";
	position: absolute;
	inset: 100% 2% auto;
	height: 18px;
	background: radial-gradient(ellipse at 50% 0, rgba(75, 37, 54, 0.18), transparent 70%);
}

@media (max-width: 520px) {
	.spine__year { display: none; }
	.spine { padding-top: 10px; }
}

/* A shelf: the book beside its characters. */
.shelf { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 4vw, 44px); }
.shelf > * { min-width: 0; }
.shelf.is-entering { animation: shelf-in 0.8s var(--ease) both; }
@keyframes shelf-in {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}
.shelf__book { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 32px); align-items: start; }
.shelf__cover { width: clamp(108px, 22vw, 190px); }
.shelf__title { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
.shelf__facts {
	margin-top: 8px;
	font-family: var(--sans);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink-muted);
	font-variant-numeric: lining-nums;
}
.shelf__line { margin: 18px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--gold-light); }
.shelf__line p { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); font-style: italic; color: var(--ink); line-height: 1.45; }
.shelf__blurb { margin-top: 14px; color: var(--ink-2); }

@media (max-width: 640px) {
	.shelf__book { grid-template-columns: 96px 1fr; }
	.shelf__line { display: none; }
	.shelf__blurb { font-size: 1.02rem; }
}

@media (min-width: 1000px) {
	.shelf { grid-template-columns: 330px minmax(0, 1fr); align-items: start; }
	.shelf__book { grid-template-columns: 1fr; position: sticky; top: calc(var(--header-h) + 24px); }
	.shelf__cover { width: 190px; }
	.shelf__row { min-width: 0; }
}

.shelf__row { position: relative; }
.shelf__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: clamp(168px, 44vw, 236px);
	gap: clamp(12px, 1.6vw, 18px);
	margin: 0 calc(var(--gutter) * -1);
	padding: 6px var(--gutter) 22px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 var(--gutter);
	scrollbar-width: none;
}
.shelf__track::-webkit-scrollbar { display: none; }
.shelf__track > * { scroll-snap-align: start; }
.shelf__arrows { display: none; gap: 10px; justify-content: flex-end; margin-top: 4px; }

@media (min-width: 1000px) {
	.shelf__track {
		margin: 0;
		padding: 6px 2px 22px;
		scroll-padding: 0;
		-webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
		mask-image: linear-gradient(90deg, #000 88%, transparent);
	}
	.shelf__track.is-end { -webkit-mask-image: none; mask-image: none; }
	.shelf__arrows { display: flex; }
}

/* The drawn cover: cloth, double gilt rule, antique-gold spine (BookCoverView). */
.cover {
	--gilt-ink: var(--gold-light);
	position: relative;
	display: block;
	aspect-ratio: 2 / 3;
	container-type: inline-size;
	border-radius: 3px;
	overflow: hidden;
	background:
		radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.08), transparent 60%),
		var(--cloth);
	box-shadow: 0 2px 3px rgba(24, 14, 19, 0.15), 0 18px 30px -14px rgba(24, 14, 19, 0.55);
	color: var(--gilt-ink);
}
.cover--icons { --gilt-ink: #7a5a1c; }
.cover::before {
	/* Antique-gold binding with a rounded metallic highlight, matching the app icon rim. */
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 3.2%;
	min-width: 4px;
	background: linear-gradient(90deg, #785326 0%, #b68b46 18%, #f0d89d 42%, #cba35d 64%, #92662d 100%);
	box-shadow: 1px 0 0 #f4deab;
	z-index: 1;
}
.cover__art { width: 100%; height: 100%; object-fit: cover; }
.cover__frame {
	position: absolute;
	inset: 5% 5% 5% calc(5% + 4px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5cqw;
	padding: 6cqw;
	text-align: center;
	border: 1px solid color-mix(in srgb, var(--gilt-ink) 80%, transparent);
	outline: 1px solid color-mix(in srgb, var(--gilt-ink) 40%, transparent);
	outline-offset: -5px;
}
.cover__author { font-family: var(--sans); font-size: max(6px, 4.6cqw); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.9; }
.cover__title { font-size: 10.4cqw; font-weight: 600; line-height: 1.08; letter-spacing: 0.02em; text-transform: uppercase; }
.cover__rule { position: relative; width: 38cqw; height: 1px; background: currentColor; opacity: 0.85; }
.cover__rule::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 3.4cqw;
	height: 3.4cqw;
	background: currentColor;
	transform: translate(-50%, -50%) rotate(45deg);
	box-shadow: 0 0 0 2cqw var(--cloth);
}
.cover__year { font-size: max(9px, 7.6cqw); font-style: italic; font-variant-numeric: lining-nums; }

/* --------------------------------------------------------------------------
   Look card (the app's LookCard)
   -------------------------------------------------------------------------- */

.look {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	border-radius: 16px;
	overflow: hidden;
	background: #2a1c20;
	color: var(--ivory-text);
	text-decoration: none;
	box-shadow: var(--shadow-card);
	transform: translateZ(0);
	transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.look__art,
.look__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.look__art img { transition: transform 1.2s var(--ease); }
.look::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(24, 14, 19, 0.88) 0%, rgba(24, 14, 19, 0.52) 30%, transparent 58%);
	pointer-events: none;
}
.look__caption {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 11px;
	z-index: 1;
	display: grid;
	gap: 1px;
}
.look__name { font-size: 1.28rem; font-weight: 600; line-height: 1.1; color: var(--ivory-text); }
.look__scene { font-size: 0.98rem; font-style: italic; line-height: 1.2; color: var(--gold-light); }
.look__free {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1;
	padding: 5px 8px 4px;
	border-radius: 7px;
	background: var(--gold-light);
	color: #2a1a20;
	font-family: var(--sans);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.look__check {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--gold);
	color: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.look__check .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.look:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: var(--ivory-text); }
.look:hover .look__art img { transform: scale(1.045); }
.look.is-selected { box-shadow: 0 0 0 3px var(--gold), var(--shadow-lift); }
.look.is-selected .look__check { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Before and after
   -------------------------------------------------------------------------- */

.likeness { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) {
	.likeness { grid-template-columns: 1fr 1fr; }
	.likeness__stage { order: 2; }
}
.likeness__copy .section-head { margin-bottom: 30px; }
.likeness__note { margin-top: 22px; font-size: 1rem; font-style: italic; color: var(--ink-muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 4px 14px 4px 4px;
	border: 0;
	border-radius: 999px;
	background: var(--parchment);
	color: var(--ink);
	font-size: 1.02rem;
	box-shadow: inset 0 0 0 1px var(--hairline-gold);
	cursor: pointer;
	transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s var(--ease);
}
.chip__face { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none; }
.chip__face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.chip:hover { background: #fff; }
.chip.is-active,
.chip[aria-checked="true"] { background: var(--plum-ink); color: var(--ivory-text); box-shadow: none; }

.likeness__stage { display: grid; justify-items: center; gap: 16px; }

.compare { position: relative; width: min(100%, 460px); }
.compare__frame {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: 50% 50% 16px 16px / 40% 40% 16px 16px;
	overflow: hidden;
	background: #3a2a24;
	box-shadow: 0 0 0 6px var(--parchment), 0 0 0 7.5px var(--gold), 0 40px 70px -36px rgba(75, 37, 54, 0.6);
	touch-action: pan-y;
	isolation: isolate;
}
.compare__after,
.compare__before,
.compare__before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 1; }
.compare__before img { object-position: 50% 18%; }
.compare__frame.is-swapping .compare__after,
.compare__frame.is-swapping .compare__before { animation: swap-in 0.9s var(--ease); }
@keyframes swap-in {
	from { opacity: 0; filter: blur(8px); }
	to { opacity: 1; filter: blur(0); }
}
.compare__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pos);
	z-index: 2;
	width: 2px;
	margin-left: -1px;
	background: linear-gradient(180deg, transparent, var(--gold-light) 12%, var(--gold-light) 88%, transparent);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
	pointer-events: none;
}
.compare__knob {
	position: absolute;
	top: 56%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--parchment);
	color: var(--gold-deep);
	box-shadow: 0 0 0 1.5px var(--gold), 0 8px 18px rgba(24, 14, 19, 0.35);
	transform: translate(-50%, -50%);
}
.compare__knob .icon { width: 14px; height: 14px; stroke-width: 2; }
.compare__label {
	position: absolute;
	bottom: 16px;
	z-index: 2;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(255, 253, 248, 0.9);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	pointer-events: none;
	transition: opacity 0.4s var(--ease);
}
.compare__label--before { left: 16px; opacity: clamp(0, calc((var(--pos-n, 50) - 12) / 10), 1); }
.compare__label--after { right: 16px; opacity: clamp(0, calc((88 - var(--pos-n, 50)) / 10), 1); }
.compare__range {
	position: absolute;
	inset: 0;
	z-index: 3;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	/* Pointer drags are handled on the frame (iOS will not drag an invisible thumb);
	   the range stays for keyboards and screen readers. */
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}
.compare__frame { cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.compare__frame img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.compare__range:focus-visible + * { outline: none; }
.compare:has(.compare__range:focus-visible) .compare__frame { box-shadow: 0 0 0 6px var(--parchment), 0 0 0 8px var(--gold-deep), 0 40px 70px -36px rgba(75, 37, 54, 0.6); }
.compare__caption { display: grid; gap: 2px; text-align: center; }
.compare__name { font-size: 1.45rem; font-weight: 600; color: var(--plum-ink); }
.compare__scene { font-style: italic; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.steps {
	display: grid;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}
@media (min-width: 900px) {
	.steps { grid-template-columns: repeat(3, 1fr); gap: 26px; }
}
.step {
	position: relative;
	display: grid;
	grid-template-rows: auto auto auto 1fr;
	padding: 28px 28px 32px;
	border-radius: 24px;
	background: var(--parchment);
	box-shadow: inset 0 0 0 1px var(--hairline-gold), var(--shadow-card);
	text-align: center;
}
.step__visual {
	display: grid;
	place-items: center;
	height: 300px;
	margin-bottom: 18px;
	border-radius: 18px;
	background: radial-gradient(ellipse at 50% 30%, rgba(242, 217, 160, 0.45), rgba(242, 217, 160, 0) 70%), var(--ivory);
	overflow: hidden;
}
.step__number {
	justify-self: center;
	margin-bottom: 4px;
	font-size: 3.4rem;
	font-style: italic;
	font-weight: 500;
	line-height: 1;
	color: var(--gold);
	font-variant-numeric: lining-nums;
}
.step__title { font-size: 1.6rem; }
.step__text { margin-top: 10px; color: var(--ink-2); }

.phone {
	display: block;
	width: 168px;
	margin-top: 60px;
	padding: 6px;
	border-radius: 30px;
	background: #1b1b1d;
	box-shadow: 0 0 0 1.5px #3a3a3e, 0 30px 40px -24px rgba(24, 14, 19, 0.6);
	transform: rotate(-4deg);
	transition: transform 0.8s var(--ease);
}
.phone img { border-radius: 24px; }
.step:hover .phone { transform: rotate(0) translateY(-8px); }

.cameo { position: relative; display: block; width: 150px; aspect-ratio: 226 / 302; filter: drop-shadow(0 16px 20px rgba(75, 37, 54, 0.22)); }
.cameo__photo { position: absolute; left: 9.3%; top: 6.6%; width: 81.4%; height: 86.8%; overflow: hidden; border-radius: 50%; background: var(--parchment); }
.cameo__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.cameo__frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.step__visual--photo { grid-template-columns: auto auto; gap: 18px; justify-content: center; }
.ticks { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; text-align: left; font-size: 1rem; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks .icon { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--gold); color: #fff; stroke-width: 2.6; }

.step__visual--portrait { align-content: center; gap: 16px; }
.develop {
	display: block;
	width: 170px;
	aspect-ratio: 4 / 5;
	padding: 4px;
	border-radius: 50% 50% 10px 10px / 40% 40% 10px 10px;
	background: var(--gilt);
	box-shadow: 0 20px 30px -18px rgba(75, 37, 54, 0.55);
}
.develop img { width: 100%; height: 100%; object-fit: cover; border-radius: 50% 50% 7px 7px / 40% 40% 7px 7px; }
.js .step.is-in .develop img { animation: develop-loop 7s var(--ease-soft) 0.6s infinite; }
@keyframes develop-loop {
	0%, 8% { filter: blur(14px) saturate(0.3) sepia(0.4) brightness(1.1); }
	40%, 88% { filter: blur(0) saturate(1) sepia(0) brightness(1); }
	100% { filter: blur(14px) saturate(0.3) sepia(0.4) brightness(1.1); }
}
.formats { display: flex; gap: 6px; }
.formats span {
	padding: 5px 10px;
	border-radius: 999px;
	font-family: var(--sans);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--ink-2);
	background: var(--parchment);
	box-shadow: inset 0 0 0 1px var(--hairline);
}
.formats .is-on { background: var(--plum-ink); color: var(--ivory-text); box-shadow: none; }

/* --------------------------------------------------------------------------
   The quiz
   -------------------------------------------------------------------------- */

.quiz__spray { position: absolute; right: -60px; top: 40px; width: clamp(200px, 26vw, 360px); opacity: 0.5; transform: scaleX(-1); }
/* Top-aligned, so a result taller than the questions grows downwards without moving the heading. */
.quiz-layout { display: grid; gap: clamp(36px, 5vw, 64px); align-items: start; }
@media (min-width: 960px) {
	.quiz-layout { grid-template-columns: 0.9fr 1.1fr; }
}
.quiz-intro .section-head { margin-bottom: 26px; }
.quiz-intro__points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.quiz-intro__points li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.quiz-intro__points li::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--gold); transform: rotate(45deg); }

.quiz-card {
	position: relative;
	padding: clamp(26px, 4vw, 44px);
	border-radius: 26px;
	background: var(--parchment);
	box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 6px var(--parchment), inset 0 0 0 7px var(--hairline-gold), 0 40px 70px -40px rgba(75, 37, 54, 0.45);
	min-height: 520px;
}
.quiz-card::before,
.quiz-card::after {
	/* Small gilt diamonds at the corners of the inner rule. */
	content: "";
	position: absolute;
	width: 9px;
	height: 9px;
	background: var(--gold);
	transform: rotate(45deg);
}
.quiz-card::before { top: 2.5px; left: 50%; margin-left: -4.5px; }
.quiz-card::after { bottom: 2.5px; left: 50%; margin-left: -4.5px; }
.quiz-card__inner.is-entering { animation: quiz-in 0.7s var(--ease) both; }
@keyframes quiz-in {
	from { opacity: 0; transform: translateX(18px); }
	to { opacity: 1; transform: none; }
}
.quiz-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; min-height: 32px; }
.quiz-card__step { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); font-variant-numeric: lining-nums; }
.quiz-card__back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px 4px 2px;
	border: 0;
	background: none;
	color: var(--ink-2);
	font-style: italic;
	cursor: pointer;
}
.quiz-card__back .icon { width: 16px; height: 16px; }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 26px; }
.quiz-progress i { flex: 1; height: 3px; border-radius: 3px; background: rgba(194, 161, 77, 0.2); overflow: hidden; }
.quiz-progress i::after { content: ""; display: block; height: 100%; background: var(--gold-cta); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease); }
.quiz-progress i.is-done::after { transform: scaleX(1); }
.quiz-card__prompt { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); line-height: 1.12; color: var(--plum-ink); margin-bottom: 22px; }
.quiz-card__answers { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.answer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 15px 18px;
	border: 0;
	border-radius: 14px;
	background: #fff;
	color: var(--ink);
	font-size: 1.12rem;
	text-align: left;
	box-shadow: inset 0 0 0 1px var(--hairline);
	cursor: pointer;
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.answer .icon { width: 16px; height: 16px; flex: none; color: var(--gold); transition: transform 0.3s var(--ease); }
button.answer:hover { background: var(--ivory); box-shadow: inset 0 0 0 1px var(--gold); transform: translateX(3px); }
button.answer:hover .icon { transform: translateX(3px); }
button.answer.is-chosen { background: var(--plum-ink); color: var(--ivory-text); box-shadow: none; }

.sitter { margin: -6px 0 20px; }
.sitter__label { display: block; margin-bottom: 8px; font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); }
.segmented { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--hairline); }
.segmented button {
	padding: 7px 16px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--ink-2);
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.segmented button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(46, 42, 36, 0.14); }

/* Result */
.result { display: grid; gap: 22px; }
@media (min-width: 560px) {
	.result { grid-template-columns: 200px 1fr; align-items: start; }
}
.result__art {
	justify-self: center;
	width: 200px;
	aspect-ratio: 4 / 5;
	padding: 5px;
	border-radius: 50% 50% 12px 12px / 40% 40% 12px 12px;
	background: var(--gilt);
	box-shadow: 0 24px 40px -22px rgba(75, 37, 54, 0.6);
}
.result__art img { width: 100%; height: 100%; object-fit: cover; border-radius: 50% 50% 8px 8px / 40% 40% 8px 8px; animation: develop 2.2s var(--ease) both; }
.result__kicker { margin-bottom: 6px; }
.result__name { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.7rem); }
.result__book { margin-top: 4px; font-style: italic; color: var(--ink-2); }
.result__verdict { margin-top: 14px; }
.result__quote { margin: 16px 0 0; padding-left: 16px; border-left: 2px solid var(--gold-light); font-style: italic; color: var(--ink-2); }
.result__extra { margin-top: 14px; font-size: 1rem; color: var(--ink-2); }
.result__extra strong { color: var(--plum-ink); font-weight: 600; }
.result__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; grid-column: 1 / -1; }
.result__actions .btn--gold { flex: 1 1 260px; }
.mini-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 2px;
	border: 0;
	background: none;
	color: var(--plum);
	font-style: italic;
	font-size: 1.05rem;
	cursor: pointer;
}
.mini-link .icon { width: 17px; height: 17px; }
.mini-link:hover { color: var(--gold-deep); }

/* --------------------------------------------------------------------------
   Regency era fashion
   -------------------------------------------------------------------------- */

.wardrobe {
	display: grid;
	gap: clamp(22px, 3vw, 34px);
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 640px) { .wardrobe { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .wardrobe { grid-template-columns: repeat(3, 1fr); } }
.wardrobe__link { display: grid; gap: 6px; color: var(--ink); text-decoration: none; }
.wardrobe__art {
	position: relative;
	display: block;
	aspect-ratio: 5 / 4;
	margin-bottom: 12px;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: var(--shadow-card);
	transition: box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
}
.wardrobe__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; transition: transform 1.4s var(--ease); }
.wardrobe__who {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(255, 253, 248, 0.92);
	font-size: 0.98rem;
	font-style: italic;
	color: var(--plum-ink);
	transform: translateY(8px);
	opacity: 0;
	transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.wardrobe__title { font-size: 1.5rem; font-weight: 500; color: var(--plum-ink); line-height: 1.15; }
.wardrobe__text { color: var(--ink-2); font-size: 1.06rem; }
.wardrobe__link:hover { color: var(--ink); }
.wardrobe__link:hover .wardrobe__art { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.wardrobe__link:hover .wardrobe__art img { transform: scale(1.05); }
.wardrobe__link:hover .wardrobe__who,
.wardrobe__link:focus-visible .wardrobe__who { opacity: 1; transform: none; }
@media (hover: none) { .wardrobe__who { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Couples: pendant ovals
   -------------------------------------------------------------------------- */

.couples {
	display: grid;
	gap: clamp(26px, 4vw, 44px) clamp(18px, 3vw, 32px);
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 640px) { .couples { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .couples { grid-template-columns: repeat(3, 1fr); } }
.couple { display: grid; justify-items: center; text-align: center; }
.couple__pair { position: relative; display: flex; justify-content: center; margin-bottom: 16px; }
.pendant {
	position: relative;
	display: block;
	width: clamp(130px, 18vw, 168px);
	aspect-ratio: 4 / 5;
	border-radius: 50%;
	padding: 4px;
	background: var(--gilt);
	box-shadow: 0 18px 28px -18px rgba(75, 37, 54, 0.6);
	transition: transform 0.6s var(--ease);
}
.pendant img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; border-radius: 50%; }
.pendant:first-child { transform: rotate(-4deg) translateX(8px); }
.pendant:nth-child(2) { transform: rotate(4deg) translateX(-8px); }
.couple:hover .pendant:first-child { transform: rotate(-2deg) translateX(2px) translateY(-4px); }
.couple:hover .pendant:nth-child(2) { transform: rotate(2deg) translateX(-2px) translateY(-4px); }
.couple__amp {
	position: absolute;
	left: 50%;
	bottom: -6px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--parchment);
	color: var(--gold-deep);
	font-size: 1.5rem;
	font-style: italic;
	box-shadow: inset 0 0 0 1px var(--gold), 0 6px 12px -6px rgba(46, 42, 36, 0.4);
	transform: translateX(-50%);
}
.couple__names { font-size: 1.5rem; }
.couple__book { font-style: italic; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Regency Icons: gilt frames on a striped Regency wall
   -------------------------------------------------------------------------- */

.icons { display: grid; gap: clamp(36px, 5vw, 60px); align-items: center; }
@media (min-width: 1000px) {
	.icons { grid-template-columns: 0.8fr 1.2fr; }
}
.icons__also { margin: 6px 0 10px; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); }
.name-list { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.name-list li:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--gold); }
.name-list a { color: var(--plum); text-decoration: none; background: linear-gradient(var(--gold-light), var(--gold-light)) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.name-list a:hover { background-size: 100% 1px; color: var(--plum-ink); }

.salon {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1.5fr 1fr;
	grid-template-areas: "a c b" "d c e";
	gap: clamp(14px, 2.4vw, 28px) clamp(12px, 2vw, 24px);
	align-items: center;
	padding: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 36px) clamp(34px, 4vw, 52px);
	border-radius: 6px;
	/* Regency striped silk. */
	background:
		linear-gradient(180deg, rgba(255, 253, 248, 0.5), rgba(246, 238, 221, 0) 30%),
		repeating-linear-gradient(90deg, #f3e8d2 0 18px, #efe2c8 18px 20px, #f3e8d2 20px 38px, #ead9b8 38px 40px);
	box-shadow: inset 0 0 0 1px var(--hairline-gold), inset 0 -26px 0 -20px rgba(169, 133, 47, 0.35), 0 30px 60px -40px rgba(75, 37, 54, 0.45);
}
.gilt { position: relative; display: grid; justify-items: center; gap: 10px; text-decoration: none; }
.gilt--centre { grid-area: c; }
.gilt--1 { grid-area: a; }
.gilt--2 { grid-area: b; }
.gilt--3 { grid-area: d; }
.gilt--4 { grid-area: e; }
.gilt__frame {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	padding: clamp(7px, 1.2vw, 12px);
	background: var(--gilt);
	box-shadow: inset 0 0 0 1px rgba(90, 60, 10, 0.4), inset 0 0 0 3px rgba(255, 240, 200, 0.35), 0 22px 30px -16px rgba(46, 30, 20, 0.55);
	transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.gilt__frame::after {
	content: "";
	position: absolute;
	inset: clamp(7px, 1.2vw, 12px);
	box-shadow: inset 0 0 0 1px rgba(90, 60, 10, 0.45), inset 0 0 18px rgba(24, 14, 19, 0.35);
	pointer-events: none;
}
.gilt__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.gilt--centre .gilt__frame { padding: clamp(10px, 1.6vw, 16px); }
.gilt--centre .gilt__frame::after { inset: clamp(10px, 1.6vw, 16px); }
.gilt:hover .gilt__frame { transform: translateY(-4px) rotate(-0.4deg); box-shadow: inset 0 0 0 1px rgba(90, 60, 10, 0.4), inset 0 0 0 3px rgba(255, 240, 200, 0.35), 0 30px 36px -18px rgba(46, 30, 20, 0.6); }
.gilt__plate {
	display: grid;
	padding: 4px 12px 5px;
	border-radius: 3px;
	background: linear-gradient(180deg, #f4deab, #c9a55b 60%, #b68b46);
	color: #3a2a14;
	font-size: clamp(0.78rem, 0.7rem + 0.3vw, 0.95rem);
	font-weight: 600;
	letter-spacing: 0.02em;
	text-align: center;
	line-height: 1.2;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 3px 6px -3px rgba(46, 30, 20, 0.5);
}
.gilt__plate em { font-weight: 400; font-size: 0.92em; }

@media (max-width: 640px) {
	.salon { grid-template-columns: 1fr 1fr; grid-template-areas: "c c" "a b" "d e"; }
	.gilt--centre { width: 72%; justify-self: center; }
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.pricing { display: grid; gap: 18px; }
@media (min-width: 1000px) {
	.pricing { grid-template-columns: 300px 1fr; align-items: stretch; }
}
.plan-packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 760px) {
	.plan-packs { grid-template-columns: repeat(4, 1fr); }
}
.plan {
	position: relative;
	display: grid;
	align-content: start;
	justify-items: center;
	gap: 4px;
	padding: 30px 18px 26px;
	border-radius: 22px;
	background: #fff;
	text-align: center;
	box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-card);
}
.plan__count { font-size: 3.6rem; font-weight: 500; line-height: 1; color: var(--plum-ink); font-variant-numeric: lining-nums; }
.plan__name { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.plan__name span { display: block; margin-top: 6px; font-family: var(--serif); font-size: 1.1rem; font-weight: 400; font-style: italic; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.plan__price { margin-top: 14px; font-size: 1.7rem; font-weight: 600; color: var(--ink); font-variant-numeric: lining-nums; }
.plan__each { font-family: var(--sans); font-size: 12px; color: var(--ink-muted); }
.plan--featured { box-shadow: inset 0 0 0 1.5px var(--gold), 0 24px 40px -24px rgba(169, 133, 47, 0.7); background: linear-gradient(180deg, #fffaf0, #fff); }
.plan__ribbon {
	position: absolute;
	top: -11px;
	left: 50%;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--plum-ink);
	color: var(--ivory-text);
	font-family: var(--sans);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	white-space: nowrap;
	transform: translateX(-50%);
}
.plan--free {
	gap: 8px;
	padding: 34px 26px;
	background:
		radial-gradient(ellipse at 50% 0%, rgba(242, 217, 160, 0.55), transparent 70%),
		var(--ivory);
	box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 6px var(--ivory), inset 0 0 0 7px var(--hairline-gold);
}
.plan--free .plan__count { font-size: 5rem; font-style: italic; color: var(--gold-deep); }
.plan--free .plan__name { font-size: 12px; }
.plan__text { color: var(--ink-2); font-size: 1.04rem; line-height: 1.45; margin: 4px 0 16px; }
.pricing__note { margin-top: 26px; text-align: center; font-size: 1rem; font-style: italic; color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   Questions
   -------------------------------------------------------------------------- */

.faq { display: grid; gap: clamp(30px, 5vw, 64px); }
@media (min-width: 960px) {
	.faq { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
	/* Sticky makes a stacking context: the ground colour keeps the divider's multiply blend. */
	.faq__head { position: sticky; top: calc(var(--anchor-top, var(--header-h)) + var(--anchor-gap)); background: var(--ivory); }
}
.faq__contact { color: var(--ink-2); font-style: italic; }
.faq__list { display: grid; }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__item:first-child { border-top: 1px solid var(--hairline); }
.faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 22px 2px;
	list-style: none;
	cursor: pointer;
	font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.42rem);
	color: var(--plum-ink);
	line-height: 1.3;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { width: 22px; height: 22px; flex: none; color: var(--gold-deep); transition: transform 0.5s var(--ease); }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--plum); }
.faq__answer { padding: 0 2px 24px; color: var(--ink-2); max-width: 38em; }
.faq__item[open] .faq__answer { animation: faq-open 0.6s var(--ease); }
@keyframes faq-open {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Finale
   -------------------------------------------------------------------------- */

.finale {
	position: relative;
	padding: var(--section) 0 calc(var(--section) + 40px);
	overflow: hidden;
	overflow: clip;
	text-align: center;
	background:
		radial-gradient(ellipse 60% 50% at 50% 30%, rgba(242, 217, 160, 0.45), rgba(242, 217, 160, 0) 70%),
		linear-gradient(180deg, var(--cream), var(--ivory));
}
.finale__spray { position: absolute; width: clamp(180px, 24vw, 340px); opacity: 0.75; }
.finale__spray--left { left: -30px; top: 30px; }
.finale__spray--right { right: -30px; bottom: 10px; transform: scaleX(-1); }
.finale__inner { position: relative; display: grid; justify-items: center; max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }
.cameo--large { width: clamp(190px, 22vw, 240px); margin-bottom: 30px; }
.finale__quote { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem); font-style: italic; font-weight: 400; line-height: 1.18; }
.finale__rule { width: min(300px, 70%); margin: 26px auto; }
.finale__text { max-width: 30em; font-size: 1.25rem; color: var(--ink-2); text-wrap: balance; }
.finale__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 30px; margin-top: 30px; }
.qr { display: none; align-items: center; gap: 14px; text-align: left; }
.qr img { width: 88px; height: 88px; padding: 6px; border-radius: 12px; background: var(--parchment); box-shadow: inset 0 0 0 1px var(--hairline-gold); }
.qr p { max-width: 12em; font-size: 1rem; font-style: italic; color: var(--ink-2); line-height: 1.35; }
@media (min-width: 900px) and (hover: hover) {
	.qr { display: flex; }
}

/* --------------------------------------------------------------------------
   Create bar: the app's pinned CreateBar
   -------------------------------------------------------------------------- */

.create-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	padding: 0 0 env(safe-area-inset-bottom);
	pointer-events: none;
	transform: translateY(calc(100% + 40px));
	transition: transform 0.7s var(--ease);
}
.create-bar.is-shown { transform: none; }
.create-bar__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px var(--gutter);
	background: rgba(255, 253, 248, 0.94);
	-webkit-backdrop-filter: saturate(1.2) blur(16px);
	backdrop-filter: saturate(1.2) blur(16px);
	box-shadow: 0 -1px 0 var(--hairline), 0 -12px 30px -18px rgba(46, 42, 36, 0.3);
	pointer-events: auto;
}
.create-bar__thumb {
	display: grid;
	place-items: center;
	width: 42px;
	height: 52px;
	flex: none;
	border-radius: 50%;
	overflow: hidden;
	background: var(--cream);
	box-shadow: 0 0 0 1.5px var(--gold);
}
.create-bar__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.create-bar__thumb .create-bar__mark { width: 30px; height: auto; object-fit: contain; }
.create-bar__text { display: grid; min-width: 0; flex: 1; line-height: 1.2; }
.create-bar__name { overflow: hidden; font-size: 1.12rem; font-weight: 600; color: var(--plum-ink); text-overflow: ellipsis; white-space: nowrap; }
.create-bar__scene { overflow: hidden; font-family: var(--sans); font-size: 12px; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.create-bar__btn { --btn-pad: 13px 18px; flex: none; font-size: 11.5px; letter-spacing: 0.12em; }
.create-bar__label-short { display: none; }
@media (max-width: 560px) {
	.create-bar__label-long { display: none; }
	.create-bar__label-short { display: inline; }
}
.create-bar.is-updated .create-bar__thumb { animation: bar-pop 0.7s var(--ease); }
@keyframes bar-pop {
	0% { transform: scale(0.7); }
	60% { transform: scale(1.08); }
	100% { transform: none; }
}

@media (min-width: 760px) {
	.create-bar { bottom: 18px; padding: 0 var(--gutter); }
	.create-bar__inner {
		max-width: 620px;
		margin: 0 auto;
		padding: 10px 10px 10px 14px;
		border-radius: 22px;
		box-shadow: inset 0 0 0 1px var(--hairline-gold), 0 22px 44px -18px rgba(75, 37, 54, 0.45);
	}
}

/* --------------------------------------------------------------------------
   The sitting dialog
   -------------------------------------------------------------------------- */

.sitting-dialog {
	width: min(980px, calc(100% - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	border-radius: 26px;
	background: var(--parchment);
	color: var(--ink);
	box-shadow: 0 50px 100px -30px rgba(24, 14, 19, 0.6);
	overflow: auto;
	overscroll-behavior: contain;
}
.sitting-dialog::backdrop { background: rgba(24, 14, 19, 0.5); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.sitting-dialog[open] { animation: dialog-in 0.6s var(--ease); }
.sitting-dialog[open]::backdrop { animation: backdrop-in 0.5s var(--ease); }
@keyframes dialog-in {
	from { opacity: 0; transform: translateY(24px) scale(0.98); }
	to { opacity: 1; transform: none; }
}
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
.sd { position: relative; display: grid; gap: 28px; padding: clamp(22px, 4vw, 44px); }
@media (min-width: 820px) {
	.sd { grid-template-columns: 400px 1fr; align-items: center; gap: 44px; }
}
.sd__close { position: absolute; top: 14px; right: 14px; z-index: 5; }
.sd__media { display: grid; justify-items: center; gap: 10px; }
.sd__media .compare { width: min(100%, 400px); }
.sd__hint { font-size: 0.95rem; font-style: italic; color: var(--ink-muted); }
.sd__name { font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3.2rem); }
.sd__scene { margin-top: 4px; font-size: 1.3rem; font-style: italic; color: var(--gold-deep); }
.sd__verdict { margin-top: 18px; font-size: 1.15rem; }
.sd__quote { margin: 18px 0 0; padding-left: 18px; border-left: 2px solid var(--gold-light); }
.sd__quote p { font-style: italic; color: var(--ink-2); }
.sd__quote cite { display: block; margin-top: 4px; font-family: var(--sans); font-size: 11px; font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.sd__partner { margin-top: 16px; color: var(--ink-2); }
.sd__partner-link { padding: 0; border: 0; background: none; color: var(--plum); font-style: italic; text-decoration: underline; text-decoration-color: var(--gold-light); text-underline-offset: 0.2em; cursor: pointer; }
.sd__tier { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.sd__tier::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.sd__cta { display: flex; width: 100%; margin-top: 20px; }
.sd__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.sd__step { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: none; color: var(--ink-2); font-style: italic; cursor: pointer; }
.sd__step .icon { width: 16px; height: 16px; color: var(--gold-deep); }
.sd__step:hover { color: var(--plum); }
.sd__step[hidden] { display: none; }
.sd__body.is-swapping { animation: quiz-in 0.6s var(--ease); }

@media (max-width: 819px) {
	.sitting-dialog { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
	.sitting-dialog[open] { animation: sheet-in 0.55s var(--ease); }
	@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
	.sd__media .compare { width: min(78%, 320px); }
}

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

.site-footer {
	padding: 10px 0 calc(40px + 80px);
	background: var(--parchment);
	box-shadow: 0 -1px 0 var(--hairline);
}
.site-footer__rule { width: min(360px, 70%); margin: 30px auto 40px; }
.site-footer__inner {
	display: grid;
	gap: 36px 28px;
	max-width: calc(var(--max) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
/* auto-fit can't share a template with fr tracks, so the brand sits on its own
   row at tablet width and takes the first (wider) column on desktop. */
@media (min-width: 760px) {
	.site-footer__inner { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
	.site-footer__inner {
		grid-template-columns: minmax(0, 1.5fr);
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
	}
	.site-footer__brand { grid-column: auto; }
}
.site-footer__brand { display: grid; justify-items: start; align-content: start; gap: 16px; }
.site-footer__brand p { max-width: 24em; color: var(--ink-2); font-style: italic; font-size: 1.05rem; }
.site-footer__heading { margin-bottom: 12px; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); }
.site-footer ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.site-footer__col a { color: var(--ink); text-decoration: none; }
.site-footer__col a:hover { color: var(--plum); text-decoration: underline; text-decoration-color: var(--gold); }
.site-footer__social { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-family: var(--sans); font-size: 13px; letter-spacing: 0.04em; text-decoration: none; }
.site-footer__social .icon { width: 22px; height: 22px; color: var(--gold-deep); }
.site-footer__social:hover { color: var(--plum); text-decoration: underline; text-decoration-color: var(--gold); }
.site-footer__legal {
	display: grid;
	gap: 4px;
	max-width: calc(var(--max) + var(--gutter) * 2);
	margin: 44px auto 0;
	padding: 22px var(--gutter) 0;
	border-top: 1px solid var(--hairline);
	font-family: var(--sans);
	font-size: 12px;
	color: var(--ink-muted);
}

@media (min-width: 760px) {
	.site-footer { padding-bottom: 40px; }
	.home .site-footer { padding-bottom: 120px; }
}

/* --------------------------------------------------------------------------
   The film (template-parts/front/film.php)
   -------------------------------------------------------------------------- */

.film {
	position: relative;
	max-width: 1000px;
	margin: 0 auto;
	aspect-ratio: 16 / 9;
	border-radius: 22px;
	overflow: hidden;
	background: #0b140e;
	box-shadow: 0 0 0 6px var(--parchment), 0 0 0 7.5px var(--gold), 0 40px 70px -36px rgba(75, 37, 54, 0.6);
}
.film__poster,
.film__player { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.film__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s var(--ease); }
.film__poster:hover img { transform: scale(1.02); filter: brightness(1.05); }
.film__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(64px, 9vw, 92px);
	height: clamp(64px, 9vw, 92px);
	border-radius: 50%;
	background: var(--gold-cta);
	color: #fff;
	box-shadow: 0 0 0 6px rgba(255, 253, 248, 0.35), 0 16px 34px -10px rgba(24, 14, 19, 0.6);
	transform: translate(-50%, -50%);
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.film__play .icon { width: 40%; height: 40%; margin-left: 6%; fill: currentColor; }
.film__poster:hover .film__play,
.film__poster:focus-visible .film__play { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 0 10px rgba(255, 253, 248, 0.4), 0 18px 38px -10px rgba(24, 14, 19, 0.65); }
.film__more { margin-top: 22px; text-align: center; font-family: var(--sans); font-size: 13px; letter-spacing: 0.04em; }
.film__more a { color: var(--ink-2); text-decoration-color: var(--gold); }
.film__more a:hover { color: var(--plum); }

/* --------------------------------------------------------------------------
   Pages, posts and the journal
   -------------------------------------------------------------------------- */

.page-hero {
	position: relative;
	margin-top: calc(var(--header-h) * -1);
	padding: calc(var(--header-h) + clamp(48px, 7vw, 90px)) var(--gutter) clamp(36px, 5vw, 56px);
	text-align: center;
	background: var(--candlelight), linear-gradient(180deg, var(--parchment), var(--ivory));
}
.page-hero__title { max-width: 900px; margin: 0 auto; font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem); }
.page-hero__meta { margin-top: 16px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }
.page-hero__rule { width: min(300px, 70%); margin: 24px auto 0; }
.page-hero__thumb { max-width: 980px; margin: 36px auto 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lift); }
.page-hero__lede { max-width: 38em; margin: 22px auto 0; font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); font-style: italic; color: var(--ink-2); }

/* The app's support, privacy, terms and account-deletion pages (inc/app-pages/). */
.app-page .page-hero .kicker { display: flex; width: max-content; margin: 0 auto 14px; }
.app-page .prose { padding-bottom: clamp(64px, 9vw, 110px); }
.app-page .prose strong { color: var(--plum-ink); font-weight: 600; }
.app-page .prose li::marker { color: var(--gold); }
.contact {
	display: grid;
	gap: 14px;
	justify-items: center;
	max-width: 46rem;
	margin: clamp(24px, 4vw, 40px) auto 0;
	padding: 30px var(--gutter);
	border-radius: 24px;
	background: var(--parchment);
	box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 6px var(--parchment), inset 0 0 0 7px var(--hairline-gold);
	text-align: center;
}
.contact p { color: var(--ink-2); }
@media (max-width: 799px) { .contact { margin-left: var(--gutter); margin-right: var(--gutter); } }
.note { padding: 20px 22px; border-radius: 18px; background: var(--parchment); box-shadow: inset 0 0 0 1px var(--hairline-gold); }
.note__label { display: block; margin-bottom: 4px; font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.prose .contents { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.prose .contents li + li { margin-top: 0; }
.prose .contents a { display: inline-block; padding: 6px 13px; border-radius: 999px; background: var(--parchment); color: var(--ink); font-family: var(--sans); font-size: 13px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--hairline-gold); }
.prose .contents a:hover { background: #fff; color: var(--plum); }
.doc-faq { margin-top: 1.4em; }
.doc-faq details { border-bottom: 1px solid var(--hairline); }
.doc-faq details:first-child { border-top: 1px solid var(--hairline); }
.doc-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; list-style: none; cursor: pointer; font-size: 1.28rem; color: var(--plum-ink); }
.doc-faq summary::-webkit-details-marker { display: none; }
.doc-faq summary::after { content: "+"; font-family: var(--sans); font-size: 22px; font-weight: 300; color: var(--gold-deep); transition: transform 0.4s var(--ease); }
.doc-faq details[open] summary::after { transform: rotate(45deg); }
.doc-faq details > p { padding: 0 2px 20px; color: var(--ink-2); }

.prose {
	max-width: 44rem;
	margin: 0 auto;
	padding: clamp(28px, 5vw, 56px) var(--gutter) var(--section);
	font-size: 1.24rem;
	line-height: 1.7;
}
.prose > * + * { margin-top: 1.1em; }
.prose [id] { scroll-margin-top: var(--anchor-gap); }
.prose h2 { margin-top: 2em; font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem); }
.prose h3 { margin-top: 1.7em; font-size: 1.55rem; }
.prose a { color: var(--plum); text-decoration-color: var(--gold); }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 22px; border-left: 2px solid var(--gold-light); font-style: italic; color: var(--ink-2); }
.prose img,
.prose figure img { border-radius: 16px; }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose hr { width: 120px; height: 1px; margin: 2.4em auto; border: 0; background: var(--gold); }
.prose .alignwide { max-width: 64rem; margin-left: 50%; transform: translateX(-50%); width: min(64rem, calc(100vw - 2 * var(--gutter))); }
.prose .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.prose .wp-block-button__link { border-radius: 14px; background: var(--gold-cta); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.prose .wp-caption-text,
.prose figcaption { margin-top: 8px; font-size: 0.95rem; font-style: italic; color: var(--ink-muted); text-align: center; }

.app-cta {
	display: grid;
	gap: 22px;
	align-items: center;
	margin-top: 3em !important;
	padding: 26px;
	border-radius: 24px;
	background: var(--cream);
	box-shadow: inset 0 0 0 1px var(--hairline-gold);
}
@media (min-width: 640px) { .app-cta { grid-template-columns: 150px 1fr; } }
.app-cta__art { display: block; aspect-ratio: 4 / 5; border-radius: 50% 50% 10px 10px / 40% 40% 10px 10px; overflow: hidden; padding: 4px; background: var(--gilt); }
.app-cta__art img { width: 100%; height: 100%; object-fit: cover; border-radius: 50% 50% 7px 7px / 40% 40% 7px 7px; }
.app-cta__title { font-size: 1.55rem !important; line-height: 1.2; color: var(--plum-ink); margin: 0 0 8px !important; }
.app-cta__text { margin: 0 0 16px !important; color: var(--ink-2); font-size: 1.08rem; }
.app-cta .kicker { margin-bottom: 8px; }

.journal {
	display: grid;
	gap: 30px;
	max-width: calc(var(--max) + var(--gutter) * 2);
	margin: 0 auto;
	padding: clamp(28px, 5vw, 56px) var(--gutter) var(--section);
}
@media (min-width: 700px) { .journal { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .journal { grid-template-columns: repeat(3, 1fr); } }
.entry-card { display: grid; gap: 10px; align-content: start; }
.entry-card__thumb { display: block; aspect-ratio: 3 / 2; border-radius: 18px; overflow: hidden; background: var(--cream); box-shadow: var(--shadow-card); }
.entry-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.entry-card:hover .entry-card__thumb img { transform: scale(1.04); }
.entry-card__meta { font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); }
.entry-card__title { font-size: 1.6rem; }
.entry-card__title a { color: var(--plum-ink); text-decoration: none; }
.entry-card__title a:hover { color: var(--plum); }
.entry-card__excerpt { color: var(--ink-2); font-size: 1.06rem; }

.pagination { display: flex; justify-content: center; gap: 8px; padding: 0 var(--gutter) var(--section); font-family: var(--sans); }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--hairline-gold); }
.pagination .page-numbers.current { background: var(--plum-ink); color: var(--ivory-text); box-shadow: none; }

.empty-state { max-width: 640px; margin: 0 auto; padding: 20px var(--gutter) var(--section); text-align: center; }
.empty-state p { color: var(--ink-2); font-size: 1.2rem; font-style: italic; }
.empty-state .btn { margin-top: 26px; }

.search-form { display: flex; gap: 8px; max-width: 460px; margin: 24px auto 0; }
.search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 13px 16px;
	border: 0;
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
	font: inherit;
	font-size: 1.05rem;
	box-shadow: inset 0 0 0 1px var(--hairline-gold);
}
.search-form input[type="search"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.comments { max-width: 44rem; margin: 0 auto; padding: 0 var(--gutter) var(--section); }
.comments h2 { font-size: 1.8rem; margin-bottom: 20px; }
.comment-list { margin: 0; padding: 0; list-style: none; }
.comment-list .comment { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea { width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: #fff; font: inherit; box-shadow: inset 0 0 0 1px var(--hairline-gold); }
.comment-form .submit { padding: 14px 24px; border: 0; border-radius: 14px; background: var(--gold-cta); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }

/* --------------------------------------------------------------------------
   Novel pages: a guide to one novel's characters
   -------------------------------------------------------------------------- */

html:has(.novel-contents) { scroll-padding-top: var(--anchor-top, calc(var(--header-h) + 54px)); }

.novel-hero {
	position: relative;
	margin-top: calc(var(--header-h) * -1);
	padding: calc(var(--header-h) + clamp(30px, 5vw, 72px)) 0 clamp(50px, 6vw, 90px);
	overflow: hidden;
	overflow: clip;
	background:
		radial-gradient(ellipse 60% 60% at 75% 38%, rgba(242, 217, 160, 0.42), rgba(242, 217, 160, 0) 70%),
		linear-gradient(180deg, var(--parchment) 0%, var(--ivory) 70%, var(--cream) 100%);
}
.novel-hero__inner {
	position: relative;
	display: grid;
	gap: clamp(36px, 5vw, 64px);
	align-items: center;
	max-width: calc(var(--max) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
@media (min-width: 960px) {
	.novel-hero__inner { grid-template-columns: 1.05fr 1fr; }
}
.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 22px;
	font-family: var(--sans);
	font-size: 12px;
	letter-spacing: 0.04em;
	color: var(--ink-muted);
}
.crumbs a { color: var(--gold-deep); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.novel-hero__title { font-size: clamp(2.6rem, 1.4rem + 4.4vw, 4.7rem); line-height: 1; letter-spacing: -0.012em; }
.novel-hero__subtitle { margin-top: 14px; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); font-style: italic; color: var(--plum); line-height: 1.25; }
.novel-hero__lede { max-width: 34em; margin-top: 22px; font-size: clamp(1.12rem, 1.02rem + 0.4vw, 1.32rem); line-height: 1.55; color: var(--ink-2); }
.novel-hero__shelf { justify-self: center; width: 100%; max-width: 580px; }
/* A cover is 2:3 and a card 4:5, so a cover 0.833 of a card's width stands as tall. */
.novel-hero__row { display: grid; grid-template-columns: 0.833fr 1fr 1fr; gap: clamp(8px, 1.4vw, 14px); align-items: end; padding: 0 8px; }
.novel-hero__cover { width: 100%; }
.novel-hero__row .look__name { font-size: clamp(0.92rem, 0.55rem + 1.5vw, 1.28rem); }
.novel-hero__row .look__scene { font-size: clamp(0.78rem, 0.6rem + 0.7vw, 0.98rem); }
.novel-hero__row .look__caption { left: 9px; right: 9px; bottom: 8px; }
.look--static { cursor: default; }
.look--static:hover { transform: none; box-shadow: var(--shadow-card); }
.look--static:hover .look__art img { transform: none; }
.novel-hero__first-line { max-width: 30em; margin: 26px auto 0; font-size: 1.1rem; font-style: italic; line-height: 1.5; text-align: center; color: var(--ink-2); }

.novel-contents {
	position: sticky;
	top: var(--header-h);
	z-index: 30;
	background: rgba(255, 253, 248, 0.93);
	-webkit-backdrop-filter: saturate(1.2) blur(12px);
	backdrop-filter: saturate(1.2) blur(12px);
	box-shadow: 0 -1px 0 var(--hairline), 0 1px 0 var(--hairline);
}
.admin-bar .novel-contents { top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 32px)); }
.novel-contents ul {
	display: flex;
	gap: 6px;
	max-width: calc(var(--max) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 10px var(--gutter);
	overflow-x: auto;
	list-style: none;
	scrollbar-width: none;
}
.novel-contents ul::-webkit-scrollbar { display: none; }
.novel-contents a {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--parchment);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 12.5px;
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none;
	box-shadow: inset 0 0 0 1px var(--hairline-gold);
	transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.novel-contents a:hover { background: #fff; color: var(--plum); }
.novel-contents a.is-active { background: var(--plum-ink); color: var(--ivory-text); box-shadow: none; }

.section--group { background: var(--ivory); }
.section--group-alt { background: var(--parchment); box-shadow: 0 -1px 0 var(--hairline), 0 1px 0 var(--hairline); }

.people { display: grid; gap: clamp(18px, 2.4vw, 28px); }
@media (min-width: 900px) {
	.people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.person {
	display: grid;
	grid-template-columns: clamp(104px, 26vw, 176px) minmax(0, 1fr);
	gap: clamp(16px, 2.4vw, 28px);
	align-items: start;
	padding: clamp(18px, 2.4vw, 26px);
	border-radius: 22px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-card);
	scroll-margin-top: var(--anchor-gap);
}
.section--group-alt .person { background: var(--ivory); }

/* The novel on screen (inc/novels.php japs_novel_cast; the table itself is guide.css). */
.section--cast { background: var(--parchment); box-shadow: 0 -1px 0 var(--hairline), 0 1px 0 var(--hairline); }
.section--cast .guide-table { margin-top: 0 !important; }
.cast__notes { max-width: 44rem; margin: clamp(28px, 4vw, 44px) auto 0; font-size: 1.15rem; color: var(--ink-2); }
.cast__notes p + p { margin-top: 1em; }
.cast__notes strong { color: var(--plum-ink); font-weight: 600; }
.cast__notes a { color: var(--plum); text-decoration-color: var(--gold); }
.person:target { box-shadow: inset 0 0 0 1.5px var(--gold), var(--shadow-lift); }
.person__portrait {
	display: block;
	aspect-ratio: 4 / 5;
	padding: 4px;
	border-radius: 50% 50% 12px 12px / 40% 40% 12px 12px;
	background: var(--gilt);
	box-shadow: 0 18px 28px -18px rgba(75, 37, 54, 0.55);
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.person__portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50% 50% 9px 9px / 40% 40% 9px 9px; }
.person__portrait:hover { transform: translateY(-3px); box-shadow: 0 26px 34px -20px rgba(75, 37, 54, 0.6); }
.person__scenes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.person__scene {
	display: block;
	width: 34px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	overflow: hidden;
	cursor: pointer;
	box-shadow: 0 0 0 1.5px var(--gold-light);
	transition: transform 0.35s var(--ease);
}
.person__scene img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.person__scene:hover { transform: translateY(-2px); }

/* The app's MonogramPlaceholder: plum, a dashed gold rule, gold italic initials. */
.monogram {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 5;
	border-radius: 50% 50% 12px 12px / 40% 40% 12px 12px;
	background: radial-gradient(ellipse at 50% 18%, #7a4a5e 0%, #4c2a3a 55%, #2e1a24 100%);
	box-shadow: 0 18px 28px -18px rgba(75, 37, 54, 0.55);
}
.monogram::before {
	content: "";
	position: absolute;
	inset: 7px;
	border: 1.5px dashed rgba(227, 200, 120, 0.6);
	border-radius: 50% 50% 8px 8px / 40% 40% 8px 8px;
}
.monogram span { margin-top: -12%; font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem); font-style: italic; color: rgba(227, 200, 120, 0.82); }

.person__role { margin-bottom: 6px; font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); line-height: 1.4; }
.person__name { font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.95rem); }
.person__about { margin-top: 10px; font-size: 1.06rem; line-height: 1.55; }
.person__quote { margin: 12px 0 0; padding-left: 14px; border-left: 2px solid var(--gold-light); }
.person__quote p { font-size: 1.02rem; font-style: italic; color: var(--ink-2); line-height: 1.45; }
.person__match { margin-top: 10px; font-size: 0.98rem; color: var(--ink-2); }
.person__match a { color: var(--plum); font-style: italic; text-decoration-color: var(--gold-light); }
.person__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.person__tier { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.person--text .person__about { color: var(--ink-2); }

@media (max-width: 560px) {
	.person { grid-template-columns: 92px minmax(0, 1fr); }
	.person__scene { width: 26px; height: 32px; }
	.person__actions .btn { --btn-pad: 10px 14px; }
}

.section--scenes { background: var(--cream); }
.scenes { display: grid; justify-items: center; gap: 22px; }
.scenes__photo { position: relative; display: grid; justify-items: center; }
.scenes__photo .cameo { width: 140px; }
.scenes__photo::after { content: ""; width: 1px; height: 34px; margin-top: 12px; background: linear-gradient(var(--gold), transparent); }
.scenes__label {
	position: absolute;
	top: calc(100% - 58px);
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--parchment);
	box-shadow: inset 0 0 0 1px var(--hairline-gold), 0 4px 10px -4px rgba(46, 42, 36, 0.3);
	font-family: var(--sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold-deep);
}
.scenes__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: clamp(16px, 2.4vw, 30px);
	width: 100%;
	max-width: 1000px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.scene { display: grid; justify-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.scene__arch {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	padding: 5px;
	border-radius: 50% 50% 14px 14px / 40% 40% 14px 14px;
	background: var(--gilt);
	box-shadow: 0 28px 44px -26px rgba(75, 37, 54, 0.6);
	transition: transform 0.6s var(--ease);
}
.scene__arch img { width: 100%; height: 100%; object-fit: cover; border-radius: 50% 50% 10px 10px / 40% 40% 10px 10px; }
.scene:hover .scene__arch { transform: translateY(-4px); }
.scene__name { font-size: 1.25rem; font-style: italic; color: var(--plum-ink); }

.section--prose { padding: clamp(20px, 4vw, 40px) 0 0; background: var(--ivory); }

.shelf__more { margin-top: 16px; font-size: 1.12rem; }

@media (min-width: 1000px) {
	.couples:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin-inline: auto; }
}

/* --------------------------------------------------------------------------
   Reduced motion: everything still works; nothing drifts, develops or rises.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html,
	html.smooth-scroll { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.leaves { display: none; }
	.js .reveal { opacity: 1; transform: none; }
	.sitting__layer.is-developing { animation: fade-only 0.6s linear both !important; }
	@keyframes fade-only { from { opacity: 0; } to { opacity: 1; } }
}
