/**
 * Koku — editorial-cartoon styles.
 *
 * Tokens come from theme.json (--wp--preset--*, --wp--custom--*).
 * The short aliases below keep the decoration rules readable.
 */

:root {
	--koku-ink: var(--wp--preset--color--ink, #0D0D0D);
	--koku-red: var(--wp--preset--color--crimson, #D42B2B);
	--koku-red-dark: var(--wp--preset--color--crimson-dark, #A61818);
	--koku-paper: var(--wp--preset--color--newsprint, #F7F5F2);
	--koku-surface: var(--wp--preset--color--surface, #FFFFFF);
	--koku-gold: var(--wp--preset--color--gold, #F5C800);
	--koku-muted: var(--wp--preset--color--muted, #EDEBE8);
	--koku-border: var(--wp--preset--color--border, #D4D0CB);
	--koku-text-secondary: var(--wp--preset--color--text-secondary, #5A5550);
	--koku-text-on-dark: var(--wp--preset--color--text-on-dark, #A8A4A0);
	--koku-illustration-paper: var(--wp--preset--color--illustration-paper, #F0EDE8);

	--koku-font-masthead: var(--wp--preset--font-family--masthead);
	--koku-font-display: var(--wp--preset--font-family--display);
	--koku-font-body: var(--wp--preset--font-family--body);

	--koku-content-width: 1280px;
	--koku-about-width: 900px;
	--koku-gutter: 24px;

	--koku-radius-small: 2px;
	--koku-radius-card: 3px;

	--koku-shadow-card: 2px 2px 0 rgba(13, 13, 13, 0.12);
	--koku-shadow-card-hover: 6px 6px 0 #0D0D0D;
	--koku-shadow-button: 3px 3px 0 #0D0D0D;
	--koku-shadow-button-hover: 5px 5px 0 #0D0D0D;

	--koku-nav-text: rgba(247, 245, 242, 0.75);
	--koku-nav-active-bg: rgba(245, 200, 0, 0.10);
	--koku-border-on-dark: rgba(247, 245, 242, 0.20);
	--koku-divider-on-dark: rgba(247, 245, 242, 0.15);
	--koku-tape-bg: rgba(245, 200, 0, 0.60);
	--koku-tape-border: rgba(245, 200, 0, 0.40);

	/* Default category color; .koku-cat-{slug} and .category-{slug} override it. */
	--koku-cat: var(--koku-red);
}

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

body {
	background: var(--koku-paper);
	color: var(--koku-ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Sections own their spacing: no automatic gaps between header, main, footer and bands. */
.wp-site-blocks > * + *,
.koku-site-header > * + *,
.koku-site-footer > * + *,
.koku-main > * + * {
	margin-block-start: 0;
}

.koku-main {
	overflow-x: clip;
}

img {
	max-width: 100%;
	height: auto;
}

:where(a):focus-visible,
:where(button):focus-visible,
:where(input):focus-visible {
	outline: 3px solid var(--koku-gold);
	outline-offset: 2px;
}

.screen-reader-text:focus {
	background: var(--koku-gold);
	color: var(--koku-ink);
}

.koku-eyebrow {
	margin: 0;
	font-family: var(--koku-font-body);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.20em;
	text-transform: uppercase;
	color: var(--koku-red);
}

/* Shared hard-shadow button base */
.wp-block-button[class*="is-style-koku-"] .wp-block-button__link {
	border-radius: var(--koku-radius-small);
	transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, color 150ms ease;
}

.wp-block-button.is-style-koku-outline .wp-block-button__link {
	background: transparent;
	color: var(--koku-ink);
	border: 2px solid var(--koku-ink);
	box-shadow: none;
	padding: 9px 16px;
}

.wp-block-button.is-style-koku-outline .wp-block-button__link:hover {
	background: var(--koku-ink);
	color: var(--koku-paper);
}

.wp-block-button.is-style-koku-donation .wp-block-button__link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 9px 18px;
	background: var(--koku-gold);
	color: var(--koku-ink);
	font-family: var(--koku-font-masthead);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	border: 2.5px solid var(--koku-ink);
	transform: rotate(-1.5deg);
	box-shadow: var(--koku-shadow-button);
	white-space: nowrap;
}

.wp-block-button.is-style-koku-donation .wp-block-button__link:hover {
	transform: rotate(0deg) translateY(-2px);
	box-shadow: var(--koku-shadow-button-hover);
	background: var(--koku-gold);
	color: var(--koku-ink);
}

.wp-block-button.is-style-koku-stamp .wp-block-button__link {
	background: var(--koku-gold);
	color: var(--koku-ink);
	font-family: var(--koku-font-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 13px 32px;
	border: 2.5px solid var(--koku-ink);
	box-shadow: var(--koku-shadow-button);
	transform: rotate(-1deg);
}

.wp-block-button.is-style-koku-stamp .wp-block-button__link:hover {
	transform: rotate(0deg) translateY(-2px);
	box-shadow: var(--koku-shadow-button-hover);
	background: var(--koku-gold);
	color: var(--koku-ink);
}

.wp-block-button.is-style-koku-ghost .wp-block-button__link {
	background: transparent;
	color: var(--koku-surface);
	font-size: 13px;
	padding: 13px 32px;
	border: 2.5px solid var(--koku-surface);
	box-shadow: none;
}

.wp-block-button.is-style-koku-ghost .wp-block-button__link:hover {
	background: var(--koku-surface);
	color: var(--koku-ink);
}

/* ---------------------------------------------------------------------------
 * Ticker
 * ------------------------------------------------------------------------ */

.koku-ticker {
	display: flex;
	align-items: center;
	background: var(--koku-red);
	color: var(--koku-surface);
	padding: 5px 0;
	font-family: var(--koku-font-body);
	font-size: 11px;
	font-weight: 600;
	overflow: hidden;
	margin: 0;
}

.koku-ticker__label {
	flex: none;
	position: relative;
	z-index: 1;
	margin-left: 16px;
	margin-right: 16px;
	padding: 1px 8px;
	background: var(--koku-gold);
	color: var(--koku-ink);
	border: 1.5px solid var(--koku-ink);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transform: rotate(-2deg);
}

.koku-ticker__viewport {
	flex: 1;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.koku-ticker__track {
	display: flex;
	width: max-content;
	animation: koku-ticker 30s linear infinite;
}

.koku-ticker:hover .koku-ticker__track,
.koku-ticker:focus-within .koku-ticker__track {
	animation-play-state: paused;
}

.koku-ticker__list {
	display: flex;
	gap: 48px;
	margin: 0;
	padding: 0 48px 0 0;
	list-style: none;
	white-space: nowrap;
}

.koku-ticker__item {
	position: relative;
}

.koku-ticker__item::before {
	content: "✶";
	position: absolute;
	left: -30px;
	color: var(--koku-gold);
}

.koku-ticker__item a {
	color: inherit;
	text-decoration: none;
	letter-spacing: 0.02em;
}

.koku-ticker__item a:hover {
	text-decoration: underline;
	color: var(--koku-surface);
}

@keyframes koku-ticker {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------------------
 * Masthead
 * ------------------------------------------------------------------------ */

.koku-masthead__inner {
	max-width: var(--koku-content-width);
	margin-inline: auto;
	gap: 16px;
}

.koku-logo {
	margin: 0;
	line-height: 0;
}

.koku-logo img,
.koku-logo .custom-logo {
	height: 64px !important;
	width: auto !important;
	max-width: none;
	object-fit: contain;
}

/*
 * The spec asks for a white logo in the footer (brightness(0) invert(1)).
 * The real Koku logo has solid white fills, so that filter turns it into a
 * blank white shape. Its black outlines already sit naturally on the ink
 * footer, so it is shown in full color. Add .koku-logo--mono for the flat white version.
 */
.koku-logo--mono img,
.koku-logo--mono .custom-logo {
	filter: brightness(0) invert(1);
}

.koku-masthead__actions,
.koku-masthead__buttons {
	gap: 14px;
}

.koku-search-link {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.koku-search-link a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--koku-ink);
	text-decoration: none;
	padding: 9px 4px;
}

.koku-search-link a::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='square'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='M15.5 15.5 22 22'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='square'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='M15.5 15.5 22 22'/%3E%3C/svg%3E") center / contain no-repeat;
}

.koku-search-link a:hover {
	color: var(--koku-red);
}

/* Masthead double rule */
.wp-block-separator.is-style-koku-masthead.is-style-koku-masthead,
.koku-masthead-rule {
	border: 0;
	border-top: 3px solid var(--koku-ink);
	border-bottom: 1px solid var(--koku-ink);
	height: 6px;
	background: transparent;
	opacity: 1;
	margin: 0;
	max-width: none;
	width: 100%;
}

.wp-block-separator.is-style-koku-dashed {
	border: 0;
	height: 2px;
	opacity: 1;
	background: repeating-linear-gradient(90deg, var(--koku-cat) 0 6px, transparent 6px 12px);
}

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

.koku-navbar {
	position: relative;
}

.koku-navbar .koku-nav {
	max-width: var(--koku-content-width);
	margin-inline: auto;
	font-family: var(--koku-font-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.koku-nav .wp-block-navigation__container {
	gap: 0;
	flex-wrap: nowrap;
	overflow-x: auto;
	scrollbar-width: none;
}

.koku-navbar .koku-nav {
	color: var(--koku-nav-text);
}

.koku-nav .wp-block-navigation-item__content.wp-block-navigation-item__content {
	display: block;
	padding: 11px 14px;
	color: var(--koku-nav-text);
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
	transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.koku-nav .wp-block-navigation-item__content.wp-block-navigation-item__content:hover {
	color: var(--koku-paper);
	border-bottom-color: var(--koku-cat);
}

.koku-nav .current-menu-item > .wp-block-navigation-item__content.wp-block-navigation-item__content,
.koku-nav .wp-block-navigation-item__content.wp-block-navigation-item__content[aria-current="page"] {
	color: var(--koku-gold);
	background: var(--koku-nav-active-bg);
	border-bottom-color: var(--koku-gold);
}

/* Mobile menu: the design switches at 768px, core switches at 600px. */
.koku-nav .wp-block-navigation__responsive-container-open {
	color: var(--koku-paper);
	padding: 10px 0;
	gap: 8px;
	align-items: center;
	font-size: 12px;
}

.koku-nav .wp-block-navigation__responsive-container-open::after {
	content: "Menu";
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

@media (max-width: 767px) {
	.koku-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.koku-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

.koku-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--koku-ink) !important;
	color: var(--koku-paper) !important;
	padding: 24px;
}

.koku-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	overflow: visible;
}

.koku-nav .is-menu-open .wp-block-navigation-item__content.wp-block-navigation-item__content {
	font-family: var(--koku-font-masthead);
	font-size: 26px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	padding: 6px 0;
	color: var(--koku-paper);
	border-bottom: 3px solid var(--koku-cat);
}

.koku-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content.wp-block-navigation-item__content,
.koku-nav .is-menu-open .wp-block-navigation-item__content.wp-block-navigation-item__content[aria-current="page"] {
	background: none;
	color: var(--koku-gold);
}

.koku-nav .wp-block-navigation__responsive-container-close {
	color: var(--koku-paper);
}

/* ---------------------------------------------------------------------------
 * Starbursts, section headers
 * ------------------------------------------------------------------------ */

.koku-starburst {
	--koku-star: polygon(50% 0%, 59.8% 13.4%, 75% 6.7%, 76.6% 23.4%, 93.3% 25%, 86.6% 40.2%, 100% 50%, 86.6% 59.8%, 93.3% 75%, 76.6% 76.6%, 75% 93.3%, 59.8% 86.6%, 50% 100%, 40.2% 86.6%, 25% 93.3%, 23.4% 76.6%, 6.7% 75%, 13.4% 59.8%, 0% 50%, 13.4% 40.2%, 6.7% 25%, 23.4% 23.4%, 25% 6.7%, 40.2% 13.4%);
	position: relative;
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 52px;
	height: 52px;
	font-family: var(--koku-font-masthead);
	font-size: 18px;
	line-height: 1;
	color: var(--koku-surface);
	transform: rotate(-8deg);
}

.koku-starburst::before,
.koku-starburst::after {
	content: "";
	position: absolute;
	inset: 0;
	clip-path: var(--koku-star);
}

/* Ink copy offset behind for the hard shadow; colored star on top. */
.koku-starburst::before {
	background: var(--koku-ink);
	translate: 3px 3px;
}

.koku-starburst::after {
	background: var(--koku-cat);
	inset: 0;
}

.koku-starburst > span {
	position: relative;
	z-index: 1;
}

.koku-starburst--big {
	width: 140px;
	height: 140px;
	font-size: 40px;
	display: grid;
	margin: 0 auto 24px;
}

.koku-section-header {
	margin-bottom: 28px !important;
	gap: 14px;
	max-width: var(--koku-content-width);
	margin-inline: auto !important;
	width: 100%;
}

.koku-section-header__title.wp-block-heading {
	margin: 0;
	font-family: var(--koku-font-masthead);
	font-size: 28px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.15;
	white-space: nowrap;
	text-decoration: underline;
	text-decoration-color: var(--koku-cat);
	text-decoration-thickness: 3px;
	text-underline-offset: 5px;
}

.koku-dashed-rule {
	flex: 1 1 auto;
	min-width: 24px;
	height: 2px;
	background: repeating-linear-gradient(90deg, var(--koku-cat) 0 6px, transparent 6px 12px);
}

.koku-section-header__more {
	flex: none;
	margin: 0;
}

.koku-see-all.is-style-koku-outline .wp-block-button__link {
	padding: 6px 14px;
	font-size: 12px;
	letter-spacing: 0.08em;
	border-color: var(--koku-cat);
	color: var(--koku-cat);
	background: var(--koku-surface);
	box-shadow: 2px 2px 0 var(--koku-ink);
}

.koku-see-all.is-style-koku-outline .wp-block-button__link:hover {
	background: var(--koku-cat);
	color: var(--koku-surface);
	transform: translateY(-1px);
	box-shadow: 3px 3px 0 var(--koku-ink);
}

/* ---------------------------------------------------------------------------
 * Grids (with responsive stacking the mockup never had)
 * ------------------------------------------------------------------------ */

.koku-grid {
	display: grid;
	max-width: var(--koku-content-width);
	margin-inline: auto;
	width: 100%;
}

.koku-grid > * {
	margin: 0 !important;
	min-width: 0;
}

.koku-grid--hero { grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.koku-grid--latest { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.koku-grid--category { grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.koku-grid--about-hero { grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: center; }
.koku-grid--stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.koku-grid--about-content { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.koku-grid--recent { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.koku-grid--footer { grid-template-columns: 2fr 1fr 1fr; gap: 48px; }

/* Post Template renders as <ul>; make it the grid itself. */
ul.koku-grid.wp-block-post-template {
	list-style: none;
	padding: 0;
}

.koku-stack {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.koku-stack > li {
	margin: 0;
}

@media (max-width: 1024px) {
	.koku-grid--latest,
	.koku-grid--recent { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.koku-grid--footer { grid-template-columns: 1fr 1fr; }
	.koku-grid--footer > :first-child { grid-column: 1 / -1; }
	.koku-grid--about-hero { gap: 40px; }
}

@media (max-width: 860px) {
	.koku-grid--hero,
	.koku-grid--category,
	.koku-grid--about-content { grid-template-columns: 1fr; }
	.koku-grid--stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.koku-grid--latest,
	.koku-grid--recent,
	.koku-grid--footer { grid-template-columns: 1fr; }
	.koku-grid--about-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 32px; }
	.koku-about-hero__text { align-items: center !important; }
}

/* ---------------------------------------------------------------------------
 * Article cards
 * ------------------------------------------------------------------------ */

.koku-card {
	position: relative;
	height: 100%;
	background: var(--koku-surface);
	border: 2px solid var(--koku-border);
	border-radius: var(--koku-radius-card);
	overflow: hidden;
	box-shadow: var(--koku-shadow-card);
	transform: rotate(var(--koku-tilt, 0deg));
	transition: transform 200ms ease, box-shadow 200ms ease, border-color 150ms;
}

.koku-card:hover,
.koku-card:focus-within {
	transform: translateY(-5px) rotate(0.3deg);
	border-color: var(--koku-ink);
	box-shadow: var(--koku-shadow-card-hover);
}

.koku-card > * {
	margin-block: 0 !important;
}

/* Standard-card rotation sequence; large and small cards stay level. */
.koku-tilted > li:nth-child(12n + 1)  { --koku-tilt: -1.2deg; }
.koku-tilted > li:nth-child(12n + 2)  { --koku-tilt: 0.8deg; }
.koku-tilted > li:nth-child(12n + 3)  { --koku-tilt: -0.6deg; }
.koku-tilted > li:nth-child(12n + 4)  { --koku-tilt: 1deg; }
.koku-tilted > li:nth-child(12n + 5)  { --koku-tilt: -0.9deg; }
.koku-tilted > li:nth-child(12n + 6)  { --koku-tilt: 0.5deg; }
.koku-tilted > li:nth-child(12n + 7)  { --koku-tilt: -1.1deg; }
.koku-tilted > li:nth-child(12n + 8)  { --koku-tilt: 0.7deg; }
.koku-tilted > li:nth-child(12n + 9)  { --koku-tilt: -0.4deg; }
.koku-tilted > li:nth-child(12n + 10) { --koku-tilt: 1.2deg; }
.koku-tilted > li:nth-child(12n + 11) { --koku-tilt: -0.8deg; }
.koku-tilted > li:nth-child(12n + 12) { --koku-tilt: 0.6deg; }

.koku-card--large,
.koku-card--small {
	--koku-tilt: 0deg;
}

.koku-card__image {
	margin: 0 !important;
	overflow: hidden;
	background: var(--koku-muted);
	border-bottom: 2px solid var(--koku-border);
}

.koku-card__image img,
.koku-hero__image img,
.koku-single__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: contrast(1.04) saturate(0.8) sepia(0.05);
	transition: transform 300ms ease;
}

.koku-card:hover .koku-card__image img {
	transform: scale(1.03);
}

.koku-card__image a {
	display: block;
	height: 100%;
}

.koku-card__body {
	padding: 16px;
	gap: 8px;
}

.koku-card__body > * {
	margin: 0 !important;
}

.koku-card__title {
	margin: 0;
	font-family: var(--koku-font-display);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.koku-card__title a {
	color: var(--koku-ink);
	text-decoration: none;
	background-image: linear-gradient(var(--koku-cat), var(--koku-cat));
	background-size: 0 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 200ms ease;
}

.koku-card:hover .koku-card__title a {
	background-size: 100% 2px;
}

/* Whole card is clickable via the title link. */
.koku-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.koku-card .wp-block-post-terms a,
.koku-card .koku-card__cta a {
	position: relative;
	z-index: 2;
}

.koku-card__excerpt,
.koku-card__excerpt .wp-block-post-excerpt__excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: var(--koku-text-secondary);
}

.koku-clamp-2 .wp-block-post-excerpt__excerpt,
.koku-clamp-3 .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.koku-clamp-2 .wp-block-post-excerpt__excerpt { -webkit-line-clamp: 2; line-clamp: 2; }
.koku-clamp-3 .wp-block-post-excerpt__excerpt { -webkit-line-clamp: 3; line-clamp: 3; }

.koku-card__date,
.koku-byline__date {
	margin: 0;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	color: var(--koku-text-secondary);
}

/* Standard card */
.koku-card--standard .koku-card__body {
	flex: 1;
}

.koku-card--standard .koku-byline {
	margin-top: auto !important;
	padding-top: 10px;
	border-top: 1px dashed var(--koku-border);
	width: 100%;
}

/* Large card */
.koku-card--large .koku-card__excerpt { font-size: 14px; }

.koku-card--large .koku-byline {
	padding-top: 10px;
	border-top: 1px dashed var(--koku-border);
	width: 100%;
}

/* Small horizontal card */
.koku-card--small {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	height: auto;
}

.koku-card--small .koku-card__image {
	flex: 0 0 110px;
	width: 110px !important;
	height: 90px !important;
	border-bottom: 0;
	border-right: 2px solid var(--koku-border);
}

.koku-card--small .koku-card__body {
	padding: 10px 12px;
	justify-content: center;
	gap: 6px;
}

.koku-card--small .koku-card__title { font-size: 13px; }

/* Mini (About recent work) */
.koku-card--mini .koku-card__body { padding: 10px 12px; }

/* Image placeholder when a post has no illustration yet */
.koku-image-placeholder {
	display: grid;
	place-items: center;
	min-height: 90px;
	background:
		repeating-linear-gradient(-45deg, transparent 0 10px, rgba(13, 13, 13, 0.05) 10px 12px),
		var(--koku-muted);
	font-family: var(--koku-font-masthead);
	font-size: 40px;
	color: var(--koku-border);
}

/* ---------------------------------------------------------------------------
 * Category badges
 * ------------------------------------------------------------------------ */

.is-style-koku-badges,
.koku-card .wp-block-post-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	line-height: 1;
}

.is-style-koku-badges .wp-block-post-terms__separator {
	display: none;
}

.is-style-koku-badges a,
.koku-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 9px 2px 6px;
	background: var(--koku-cat);
	color: var(--koku-surface) !important;
	border-radius: var(--koku-radius-small);
	font-family: var(--koku-font-body);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none !important;
}

.is-style-koku-badges a::before {
	content: "";
	width: 5px;
	height: 5px;
	background: currentColor;
	transform: rotate(45deg);
}

.is-style-koku-badges a:hover {
	filter: brightness(0.88);
}

/* ---------------------------------------------------------------------------
 * Byline and avatars
 * ------------------------------------------------------------------------ */

.koku-byline {
	gap: 8px;
}

.koku-byline > * {
	margin: 0 !important;
}

.koku-byline__name {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.koku-avatar {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--koku-red);
	color: var(--koku-surface);
	border: 2px solid var(--koku-ink);
	font-family: var(--koku-font-masthead);
	font-size: 12px;
	line-height: 1;
}

.koku-byline--masonry .koku-avatar { width: 26px; height: 26px; font-size: 13px; }

.koku-byline--hero .koku-avatar {
	width: 42px;
	height: 42px;
	font-size: 20px;
	border-width: 2.5px;
	box-shadow: 2px 2px 0 var(--koku-ink);
}

.koku-byline--hero .koku-byline__name { font-size: 13px; }

/* ---------------------------------------------------------------------------
 * Tape corners
 * ------------------------------------------------------------------------ */

.is-style-koku-taped {
	position: relative;
	overflow: visible;
}

.is-style-koku-taped::before,
.is-style-koku-taped::after,
.is-style-koku-taped > .wp-block-post-featured-image::before,
.is-style-koku-taped > .wp-block-post-featured-image::after,
.is-style-koku-taped > figure::before,
.is-style-koku-taped > figure::after {
	content: "";
	position: absolute;
	z-index: 3;
	width: 28px;
	height: 20px;
	background: var(--koku-tape-bg);
	border: 1px solid var(--koku-tape-border);
	pointer-events: none;
}

.is-style-koku-taped::before { top: -8px; left: -8px; transform: rotate(-30deg); }
.is-style-koku-taped::after { top: -8px; right: -8px; transform: rotate(30deg); }
.is-style-koku-taped > .wp-block-post-featured-image::before,
.is-style-koku-taped > figure::before { bottom: -8px; left: -8px; transform: rotate(30deg); }
.is-style-koku-taped > .wp-block-post-featured-image::after,
.is-style-koku-taped > figure::after { bottom: -8px; right: -8px; transform: rotate(-30deg); }

.is-style-koku-taped > figure,
.is-style-koku-taped > .wp-block-post-featured-image {
	position: static;
}

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

.koku-hero__query,
.koku-hero__template {
	max-width: var(--koku-content-width);
	margin-inline: auto;
	width: 100%;
}

.koku-hero__template {
	list-style: none;
	padding: 0;
	margin: 0;
}

.koku-hero__art {
	background: var(--koku-illustration-paper);
	border: 2.5px solid var(--koku-ink);
	padding: 14px;
	box-shadow: 6px 6px 0 var(--koku-ink);
	transform: rotate(-0.8deg);
}

.koku-hero__art .koku-hero__image {
	margin: 0;
	min-height: 420px;
	height: 420px;
	border: 2px solid var(--koku-ink);
	background: var(--koku-surface);
	overflow: hidden;
}

.koku-hero__art .koku-hero__image a {
	display: block;
	height: 100%;
}

.koku-hero__text > * {
	margin: 0 !important;
}

.koku-hero__title {
	font-family: var(--koku-font-display);
	font-size: 33px;
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.koku-hero__title a {
	color: var(--koku-ink);
	text-decoration: none;
}

.koku-hero__title a:hover {
	color: var(--koku-red);
}

.koku-hero__excerpt .wp-block-post-excerpt__excerpt {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--koku-text-secondary);
}

.koku-hero__cta.wp-block-read-more,
a.koku-hero__cta {
	display: inline-block;
	margin-top: 8px !important;
	padding: 14px 24px;
	background: var(--koku-red);
	color: var(--koku-surface);
	font-family: var(--koku-font-masthead);
	font-size: 15px;
	text-decoration: none;
	border: 2.5px solid var(--koku-ink);
	border-radius: var(--koku-radius-small);
	box-shadow: var(--koku-shadow-button);
	transform: rotate(-1deg);
	transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.koku-hero__cta.wp-block-read-more:hover {
	background: var(--koku-red-dark);
	color: var(--koku-surface);
	transform: rotate(0deg) translateY(-2px);
	box-shadow: var(--koku-shadow-button-hover);
}

@media (max-width: 640px) {
	.koku-hero__art .koku-hero__image {
		min-height: 260px;
		height: 260px;
	}
}

/* ---------------------------------------------------------------------------
 * Homepage sections
 * ------------------------------------------------------------------------ */

.koku-section {
	position: relative;
}

.koku-section > .wp-block-query,
.koku-section > .koku-grid {
	max-width: var(--koku-content-width);
	margin-inline: auto;
	width: 100%;
}

.koku-section--category {
	border-top: 2px solid var(--koku-ink);
}

/* Comic-panel corner flag in the category color */
.koku-section--category::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 120px;
	height: 6px;
	background: var(--koku-cat);
}

.koku-category-lead .wp-block-post-template,
.koku-category-stack .wp-block-post-template {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* ---------------------------------------------------------------------------
 * Category / archive banner
 * ------------------------------------------------------------------------ */

.koku-banner {
	position: relative;
	overflow: hidden;
	background: var(--koku-cat);
	color: var(--koku-surface);
	border-bottom: 3px solid var(--koku-ink);
	isolation: isolate;
}

.koku-banner--ink {
	--koku-cat: var(--koku-ink);
}

/* Halftone dots */
.koku-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(circle, #FFFFFF 1.5px, transparent 1.6px);
	background-size: 20px 20px;
	opacity: 0.1;
}

/* Diagonal stripes on the rightmost 35% */
.koku-banner::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 35%;
	z-index: -1;
	background-image: repeating-linear-gradient(45deg, #FFFFFF 0 2px, transparent 2px 14px);
	opacity: 0.06;
}

.koku-banner > * {
	max-width: var(--koku-content-width);
	margin-inline: auto;
}

.koku-banner__inner {
	width: 100%;
}

.koku-banner__text > * {
	margin: 0 !important;
}

.koku-banner__eyebrow {
	color: var(--koku-gold);
}

.koku-banner__title,
.koku-banner .wp-block-term-name,
.koku-banner .wp-block-query-title {
	margin: 0;
	font-family: var(--koku-font-masthead);
	font-size: clamp(42px, 8vw, 68px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--koku-surface);
	text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.koku-banner__title--search {
	font-size: clamp(32px, 5vw, 48px);
}

.koku-banner__description,
.koku-banner .wp-block-term-description {
	max-width: 520px;
	margin: 0;
	font-family: var(--koku-font-display);
	font-size: 18px;
	font-style: italic;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
}

.koku-banner .wp-block-term-description p {
	margin: 0;
}

.koku-banner__stats {
	padding: 12px 18px;
	background: rgba(0, 0, 0, 0.18);
	border: 2px solid rgba(255, 255, 255, 0.6);
	transform: rotate(1.5deg);
}

.koku-banner__stats > * {
	margin: 0 !important;
}

.koku-banner__stat {
	font-family: var(--koku-font-masthead);
	font-size: 24px;
	line-height: 1;
	color: var(--koku-gold);
}

.koku-banner__stat-label {
	font-size: 10px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.koku-banner .koku-search {
	max-width: 480px;
	margin-top: 20px;
}

/* ---------------------------------------------------------------------------
 * Search field
 * ------------------------------------------------------------------------ */

.koku-search {
	max-width: 480px;
	margin-inline: auto;
}

.koku-search .wp-block-search__inside-wrapper {
	border: 2.5px solid var(--koku-ink);
	border-radius: var(--koku-radius-small);
	background: var(--koku-surface);
	padding: 0;
	box-shadow: var(--koku-shadow-button);
}

.koku-search .wp-block-search__input {
	border: 0;
	padding: 12px 14px;
	font-family: var(--koku-font-body);
	font-size: 15px;
	background: transparent;
	color: var(--koku-ink);
}

.koku-search .wp-block-search__button {
	margin: 0;
	border: 0;
	border-left: 2.5px solid var(--koku-ink);
	border-radius: 0;
	box-shadow: none;
	background: var(--koku-gold);
	color: var(--koku-ink);
}

/* ---------------------------------------------------------------------------
 * Archive: filter row, masonry, load more
 * ------------------------------------------------------------------------ */

.koku-archive > * {
	max-width: var(--koku-content-width);
	margin-inline: auto;
}

.koku-filter.wp-block-categories,
.koku-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 auto 32px !important;
	padding: 0;
	list-style: none;
}

.koku-filter li {
	margin: 0;
}

.koku-filter .cat-item a {
	display: inline-block;
	padding: 5px 14px;
	background: var(--koku-surface);
	color: var(--koku-ink);
	border: 2px solid var(--koku-ink);
	border-radius: var(--koku-radius-small);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.koku-filter .cat-item a:hover {
	background: var(--koku-ink);
	color: var(--koku-paper);
	transform: rotate(-1deg);
}

.koku-filter .current-cat a {
	background: var(--koku-cat);
	border-color: var(--koku-ink);
	color: var(--koku-surface);
	box-shadow: 2px 2px 0 var(--koku-ink);
}

.koku-masonry.wp-block-post-template {
	display: block;
	columns: 3;
	column-gap: 24px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.koku-masonry > li {
	break-inside: avoid;
	margin: 0 0 24px !important;
	padding: 4px;
}

@media (max-width: 1024px) {
	.koku-masonry.wp-block-post-template { columns: 2; }
}

@media (max-width: 640px) {
	.koku-masonry.wp-block-post-template { columns: 1; }
}

.koku-masonry > li:nth-child(odd) .koku-card { --koku-tilt: -0.6deg; }
.koku-masonry > li:nth-child(even) .koku-card { --koku-tilt: 0.5deg; }

/* Variable image heights for the masonry rhythm (~195–320px). */
.koku-card--masonry .koku-card__image { height: 240px; }
.koku-masonry > li:nth-child(6n + 1) .koku-card__image { height: 320px; }
.koku-masonry > li:nth-child(6n + 2) .koku-card__image { height: 195px; }
.koku-masonry > li:nth-child(6n + 3) .koku-card__image { height: 280px; }
.koku-masonry > li:nth-child(6n + 4) .koku-card__image { height: 220px; }
.koku-masonry > li:nth-child(6n + 5) .koku-card__image { height: 300px; }
.koku-masonry > li:nth-child(6n + 6) .koku-card__image { height: 205px; }

.koku-card--masonry .koku-card__title { font-size: 16px; }
.koku-masonry > li:first-child .koku-card__title { font-size: 21px; }
.koku-card--masonry .koku-card__excerpt .wp-block-post-excerpt__excerpt { font-size: 13px; }

.koku-card__footer {
	width: 100%;
	padding-top: 10px;
	border-top: 1px dashed var(--koku-border);
}

.koku-card__cta.wp-block-read-more,
.koku-card__cta {
	padding: 9px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--koku-cat);
	line-height: 1;
}

.koku-card__cta:hover {
	color: var(--koku-ink);
}

.koku-load-more {
	margin-top: 48px !important;
}

.koku-load-more .wp-block-query-pagination-next {
	display: inline-block;
	padding: 14px 52px;
	background: var(--koku-ink);
	color: var(--koku-paper);
	font-family: var(--koku-font-masthead);
	font-size: 16px;
	text-decoration: none;
	border: 2.5px solid var(--koku-ink);
	border-radius: var(--koku-radius-small);
	box-shadow: 4px 4px 0 var(--koku-cat);
	transform: rotate(-1deg);
	transition: transform 150ms ease, box-shadow 150ms ease;
}

.koku-load-more .wp-block-query-pagination-next:hover {
	transform: rotate(0deg) translateY(-2px);
	box-shadow: 6px 6px 0 var(--koku-cat);
	color: var(--koku-gold);
}

.koku-load-more.is-loading .wp-block-query-pagination-next {
	opacity: 0.6;
	pointer-events: none;
}

.koku-empty {
	text-align: center;
	font-family: var(--koku-font-display);
	font-style: italic;
	font-size: 18px;
	color: var(--koku-text-secondary);
}

/* ---------------------------------------------------------------------------
 * Single cartoon, pages
 * ------------------------------------------------------------------------ */

.koku-single > *,
.koku-page > * {
	margin-block: 0 0 !important;
}

.koku-single > * + *,
.koku-page > * + * {
	margin-top: 28px !important;
}

.koku-single__head > * {
	margin: 0 !important;
}

.koku-single__title,
.koku-page__title {
	font-family: var(--koku-font-display);
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.koku-single__art {
	background: var(--koku-illustration-paper);
	border: 2.5px solid var(--koku-ink);
	padding: 14px;
	box-shadow: 6px 6px 0 var(--koku-ink);
	margin-top: 36px !important;
}

.koku-single__art .koku-single__image {
	margin: 0;
	border: 2px solid var(--koku-ink);
	background: var(--koku-surface);
}

.koku-single__art .koku-single__image img {
	height: auto;
	object-fit: contain;
}

.koku-prose {
	font-size: 17px;
	line-height: 1.75;
}

.koku-prose > * {
	max-width: 720px;
}

.koku-prose a {
	text-decoration-color: var(--koku-red);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.koku-tags a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 3px 10px;
	border: 1.5px solid var(--koku-ink);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	text-decoration: none;
}

.koku-tags a::before {
	content: "#";
	color: var(--koku-red);
}

.koku-post-nav {
	font-family: var(--koku-font-display);
	font-weight: 700;
	font-size: 16px;
}

.koku-post-nav a {
	text-decoration: none;
}

.koku-comments .wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]),
.koku-comments .wp-block-post-comments-form textarea {
	border: 2px solid var(--koku-ink);
	border-radius: var(--koku-radius-small);
	background: var(--koku-surface);
}

.koku-comment {
	padding: 16px;
	margin-bottom: 16px;
	border: 2px solid var(--koku-border);
	background: var(--koku-surface);
}

/* ---------------------------------------------------------------------------
 * About Koku
 * ------------------------------------------------------------------------ */

.koku-about-hero > .koku-grid,
.koku-stats > .koku-grid,
.koku-about-content > .koku-grid {
	max-width: var(--koku-about-width);
}

.koku-emblem {
	position: relative;
	width: 180px;
	height: 180px;
	margin-inline: auto !important;
	border-radius: 50%;
	background: var(--koku-gold);
	border: 3px solid var(--koku-ink);
	box-shadow: 6px 6px 0 var(--koku-ink);
	transform: rotate(-4deg);
	overflow: hidden;
}

.koku-emblem .koku-logo--emblem img,
.koku-emblem .koku-logo--emblem .custom-logo {
	width: 160px !important;
	height: 160px !important;
	object-fit: contain;
}

.koku-about-hero__text > * {
	margin: 0 !important;
}

.koku-about-hero__name {
	font-family: var(--koku-font-masthead);
	font-size: 38px;
	font-weight: 400;
	letter-spacing: 0;
}

.koku-about-hero__quote {
	margin: 0;
	padding-left: 20px;
	border-left: 4px solid var(--koku-red);
	font-family: var(--koku-font-display);
	font-size: 22px;
	font-style: italic;
	font-weight: 400;
	line-height: 1.55;
}

.koku-about-hero__quote p {
	margin: 0;
}

@media (max-width: 640px) {
	.koku-about-hero__quote {
		border-left: 0;
		border-top: 4px solid var(--koku-red);
		padding: 16px 0 0;
	}
}

.koku-stat {
	padding: 6px 12px;
	border-left: 1px solid var(--koku-divider-on-dark);
}

.koku-stat:first-child {
	border-left: 0;
}

.koku-stat > * {
	margin: 0 !important;
}

.koku-stat__number {
	font-family: var(--koku-font-masthead);
	font-size: 34px;
	line-height: 1.1;
	color: var(--koku-gold);
}

.koku-stat__label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--koku-text-on-dark);
}

@media (max-width: 860px) {
	.koku-stat:nth-child(3) { border-left: 0; }
}

.koku-about-content__text > * {
	margin-block: 0 16px;
}

.koku-about-content__title {
	font-family: var(--koku-font-display);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.25;
}

.koku-about-content__body {
	font-size: 15px;
	line-height: 1.75;
}

.koku-about-content__art {
	background: var(--koku-illustration-paper);
	border: 2.5px solid var(--koku-ink);
	padding: 12px;
	box-shadow: 6px 6px 0 var(--koku-ink);
	transform: rotate(1deg);
}

.koku-about-content__art .koku-hero__image {
	margin: 0;
	border: 2px solid var(--koku-ink);
}

.koku-about-content__art .koku-hero__image img {
	height: auto;
}

.koku-recent-work > * {
	max-width: var(--koku-about-width);
	margin-inline: auto;
}

.koku-recent-work__title {
	margin-bottom: 24px;
	font-family: var(--koku-font-display);
	font-size: 22px;
	font-weight: 800;
}

.koku-contact > * {
	max-width: var(--koku-about-width);
	margin-inline: auto;
}

.koku-contact__title {
	color: var(--koku-surface);
	font-family: var(--koku-font-display);
	font-size: clamp(24px, 4vw, 30px);
	font-weight: 900;
	text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.koku-contact__description {
	max-width: 460px !important;
	font-size: 15px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9);
}

.koku-contact__buttons {
	margin-top: 28px;
}

/* ---------------------------------------------------------------------------
 * 404
 * ------------------------------------------------------------------------ */

.koku-404 > * {
	max-width: var(--koku-about-width);
	margin-inline: auto;
}

.koku-404__title {
	font-weight: 900;
}

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

.koku-footer {
	border-top: 4px solid var(--koku-red);
}

.koku-footer a {
	color: var(--koku-text-on-dark);
	text-decoration: none;
}

.koku-footer a:hover {
	color: var(--koku-gold);
}

.koku-footer__brand > * {
	margin: 0 0 16px;
}

.koku-footer__description {
	max-width: 420px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--koku-text-on-dark);
}

.koku-footer__label.wp-block-heading {
	margin: 0 0 14px;
	font-family: var(--koku-font-body);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--koku-gold);
}

.koku-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
}

.koku-footer__links li {
	margin: 0 0 8px;
}

.koku-footer__bottom {
	border-top: 1px solid var(--koku-divider-on-dark);
}

.koku-footer__bottom > * {
	max-width: var(--koku-content-width);
	margin-inline: auto;
}

.koku-footer__copyright {
	margin: 0;
	font-size: 12px;
	color: var(--koku-text-on-dark);
}

/* ---------------------------------------------------------------------------
 * Small screens: masthead and section headers
 * ------------------------------------------------------------------------ */

@media (max-width: 767px) {
	.koku-search-link__text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.wp-block-buttons > .wp-block-button.koku-about-button {
		display: none;
	}

	.koku-logo--header img,
	.koku-logo--header .custom-logo {
		height: 48px !important;
	}

	.wp-block-button.is-style-koku-donation .wp-block-button__link {
		padding: 7px 12px;
		font-size: 13px;
	}

	.koku-section-header {
		flex-wrap: wrap !important;
	}

	.koku-section-header__title.wp-block-heading {
		white-space: normal;
		font-size: 24px;
	}

	.koku-section-header .koku-dashed-rule {
		order: 3;
		flex-basis: 100%;
	}

	.koku-section,
	.koku-section--latest,
	.koku-section--category {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
}

@media (max-width: 480px) {
	.koku-masthead__inner {
		flex-wrap: wrap !important;
		row-gap: 10px;
	}

	.koku-logo--header img,
	.koku-logo--header .custom-logo {
		height: 40px !important;
	}

	.wp-block-button.is-style-koku-donation .wp-block-button__link {
		padding: 6px 10px;
		font-size: 12px;
	}
}

/* ---------------------------------------------------------------------------
 * Reduced motion
 * ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.koku-ticker__track {
		animation: none;
	}

	.koku-ticker__viewport {
		overflow-x: auto;
	}

	.koku-card,
	.koku-card__image img,
	.wp-block-button__link,
	.koku-hero__cta {
		transition: none !important;
	}
}

/* ---------------------------------------------------------------------------
 * Editor tweaks
 * ------------------------------------------------------------------------ */

.editor-styles-wrapper .koku-card__title a::after {
	display: none;
}
