/* ==========================================================================
   WINKT – Well I Never Knew That!
   Palette carried over from the original site: electric violet, sunshine
   yellow, tomato red and navy ink – with the logo's outlined speech bubble
   as the recurring device.
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/fraunces-latin-opsz-normal.woff2") format("woff2-variations"), url("../fonts/fraunces-latin-opsz-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/fraunces-latin-opsz-italic.woff2") format("woff2-variations"), url("../fonts/fraunces-latin-opsz-italic.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/figtree-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 300 900; font-display: swap; src: url("../fonts/figtree-latin-wght-italic.woff2") format("woff2-variations"), url("../fonts/figtree-latin-wght-italic.woff2") format("woff2"); }

:root {
	--violet: #9933ff;
	--violet-deep: #7a1fdb;
	--violet-soft: #c9a4ff;
	--plum: #2b0a63;
	--plum-2: #3a1280;
	--ink: #1b1464;
	--ink-soft: #4e4882;
	--lilac: #f3ebff;
	--lilac-2: #e6d8ff;
	--sun: #ffc933;
	--sun-deep: #f5b400;
	--tomato: #db3a24;
	--green: #12805a;
	--green-soft: #e3f6ec;
	--red-soft: #fde8e4;
	--white: #ffffff;
	--line: rgba(27, 20, 100, 0.14);

	--f-display: "Fraunces", "Georgia", "Times New Roman", serif;
	--f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

	--wrap: 1220px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(72px, 10vw, 128px);
	--header-h: 84px;

	--r-sm: 12px;
	--r-md: 20px;
	--r-lg: 32px;
	--stroke: 3px;

	--focus: var(--violet-deep);
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
body.winkt { display: flex; flex-direction: column; min-height: 100vh; }
body.winkt > .site-main { flex: 1 0 auto; }

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

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

h1, h2, h3, h4 {
	font-family: var(--f-display);
	font-optical-sizing: auto;
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.015em;
	margin: 0 0 0.5em;
	color: inherit;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.375rem; line-height: 1.2; }
p { margin: 0 0 1em; }

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

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.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:focus {
	clip: auto; width: auto; height: auto;
	left: 12px; top: 12px; z-index: 1000;
	padding: 10px 16px; background: var(--sun); color: var(--ink);
	border-radius: 999px; font-weight: 700;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}
.wrap--narrow { max-width: 880px; }

.section { padding: var(--section) 0; }

.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-soft); font-size: 1.125rem; max-width: 52ch; }
.section-head--split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 24px 64px;
	align-items: end;
}
.section-head--center { text-align: center; }
.section-head--center h2 { margin-bottom: 0.35em; }
.section-head--center p { margin: 0 auto; }

/* ---------- Buttons ---------- */
.winkt-btn,
.wpcf7 .wpcf7-submit {
	--btn-bg: var(--violet-deep);
	--btn-fg: var(--white);
	--btn-edge: var(--ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.85em 1.5em;
	border: var(--stroke) solid var(--btn-edge);
	border-radius: 999px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font: 700 1rem/1.1 var(--f-body);
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 4px 0 var(--btn-edge);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
	white-space: nowrap;
}
.winkt-btn svg { width: 1.15em; height: 1.15em; flex: none; }
.winkt-btn:hover,
.wpcf7 .wpcf7-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--btn-edge); color: var(--btn-fg); }
.winkt-btn:active,
.wpcf7 .wpcf7-submit:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-edge); }

.winkt-btn--sun { --btn-bg: var(--sun); --btn-fg: var(--ink); }
.winkt-btn--white { --btn-bg: var(--white); --btn-fg: var(--ink); }
.winkt-btn--violet { --btn-bg: var(--violet-deep); --btn-fg: var(--white); }
.winkt-btn--ghost {
	--btn-bg: transparent; --btn-fg: var(--white); --btn-edge: var(--white);
	box-shadow: none;
}
.winkt-btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.12); box-shadow: none; }
.winkt-btn--sm { padding: 0.6em 1.15em; font-size: 0.9375rem; box-shadow: 0 3px 0 var(--btn-edge); }
.winkt-btn--sm:hover { box-shadow: 0 5px 0 var(--btn-edge); }

.winkt-link {
	font-weight: 700;
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--violet);
	text-decoration-thickness: 2px;
}

.winkt-chip {
	display: inline-block;
	padding: 0.2em 0.7em;
	border-radius: 999px;
	background: var(--ink);
	color: var(--white);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.5;
	vertical-align: 0.1em;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--plum);
	color: var(--white);
	--focus: var(--sun);
	transition: box-shadow 0.2s ease;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(20, 4, 50, 0.35); }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
}

.site-logo { flex: none; display: block; padding: 8px 0; }
.site-logo img { height: 74px; width: auto; }
.site-logo__text { font-family: var(--f-display); font-weight: 900; font-size: 1.5rem; color: var(--white); }

.site-nav { margin-left: auto; }
.winkt-menu {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.winkt-menu > li > a {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	color: var(--white);
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	border-radius: 999px;
}
.winkt-menu > li > a:not(.winkt-btn):hover,
.winkt-menu > li > a.is-current {
	background: rgba(255, 255, 255, 0.1);
	color: var(--white);
}
.winkt-menu .menu-home > a { padding: 10px 12px; }
.winkt-menu .menu-home svg { width: 22px; height: 22px; }
@media (min-width: 1081px) {
	.winkt-menu .menu-home .menu-label {
		position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
		overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
	}
}
.winkt-menu .menu-cta { margin-left: 10px; }
.winkt-menu .menu-cta > a.winkt-btn { padding: 0.6em 1.15em; border-color: var(--ink); color: var(--ink); }
.winkt-menu .menu-cta > a.winkt-btn:hover { background: var(--sun); color: var(--ink); }

/* Coming-soon tooltip */
a[data-tooltip] { cursor: help; }
.winkt-menu .menu-soon > a { color: rgba(255, 255, 255, 0.72); }
a[data-tooltip]::before,
a[data-tooltip]::after {
	position: absolute;
	left: 50%;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
	z-index: 5;
}
a[data-tooltip]::after {
	content: attr(data-tooltip);
	top: calc(100% + 12px);
	transform: translate(-50%, -4px);
	padding: 7px 14px;
	border: 2px solid var(--ink);
	border-radius: 14px;
	background: var(--sun);
	color: var(--ink);
	font-size: 0.875rem;
	font-weight: 700;
	white-space: nowrap;
}
a[data-tooltip]::before {
	content: "";
	top: calc(100% + 3px);
	width: 14px; height: 14px;
	margin-left: -7px;
	background: var(--sun);
	border-left: 2px solid var(--ink);
	border-top: 2px solid var(--ink);
	transform: translateY(-4px) rotate(45deg);
	z-index: 6;
}
a[data-tooltip]:hover::before,
a[data-tooltip]:hover::after,
a[data-tooltip]:focus-visible::before,
a[data-tooltip]:focus-visible::after,
a[data-tooltip].is-tip-open::before,
a[data-tooltip].is-tip-open::after { opacity: 1; }
a[data-tooltip]:hover::after,
a[data-tooltip]:focus-visible::after,
a[data-tooltip].is-tip-open::after { transform: translate(-50%, 0); }
a[data-tooltip]:hover::before,
a[data-tooltip]:focus-visible::before,
a[data-tooltip].is-tip-open::before { transform: translateY(0) rotate(45deg); }

.site-tools { display: flex; align-items: center; gap: 4px; }
.site-tool {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 44px; height: 44px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--white);
	cursor: pointer;
}
.site-tool:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.site-tool svg { width: 24px; height: 24px; }
.winkt-cart-count {
	position: absolute;
	top: 2px; right: 0;
	min-width: 20px; height: 20px;
	padding: 0 5px;
	border: 2px solid var(--plum);
	border-radius: 999px;
	background: var(--sun);
	color: var(--ink);
	font-size: 0.6875rem;
	font-weight: 800;
	line-height: 16px;
	text-align: center;
}
.winkt-cart-count.is-empty { display: none; }

.nav-toggle { display: none; }
.nav-toggle__close { display: none; }

@media (max-width: 1080px) {
	.site-header__inner { gap: 12px; }
	.nav-toggle { display: inline-grid; }
	.site-tools { margin-left: auto; }
	.site-nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
		background: var(--plum);
		border-top: 1px solid rgba(255, 255, 255, 0.12);
		padding: 12px var(--gutter) 28px;
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.winkt-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.winkt-menu > li > a { width: 100%; padding: 14px 12px; font-size: 1.125rem; border-radius: var(--r-sm); }
	.winkt-menu .menu-home svg { margin-right: 10px; }
	.winkt-menu .menu-cta { margin: 12px 0 0; }
	.winkt-menu .menu-cta > a.winkt-btn { justify-content: center; padding: 14px; }
	.winkt-menu .menu-soon > a::after { top: 50%; left: auto; right: 12px; transform: translateY(-50%); }
	.winkt-menu .menu-soon > a:hover::after,
	.winkt-menu .menu-soon > a.is-tip-open::after,
	.winkt-menu .menu-soon > a:focus-visible::after { transform: translateY(-50%); }
	.winkt-menu .menu-soon > a::before { display: none; }
}
@media (max-width: 520px) {
	:root { --header-h: 72px; }
	.site-logo img { height: 52px; }
	.site-tool { width: 40px; height: 40px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	overflow: hidden;
	background: var(--violet);
	color: var(--white);
	padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 9vw, 120px);
	--focus: var(--sun);
	isolation: isolate;
}
.hero::before {
	content: "\201C";
	position: absolute;
	right: 0.02em;
	bottom: -0.62em;
	z-index: -1;
	font-family: var(--f-display);
	font-weight: 900;
	font-size: clamp(22rem, 48vw, 46rem);
	line-height: 1;
	color: rgba(255, 255, 255, 0.07);
	pointer-events: none;
}
.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(40px, 6vw, 88px);
	align-items: center;
}
.hero__title {
	font-size: clamp(2.875rem, 6.6vw, 5.75rem);
	font-weight: 900;
	line-height: 0.98;
	letter-spacing: -0.025em;
	margin-bottom: 0.32em;
	text-wrap: balance;
}
.hero__text {
	font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
	line-height: 1.55;
	max-width: 36em;
	margin-bottom: 2em;
	color: rgba(255, 255, 255, 0.94);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* The talking bubble – the signature moment */
.talk { position: relative; padding-bottom: 88px; color: var(--ink); --focus: var(--violet-deep); }
.talk__say {
	position: relative;
	padding: clamp(28px, 3.6vw, 44px);
	background: var(--white);
	border: 4px solid var(--ink);
	border-radius: 44px;
	box-shadow: 10px 12px 0 rgba(27, 20, 100, 0.28);
	animation: talk-in 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) 0.15s both;
}
.talk__say::before,
.talk__say::after {
	content: "";
	position: absolute;
	left: 56px;
	top: 100%;
	clip-path: polygon(0 0, 100% 0, 0 100%);
}
.talk__say::before { width: 64px; height: 56px; margin-top: 0; background: var(--ink); }
.talk__say::after { width: 46px; height: 40px; margin-top: -1px; left: 60px; background: var(--white); }

.talk__phrase {
	margin: 0 0 0.4em;
	font-family: var(--f-display);
	font-style: italic;
	font-weight: 800;
	font-size: clamp(2rem, 3.8vw, 3.25rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
	transition: opacity 0.18s ease;
}
.talk__origin {
	display: grid;
	grid-template-rows: 1fr;
	transition: grid-template-rows 0.35s ease, opacity 0.3s ease;
}
.talk__origin > p { overflow: hidden; margin: 0 0 1.25em; font-size: 1.125rem; line-height: 1.55; color: var(--ink-soft); }
.js .talk.is-collapsed .talk__origin { grid-template-rows: 0fr; opacity: 0; }
.js .talk.is-collapsed .talk__origin > p { margin-bottom: 0; }
.talk.is-swapping .talk__phrase { opacity: 0; }

.talk__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 1.25em; }
.no-js .talk [data-talk-reveal],
html:not(.js) .talk [data-talk-reveal],
html:not(.js) .talk__next { display: none; }
.talk__next {
	padding: 6px 2px;
	border: 0;
	background: none;
	color: var(--ink);
	font: 700 0.9375rem var(--f-body);
	text-decoration: underline;
	text-decoration-color: var(--violet);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

.talk__reply {
	position: absolute;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 18px 28px;
	background: var(--sun);
	border: 4px solid var(--ink);
	border-radius: 999px;
	font-family: var(--f-display);
	font-weight: 900;
	font-size: clamp(1.25rem, 2.2vw, 1.75rem);
	letter-spacing: -0.01em;
	line-height: 1;
	white-space: nowrap;
	transform-origin: 85% 0;
	transition: transform 0.45s cubic-bezier(0.2, 1.5, 0.4, 1), opacity 0.2s ease;
}
.talk__reply::after {
	content: "";
	position: absolute;
	right: 48px;
	bottom: 100%;
	width: 30px; height: 26px;
	margin-bottom: -1px;
	background: var(--sun);
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
	box-shadow: none;
}
.talk__reply::before {
	content: "";
	position: absolute;
	right: 44px;
	bottom: 100%;
	width: 40px; height: 36px;
	margin-bottom: 2px;
	background: var(--ink);
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.js .talk.is-collapsed .talk__reply { opacity: 0; transform: scale(0.4) rotate(-6deg); }
.js .talk.is-revealed .talk__reply { opacity: 1; transform: rotate(-3deg); }

@keyframes talk-in {
	from { opacity: 0; transform: translateY(18px) scale(0.94) rotate(1.5deg); }
	to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Books
   ========================================================================== */
.books { background: var(--white); --focus: var(--violet-deep); padding-top: calc(var(--section) / 2); }
/* Book row runs edge to edge: 20px from each side of the window (--sbw = scrollbar width, set in main.js). */
.books .winkt-shelf {
	margin-left: calc(50% - 50vw + (var(--sbw, 0px) / 2) + 20px);
	margin-right: calc(50% - 50vw + (var(--sbw, 0px) / 2) + 20px);
}

.offer-ticket {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	align-items: center;
	margin: 0 0 clamp(36px, 5vw, 56px);
	padding: 16px 24px;
	background: var(--sun);
	border: var(--stroke) solid var(--ink);
	border-radius: var(--r-md);
	font-weight: 700;
	font-size: 1.0625rem;
}
.offer-ticket p { margin: 0; }
.offer-ticket p + p { padding-left: 24px; border-left: 2px dashed rgba(27, 20, 100, 0.4); }

.winkt-shelf {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: clamp(20px, 2.4vw, 32px);
}

.winkt-book { display: flex; flex-direction: column; }
.winkt-book__cover {
	position: relative;
	display: block;
	margin-bottom: 22px;
	border-radius: 4px 10px 10px 4px;
	box-shadow:
		0 1px 0 rgba(27, 20, 100, 0.2),
		0 18px 32px -14px rgba(27, 20, 100, 0.55),
		0 6px 10px -6px rgba(27, 20, 100, 0.35);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.winkt-book__cover img {
	width: 100%;
	aspect-ratio: 9 / 10;
	object-fit: cover;
	border-radius: 4px 10px 10px 4px;
}
.winkt-book__cover::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0, rgba(255, 255, 255, 0.18) 2.5%, rgba(0, 0, 0, 0) 6%, rgba(0, 0, 0, 0) 100%);
	pointer-events: none;
}
.winkt-book__cover:hover { transform: translateY(-6px); }
.winkt-book__badge {
	position: absolute;
	top: -14px; right: -12px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 66px; height: 66px;
	border: var(--stroke) solid var(--ink);
	border-radius: 50%;
	background: var(--tomato);
	color: var(--white);
	font-family: var(--f-display);
	font-weight: 900;
	font-size: 1rem;
	transform: rotate(-12deg);
}
.winkt-book__body { display: flex; flex-direction: column; flex: 1; }
.winkt-book__title { margin: 0 0 6px; font-size: 1.25rem; line-height: 1.15; }
.winkt-book__title a { color: var(--ink); text-decoration: none; }
.winkt-book__title a:hover { color: var(--violet-deep); }
.winkt-book__sub { margin: 0 0 12px; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-soft); }
.winkt-book__price { margin: auto 0 16px; font-size: 1.125rem; font-weight: 700; }
.winkt-book__price del,
.price del { color: var(--ink-soft); font-weight: 500; opacity: 0.8; margin-right: 6px; }
.winkt-book__price ins,
.price ins { color: var(--tomato); text-decoration: none; font-weight: 800; }
.winkt-book__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.winkt-book__actions .added_to_cart { font-weight: 700; color: var(--green); }
.winkt-book__actions .add_to_cart_button.loading { opacity: 0.7; pointer-events: none; }
.winkt-book__actions .add_to_cart_button.added::after { content: "\2713"; }
.winkt-book__oos { font-weight: 700; color: var(--ink-soft); }

.books__ebooks { margin: clamp(36px, 5vw, 56px) 0 0; color: var(--ink-soft); }

.inside { margin-top: clamp(48px, 6vw, 72px); }
.inside__title { font-size: 1.5rem; margin-bottom: 18px; }
.inside__strip {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	padding-bottom: 12px;
	scroll-snap-type: x mandatory;
}
.inside__pic { flex: none; scroll-snap-align: start; text-decoration: none; color: var(--ink-soft); font-size: 0.875rem; }
.inside__pic img { height: 260px; width: auto; border-radius: var(--r-sm); border: 2px solid var(--line); margin-bottom: 8px; }

/* ==========================================================================
   About
   ========================================================================== */
.about { background: var(--lilac); }
.about__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: 32px clamp(40px, 7vw, 104px);
	align-items: start;
}
.about__title { position: sticky; top: calc(var(--header-h) + 32px); margin: 0; font-size: clamp(2.25rem, 4.6vw, 3.75rem); text-wrap: balance; }
.winkt-prose { max-width: 64ch; }
.winkt-prose p { font-size: 1.125rem; line-height: 1.7; }
.about__text p:first-child {
	font-family: var(--f-display);
	font-weight: 500;
	font-size: clamp(1.25rem, 1.7vw, 1.375rem);
	line-height: 1.55;
	letter-spacing: -0.005em;
}
.winkt-prose > :last-child { margin-bottom: 0; }

/* ==========================================================================
   Vote
   ========================================================================== */
.vote { background: var(--plum); color: var(--white); --focus: var(--sun); overflow: hidden; }
.vote__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(40px, 6vw, 88px);
	align-items: center;
}
.vote__peter { position: relative; display: grid; justify-items: end; align-self: end; }
.vote__photo {
	width: min(100%, 420px);
	margin-right: -12px;
	margin-bottom: calc(var(--section) * -1);
	filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.dict {
	position: relative;
	z-index: 2;
	justify-self: start;
	max-width: 400px;
	margin-bottom: 44px;
	padding: 28px 32px 26px;
	background: var(--white);
	color: var(--ink);
	border: 4px solid var(--ink);
	border-radius: 36px;
	box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.25);
}
.dict::before,
.dict::after {
	content: "";
	position: absolute;
	right: 56px;
	top: 100%;
	clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.dict::before { width: 50px; height: 46px; background: var(--ink); }
.dict::after { width: 36px; height: 33px; right: 60px; margin-top: -1px; background: var(--white); }
.dict__word {
	margin: 0;
	font-family: var(--f-display);
	font-weight: 900;
	font-size: clamp(2.75rem, 5vw, 3.75rem);
	line-height: 1;
	letter-spacing: -0.03em;
}
.dict__gram { margin: 6px 0 12px; font-style: italic; color: var(--ink-soft); }
.dict__defs { margin: 0; padding-left: 1.3em; }
.dict__defs li { margin-bottom: 6px; padding-left: 4px; line-height: 1.45; }
.dict__defs li::marker { font-weight: 800; color: var(--violet-deep); }

.vote__body h2 { color: var(--white); text-wrap: balance; }
.vote__text { font-size: 1.125rem; color: #e1d5ff; max-width: 44ch; margin-bottom: 28px; }
.vote__form {
	padding: clamp(24px, 3vw, 36px);
	background: var(--white);
	color: var(--ink);
	border-radius: var(--r-lg);
	--focus: var(--violet-deep);
}

/* ---------- Contact Form 7 (theme-wide) ---------- */
.wpcf7 form > p,
.wpcf7 form .winkt-field { margin: 0 0 16px; }
.wpcf7 label { display: block; font-weight: 700; font-size: 0.9375rem; }
.wpcf7 br { display: none; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea,
.winkt-input {
	width: 100%;
	padding: 13px 16px;
	border: 2px solid var(--lilac-2);
	border-radius: 14px;
	background: var(--white);
	color: var(--ink);
	font: 500 1rem/1.4 var(--f-body);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wpcf7 input:hover,
.wpcf7 select:hover,
.wpcf7 textarea:hover { border-color: var(--violet-soft); }
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: var(--violet-deep);
	box-shadow: 0 0 0 4px rgba(153, 51, 255, 0.18);
}
.wpcf7 textarea { min-height: 130px; resize: vertical; }
.wpcf7 .wpcf7-submit { margin-top: 8px; font-size: 1.0625rem; padding: 0.9em 2em; }
.wpcf7 .wpcf7-submit:disabled { opacity: 0.6; cursor: wait; }
.wpcf7 .wpcf7-spinner { margin: 0 0 0 12px; vertical-align: middle; }
.wpcf7 .wpcf7-not-valid { border-color: var(--tomato); }
.wpcf7 .wpcf7-not-valid-tip { margin-top: 6px; color: var(--tomato); font-size: 0.875rem; font-weight: 600; }
.wpcf7 form .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 12px 16px;
	border: 2px solid var(--ink);
	border-radius: 14px;
	font-weight: 600;
}
.wpcf7 form.sent .wpcf7-response-output { background: var(--green-soft); border-color: var(--green); color: #0b5a3e; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { background: var(--red-soft); border-color: var(--tomato); color: #8a1c0e; }
.wpcf7 .wpcf7-list-item { margin: 0 12px 0 0; }
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] { accent-color: var(--violet-deep); width: 18px; height: 18px; vertical-align: -3px; }
.wpcf7 .cf-turnstile,
.wpcf7 .wpcf7-turnstile { margin: 4px 0 8px; }

/* Two-column pairs on wide screens (Town / Country) */
@media (min-width: 640px) {
	.vote__form .wpcf7 form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
	.vote__form .wpcf7 form > * { grid-column: 1 / -1; }
	.vote__form .wpcf7 form > p:has([name*="town" i]),
	.vote__form .wpcf7 form > p:has([name*="country" i]) { grid-column: auto; }
}

/* ==========================================================================
   Quiz
   ========================================================================== */
.quiz-section { background: var(--violet); color: var(--white); --focus: var(--sun); }
.quiz-section .section-head p { color: rgba(255, 255, 255, 0.92); }
.quiz-section .section-head p.quiz-kicker {
	display: inline-block;
	margin: 0 0 18px;
	padding: 8px 22px;
	border: 3px solid var(--ink);
	border-radius: 999px;
	background: var(--sun);
	color: var(--ink);
	font-family: var(--f-display);
	font-style: italic;
	font-weight: 800;
	font-size: 1.125rem;
	box-shadow: 0 4px 0 var(--ink);
	transform: rotate(-2deg);
}

.quiz { color: var(--ink); --focus: var(--violet-deep); }
.quiz__progress {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 14px;
	color: var(--white);
}
.quiz__count { margin: 0; font-weight: 700; }
.quiz__dots { display: flex; gap: 8px; }
.quiz__dot { width: 28px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.3); }
.quiz__dot.is-done { background: var(--white); }
.quiz__dot.is-now { background: var(--sun); }

.quiz__card {
	margin: 0;
	padding: clamp(24px, 4vw, 44px);
	min-width: 0;
	background: var(--white);
	border: 4px solid var(--ink);
	border-radius: 36px;
	box-shadow: 10px 12px 0 rgba(27, 20, 100, 0.3);
}
.quiz__q {
	float: left;
	width: 100%;
	padding: 0;
	margin: 0 0 24px;
	font-family: var(--f-display);
	font-weight: 800;
	font-size: clamp(1.5rem, 3vw, 2.125rem);
	line-height: 1.15;
	letter-spacing: -0.015em;
	text-wrap: balance;
}
.quiz__options {
	clear: both;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.quiz__opt {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 14px 16px;
	border: 2px solid var(--lilac-2);
	border-radius: 18px;
	background: var(--white);
	color: var(--ink);
	font: 600 1.0625rem/1.35 var(--f-body);
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.quiz__opt:hover:not(:disabled) { border-color: var(--violet); background: var(--lilac); }
.quiz__opt:disabled { cursor: default; }
.quiz__letter {
	flex: none;
	display: grid;
	place-items: center;
	width: 36px; height: 36px;
	border-radius: 50%;
	background: var(--lilac);
	color: var(--violet-deep);
	font-weight: 800;
}
.quiz__opt.is-right { border-color: var(--green); background: var(--green-soft); }
.quiz__opt.is-right .quiz__letter { background: var(--green); color: var(--white); }
.quiz__opt.is-wrong { border-color: var(--tomato); background: var(--red-soft); }
.quiz__opt.is-wrong .quiz__letter { background: var(--tomato); color: var(--white); }
.quiz__opt:disabled:not(.is-right):not(.is-wrong) { opacity: 0.55; }

.quiz__feedback:not(:empty) {
	margin-top: 24px;
	padding-top: 22px;
	border-top: 2px dashed var(--lilac-2);
}
.quiz__verdict { margin: 0 0 6px; font-family: var(--f-display); font-weight: 800; font-size: 1.375rem; }
.quiz__verdict.is-right { color: var(--green); }
.quiz__verdict.is-wrong { color: var(--tomato); }
.quiz__why { font-size: 1.0625rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: 20px; }

.quiz__result { text-align: center; }
.quiz__score { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 2rem; color: var(--ink-soft); }
.quiz__score span { font-size: 5.5rem; line-height: 1; color: var(--violet-deep); letter-spacing: -0.04em; }
.quiz__msg { font-size: 1.25rem; font-weight: 600; margin: 8px auto 28px; max-width: 30ch; }
.quiz__end { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* no-JS fallback list */
.quiz__static { margin: 0; padding: 28px 28px 28px 52px; background: var(--white); border-radius: var(--r-lg); color: var(--ink); }
.quiz__static > li { margin-bottom: 24px; }
.quiz__static .quiz__q { float: none; font-size: 1.25rem; margin-bottom: 8px; }
.quiz__static summary { cursor: pointer; font-weight: 700; color: var(--violet-deep); }

/* ==========================================================================
   SWF word game + YouTube
   ========================================================================== */
.play { background: var(--lilac); }
.play__stage {
	max-width: 880px;
	margin: 0 auto;
	padding: 12px;
	background: var(--ink);
	border-radius: var(--r-lg);
}
.play__stage embed,
.play__stage ruffle-embed,
.play__stage ruffle-player { width: 100%; aspect-ratio: 4 / 3; height: auto; border-radius: 22px; overflow: hidden; }

.yt-band { background: var(--tomato); color: var(--white); padding: clamp(40px, 6vw, 64px) 0; --focus: var(--sun); }
.yt-band__inner { display: flex; align-items: center; gap: 24px 32px; flex-wrap: wrap; }
.yt-band__icon { flex: none; width: 64px; height: 64px; color: var(--white); }
.yt-band__icon svg { width: 100%; height: 100%; }
.yt-band__copy { flex: 1 1 380px; }
.yt-band__copy h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); margin-bottom: 0.2em; }
.yt-band__copy p { margin: 0; font-size: 1.125rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: var(--plum);
	color: #e1d5ff;
	padding: clamp(64px, 8vw, 96px) 0 0;
	--focus: var(--sun);
}
.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr) minmax(0, 0.8fr);
	gap: 40px clamp(32px, 6vw, 80px);
	align-items: start;
	padding-bottom: 56px;
}
.site-footer__title { color: var(--white); font-size: clamp(1.4rem, 2.8vw, 2.1rem); margin-bottom: 0.6em; }
.site-footer__contact p { max-width: 46ch; font-size: 1.0625rem; }
.site-footer__reach {
	display: flex;
	align-items: center;
	gap: 10px;
	width: fit-content;
	margin-top: 10px;
	color: var(--sun);
	font-family: var(--f-display);
	font-weight: 800;
	font-size: 1.125rem;
	text-decoration: none;
	word-break: break-word;
}
.site-footer__reach svg { width: 22px; height: 22px; flex: none; }
.site-footer__reach:hover { color: var(--white); }
.site-footer__reach:hover span { text-decoration: underline; }
.site-footer__links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__links a { color: var(--white); text-decoration: none; font-weight: 600; }
.site-footer__links a:hover { color: var(--sun); text-decoration: underline; }
.site-footer__base { padding-bottom: 28px; font-size: 0.875rem; }
.site-footer__base p { margin: 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-band {
	background: var(--violet);
	color: var(--white);
	padding: clamp(40px, 6vw, 72px) 0;
	--focus: var(--sun);
}
.page-band__title { margin: 0; font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 900; }
.page-band .winkt-crumbs { margin-bottom: 10px; }
.page-band .winkt-crumbs,
.page-band .winkt-crumbs a { color: rgba(255, 255, 255, 0.9); }
.page-body { padding-top: clamp(40px, 6vw, 72px); padding-bottom: var(--section); }
.page-content > *:first-child { margin-top: 0; }
.entry + .entry { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.entry__title { font-size: 1.75rem; }
.entry__title a { color: var(--ink); text-decoration: none; }

.not-found { padding: var(--section) 0; text-align: center; }
.not-found__bubble {
	display: inline-block;
	margin-bottom: 24px;
	padding: 14px 28px;
	border: 4px solid var(--ink);
	border-radius: 999px;
	background: var(--sun);
	font-family: var(--f-display);
	font-style: italic;
	font-weight: 900;
	font-size: 1.75rem;
}
.not-found p { max-width: 50ch; margin: 0 auto 28px; color: var(--ink-soft); }

/* ==========================================================================
   Offer popup
   ========================================================================== */
.offer-pop {
	width: min(560px, calc(100% - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ink);
	overflow: visible;
	--focus: var(--violet-deep);
}
.offer-pop::backdrop { background: rgba(43, 10, 99, 0.72); backdrop-filter: blur(3px); }
.offer-pop[open] { animation: pop-in 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.offer-pop[open]::backdrop { animation: fade-in 0.3s ease both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(24px) scale(0.92) rotate(1.5deg); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.offer-pop__card {
	position: relative;
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	background: var(--white);
	border: 4px solid var(--ink);
	border-radius: 36px;
	box-shadow: 10px 12px 0 rgba(27, 20, 100, 0.45);
}
.offer-pop__card:focus { outline: none; }
.offer-pop__close {
	position: absolute;
	top: 14px; right: 14px;
	z-index: 3;
	display: grid; place-items: center;
	width: 40px; height: 40px;
	border: 2px solid var(--ink);
	border-radius: 50%;
	background: var(--white);
	color: var(--ink);
	cursor: pointer;
}
.offer-pop__close svg { width: 20px; height: 20px; }
.offer-pop__close:hover { background: var(--sun); }

.offer-pop__shelf {
	position: relative;
	padding: 36px 24px 26px;
	background: var(--violet);
	border-bottom: 4px solid var(--ink);
	border-radius: 32px 32px 0 0;
	overflow: hidden;
}
.offer-pop__fan {
	display: flex;
	justify-content: center;
	padding: 0 24px;
}
.offer-pop__fan img {
	width: 104px;
	aspect-ratio: 9 / 10;
	object-fit: cover;
	margin: 0 -12px;
	border-radius: 3px 8px 8px 3px;
	box-shadow: 0 14px 22px -10px rgba(20, 4, 50, 0.7), 0 2px 0 rgba(20, 4, 50, 0.25);
	transform: rotate(calc((var(--i) - (var(--n) - 1) / 2) * 6deg)) translateY(calc(max(var(--i) - (var(--n) - 1) / 2, (var(--n) - 1) / 2 - var(--i)) * 7px));
}
.offer-pop__badge {
	position: absolute;
	left: 18px; bottom: 16px;
	z-index: 2;
	display: grid; place-items: center; align-content: center;
	width: 84px; height: 84px;
	margin: 0;
	border: var(--stroke) solid var(--ink);
	border-radius: 50%;
	background: var(--tomato);
	color: var(--white);
	font-family: var(--f-display);
	font-weight: 900;
	font-size: 1.5rem;
	line-height: 0.95;
	text-align: center;
	transform: rotate(-12deg);
}
.offer-pop__badge span { display: block; font-size: 0.8125rem; font-weight: 800; }

.offer-pop__body { padding: 26px clamp(22px, 5vw, 40px) 32px; text-align: center; }
.offer-pop__title { font-size: clamp(1.75rem, 5vw, 2.25rem); font-weight: 900; margin-bottom: 0.4em; text-wrap: balance; }
.offer-pop__text { font-size: 1.125rem; line-height: 1.55; color: var(--ink-soft); margin: 0 auto 24px; max-width: 42ch; }
.offer-pop__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.offer-pop__actions .winkt-btn { font-size: 1.125rem; padding: 0.9em 2.2em; }
.offer-pop__later {
	border: 0;
	background: none;
	color: var(--ink-soft);
	font: 600 0.9375rem var(--f-body);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}
.offer-pop__later:hover { color: var(--ink); }

@media (max-width: 560px) {
	.offer-pop__shelf { padding: 28px 12px 22px; }
	.offer-pop__fan { padding: 0; }
	.offer-pop__fan img { width: 68px; margin: 0 -9px; }
	.offer-pop__badge { width: 66px; height: 66px; font-size: 1.125rem; left: 10px; bottom: 10px; }
	.offer-pop__badge span { font-size: 0.6875rem; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
	.winkt-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.winkt-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.hero__grid,
	.about__grid,
	.vote__grid,
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.section-head--split { grid-template-columns: minmax(0, 1fr); align-items: start; }
	.talk { max-width: 560px; }
	.about__title { position: static; }
	.vote__peter { justify-items: center; order: 2; }
	.vote__photo { margin-right: 0; max-width: 340px; }
	.dict { justify-self: center; }
}
@media (max-width: 560px) {
	body { font-size: 1rem; }
	.hero__actions .winkt-btn { flex: 1 1 auto; }
	.winkt-shelf { gap: 36px 16px; }
	.winkt-book__title { font-size: 1.125rem; }
	.winkt-book__sub { display: none; }
	.winkt-book__badge { width: 52px; height: 52px; font-size: 0.8125rem; right: -6px; }
	.winkt-book__actions .winkt-btn { width: 100%; }
	.offer-ticket p + p { padding-left: 0; border-left: 0; }
	.quiz__options { grid-template-columns: 1fr; }
	.talk { padding-bottom: 80px; }
	.talk__say { border-radius: 32px; }
	.talk__reply { padding: 14px 20px; }
}
@media (max-width: 380px) {
	.winkt-shelf { grid-template-columns: minmax(0, 1fr); }
}

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