/* Kerry Putman Author Theme — Global & Editor Styles */

/* ── Text rendering ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
	text-wrap: balance;
}
p {
	text-wrap: pretty;
}

/* ── Selection ──────────────────────────────────────────────────────────────── */
::selection {
	background: #e7c9bd;
	color: #2b2521;
}

/* ── Active nav link ────────────────────────────────────────────────────────── */
.wp-block-navigation .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation-item.current-page-ancestor > .wp-block-navigation-item__content {
	color: #b5705c !important;
}

/* ── Newsletter pill nav item ───────────────────────────────────────────────── */
.kp-nav-pill .wp-block-navigation-item__content {
	display: inline-block;
	padding: 9px 18px;
	border: 1px solid rgba(46,40,35,0.35);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	text-decoration: none !important;
	color: #2b2521;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.kp-nav-pill .wp-block-navigation-item__content:hover {
	background: #2b2521;
	color: #faf6f1;
	border-color: #2b2521;
}

/* ── Eyebrow label ──────────────────────────────────────────────────────────── */
.kp-eyebrow {
	display: block;
	font-family: 'Hanken Grotesk', system-ui, sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	color: #9a8d7e;
	margin-bottom: 14px;
}
.kp-eyebrow--on-dark {
	color: #d99e87;
}

/* ── Filled clay button ─────────────────────────────────────────────────────── */
.kp-btn-clay,
.wp-block-button__link.kp-btn-clay {
	background: #b5705c;
	color: #faf6f1 !important;
	border-radius: 999px;
	font-family: 'Hanken Grotesk', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.3px;
	padding: 13px 28px;
	text-decoration: none !important;
	border: none;
	transition: background 0.18s ease;
	display: inline-block;
}
.kp-btn-clay:hover,
.wp-block-button__link.kp-btn-clay:hover {
	background: #a25f4c;
}

/* ── Text link with underline ───────────────────────────────────────────────── */
.kp-link-underline {
	color: #b5705c;
	text-decoration: underline;
	font-weight: 500;
	font-size: inherit;
}
.kp-link-underline:hover {
	color: #a25f4c;
}

/* ── Progress bar ───────────────────────────────────────────────────────────── */
.kp-progress-track {
	width: 100%;
	height: 6px;
	background: #ece1d2;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 10px;
}
.kp-progress-fill {
	height: 100%;
	background: #b5705c;
	border-radius: 999px;
}
.kp-progress-label {
	font-family: 'Hanken Grotesk', system-ui, sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	color: #9a8d7e;
	letter-spacing: 0.5px;
}

/* ── Quick facts panel ──────────────────────────────────────────────────────── */
.kp-quick-facts {
	background: #f2e9dd;
	border-radius: 14px;
	padding: 28px 32px;
}
.kp-quick-facts__title {
	font-family: 'Hanken Grotesk', system-ui, sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	color: #9a8d7e;
	margin-bottom: 18px;
}
.kp-quick-facts__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.kp-quick-facts__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 13px 0;
	border-top: 1px solid rgba(46,40,35,0.10);
	font-family: 'Hanken Grotesk', system-ui, sans-serif;
	font-size: 15px;
	color: #5f564d;
	line-height: 1.5;
}
.kp-quick-facts__item:first-child {
	border-top: none;
	padding-top: 0;
}
.kp-quick-facts__dot {
	color: #b5705c;
	font-size: 10px;
	margin-top: 5px;
	flex-shrink: 0;
}

/* ── Dark CTA band ──────────────────────────────────────────────────────────── */
.kp-cta-band {
	background: #2b2521;
	padding: 48px var(--wp--preset--spacing--page-x, clamp(28px,5vw,72px));
}
.kp-cta-band__inner {
	max-width: 1180px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}
.kp-cta-band__headline {
	font-family: Newsreader, Georgia, serif;
	font-size: clamp(20px, 2.4vw, 26px);
	font-style: italic;
	font-weight: 400;
	color: #f3ece2;
	margin: 0 0 6px;
	line-height: 1.2;
}
.kp-cta-band__sub {
	font-family: 'Hanken Grotesk', system-ui, sans-serif;
	font-size: 15px;
	color: #c2b6a8;
	margin: 0;
}
.kp-cta-band__btn {
	background: transparent;
	color: #f3ece2 !important;
	border: 1px solid rgba(243,236,226,0.45);
	border-radius: 999px;
	font-family: 'Hanken Grotesk', system-ui, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 12px 26px;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background 0.18s ease, border-color 0.18s ease;
	display: inline-block;
}
.kp-cta-band__btn:hover {
	background: rgba(243,236,226,0.12);
	border-color: rgba(243,236,226,0.7);
}

/* ── Newsletter inline form ─────────────────────────────────────────────────── */
.kp-nl-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.kp-nl-form label {
	font-family: 'Hanken Grotesk', system-ui, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #9a8d7e;
	display: block;
	margin-bottom: 6px;
}
.kp-nl-form input[type="text"],
.kp-nl-form input[type="email"] {
	width: 100%;
	background: #fbf8f3;
	border: 1px solid rgba(46,40,35,0.18);
	border-radius: 10px;
	padding: 13px 16px;
	font-family: 'Hanken Grotesk', system-ui, sans-serif;
	font-size: 15px;
	color: #2b2521;
	box-sizing: border-box;
	transition: border-color 0.15s ease;
}
.kp-nl-form input[type="text"]:focus,
.kp-nl-form input[type="email"]:focus {
	outline: none;
	border-color: #b5705c;
}
.kp-nl-form__reassurance {
	font-family: 'Hanken Grotesk', system-ui, sans-serif;
	font-size: 12px;
	color: #9a8d7e;
	margin-top: 4px;
}

/* ── Book cover placeholder ─────────────────────────────────────────────────── */
.kp-cover-placeholder {
	background: #e9dccd
		repeating-linear-gradient(135deg, rgba(150,120,95,0.18) 0 1.5px, transparent 1.5px 13px);
	border-radius: 8px;
	aspect-ratio: 3/4;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ── Photo placeholder ──────────────────────────────────────────────────────── */
.kp-photo-placeholder {
	background: #efe6db
		repeating-linear-gradient(135deg, rgba(150,120,95,0.14) 0 1.5px, transparent 1.5px 13px);
	border-radius: 6px;
	aspect-ratio: 4/5;
	border: 1px solid rgba(46,40,35,0.08);
}

/* ── Section hairline ───────────────────────────────────────────────────────── */
.kp-hairline-top    { border-top:    1px solid rgba(46,40,35,0.10); }
.kp-hairline-bottom { border-bottom: 1px solid rgba(46,40,35,0.10); }

/* ── Editorial index number ─────────────────────────────────────────────────── */
.kp-index-num {
	font-family: Newsreader, Georgia, serif;
	font-style: italic;
	font-size: clamp(20px, 2.5vw, 28px);
	color: #b5705c;
	font-weight: 400;
}

/* ── Connect elsewhere row ──────────────────────────────────────────────────── */
.kp-elsewhere-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 0;
	border-top: 1px solid rgba(46,40,35,0.10);
	text-decoration: none;
	transition: background 0.15s ease;
}
.kp-elsewhere-row:first-child { border-top: none; }
.kp-elsewhere-row:hover { opacity: 0.8; }
.kp-elsewhere-title {
	font-family: Newsreader, Georgia, serif;
	font-size: 22px;
	font-weight: 400;
	color: #2b2521;
	margin-bottom: 2px;
}
.kp-elsewhere-desc {
	font-family: 'Hanken Grotesk', system-ui, sans-serif;
	font-size: 14px;
	color: #9a8d7e;
}
.kp-elsewhere-arrow {
	color: #b5705c;
	font-size: 20px;
	flex-shrink: 0;
}

/* ── Pull-quote card ────────────────────────────────────────────────────────── */
.kp-pull-quote {
	background: #f2e9dd;
	border-radius: 14px;
	padding: 32px 36px;
}
.kp-pull-quote__text {
	font-family: Newsreader, Georgia, serif;
	font-style: italic;
	font-size: 19px;
	line-height: 1.5;
	color: #5f564d;
	margin-bottom: 16px;
}
.kp-pull-quote__attr {
	font-family: 'Hanken Grotesk', system-ui, sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	color: #9a8d7e;
	letter-spacing: 1px;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 782px) {
	/* Stack all two-column Groups/Columns */
	.wp-block-columns {
		flex-direction: column !important;
	}
	.wp-block-column {
		flex-basis: 100% !important;
		min-width: 0 !important;
	}
	/* CTA band */
	.kp-cta-band__inner {
		flex-direction: column;
		text-align: center;
	}
	/* Cover grid */
	.kp-books-grid {
		grid-template-columns: 1fr 1fr !important;
	}
}
@media (max-width: 480px) {
	.kp-books-grid {
		grid-template-columns: 1fr !important;
	}
}
