/*
Theme Name: Kiosk
Theme URI: https://wordpress.org/themes/
Author: Kiosk
Description: A bright pop-magazine blogging theme for guest-post sites. Split header with the logo in the middle, a big cover story stretching across the left side, colourful category blocks in the left sidebar, a two-column card grid, and a full-height right sidebar of 10 shuffled posts (image, title, 100-word preview) that change on every visit. Self-hosted fonts, no theme JavaScript.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 7.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kiosk
Update URI: false
Tags: blog, news, three-columns, left-sidebar, right-sidebar, grid-layout, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, theme-options
*/

/* Fonts (self-hosted, no Google requests) */
@font-face {
	font-family: "Syne";
	src: url("assets/fonts/syne.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Manrope";
	src: url("assets/fonts/manrope.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   Base (shared structure; the theme section below sets the look)
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--ks-bg);
	color: var(--ks-ink);
	font-family: var(--ks-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, video, svg, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: var(--ks-display);
	line-height: 1.15;
	text-wrap: balance;
}

:focus-visible { outline: 3px solid var(--ks-focus, currentColor); outline-offset: 3px; border-radius: 4px; }

.ks-wrap { width: min(100% - 32px, var(--ks-wrap)); margin-inline: auto; }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus,
.skip-link:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	left: 12px;
	top: 12px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--ks-accent);
	color: var(--ks-on-accent);
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
}

/* Buttons */
.ks-btn,
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.7em 1.25em;
	background: var(--ks-accent);
	color: var(--ks-on-accent);
	border: 0;
	border-radius: var(--ks-btn-radius, 8px);
	font-family: var(--ks-display);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.ks-btn:hover,
.comment-form .submit:hover { transform: translateY(-2px); }

/* Mobile menu toggle (pure CSS checkbox) */
.ks-nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ks-nav-button { display: none; }
.ks-burger { position: relative; width: 18px; height: 12px; }
.ks-burger::before,
.ks-burger::after,
.ks-burger span {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.ks-burger::before { top: 0; }
.ks-burger span { top: 5px; }
.ks-burger::after { top: 10px; }
.ks-nav-toggle:checked + .ks-nav-button .ks-burger::before { transform: translateY(5px) rotate(45deg); }
.ks-nav-toggle:checked + .ks-nav-button .ks-burger span { opacity: 0; }
.ks-nav-toggle:checked + .ks-nav-button .ks-burger::after { transform: translateY(-5px) rotate(-45deg); }
.ks-nav-toggle:focus-visible + .ks-nav-button { outline: 3px solid currentColor; outline-offset: 3px; }

.ks-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ks-menu li { position: relative; }
.ks-menu a { display: block; text-decoration: none; }
.ks-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	min-width: 210px;
	margin: 0;
	padding: 8px;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.ks-menu li:hover > .sub-menu,
.ks-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

/* Thumbnails */
.ks-thumb {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	text-decoration: none;
	background: var(--ks-soft);
}
.ks-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
a.ks-thumb:hover img { transform: scale(1.04); }
.ks-thumb__fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: var(--ks-tone, var(--ks-soft));
	font-family: var(--ks-display);
	font-weight: 700;
	font-size: clamp(2.6rem, 7vw, 4.2rem);
	line-height: 1;
	color: var(--ks-tone-ink, var(--ks-ink));
}

/* Chips + meta */
.ks-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ks-chip { text-decoration: none; }
.ks-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; color: var(--ks-muted); font-size: 0.88rem; }
.ks-meta__item + .ks-meta__item::before { content: "·"; margin: 0 8px; }
.ks-meta a { color: var(--ks-ink); font-weight: 700; text-decoration: none; }
.ks-meta a:hover { text-decoration: underline; }
.ks-meta__avatar { width: 40px; height: 40px; margin-right: 10px; border-radius: 50%; }

/* Lists in boxes */
.ks-catlist,
.ks-pagelist,
.ks-randlist { margin: 0; padding: 0; list-style: none; }
.ks-pagelist .children { display: none; }
.ks-cat,
.ks-pagelist a { text-decoration: none; }
.ks-randlist,
.ks-rand,
.ks-rand__media { position: relative; }
.ks-rand__title { margin: 0 0 6px; }
.ks-rand__title a,
.ks-card__title a,
.ks-full__title a { text-decoration: none; }
.ks-rand__text { margin: 0 0 8px; }
.ks-rand__more { font-weight: 700; }
.widget.ks-box > :not(.ks-box__title) { margin: 16px 18px; }
.widget.ks-box ul { padding-left: 1.1em; }

/* Article content */
.ks-entry { font-size: 1.075rem; line-height: 1.78; overflow-wrap: break-word; }
.ks-entry > * { margin-block: 0 1.15em; }
.ks-entry > *:last-child { margin-bottom: 0; }
.ks-entry h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 1.6em; }
.ks-entry h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin-top: 1.5em; }
.ks-entry h4 { font-size: 1.15rem; margin-top: 1.4em; }
.ks-entry a { color: var(--ks-link, var(--ks-ink)); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ks-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ks-entry a:hover { text-decoration-thickness: 4px; }
.ks-entry ul,
.ks-entry ol { padding-left: 1.4em; }
.ks-entry li { margin-bottom: 0.4em; }
.ks-entry li::marker { color: var(--ks-accent); }
.ks-entry blockquote { margin-inline: 0; }
.ks-entry blockquote p:last-child { margin-bottom: 0; }
.ks-entry blockquote cite { display: block; margin-top: 10px; font-size: 0.9rem; font-style: normal; color: var(--ks-muted); }
.ks-entry img { border-radius: var(--ks-img-radius, 8px); }
.ks-entry figure { margin-inline: 0; }
.ks-entry figcaption,
.wp-caption-text,
.wp-element-caption { margin-top: 8px; color: var(--ks-muted); font-size: 0.88rem; text-align: center; }
.ks-entry code,
.ks-entry kbd { padding: 0.12em 0.4em; background: var(--ks-soft); border-radius: 6px; font-family: var(--ks-mono); font-size: 0.88em; }
.ks-entry pre { padding: 20px 22px; background: #15131c; color: #f3f0e8; border-radius: 10px; overflow-x: auto; font-family: var(--ks-mono); font-size: 0.9rem; line-height: 1.6; }
.ks-entry pre code { padding: 0; background: none; color: inherit; }
.ks-entry table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ks-entry th,
.ks-entry td { padding: 10px 12px; border: 1px solid var(--ks-line); text-align: left; }
.ks-entry th { background: var(--ks-soft); }
.ks-entry .wp-block-table { overflow-x: auto; }
.ks-entry hr { border: 0; height: 1px; background: var(--ks-line); margin: 2.4em 0; }
.ks-entry .more-link { display: inline-block; margin-top: 4px; font-family: var(--ks-display); font-weight: 700; }
.ks-pagelinks { margin-top: 22px; font-weight: 700; }
.ks-pagelinks a,
.ks-pagelinks > span:not(:first-child) { margin-left: 6px; }

.ks-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ks-tags a { padding: 0.3em 0.75em; border-radius: 6px; background: var(--ks-soft); font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.ks-tags a::before { content: "#"; color: var(--ks-accent); margin-right: 1px; }

/* WordPress core classes */
.alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide,
.alignfull { width: 100%; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery-caption { font-size: 0.85rem; }
.sticky { position: relative; }
.bypostauthor > .comment-body { outline: 2px solid var(--ks-accent); }

/* Single post */
.ks-single__thumb { margin: 0; }
.ks-single__thumb img { display: block; width: 100%; height: auto; }
.ks-single .ks-tags { margin-top: 30px; }
.ks-author { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-top: 32px; padding: 22px; }
.ks-author__avatar { width: 88px; height: 88px; border-radius: 50%; }
.ks-author__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ks-muted); }
.ks-author__name { margin: 2px 0 6px; font-size: 1.35rem; }
.ks-author__name a { text-decoration: none; }
.ks-author__bio { margin: 0 0 8px; font-size: 0.98rem; color: var(--ks-muted); }
.ks-author__site { font-weight: 700; font-size: 0.92rem; }
@media (max-width: 520px) {
	.ks-author { grid-template-columns: 1fr; }
	.ks-author__avatar { width: 64px; height: 64px; }
}

.ks-postnav { margin-top: 36px; }
.ks-postnav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ks-postnav .nav-next { grid-column: 2; text-align: right; }
.ks-postnav a { display: block; height: 100%; padding: 18px 20px; text-decoration: none; }
.ks-postnav__label { display: block; margin-bottom: 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ks-muted); }
.ks-postnav__title { font-family: var(--ks-display); font-weight: 700; line-height: 1.3; }
@media (max-width: 640px) {
	.ks-postnav .nav-links { grid-template-columns: 1fr; }
	.ks-postnav .nav-next { grid-column: auto; }
}

/* Pagination */
.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 12px;
	font-family: var(--ks-display);
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.page-numbers.dots { background: transparent !important; border-color: transparent !important; }

/* Archive header */
.ks-archive-head { margin-bottom: 32px; }
.ks-archive-head__title { margin: 10px 0 8px; font-size: clamp(2.1rem, 5vw, 3.2rem); }
.ks-archive-head__desc { color: var(--ks-muted); max-width: 60ch; }
.ks-archive-head .ks-search { margin-top: 18px; max-width: 520px; }

/* Search + comments */
.ks-search { display: flex; gap: 8px; }
.ks-search__input,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	background: var(--ks-paper);
	color: var(--ks-ink);
	border: 1px solid var(--ks-line);
	border-radius: var(--ks-input-radius, 8px);
	font: inherit;
	font-size: 1rem;
}
.ks-search__input:focus,
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--ks-accent); box-shadow: 0 0 0 3px var(--ks-ring, rgba(0, 0, 0, 0.12)); }
.ks-search__btn {
	flex: none;
	display: grid;
	place-items: center;
	width: 50px;
	background: var(--ks-accent);
	color: var(--ks-on-accent);
	border: 0;
	border-radius: var(--ks-input-radius, 8px);
	cursor: pointer;
}

.ks-comments { margin-top: 44px; }
.ks-comments__title { font-size: 1.6rem; margin-bottom: 20px; }
.ks-comment-list,
.ks-comment-list .children { margin: 0; padding: 0; list-style: none; }
.ks-comment-list .children { margin-left: clamp(14px, 4vw, 34px); }
.comment-body { margin-bottom: 16px; padding: 18px 20px; background: var(--ks-paper); border: 1px solid var(--ks-line); border-radius: var(--ks-radius); }
.comment-author { display: flex; align-items: center; gap: 10px; font-family: var(--ks-display); font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { margin: 4px 0 10px; font-size: 0.82rem; }
.comment-metadata a { color: var(--ks-muted); text-decoration: none; }
.comment-content { font-size: 1rem; }
.reply a { font-size: 0.85rem; font-weight: 700; }
.comment-respond { padding: clamp(20px, 4vw, 30px); background: var(--ks-paper); border: 1px solid var(--ks-line); border-radius: var(--ks-radius); }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 0.92rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-reply-title small { margin-left: 10px; font-size: 0.85rem; }

/* 404 + empty */
.ks-404,
.ks-empty { padding: clamp(28px, 5vw, 48px); text-align: center; background: var(--ks-paper); border-radius: var(--ks-radius); }
.ks-404__num { margin: 0; font-family: var(--ks-display); font-weight: 800; font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--ks-accent); }
.ks-404 .ks-search,
.ks-empty .ks-search { max-width: 460px; margin: 18px auto 22px; }

/* Footer widgets */
.ks-footer__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; padding-bottom: 32px; margin-bottom: 32px; }
.ks-footer-widget ul { padding-left: 1.1em; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after { transition: none !important; animation: none !important; }
}


/* ==========================================================================
   Kiosk look
   ========================================================================== */
:root {
	--ks-bg: #fff6ec;
	--ks-paper: #ffffff;
	--ks-ink: #1b1230;
	--ks-muted: #5a5068;
	--ks-soft: #fbe9d7;
	--ks-line: #f0dcc6;
	--ks-plum: #3b1f5c;
	--ks-accent: #ff5a1f;
	--ks-on-accent: #15131c;
	--ks-link: #c2410c;
	--ks-radius: 22px;
	--ks-btn-radius: 999px;
	--ks-input-radius: 999px;
	--ks-img-radius: 16px;
	--ks-focus: #3b1f5c;
	--ks-ring: rgba(255, 90, 31, 0.25);
	--ks-display: "Syne", ui-sans-serif, system-ui, sans-serif;
	--ks-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--ks-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--ks-wrap: 1380px;
}

body { font-size: 1rem; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.02em; }

.ks-t0 { --ks-tone: #ffd23f; --ks-tone-ink: #1b1230; }
.ks-t1 { --ks-tone: #ff8fb1; --ks-tone-ink: #1b1230; }
.ks-t2 { --ks-tone: #2ec4b6; --ks-tone-ink: #1b1230; }
.ks-t3 { --ks-tone: #3b1f5c; --ks-tone-ink: #ffffff; }
.ks-t4 { --ks-tone: #ff5a1f; --ks-tone-ink: #1b1230; }
.ks-thumb__fallback { background: var(--ks-tone); color: var(--ks-tone-ink); font-weight: 800; }

.ks-btn { font-family: var(--ks-body); font-weight: 800; }
.ks-btn:hover { background: var(--ks-plum); color: #ffffff; }

/* Header */
.ks-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding-block: 22px 18px; }
.ks-header__search .ks-search { max-width: 300px; }
.ks-header__search .ks-search__input { background: var(--ks-paper); border-color: var(--ks-line); }
.ks-header__search .ks-search__btn { border-radius: 50%; width: 46px; background: var(--ks-plum); color: #ffffff; }
.ks-brand { text-align: center; }
.ks-brand__title { margin: 0; font-family: var(--ks-display); font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; }
.ks-brand__title a { text-decoration: none; }
.ks-brand__title a:hover { color: var(--ks-accent); }
.ks-brand__tagline { margin: 8px 0 0; font-size: 0.86rem; font-weight: 600; color: var(--ks-muted); }
.custom-logo { max-height: 90px; width: auto; }
.ks-header__cta { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }

/* Striped awning menu */
.ks-awning {
	position: relative;
	z-index: 40;
	background: repeating-linear-gradient(90deg, var(--ks-plum) 0 36px, #472a6c 36px 72px);
	color: #ffffff;
}
.ks-awning::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 18px;
	background:
		radial-gradient(circle at 18px 0, var(--ks-accent) 17px, transparent 18px) 0 0 / 36px 18px repeat-x;
}
.ks-nav { display: flex; align-items: center; justify-content: center; }
.ks-nav__search { display: none; }
.ks-menu { justify-content: center; gap: 4px; padding-block: 8px; }
.ks-menu > li > a { padding: 9px 16px; border-radius: 999px; font-family: var(--ks-display); font-size: 0.98rem; font-weight: 700; color: #ffffff; }
.ks-menu > li > a:hover { background: rgba(255, 255, 255, 0.14); }
.ks-menu .current-menu-item > a,
.ks-menu .current_page_item > a { background: var(--ks-accent); color: var(--ks-ink); }
.ks-menu .sub-menu { background: var(--ks-paper); border-radius: 16px; box-shadow: 0 16px 40px rgba(27, 18, 48, 0.18); }
.ks-menu .sub-menu a { padding: 8px 12px; border-radius: 10px; color: var(--ks-ink); font-weight: 600; }
.ks-menu .sub-menu a:hover { background: var(--ks-soft); }

@media (max-width: 1000px) {
	.ks-header__inner { grid-template-columns: minmax(0, 1fr) auto; }
	.ks-header__search { display: none; }
	.ks-brand { text-align: left; }
	.ks-header__cta .ks-cta { display: none; }
	.ks-nav-button { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--ks-plum); color: #ffffff; font-weight: 800; cursor: pointer; }
	.ks-nav { display: none; flex-direction: column; align-items: stretch; padding-block: 10px 16px; }
	.ks-header:has(.ks-nav-toggle:checked) .ks-nav { display: flex; }
	.ks-menu { flex-direction: column; align-items: stretch; }
	.ks-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; padding-left: 14px; }
	.ks-menu .sub-menu a { color: #ffffff; }
	.ks-nav__search { display: block; margin-top: 8px; }
}

/* Layout: cover over left+main, right sidebar full height */
.ks-layout {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr) 320px;
	grid-template-areas: "left main right";
	gap: 30px;
	align-items: start;
	padding-block: 48px 70px;
}
.ks-layout--cover { grid-template-areas: "cover cover right" "left main right"; grid-template-rows: auto 1fr; }
.ks-cover { grid-area: cover; }
.ks-main { grid-area: main; min-width: 0; }
.ks-side { min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.ks-side--left { grid-area: left; position: sticky; top: 20px; }
.ks-side--right { grid-area: right; }
@media (max-width: 1180px) {
	.ks-layout { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "main right" "left right"; }
	.ks-layout--cover { grid-template-areas: "cover cover" "main right" "left right"; grid-template-rows: auto auto 1fr; }
	.ks-side--left { position: static; }
}
@media (max-width: 820px) {
	.ks-layout,
	.ks-layout--cover { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cover" "main" "left" "right"; grid-template-rows: none; gap: 34px; padding-block: 36px 56px; }
	.ks-layout:not(.ks-layout--cover) { grid-template-areas: "main" "left" "right"; }
}

/* Cover story */
.ks-cover { position: relative; min-height: 440px; border-radius: 28px; overflow: hidden; background: var(--ks-plum); isolation: isolate; }
.ks-cover__thumb { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; z-index: -1; }
.ks-cover__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 18, 48, 0) 25%, rgba(27, 18, 48, 0.88) 100%); }
.ks-cover__body { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; padding: clamp(22px, 4vw, 42px); color: #ffffff; }
.ks-cover__flag { align-self: flex-start; margin-bottom: 12px; padding: 6px 14px; border-radius: 999px; background: var(--ks-accent); color: var(--ks-ink); font-family: var(--ks-body); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.ks-cover__title { max-width: 860px; margin: 4px 0 10px; font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 700; line-height: 1; letter-spacing: -0.035em; color: #ffffff; }
.ks-cover__title a { text-decoration: none; }
.ks-cover__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.ks-cover__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.ks-cover__deck { max-width: 640px; margin: 0 0 14px; font-size: 1.05rem; color: rgba(255, 255, 255, 0.9); }
.ks-cover .ks-meta,
.ks-cover .ks-meta a { color: rgba(255, 255, 255, 0.88); }
.ks-cover .ks-chips { position: relative; z-index: 1; }
.ks-cover .ks-meta { position: relative; z-index: 1; }

.ks-section-title { margin: 0 0 22px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.ks-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--ks-tone); color: var(--ks-tone-ink); font-size: 0.75rem; font-weight: 800; }
.ks-chip:hover { filter: brightness(1.06); }
.ks-meta a { color: var(--ks-ink); }

/* Two-column card grid */
.ks-feed--cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.ks-card { display: flex; flex-direction: column; background: var(--ks-paper); border-radius: var(--ks-radius); overflow: hidden; box-shadow: 0 2px 0 var(--ks-line); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.ks-card:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: 8px 10px 0 var(--ks-tone, var(--ks-accent)); }
.ks-card:nth-child(4n + 1) { --ks-tone: #ffd23f; }
.ks-card:nth-child(4n + 2) { --ks-tone: #ff8fb1; }
.ks-card:nth-child(4n + 3) { --ks-tone: #2ec4b6; }
.ks-card:nth-child(4n + 4) { --ks-tone: #ff5a1f; }
.ks-card .ks-chip { --ks-tone: inherit; }
.ks-card__thumb { aspect-ratio: 16 / 10; }
.ks-card__body { padding: 18px 20px 22px; }
.ks-card__title { margin: 2px 0 8px; font-size: 1.35rem; line-height: 1.15; }
.ks-card__title a:hover { color: var(--ks-link); }
.ks-card__excerpt { color: var(--ks-muted); font-size: 0.95rem; line-height: 1.6; }
.ks-card__excerpt p { margin: 0 0 10px; }
.ks-card .ks-meta { font-size: 0.8rem; }
.ks-card .ks-meta__item:last-child { display: none; }
@media (max-width: 620px) {
	.ks-feed--cards { grid-template-columns: minmax(0, 1fr); }
}

/* Full posts */
.ks-feed--full { display: flex; flex-direction: column; gap: 28px; }
.ks-full { background: var(--ks-paper); border-radius: var(--ks-radius); overflow: hidden; }
.ks-full__body { padding: clamp(22px, 4vw, 34px); }
.ks-full__title { margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; }
.ks-full__title a:hover { color: var(--ks-link); }
.ks-full .ks-meta { margin-bottom: 18px; }
.ks-full__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.ks-btn--ghost { background: transparent; color: var(--ks-ink); border: 2px solid var(--ks-ink); }

/* Left sidebar: colour blocks */
.ks-box__title,
.ks-box__heading { margin: 0 0 12px; font-family: var(--ks-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.ks-catlist { display: flex; flex-direction: column; gap: 6px; }
.ks-cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 11px 14px;
	border-radius: 14px;
	background: var(--ks-tone);
	color: var(--ks-tone-ink);
	font-family: var(--ks-display);
	font-size: 1rem;
	font-weight: 700;
	transition: transform 0.15s ease;
}
.ks-cat:hover,
.ks-cat.is-current { transform: translateX(6px); }
.ks-count { min-width: 28px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.65); color: var(--ks-ink); font-family: var(--ks-body); font-size: 0.75rem; text-align: center; }
.ks-pagelist a { display: block; padding: 8px 0; border-bottom: 2px dotted var(--ks-line); font-weight: 700; }
.ks-pagelist a:hover,
.ks-pagelist .current_page_item > a { color: var(--ks-link); }
.ks-side--left .widget.ks-box > :not(.ks-box__title) { margin: 8px 0; }

/* Right sidebar: shuffled posts */
.ks-box--random { padding: 22px; background: var(--ks-paper); border-radius: var(--ks-radius); }
.ks-box--random .ks-box__title { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.ks-box__hint { font-size: 0.8rem; font-weight: 700; color: var(--ks-link); }
.ks-rand { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 2px dotted var(--ks-line); }
.ks-rand:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.ks-rand__thumb { aspect-ratio: 16 / 10; border-radius: 16px; margin-bottom: 12px; }
.ks-rand__num { position: absolute; top: 10px; left: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ks-accent); color: var(--ks-ink); font-family: var(--ks-body); font-size: 0.8rem; font-weight: 800; }
.ks-rand__title { font-size: 1.08rem; font-weight: 700; line-height: 1.2; }
.ks-rand__title a:hover { color: var(--ks-link); }
.ks-rand__text { font-size: 0.88rem; line-height: 1.6; color: var(--ks-muted); }
.ks-rand__more { color: var(--ks-link); font-size: 0.88rem; text-decoration: none; }
.ks-rand__more:hover { text-decoration: underline; }
.ks-side--right .widget.ks-box { padding: 18px 20px; background: var(--ks-paper); border-radius: var(--ks-radius); }
@media (max-width: 820px) {
	.ks-side--left { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
	.ks-randlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 22px; }
	.ks-rand:last-child { border-bottom: 2px dotted var(--ks-line); margin-bottom: 20px; padding-bottom: 20px; }
}

/* Single + page */
.ks-single { background: var(--ks-paper); border-radius: 28px; overflow: hidden; }
.ks-single__head { padding: clamp(24px, 5vw, 44px) clamp(22px, 5vw, 44px) 20px; }
.ks-single__title { margin: 8px 0 16px; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.02; letter-spacing: -0.035em; }
.ks-single__thumb { margin-inline: clamp(12px, 3vw, 22px); }
.ks-single__thumb img { border-radius: 20px; }
.ks-single__body { padding: 30px clamp(22px, 5vw, 44px) clamp(24px, 5vw, 44px); }
.ks-entry a { color: var(--ks-link); text-decoration-color: currentColor; }
.ks-entry blockquote,
.ks-entry .wp-block-quote { padding: 22px 26px; border-radius: 22px; background: #ffd23f; font-family: var(--ks-display); font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
.ks-entry blockquote cite { color: var(--ks-ink); }
.ks-author { background: var(--ks-soft); border-radius: 20px; }
.ks-postnav a { background: var(--ks-paper); border-radius: 20px; transition: transform 0.15s ease; }
.ks-postnav a:hover { transform: translateY(-3px); }
.ks-tags a { border-radius: 999px; }
.page-numbers { border-radius: 999px; background: var(--ks-paper); color: var(--ks-ink); }
a.page-numbers:hover { background: var(--ks-plum); color: #ffffff; }
.page-numbers.current { background: var(--ks-accent); color: var(--ks-ink); }
.ks-kicker { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--ks-plum); color: #ffffff; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.ks-archive-head__title { letter-spacing: -0.04em; }
.ks-404__num { color: var(--ks-plum); text-shadow: 6px 6px 0 var(--ks-accent); }
.comment-body,
.comment-respond { border: 0; }

/* Footer */
.ks-footer { margin-top: 20px; background: var(--ks-plum); color: #ffffff; padding-block: 46px 30px; border-radius: 40px 40px 0 0; }
.ks-footer a { color: inherit; text-decoration: none; }
.ks-footer a:hover { color: #ffd23f; }
.ks-footer__widgets { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.ks-footer-widget__title { font-size: 1.15rem; color: #ffd23f; }
.ks-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.ks-footer__brand { font-family: var(--ks-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.04em; }
.ks-footer__menu { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-weight: 700; }
.ks-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); }
.ks-footer__bottom p { margin: 0; }
@media (max-width: 560px) {
	.ks-brand__title { font-size: 1.7rem; }
	.ks-brand__tagline { font-size: 0.8rem; }
}
