/*
Theme Name: Kimmie Showcase 76
Theme URI: https://kimmiep.com
Author: Kimberly Pash
Author URI: https://kimmiep.com
Description: 70s-meets-modern one-page portfolio built on UIkit 3 with a light/dark toggle. A warm variation of Kimmie Showcase 26.
Version: 1.0.0
Requires at least: 6.0
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: kimmie-showcase-76
Tags: one-column, portfolio, dark-mode, custom-menu, featured-images
*/

/* ─── TOKENS ─── */
/*
 * 70s palette. Variable names are kept from Showcase 26 so the rest of the
 * stylesheet works unchanged: "purple" = primary (rust), "lilac" = highlight
 * (mustard). The four --s* colours (mustard, orange, pink, avocado) drive
 * every stripe, the sun, the groovy ribbon and the pop-art title shadow.
 */
:root {
	--bg: #f5ede0;
	--surface: #fbf6ec;
	--text: #2b1c13;
	--text-sub: #5b4636;
	--muted: #95806c;
	--line: #e2d3bd;
	--purple: #b4471f;
	--purple-ink: #fff8ee;
	--accent-text: #a23d18;
	--lilac: #eab23f;
	--lilac-soft: #e8c69a;
	--hl-ink: #2b1c13;
	--connect-bg: #3b2418;
	--ph-a: #ece0cd;
	--ph-b: #d6c3a6;
	--ph-shadow: rgba(59, 36, 24, .2);
	--s1: #eab23f; /* mustard */
	--s2: #e07b2e; /* orange */
	--s3: #d9767c; /* dusty pink */
	--s4: #7d8c2a; /* avocado */
	--grain-opacity: .07;
	--trans: .35s cubic-bezier(.4, 0, .2, 1);
	--font: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
	--font-display: 'Fraunces', Georgia, serif;
}
html.dark {
	--bg: #1b130e;
	--surface: #251a13;
	--text: #f5e9d8;
	--text-sub: #cdb9a2;
	--muted: #8c7763;
	--line: #3a2b20;
	--purple: #e8843a;
	--purple-ink: #1b130e;
	--accent-text: #f0a25c;
	--lilac: #e4a93a;
	--lilac-soft: #4a3020;
	--hl-ink: #1b130e;
	--connect-bg: #2b1a10;
	--ph-a: #2c2017;
	--ph-b: #1f1610;
	--ph-shadow: rgba(0, 0, 0, .45);
	--s1: #e4a93a;
	--s2: #d9712a;
	--s3: #c96d74;
	--s4: #8a9a34;
	--grain-opacity: .05;
}

/* ─── BASE (overrides UIkit defaults) ─── */
html {
	font-family: var(--font);
	font-size: 16px;
	background: var(--bg);
	color: var(--text-sub);
	scroll-behavior: smooth;
	scroll-padding-top: 90px;
	-webkit-font-smoothing: antialiased;
}
body {
	background: var(--bg);
	color: var(--text-sub);
	overflow-x: hidden;
	transition: background var(--trans), color var(--trans);
}
h1, h2, h3, h4, h5, h6, .uk-h1, .uk-h2, .uk-h3 {
	font-family: var(--font);
	color: var(--text);
	transition: color var(--trans);
}
a, .uk-link { color: var(--text); transition: color var(--trans); }
a:hover, .uk-link:hover { color: var(--accent-text); text-decoration: none; }
::selection { background: var(--lilac); color: var(--hl-ink); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
code { background: var(--line); color: var(--text); }

.kps-skip {
	position: absolute; left: 16px; top: -60px; z-index: 1100;
	background: var(--purple); color: var(--purple-ink); padding: 10px 16px;
}
.kps-skip:focus { top: 12px; color: var(--purple-ink); }

.kps-icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }

/* ─── TYPE ─── */
.kps-display {
	font-size: clamp(2.6rem, 5.4vw, 4.6rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -.035em;
	margin: 0 0 28px;
}
.kps-h2 {
	font-size: clamp(2rem, 3.2vw, 2.6rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -.03em;
	margin: 14px 0 22px;
}
.kps-h3 {
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -.01em;
	margin: 0 0 10px;
}
.kps-lead {
	font-size: 1.08rem;
	line-height: 1.6;
	color: var(--text-sub);
	max-width: 30em;
	margin: 0 0 34px;
}
.kps-hl {
	background: var(--lilac);
	color: var(--hl-ink);
	padding: 0 .14em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* Section numbers: 01, 02 —, … */
.kps-num {
	display: inline-block;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	color: var(--accent-text);
	padding-bottom: 4px;
	border-bottom: 2px solid currentColor;
}
.kps-num-wrap { display: inline-flex; align-items: center; gap: 12px; color: var(--accent-text); }
.kps-dash { width: 24px; height: 1.5px; background: currentColor; }
.kps-under::after {
	content: ''; display: block;
	width: 26px; height: 2px; background: var(--text);
	margin-top: 26px;
}

/* Text link with arrow */
.kps-link {
	display: inline-flex; align-items: center; gap: .55em;
	font-weight: 500; font-size: 1.05rem;
	color: var(--accent-text);
}
.kps-link span { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.kps-link .kps-icon { transition: transform var(--trans); }
.kps-link:hover { color: var(--accent-text); }
.kps-link:hover .kps-icon { transform: translateX(4px); }

/* ─── BUTTONS ─── */
.kps-btns { display: flex; flex-wrap: wrap; gap: 18px; }
.kps-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .7em;
	min-width: 148px;
	padding: 14px 26px;
	font-family: var(--font); font-size: .95rem; font-weight: 500; line-height: 1;
	border: 1.5px solid transparent;
	border-radius: 0;
	cursor: pointer;
	transition: background var(--trans), color var(--trans), border-color var(--trans), transform .2s ease;
}
.kps-btn:hover { transform: translateY(-1px); }
.kps-btn--primary { background: var(--purple); border-color: var(--purple); color: var(--purple-ink); }
.kps-btn--primary:hover { background: var(--accent-text); border-color: var(--accent-text); color: var(--purple-ink); }
.kps-btn--outline { background: transparent; border-color: var(--text); color: var(--text); }
.kps-btn--outline:hover { background: var(--text); color: var(--bg); }
.kps-btn--light { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.kps-btn--light:hover { background: #fff; color: #3d1a4e; }

/* ─── HEADER ─── */
.kps-header {
	position: relative; z-index: 980;
	background: var(--bg);
	transition: background var(--trans), box-shadow var(--trans);
}
.kps-header--stuck { box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(0, 0, 0, .25); }
.kps-header-inner, .kps-footer-inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.kps-header-inner { min-height: 96px; transition: min-height var(--trans); }
.kps-header--stuck .kps-header-inner { min-height: 68px; }
.kps-header--stuck .kps-logo { font-size: 1.1rem; }
.kps-header--stuck .kps-logo::after { margin-top: 8px; }
.kps-logo, .kps-logo::after { transition: font-size var(--trans), margin var(--trans), width var(--trans), background var(--trans); }
.kps-logo {
	display: inline-block;
	font-size: 1.3rem; font-weight: 700; line-height: 1;
	letter-spacing: -.03em;
	color: var(--text);
}
.kps-logo::after {
	content: ''; display: block;
	width: 26px; height: 2px; background: var(--text);
	margin-top: 14px;
	transition: width var(--trans), background var(--trans);
}
.kps-logo:hover { color: var(--text); }
.kps-logo:hover::after { width: 44px; background: var(--accent-text); }

.kps-header-right { display: flex; align-items: center; gap: 22px; }
.kps-nav { display: flex; gap: 34px; margin: 0; padding: 0; list-style: none; }
.kps-nav a {
	position: relative;
	font-size: .92rem; font-weight: 500; color: var(--text);
}
.kps-nav a::after {
	content: ''; position: absolute; left: 0; bottom: -6px;
	width: 0; height: 2px; background: var(--accent-text);
	transition: width var(--trans);
}
.kps-nav a:hover, .kps-nav .uk-active a, .kps-nav .current-menu-item a { color: var(--accent-text); }
.kps-nav a:hover::after, .kps-nav .uk-active a::after { width: 100%; }
.kps-nav--small { gap: 28px; }
.kps-nav--small a { font-size: .82rem; }
.kps-vrule { width: 1px; height: 30px; background: var(--line); }

/* Sun / half-moon toggle */
.kps-toggle {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px; margin: 0;
	background: none; border: 0; cursor: pointer;
	color: var(--text);
}
.kps-toggle > span { display: inline-flex; transition: opacity var(--trans), transform var(--trans), color var(--trans); }
.kps-toggle-moon { opacity: .45; }
.kps-toggle:hover .kps-toggle-sun { transform: rotate(45deg); }
html.dark .kps-toggle-sun { opacity: .45; }
html.dark .kps-toggle-moon { opacity: 1; transform: rotate(180deg); color: var(--accent-text); }

.kps-burger { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--text); }

/* Offcanvas (mobile menu) */
.uk-offcanvas-bar.kps-oc-bar {
	background: var(--bg);
	color: var(--text);
	display: flex; flex-direction: column; gap: 36px;
	padding: 32px 28px;
}
.uk-offcanvas-bar.kps-oc-bar a { color: var(--text); }
.uk-offcanvas-bar.kps-oc-bar .uk-offcanvas-close { color: var(--text); }
.kps-oc-nav { list-style: none; margin: 0; padding: 0; }
.kps-oc-nav li { border-bottom: 1px solid var(--line); }
.uk-offcanvas-bar.kps-oc-bar .kps-oc-nav a {
	display: block; padding: 14px 0;
	font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em;
}
.uk-offcanvas-bar.kps-oc-bar .kps-oc-nav a:hover { color: var(--accent-text); }
.uk-offcanvas-bar.kps-oc-bar .kps-btn--outline:hover { color: var(--bg); }

/* ─── LAYOUT ─── */
.kps-section { padding: 72px 0; }
.kps-section--ruled > .uk-container::before {
	content: ''; display: block;
	height: 1px; background: var(--line);
	margin-bottom: 72px;
}
.kps-section--ruled { padding-top: 0; }

/* UIkit grid dividers in theme colours */
.uk-grid-divider > :not(.uk-first-column)::before { border-left-color: var(--line); }
.uk-grid-divider.uk-grid-stack > .uk-grid-margin::before { border-top-color: var(--line); }

/* ─── IMAGES & PLACEHOLDERS ─── */
.kps-frame { position: relative; overflow: hidden; background: var(--ph-a); }
.kps-frame--hero { aspect-ratio: 4 / 5; }
.kps-frame--story { aspect-ratio: 4 / 3; }
.kps-img { display: block; width: 100%; height: 100%; object-fit: cover; }

.kps-ph {
	position: relative; width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(140deg, var(--ph-a) 0%, var(--ph-b) 100%);
	overflow: hidden;
}
/* soft "leaf shadow" stripes */
.kps-ph--shadow::before {
	content: ''; position: absolute; inset: -30%;
	background: repeating-linear-gradient(118deg, transparent 0 26px, var(--ph-shadow) 26px 34px);
	-webkit-mask: radial-gradient(ellipse at 75% 25%, #000 0 35%, transparent 70%);
	mask: radial-gradient(ellipse at 75% 25%, #000 0 35%, transparent 70%);
	filter: blur(2px);
	transform: rotate(-8deg);
}
.kps-ph--lilac { background: linear-gradient(150deg, var(--lilac-soft), color-mix(in srgb, var(--lilac-soft) 70%, var(--purple))); }
.kps-ph--stripes {
	background: repeating-linear-gradient(135deg,
		var(--purple) 0 34px, #f1ecf1 34px 68px, #b37acd 68px 102px, #1d1622 102px 112px);
}
.kps-ph--number span {
	font-size: clamp(3rem, 7vw, 5rem); font-weight: 800; letter-spacing: -.05em;
	color: var(--text); opacity: .85;
}

/* ─── 01 HERO ─── */
.kps-hero { padding: 28px 0 80px; }
.kps-hero-copy { display: flex; gap: 40px; }
.kps-rail {
	display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
	padding-top: 14px;
}
.kps-rail::after { content: ''; flex: 1; width: 1px; margin-left: 1px; background: var(--line); min-height: 120px; }
.kps-hero-media { position: relative; margin: 0; }
/* ─── MOBILE JUMP LIST ─── */
.kps-jump ul { list-style: none; margin: 0 0 24px; padding: 0; }
.kps-jump li + li { border-top: 1px solid var(--line); }
.kps-jump a {
	display: flex; align-items: center; gap: 18px;
	padding: 12px 0; color: var(--text);
}
.kps-jump-thumb {
	width: 52px; height: 52px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	overflow: hidden; color: var(--text);
}
.kps-jump-thumb .kps-ph--number span { font-size: 1.6rem; }
.kps-jump-label { flex: 1; font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; }

/* ─── 02 STORY ─── */
.kps-story-text {
	font-size: 1.15rem; line-height: 1.6; color: var(--text);
	max-width: 27em; margin: 0 0 26px;
}

/* ─── 03 APPROACH ─── */
.kps-step-icon { color: var(--accent-text); margin-bottom: 18px; stroke-width: 1.4; }
.kps-step p { font-size: .9rem; line-height: 1.5; margin: 0; max-width: 14em; }

/* ─── 04 WORK ─── */
.kps-work-card { display: block; color: var(--text); }
.kps-work-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ph-a); }
.kps-work-media > * { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
a.kps-work-card:hover .kps-work-media > * { transform: scale(1.04); }
.kps-work-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 16px; }
.kps-work-title { font-size: 1rem; font-weight: 600; margin: 0 0 4px; }
.kps-work-desc { font-size: .88rem; line-height: 1.45; margin: 0; color: var(--text-sub); }
.kps-work-arrow { margin-bottom: 4px; transition: transform var(--trans), color var(--trans); }
a.kps-work-card:hover { color: var(--text); }
a.kps-work-card:hover .kps-work-arrow { transform: translateX(4px); color: var(--accent-text); }

/* ─── 05 SKILLS ─── */
.kps-bullets { list-style: none; margin: 0; padding: 0; }
.kps-bullets li {
	position: relative; padding-left: 18px; margin-bottom: 8px;
	font-size: .86rem; line-height: 1.45;
}
.kps-bullets li::before {
	content: ''; position: absolute; left: 2px; top: .58em;
	width: 5px; height: 5px; border-radius: 50%;
	background: var(--text);
}

/* ─── LET'S CONNECT ─── */
.kps-connect {
	position: relative; overflow: hidden;
	padding: 72px 0;
	background:
		radial-gradient(ellipse at 15% 0%, rgba(230, 166, 243, .18), transparent 55%),
		radial-gradient(ellipse at 90% 100%, rgba(0, 0, 0, .35), transparent 60%),
		var(--connect-bg);
	color: rgba(255, 255, 255, .88);
	transition: background-color var(--trans);
}
.kps-connect-bg { position: absolute; inset: 0; opacity: .28; mix-blend-mode: luminosity; }
.kps-connect > .uk-container { position: relative; }
.kps-connect-title {
	font-size: clamp(3rem, 6.4vw, 5rem);
	font-weight: 700; line-height: 1.02; letter-spacing: -.04em;
	color: #fff; margin: 0;
}
.kps-connect-title .kps-hl { color: #170e1b; background: #e6a6f3; }
.kps-connect-side { border-left: 1px solid rgba(255, 255, 255, .35); padding-left: 40px; }
.kps-connect-side p { font-size: 1.05rem; line-height: 1.6; margin: 0 0 26px; max-width: 22em; color: rgba(255, 255, 255, .88); }

/* ─── FOOTER ─── */
.kps-footer { padding: 28px 0; }
.kps-footer-name {
	display: inline-block; font-weight: 700; letter-spacing: -.02em; color: var(--text);
}
.kps-footer-name::after { content: ''; display: block; width: 22px; height: 2px; background: var(--text); margin-top: 8px; }
.kps-copy { margin: 10px 0 0; font-size: .75rem; color: var(--muted); }

/* ─── CONTACT MODAL ─── */
.uk-modal-dialog.kps-modal {
	background: var(--surface); color: var(--text-sub);
	padding: 48px 40px; border-top: 6px solid var(--purple);
}
.kps-modal .uk-modal-close-default { color: var(--text); }
.kps-modal .kps-h2 { margin-top: 0; }
.kps-modal-resume { margin: 28px 0 0; }
.kps-admin-note { font-size: .85rem; padding: 12px 14px; border: 1px dashed var(--line); }
.kps-form input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.kps-form textarea, .kps-form select {
	width: 100%; padding: 12px 14px; margin-bottom: 12px;
	font-family: var(--font); font-size: .95rem;
	background: var(--bg); color: var(--text);
	border: 1.5px solid var(--line); border-radius: 0;
}
.kps-form input:focus, .kps-form textarea:focus { border-color: var(--accent-text); outline: none; }
.kps-form [type=submit], .kps-form button {
	padding: 14px 26px; font-family: var(--font); font-weight: 500;
	background: var(--purple); color: var(--purple-ink); border: 0; cursor: pointer;
}

/* ─── INNER PAGES ─── */
.kps-page { padding: 48px 0 96px; }
.kps-page-head { margin-bottom: 40px; }
.kps-h1-page { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; margin: 12px 0 18px; }
.kps-page-media { margin: 0 0 40px; }
.kps-prose { font-size: 1.08rem; line-height: 1.75; color: var(--text-sub); }
.kps-prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.kps-prose img { height: auto; }
.kps-pagination { margin-top: 56px; }
.kps-pagination .nav-links { display: flex; gap: 14px; }
.kps-pagination .current { color: var(--accent-text); font-weight: 600; }

/* ─── RESPONSIVE ─── */
@media (max-width: 959px) {
	.kps-header-inner { min-height: 80px; }
	.kps-hero { padding-bottom: 48px; }
	.kps-hero-copy { gap: 0; }
	.kps-rail { display: none; }
	.kps-frame--hero { aspect-ratio: 4 / 3; }
		.kps-section { padding: 52px 0; }
	.kps-section--ruled { padding-top: 0; }
	.kps-section--ruled > .uk-container::before { margin-bottom: 52px; }
	.kps-connect-side { border-left: 0; padding-left: 0; }
}
@media (max-width: 639px) {
	.kps-btns { flex-direction: column; align-items: flex-start; gap: 12px; }
	.kps-step p { max-width: none; }
	.kps-footer-inner { align-items: flex-start; }
}

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

/* ═══════════════════════════════════════════════════════════
   70s LAYER — everything that makes Showcase 76 different.
   Soft serif headings, pill shapes, arches, stripes, a sun, grain.
   ═══════════════════════════════════════════════════════════ */

/* Reusable four-colour stripes */
:root {
	--stripes-h: linear-gradient(var(--s1) 0 25%, var(--s2) 25% 50%, var(--s3) 50% 75%, var(--s4) 75% 100%);
	--stripes-v: linear-gradient(90deg, var(--s1) 0 25%, var(--s2) 25% 50%, var(--s3) 50% 75%, var(--s4) 75% 100%);
}

/* Film grain over the whole page */
body::after {
	content: ''; position: fixed; inset: 0; z-index: 2000; pointer-events: none;
	opacity: var(--grain-opacity);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	mix-blend-mode: multiply;
}
html.dark body::after { mix-blend-mode: screen; }

/* ─── Type: soft, chunky serif for headings ─── */
.kps-display, .kps-h2, .kps-h1-page, .kps-connect-title, .kps-logo, .kps-footer-name,
.uk-offcanvas-bar.kps-oc-bar .kps-oc-nav a, .kps-ph--number span {
	font-family: var(--font-display);
	font-variation-settings: "SOFT" 100, "WONK" 1;
	font-optical-sizing: auto;
}
.kps-display { font-weight: 700; letter-spacing: -.025em; line-height: 1.02; }
.kps-h2 { font-weight: 650; letter-spacing: -.02em; }
.kps-logo { font-weight: 700; letter-spacing: -.01em; font-size: 1.4rem; }
.kps-connect-title { font-weight: 700; letter-spacing: -.025em; }
.uk-offcanvas-bar.kps-oc-bar .kps-oc-nav a { font-weight: 600; letter-spacing: -.01em; }

/* Highlight becomes a rounded mustard pill */
.kps-hl { padding: 0 .22em .04em; border-radius: .4em; }

/* Logo / footer / title dashes become little stripe bars */
.kps-logo::after, .kps-footer-name::after, .kps-under::after {
	height: 6px; width: 34px; border-radius: 3px;
	background: var(--stripes-v);
}
.kps-logo:hover::after { width: 52px; background: var(--stripes-v); }
.kps-header--stuck .kps-logo::after { height: 5px; }

/* Section numbers in a pill */
.kps-num {
	border: 0; padding: 6px 12px 5px; border-radius: 999px;
	background: var(--accent-text); color: var(--purple-ink);
	font-size: .82rem; letter-spacing: .04em;
}
.kps-num-wrap .kps-dash { background: var(--accent-text); }

/* ─── Buttons & fields: pills ─── */
.kps-btn { border-radius: 999px; padding: 15px 28px; }
.kps-form [type=submit], .kps-form button { border-radius: 999px; }
.kps-form input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.kps-form textarea, .kps-form select { border-radius: 14px; }

/* ─── Shapes: arches & rounded frames ─── */
.kps-frame--hero { border-radius: 999px 999px 18px 18px; }
/* Hero photo: slight zoom hides the photo's worn border; crop favours sky + person */
.kps-frame--hero .kps-img { object-position: 50% 40%; transform: scale(1.06); }
.kps-frame--story { border-radius: 28px; }
.kps-work-media { border-radius: 20px; }

/* Story photo: a whole, slightly tilted Polaroid (the photo carries its own border) */
.kps-frame--polaroid {
	aspect-ratio: auto; border-radius: 0; background: none; overflow: visible;
	max-width: 480px; margin-inline: auto;
	transform: rotate(-2.5deg);
	filter: drop-shadow(0 18px 28px rgba(59, 36, 24, .28));
	transition: transform var(--trans);
}
.kps-frame--polaroid:hover { transform: rotate(-1deg) translateY(-4px); }
.kps-frame--polaroid .kps-img { height: auto; object-fit: contain; }
/* Day / night versions of bundled photos follow the toggle */
.kps-img--dark, html.dark .kps-img--light { display: none; }
html.dark .kps-img--dark { display: block; }
html.dark .kps-frame--polaroid { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); }
.kps-jump-thumb { border-radius: 14px; }
.uk-modal-dialog.kps-modal { border-radius: 28px; border-top: 0; overflow: hidden; }
.uk-modal-dialog.kps-modal::before {
	content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px;
	background: var(--stripes-h);
}

/* Hero: rainbow sun on a horizon line */
.kps-sun {
	position: absolute; left: -48px; bottom: -6px;
	width: 46%; aspect-ratio: 2 / 1;
	border-radius: 999px 999px 0 0;
	background: radial-gradient(circle farthest-side at 50% 100%,
		var(--bg) 0 22%, var(--s1) 22% 42%, var(--s2) 42% 62%, var(--s3) 62% 82%, var(--s4) 82% 100%);
	pointer-events: none;
}
.kps-hero-media::after {
	content: ''; position: absolute; left: -64px; bottom: -7px;
	width: calc(46% + 32px); height: 3px; border-radius: 3px;
	background: var(--text); opacity: .85;
}
.kps-rail::after { background: var(--stripes-v); width: 4px; border-radius: 2px; }

/* Skill bullets: tiny suns */
.kps-bullets li::before {
	width: 8px; height: 8px; top: .48em; left: 0;
	background: radial-gradient(circle, var(--s1) 0 40%, var(--s2) 40% 70%, var(--s3) 70%);
}

/* ─── Placeholders in warm tones ─── */
.kps-ph--lilac { background: linear-gradient(160deg, var(--lilac-soft), color-mix(in srgb, var(--lilac-soft) 60%, var(--s2))); }
.kps-ph--stripes {
	background: radial-gradient(circle at 100% 100%,
		var(--s4) 0 18%, var(--s3) 18% 33%, var(--s2) 33% 48%, var(--s1) 48% 63%, var(--surface) 63%);
}
.kps-ph--number span { color: var(--accent-text); }

/* Sunburst: mustard/orange rays from a cream sun, on an avocado horizon */
.kps-ph--rays {
	background:
		linear-gradient(to top, var(--s4) 0 9%, transparent 9%),
		radial-gradient(circle farthest-side at 50% 91%,
			var(--surface) 0 24%, var(--s3) 24% 30%, transparent 30%),
		repeating-conic-gradient(from -90deg at 50% 91%, var(--s1) 0 9deg, var(--s2) 9deg 18deg);
}

/* ─── Let's Connect: espresso band with stripes along the top ─── */
.kps-connect { background: var(--connect-bg); padding-top: 104px; }
.kps-connect::before {
	content: ''; position: absolute; left: 0; right: 0; top: 0; height: 40px;
	background: var(--stripes-h);
}
.kps-connect { padding-bottom: 168px; }

/* Pop-art title: big, cream, with a stacked offset shadow in stripe colours */
.kps-connect-title {
	font-size: clamp(3.6rem, 9vw, 7.5rem);
	line-height: .95; color: #fff3e0;
	text-shadow:
		.03em .03em 0 var(--s1), .06em .06em 0 var(--s2),
		.09em .09em 0 var(--s3), .12em .12em 0 var(--s4);
	padding-bottom: .12em;
}
.kps-connect-title .kps-hl { background: none; color: inherit; padding: 0; }

/* Groovy ribbon flowing across the bottom of the band */
.kps-groove {
	position: absolute; left: 0; bottom: 0;
	width: 100%; height: 140px; pointer-events: none;
}
.kps-groove path { fill: none; stroke-width: 22px; vector-effect: non-scaling-stroke; }
.kps-btn--light:hover { color: var(--connect-bg); }

.kps-footer { border-top: 1px solid var(--line); }

@media (max-width: 959px) {
	.kps-sun { left: -10px; width: 40%; }
	.kps-hero-media::after { left: -16px; width: calc(40% + 12px); }
	.kps-frame--hero { border-radius: 200px 200px 18px 18px; }
	.kps-frame--hero { aspect-ratio: 1 / 1; } /* square on phones suits the tall photo */
	.kps-frame--hero .kps-img { object-position: 50% 50%; }
	.kps-connect { padding-top: 84px; }
	.kps-connect::before { height: 28px; }
	.kps-connect { padding-bottom: 128px; }
	.kps-groove { height: 100px; }
}
