/*
Theme Name: ERIC KIM AI HyperSearch
Theme URI: https://erickim.ai/
Author: ERIC KIM + ChatGPT
Author URI: https://erickim.ai/
Description: Ultra-fast PHP 8 AI-search optimized WordPress theme for ERIC KIM and erickim.ai. Brutalist typography, JSON-LD graph, llms.txt, llms-full.txt, ai-manifest.json, ai-sitemap.json, and zero front-end JavaScript from the theme.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eric-kim-ai-hypersearch
Tags: blog, one-column, custom-logo, featured-images, full-site-editing, theme-json, accessibility-ready, seo, ai-search, lightweight
*/

:root {
	--ek-bg: #fff;
	--ek-fg: #000;
	--ek-muted: #4b4b4b;
	--ek-line: #000;
	--ek-max: 82rem;
	--ek-content: 54rem;
	--ek-gap: clamp(1rem, 2.8vw, 2.25rem);
	--ek-h1: clamp(3.5rem, 13vw, 12rem);
	--ek-h2: clamp(2.25rem, 7vw, 6.5rem);
	--ek-body: clamp(1.125rem, 1.35vw, 1.5rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
	margin: 0;
	background: var(--ek-bg);
	color: var(--ek-fg);
	font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: var(--ek-body);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.045em;
	text-rendering: optimizeLegibility;
}

a { color: currentColor; text-decoration-thickness: 0.09em; text-underline-offset: 0.13em; }
a:hover, a:focus { text-decoration-style: wavy; }
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
::selection { background: #000; color: #fff; }

.skip-link {
	position: absolute;
	left: -999px;
	top: 1rem;
	z-index: 1000;
	background: #000;
	color: #fff;
	padding: 0.75rem 1rem;
}
.skip-link:focus { left: 1rem; }

.site-header, .site-footer {
	max-width: var(--ek-max);
	margin: 0 auto;
	padding: var(--ek-gap);
}
.site-header {
	border-bottom: 0.22rem solid var(--ek-line);
	display: grid;
	gap: 1rem;
}
.site-branding { display: grid; gap: 0.25rem; }
.site-title {
	font-size: clamp(2rem, 7vw, 5.8rem);
	font-weight: 1000;
	line-height: 0.82;
	letter-spacing: -0.095em;
	text-transform: uppercase;
	margin: 0;
}
.site-title a { text-decoration: none; }
.site-description {
	margin: 0;
	max-width: 48rem;
	font-size: clamp(1rem, 2vw, 1.35rem);
	letter-spacing: -0.035em;
	text-transform: uppercase;
}
.main-navigation .menu, .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.main-navigation a, .menu a {
	display: inline-block;
	border: 0.16rem solid #000;
	padding: 0.38rem 0.55rem;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 0.82rem;
	letter-spacing: -0.02em;
}
.main-navigation a:hover, .menu a:hover { background: #000; color: #fff; }

.site-main, .main-content {
	max-width: var(--ek-max);
	margin: 0 auto;
	padding: var(--ek-gap);
}
.hero {
	padding: clamp(1rem, 5vw, 4rem) 0;
	border-bottom: 0.22rem solid #000;
}
.hero-kicker, .archive-label, .ai-summary-label, .entry-meta, .machine-label {
	font-size: clamp(0.8rem, 1.3vw, 1rem);
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	font-weight: 1000;
}
.hero-title, .page-title, .entry-title {
	margin: 0;
	font-size: var(--ek-h1);
	font-weight: 1000;
	line-height: 0.78;
	letter-spacing: -0.12em;
	text-transform: uppercase;
	max-width: 13ch;
}
.hero-subtitle, .archive-description {
	max-width: 58rem;
	font-size: clamp(1.3rem, 3vw, 2.65rem);
	line-height: 0.95;
	margin: 1rem 0 0;
	letter-spacing: -0.07em;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	gap: 0;
	border-left: 0.18rem solid #000;
	border-top: 0.18rem solid #000;
	margin-top: var(--ek-gap);
}
.card {
	padding: clamp(1rem, 2vw, 1.5rem);
	border-right: 0.18rem solid #000;
	border-bottom: 0.18rem solid #000;
	min-height: 18rem;
	display: grid;
	align-content: space-between;
	gap: 1rem;
}
.card-title {
	margin: 0;
	font-size: clamp(2rem, 4vw, 4.4rem);
	font-weight: 1000;
	line-height: 0.82;
	letter-spacing: -0.105em;
	text-transform: uppercase;
}
.card-title a { text-decoration: none; }
.card-excerpt {
	margin: 0;
	font-size: clamp(1rem, 1.5vw, 1.25rem);
	line-height: 1.08;
	letter-spacing: -0.04em;
	color: var(--ek-muted);
}
.entry-meta { color: var(--ek-muted); }
.entry-meta a { color: #000; }

.singular {
	max-width: var(--ek-content);
	margin: 0 auto;
	padding-top: var(--ek-gap);
}
.entry-header { display: grid; gap: 1rem; margin-bottom: var(--ek-gap); }
.post-thumbnail { margin: var(--ek-gap) 0; border: 0.18rem solid #000; }
.entry-content {
	font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
	font-weight: 700;
	font-size: clamp(1.3rem, 2.2vw, 2.1rem);
	line-height: 1.08;
	letter-spacing: -0.045em;
}
.entry-content > * { margin-block: 0 1.05em; }
.entry-content h2, .entry-content h3, .entry-content h4 {
	font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-weight: 1000;
	line-height: 0.82;
	letter-spacing: -0.105em;
	text-transform: uppercase;
	margin-top: 1.2em;
}
.entry-content h2 { font-size: var(--ek-h2); }
.entry-content h3 { font-size: clamp(2rem, 5vw, 4.3rem); }
.entry-content blockquote {
	margin-inline: 0;
	border-left: 0.25rem solid #000;
	padding-left: 1rem;
	font-style: normal;
}
.entry-content code, .entry-content pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.8em;
	letter-spacing: -0.025em;
}
.entry-content pre { overflow-x: auto; border: 0.16rem solid #000; padding: 1rem; }

.ai-summary, .machine-card {
	border: 0.22rem solid #000;
	padding: clamp(1rem, 2vw, 1.5rem);
	margin: var(--ek-gap) 0;
	background: #fff;
}
.ai-summary p { margin: 0.6rem 0 0; }
.machine-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}
.machine-links a {
	border: 0.16rem solid #000;
	padding: 0.35rem 0.5rem;
	text-decoration: none;
	font-size: 0.9rem;
	text-transform: uppercase;
}
.machine-links a:hover { background: #000; color: #fff; }

.nav-links, .post-navigation, .posts-navigation, .pagination {
	margin-top: var(--ek-gap);
	font-size: clamp(1.3rem, 2.6vw, 2.4rem);
	font-weight: 1000;
	letter-spacing: -0.07em;
	text-transform: uppercase;
}
.search-form { display: flex; gap: 0.5rem; max-width: 48rem; margin: 1rem 0; }
.search-field {
	border: 0.18rem solid #000;
	padding: 0.7rem;
	width: 100%;
	min-width: 0;
	background: #fff;
}
.search-submit, button, input[type="submit"] {
	border: 0.18rem solid #000;
	background: #000;
	color: #fff;
	padding: 0.7rem 1rem;
	font-weight: 1000;
	text-transform: uppercase;
	cursor: pointer;
}
.site-footer {
	border-top: 0.22rem solid #000;
	margin-top: var(--ek-gap);
	font-size: clamp(1rem, 1.6vw, 1.2rem);
	letter-spacing: -0.035em;
}
.footer-grid { display: grid; gap: 1rem; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; }
}
@media (max-width: 42rem) {
	body { letter-spacing: -0.035em; }
	.search-form { flex-direction: column; }
	.hero-title, .page-title, .entry-title { letter-spacing: -0.095em; }
}
@media print {
	.site-header, .site-footer, .main-navigation, .machine-card, .search-form { display: none; }
	body { font-size: 12pt; }
	a[href]::after { content: " (" attr(href) ")"; }
}
