/*
Theme Name: Kota Code
Author: Craig Ralston
Description: A quiet, single-page personal site for a software developer.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kota-code
*/

:root {
	--kota-paper: #f4f2ed;
	--kota-white: #fff;
	--kota-ink: #171a21;
	--kota-muted: #626772;
	--kota-line: rgba(23, 26, 33, 0.14);
	--kota-blue: #3157ff;
	--kota-blue-dark: #1734bd;
	--kota-wash: #e8ebff;
	--kota-radius: 22px;
	--kota-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--kota-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--kota-paper);
	color: var(--kota-ink);
	font-family: var(--kota-sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: .2em; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--kota-blue); outline-offset: 4px; }

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	overflow: hidden;
	position: absolute !important;
}
.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	left: 1rem;
	top: 1rem;
	z-index: 10000;
	padding: .75rem 1rem;
	background: var(--kota-white);
	color: var(--kota-ink);
}

.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
}
.site-header__inner {
	min-height: 96px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--kota-ink);
	font-family: var(--kota-mono);
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: -.02em;
	text-decoration: none;
}
.brand__mark {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 9px;
	background: var(--kota-ink);
	color: var(--kota-white);
	font-size: .76rem;
	letter-spacing: -.12em;
}
.header-link {
	position: relative;
	color: var(--kota-ink);
	font-size: .83rem;
	font-weight: 700;
	text-decoration: none;
}
.header-link::after {
	content: '';
	position: absolute;
	left: 0;
	right: 100%;
	bottom: -5px;
	height: 2px;
	background: var(--kota-blue);
	transition: right .2s ease;
}
.header-link:hover::after { right: 0; }

.hero {
	position: relative;
	min-height: 780px;
	display: grid;
	align-items: center;
	overflow: hidden;
	padding: 150px 0 100px;
	background:
		radial-gradient(circle at 84% 28%, rgba(49,87,255,.17), transparent 24%),
		radial-gradient(circle at 9% 86%, rgba(49,87,255,.08), transparent 22%),
		var(--kota-paper);
}
.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	opacity: .35;
	background-image: linear-gradient(var(--kota-line) 1px, transparent 1px), linear-gradient(90deg, var(--kota-line) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: linear-gradient(to bottom, transparent 2%, #000 30%, transparent 92%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__copy { max-width: 860px; }
.eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 28px;
	color: var(--kota-blue-dark);
	font-family: var(--kota-mono);
	font-size: .77rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 32px; height: 2px; background: currentColor; }
h1, h2 { margin: 0; letter-spacing: -.06em; line-height: .98; }
h1 { max-width: 930px; font-size: clamp(4rem, 10vw, 8.6rem); font-weight: 680; }
h2 { font-size: clamp(2.65rem, 6vw, 5.2rem); font-weight: 650; }
.hero__lead {
	max-width: 650px;
	margin: 34px 0 0;
	color: #474c56;
	font-size: clamp(1.08rem, 2vw, 1.3rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: .8rem 1.25rem;
	border: 1px solid var(--kota-ink);
	border-radius: 999px;
	background: var(--kota-ink);
	color: var(--kota-white);
	font-weight: 750;
	line-height: 1.1;
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--kota-blue); border-color: var(--kota-blue); }
.button--quiet { background: transparent; color: var(--kota-ink); }
.button--quiet:hover { color: var(--kota-white); }
.hero__code {
	position: absolute;
	right: max(24px, 7vw);
	top: 26%;
	width: 170px;
	height: 170px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(49,87,255,.3);
	border-radius: 50%;
	color: var(--kota-blue);
	font-family: var(--kota-mono);
	font-size: 2rem;
	transform: rotate(8deg);
}
.hero__code::before, .hero__code::after { content: ''; position: absolute; inset: 16px; border: 1px dashed rgba(49,87,255,.26); border-radius: 50%; }
.hero__code::after { inset: -16px; }

.story { padding: 125px 0; background: var(--kota-white); }
.story__grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(50px, 10vw, 140px); align-items: start; }
.section-label { margin: 10px 0 0; color: var(--kota-blue-dark); font-family: var(--kota-mono); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.story__copy { max-width: 720px; }
.story__copy p { margin: 0; font-size: clamp(1.35rem, 2.7vw, 2.1rem); line-height: 1.45; letter-spacing: -.025em; }
.story__copy p + p { margin-top: 32px; color: var(--kota-muted); font-size: 1rem; letter-spacing: 0; }
.kota-note {
	margin-top: 54px;
	padding: 25px 28px;
	border-left: 3px solid var(--kota-blue);
	background: var(--kota-wash);
	color: #33394b;
}
.kota-note strong { color: var(--kota-ink); }

.contact { position: relative; overflow: hidden; padding: 125px 0; background: var(--kota-ink); color: var(--kota-white); }
.contact::before { content: 'K'; position: absolute; right: -2vw; bottom: -24vw; color: rgba(255,255,255,.025); font-size: 68vw; font-weight: 800; line-height: 1; }
.contact__grid { position: relative; z-index: 1; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 10vw, 130px); align-items: start; }
.contact .eyebrow { color: #8fa3ff; }
.contact__intro p { max-width: 430px; color: #b9bec8; font-size: 1.05rem; }
.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; margin: 0 0 8px; color: #d7dae0; font-size: .78rem; font-weight: 700; letter-spacing: .03em; }
.field input, .field textarea {
	width: 100%;
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 12px;
	background: rgba(255,255,255,.055);
	color: var(--kota-white);
	padding: .9rem 1rem;
	transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus { border-color: #8fa3ff; background: rgba(255,255,255,.08); outline: none; }
.field textarea { min-height: 165px; resize: vertical; }
.contact .button { border-color: var(--kota-blue); background: var(--kota-blue); }
.contact .button:hover { border-color: #6280ff; background: #6280ff; }
.form-status { margin: 0 0 24px; padding: .85rem 1rem; border: 1px solid rgba(111,226,154,.45); border-radius: 10px; background: rgba(70,185,113,.13); color: #c8f3d8; }
.form-status--error { border-color: rgba(255,138,138,.45); background: rgba(211,67,67,.13); color: #ffd1d1; }
.honeypot { position: absolute; left: -9999px; }

.site-footer { background: #101218; color: #9399a4; }
.site-footer__inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-family: var(--kota-mono); font-size: .73rem; }
.site-footer p { margin: 0; }
.site-footer a { color: #c9cdd4; text-decoration: none; }
.site-footer a:hover { color: var(--kota-white); }

@media (max-width: 900px) {
	.hero__code { display: none; }
	.story__grid, .contact__grid { grid-template-columns: 1fr; gap: 42px; }
	.section-label { margin: 0; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.container { width: calc(100% - 30px); }
	.site-header__inner { min-height: 78px; }
	.hero { min-height: 700px; padding: 125px 0 76px; }
	h1 { font-size: clamp(3.45rem, 18vw, 5.5rem); }
	.hero__actions { align-items: stretch; flex-direction: column; }
	.hero__actions .button { width: 100%; }
	.story, .contact { padding: 88px 0; }
	.form-row { grid-template-columns: 1fr; }
	.site-footer__inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 24px 0; }
}

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

