:root {
	--wdt-bg: #fffaf2;
	--wdt-surface: #ffffff;
	--wdt-text: #26241f;
	--wdt-muted: #756f65;
	--wdt-border: #e9dfd0;
	--wdt-accent: #f2b84b;
	--wdt-accent-soft: #fff1c9;
	--wdt-accent-deep: #8b5a00;
	--wdt-shadow: 0 8px 24px rgba(55, 44, 23, .06);
	--wdt-radius: 14px;
	--wdt-container: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.wdt-theme {
	margin: 0;
	background: var(--wdt-bg);
	color: var(--wdt-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body.wdt-theme a { color: inherit; text-decoration: none; }
body.wdt-theme img { max-width: 100%; height: auto; }
body.wdt-theme button,
body.wdt-theme input,
body.wdt-theme textarea { font: inherit; }

.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;
}

.wdt-container {
	width: min(calc(100% - 32px), var(--wdt-container));
	margin-inline: auto;
}

/* Header */
.wdt-header {
	position: relative;
	z-index: 20;
	background: rgba(255,255,255,.96);
	border-bottom: 1px solid var(--wdt-border);
}

.wdt-header-inner {
	min-height: 68px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.wdt-brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-weight: 800;
	font-size: 20px;
	letter-spacing: -.35px;
	white-space: nowrap;
}

.wdt-brand-mark {
	width: 32px;
	height: 32px;
	display: inline-grid;
	place-items: center;
	border: 2px solid var(--wdt-text);
	border-radius: 50%;
	background: var(--wdt-accent);
	font-size: 19px;
	line-height: 1;
}

.wdt-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.wdt-menu li { position: relative; }
.wdt-menu a {
	display: inline-block;
	padding: 8px 10px;
	border-radius: 9px;
	font-size: 13px;
	font-weight: 650;
	color: #4c483f;
}
.wdt-menu a:hover,
.wdt-menu .current-menu-item > a,
.wdt-menu .current-cat > a { background: var(--wdt-accent-soft); color: var(--wdt-accent-deep); }

.wdt-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 180px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--wdt-border);
	border-radius: 12px;
	box-shadow: var(--wdt-shadow);
}
.wdt-menu li:hover > .sub-menu,
.wdt-menu li:focus-within > .sub-menu { display: block; }

/* Hero */
.wdt-hero {
	border-bottom: 1px solid var(--wdt-border);
	background:
		radial-gradient(circle at 10% 15%, rgba(242,184,75,.17) 0 3px, transparent 4px),
		radial-gradient(circle at 90% 75%, rgba(38,36,31,.08) 0 2px, transparent 3px),
		#fffdf8;
	background-size: 42px 42px, 54px 54px, auto;
}

.wdt-hero-inner {
	min-height: 190px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding-block: 44px;
}

.wdt-eyebrow {
	margin: 0 0 7px;
	font-size: 11px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wdt-accent-deep);
}

.wdt-hero h1,
.wdt-section-head h1 {
	margin: 0;
	font-size: clamp(27px, 4vw, 42px);
	line-height: 1.08;
	letter-spacing: -.7px;
}

.wdt-hero p:not(.wdt-eyebrow),
.wdt-section-head > p:not(.wdt-eyebrow) {
	margin: 10px 0 0;
	color: var(--wdt-muted);
	font-size: 14px;
}

.wdt-random-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 14px;
	border: 1px solid #dca12d;
	border-radius: 10px;
	background: var(--wdt-accent);
	font-size: 13px;
	font-weight: 800;
	white-space: nowrap;
	box-shadow: 0 3px 0 rgba(139,90,0,.18);
	transition: transform .15s ease, box-shadow .15s ease;
}
.wdt-random-button:hover { transform: translateY(-1px); box-shadow: 0 4px 0 rgba(139,90,0,.18); }

/* Archives + joke cards */
.wdt-archive { padding-block: 34px 56px; }
.wdt-home-list { padding-top: 30px; }
.wdt-section-head { margin-bottom: 24px; max-width: 720px; }
.wdt-section-head h2 { margin: 0; font-size: 22px; letter-spacing: -.3px; }
.wdt-compact-head { margin-bottom: 17px; }
.wdt-term-description { margin-top: 10px; color: var(--wdt-muted); font-size: 14px; }
.wdt-term-description p { margin: 0; }

.wdt-card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.wdt-joke-card {
	position: relative;
	min-width: 0;
	padding: 15px 16px 14px;
	background: var(--wdt-surface);
	border: 1px solid var(--wdt-border);
	border-radius: var(--wdt-radius);
	box-shadow: var(--wdt-shadow);
	overflow: hidden;
	transition: border-color .15s ease, transform .15s ease;
}

.wdt-joke-card::after {
	content: "";
	position: absolute;
	right: 15px;
	bottom: -7px;
	width: 13px;
	height: 13px;
	background: #fff;
	border-right: 1px solid var(--wdt-border);
	border-bottom: 1px solid var(--wdt-border);
	transform: rotate(45deg);
}

.wdt-joke-card:hover {
	transform: translateY(-1px);
	border-color: #dcc9a9;
}

.wdt-card-topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 7px;
	color: #b3aa9e;
	font-size: 11px;
}
.wdt-smile { color: var(--wdt-accent-deep); font-size: 16px; line-height: 1; }
.wdt-dots { letter-spacing: 2px; }

.wdt-category-pill {
	display: inline-block;
	max-width: 100%;
	margin-bottom: 7px;
	padding: 3px 7px;
	background: var(--wdt-accent-soft);
	border-radius: 999px;
	color: var(--wdt-accent-deep) !important;
	font-size: 10px;
	line-height: 1.4;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.wdt-card-title {
	margin: 0 0 7px;
	font-size: 16px;
	line-height: 1.25;
	letter-spacing: -.15px;
}
.wdt-card-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.wdt-card-excerpt {
	margin: 0;
	color: #5e594f;
	font-size: 13px;
	line-height: 1.52;
}

.wdt-read-more {
	display: inline-block;
	margin-top: 9px;
	font-size: 11px;
	font-weight: 800;
	color: var(--wdt-accent-deep) !important;
}

.wdt-pagination {
	margin-top: 26px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.wdt-pagination > div:last-child { text-align: right; }
.wdt-pagination a {
	display: inline-block;
	padding: 9px 12px;
	background: #fff;
	border: 1px solid var(--wdt-border);
	border-radius: 9px;
	font-size: 12px;
	font-weight: 750;
}


/* Voice ad-slot compatibility */
.vce-ad-container {
	width: min(calc(100% - 32px), var(--wdt-container));
	margin: 18px auto;
	text-align: center;
	overflow: hidden;
}
.vce-ad-container img,
.vce-ad-container iframe { max-width: 100%; }

/* Search */
.wdt-search-form {
	display: flex;
	gap: 8px;
	max-width: 480px;
	margin-top: 15px;
}
.wdt-search-form input {
	min-width: 0;
	flex: 1;
	padding: 10px 12px;
	border: 1px solid var(--wdt-border);
	border-radius: 9px;
	background: #fff;
	color: var(--wdt-text);
	outline: none;
}
.wdt-search-form input:focus { border-color: #cda34f; box-shadow: 0 0 0 3px rgba(242,184,75,.16); }
.wdt-search-form button {
	border: 0;
	border-radius: 9px;
	padding: 10px 13px;
	background: var(--wdt-text);
	color: #fff;
	font-weight: 750;
	cursor: pointer;
}

/* Single joke */
.wdt-single-wrap { max-width: 800px; padding-block: 40px 64px; }
.wdt-single-joke { margin: 0; }
.wdt-single-header { text-align: center; margin-bottom: 19px; }
.wdt-joke-label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 10px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--wdt-accent-deep);
}
.wdt-single-header .wdt-category-pill { display: table; margin: 0 auto 9px; }
.wdt-single-header h1 {
	max-width: 690px;
	margin: 0 auto;
	font-size: clamp(25px, 4.5vw, 38px);
	line-height: 1.15;
	letter-spacing: -.55px;
}

.wdt-joke-paper {
	position: relative;
	padding: clamp(24px, 5vw, 46px);
	background: #fff;
	border: 1px solid var(--wdt-border);
	border-radius: 18px;
	box-shadow: var(--wdt-shadow);
	overflow: hidden;
}
.wdt-joke-paper::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 6px;
	height: 100%;
	background: var(--wdt-accent);
}
.wdt-quote-mark {
	position: absolute;
	right: 22px;
	top: 5px;
	font: 700 78px/1 Georgia, serif;
	color: rgba(242,184,75,.24);
}
.wdt-paper-smile {
	position: absolute;
	right: 20px;
	bottom: 15px;
	font-size: 16px;
	color: #c3b8a6;
}
.wdt-single-content {
	position: relative;
	z-index: 1;
	font-size: 18px;
	line-height: 1.75;
	word-break: break-word;
}
.wdt-single-content > *:first-child { margin-top: 0; }
.wdt-single-content > *:last-child { margin-bottom: 0; }
.wdt-single-content p { margin: 0 0 1em; }
.wdt-single-content a { color: var(--wdt-accent-deep) !important; text-decoration: underline; }
.wdt-single-content img,
.wdt-single-content figure.wp-block-image,
.wdt-single-content .wp-caption { display: none !important; }

.wdt-tags { margin-top: 15px; font-size: 11px; color: var(--wdt-muted); }
.wdt-tags span { font-weight: 800; color: var(--wdt-text); }
.wdt-tags a { text-decoration: underline; text-underline-offset: 2px; }

.wdt-post-nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
}
.wdt-post-nav a { font-size: 12px; font-weight: 750; }
.wdt-next { text-align: right; }
.wdt-random-small { padding: 8px 10px; font-size: 11px !important; }

/* Pages and comments */
.wdt-page-wrap { max-width: 820px; padding-block: 42px 64px; }
.wdt-page {
	padding: 28px;
	background: #fff;
	border: 1px solid var(--wdt-border);
	border-radius: var(--wdt-radius);
	box-shadow: var(--wdt-shadow);
}
.wdt-page h1 { margin-top: 0; font-size: 30px; }
.wdt-page-content { font-size: 15px; }
.wdt-page-content a { color: var(--wdt-accent-deep) !important; text-decoration: underline; }

.wdt-comments {
	margin-top: 28px;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--wdt-border);
	border-radius: var(--wdt-radius);
}
.wdt-comments h2, .wdt-comments h3 { font-size: 18px; margin-top: 0; }
.wdt-comment-list { padding-left: 22px; }
.wdt-comments textarea,
.wdt-comments input[type="text"],
.wdt-comments input[type="email"],
.wdt-comments input[type="url"] {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid var(--wdt-border);
	border-radius: 8px;
}
.wdt-comments input[type="submit"] {
	border: 0;
	border-radius: 8px;
	padding: 9px 12px;
	background: var(--wdt-text);
	color: #fff;
	font-weight: 750;
	cursor: pointer;
}

/* Empty + 404 */
.wdt-empty {
	padding: 38px 22px;
	text-align: center;
	background: #fff;
	border: 1px dashed #d8c7a9;
	border-radius: var(--wdt-radius);
}
.wdt-empty > span { display: block; margin-bottom: 8px; font-size: 24px; }
.wdt-empty h1, .wdt-empty h2 { margin: 0 0 8px; }
.wdt-empty p { color: var(--wdt-muted); }
.wdt-empty .wdt-search-form { margin-inline: auto; }
.wdt-not-found { padding-block: 70px; }
.wdt-404-face { font-size: 34px !important; }
.wdt-404-actions { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.wdt-secondary-button { background: #fff; border-color: var(--wdt-border); box-shadow: none; }

/* Footer */
.wdt-footer {
	margin-top: 16px;
	background: #27251f;
	color: #ece7dd;
}
.wdt-footer-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 28px;
	align-items: center;
	padding-block: 30px 22px;
}
.wdt-footer-brand { font-size: 17px; font-weight: 850; }
.wdt-footer-copy { max-width: 440px; margin: 7px 0 0; color: #bbb4a8; font-size: 12px; }
.wdt-footer-nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px 14px; }
.wdt-footer-nav a { color: #ddd5c8 !important; font-size: 12px; }
.wdt-footer-nav a:hover { color: #fff !important; text-decoration: underline; }
.wdt-copyright {
	padding-block: 13px 20px;
	border-top: 1px solid rgba(255,255,255,.08);
	font-size: 10px;
	color: #968f84;
}

/* Focus */
body.wdt-theme a:focus-visible,
body.wdt-theme button:focus-visible,
body.wdt-theme input:focus-visible,
body.wdt-theme textarea:focus-visible {
	outline: 3px solid rgba(242,184,75,.55);
	outline-offset: 2px;
}

@media (max-width: 760px) {
	.wdt-header-inner { min-height: auto; padding-block: 13px; align-items: flex-start; flex-direction: column; gap: 10px; }
	.wdt-brand { font-size: 18px; }
	.wdt-brand-mark { width: 29px; height: 29px; font-size: 17px; }
	.wdt-nav { width: 100%; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
	.wdt-menu { width: max-content; min-width: 100%; flex-wrap: nowrap; justify-content: flex-start; }
	.wdt-menu a { padding: 7px 9px; font-size: 12px; }
	.wdt-menu .sub-menu { display: none !important; }

	.wdt-hero-inner { min-height: auto; padding-block: 32px; align-items: flex-start; flex-direction: column; }
	.wdt-card-grid { grid-template-columns: 1fr; gap: 11px; }
	.wdt-joke-card { padding: 14px; }
	.wdt-card-title { font-size: 15px; }
	.wdt-card-excerpt { font-size: 12.5px; }
	.wdt-single-wrap { padding-block: 30px 48px; }
	.wdt-joke-paper { border-radius: 14px; }
	.wdt-single-content { font-size: 17px; }
	.wdt-post-nav { grid-template-columns: 1fr 1fr; }
	.wdt-post-nav .wdt-random-small { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
	.wdt-footer-grid { grid-template-columns: 1fr; gap: 18px; }
	.wdt-footer-nav { justify-content: flex-start; }
}

@media (max-width: 430px) {
	.wdt-container { width: min(calc(100% - 22px), var(--wdt-container)); }
	.wdt-archive { padding-block: 26px 42px; }
	.wdt-hero h1, .wdt-section-head h1 { font-size: 28px; }
	.wdt-pagination { grid-template-columns: 1fr; }
	.wdt-pagination > div:last-child { text-align: left; }
	.wdt-search-form { flex-direction: column; }
	.wdt-search-form button { width: 100%; }
	.wdt-page { padding: 20px; }
}
