@font-face {
	font-family: "Great Vibes";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/great-vibes-v21-latin-regular.woff2") format("woff2");
}

@font-face {
	font-family: "Nunito";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/nunito-v32-latin-regular.woff2") format("woff2");
}

@font-face {
	font-family: "Press Start 2P";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/press-start-2p-v15-latin-regular.woff2") format("woff2");
}

:root {
	color-scheme: light dark;
	font-family: "Nunito", system-ui, sans-serif;
	--header-height: 4.75rem;
	--footer-height: 3.5rem;
	--bg: #fff;
	--bg-rgb: 255, 255, 255;
	--bg-alt: #f6f5f3;
	--fg: #111;
	--muted: #666;
	--border: #8883;
	--accent: #a8563e;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #111;
		--bg-rgb: 17, 17, 17;
		--bg-alt: #1a1a1a;
		--fg: #eee;
		--muted: #999;
		--accent: #e0906f;
	}
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	line-height: 1.5;
	padding-top: var(--header-height);
	padding-bottom: var(--footer-height);
}

main {
	max-width: 640px;
	min-height: calc(100vh - var(--header-height) - var(--footer-height));
	margin: 0 auto;
	padding: 2rem 1rem;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
}

a {
	color: var(--accent);
	text-decoration: none;
}

.site-header-content {
	display: flex;
	align-items: center;
	gap: .8rem;
}

.site-header-content img {
	display: block;
	width: 48px;
	height: 48px;
	border-radius: 8px;
}

.site-header,
.site-footer {
	position: fixed;
	left: 0;
	width: 100%;
	background: rgba(var(--bg-rgb), 0.72);
	color: var(--fg);
	z-index: 10;
}

.site-header {
	top: 0;
	height: var(--header-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 1rem;
	border-bottom: 1px solid var(--border);
	backdrop-filter: blur(10px) saturate(150%);
	-webkit-backdrop-filter: blur(10px) saturate(150%);
}

.site-title-group {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.site-title {
	font-family: "Great Vibes", cursive;
	font-size: 2rem;
	font-weight: 400;
	text-decoration: none;
	color: inherit;
	padding-top: 2px;
}

.site-subtitle {
	font-family: "Press Start 2P", monospace;
	font-size: 0.55rem;
	color: var(--accent);
	text-shadow: 0 0 8px var(--accent);
	letter-spacing: 0.02em;
	margin-top: 2px;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.site-nav a {
	color: inherit;
	text-decoration: none;
	font-size: 0.9rem;
}

.site-nav a:hover {
	text-decoration: underline;
}

.site-footer {
	bottom: 0;
	height: var(--footer-height);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	color: var(--muted);
	font-size: 0.875rem;
	border-top: 1px solid var(--border);
	backdrop-filter: blur(8px) saturate(150%);
	-webkit-backdrop-filter: blur(8px) saturate(150%);
}

.site-footer p {
	margin: 0;
}

.site-footer .render-time::before {
	content: "\2022";
	margin-right: 0.5rem;
}

.site-footer .tech::before {
	content: "\2022";
	margin-right: 0.5rem;
}

@media (max-width: 480px) {
	:root {
		--header-height: 3.75rem;
		--footer-height: 3rem;
	}

	.site-footer {
		font-size: 0.75rem;
	}

	.site-title {
		font-size: 1.75rem;
	}

	.site-subtitle {
		font-size: 0.45rem;
	}
}

.intro-eyebrow {
	margin: 0 0 0.5rem;
	color: var(--accent);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.85rem;
}

.intro-headline {
	font-size: 2.2rem;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin-bottom: 1.25rem;
}

.intro-lead {
	font-size: 1.2rem;
	font-weight: 600;
}

.intro-highlights {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin: 1.75rem 0;
	padding: 0;
	font-weight: 700;
}

.intro-highlights span:not(:last-child)::after {
	content: "\2022";
	margin-left: 1rem;
	color: var(--accent);
}

.btn {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.6rem 1.2rem;
	border-radius: 8px;
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.btn:hover {
	opacity: 0.9;
	text-decoration: none;
}

.cta-hire {
	margin-top: 2.5rem;
	padding: 2rem;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--bg-alt);
}

.cta-hire-title {
	margin: 0 0 0.5rem;
	font-size: 1.4rem;
}

.cta-hire-lead {
	margin: 0 0 1rem;
	color: var(--muted);
}

.post-list {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0 0;
}

.post-list li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 0.9rem 0.25rem;
	border-bottom: 1px solid var(--border);
	transition: background-color 0.15s ease;
}

.post-list li:hover {
	background: var(--bg-alt);
}

.post-list a {
	color: var(--fg);
	text-decoration: none;
	font-weight: 600;
}

.post-list a:hover {
	color: var(--accent);
}

.post-list time,
article time {
	color: var(--muted);
	font-size: 0.875rem;
	white-space: nowrap;
}

main > a {
	color: var(--muted);
	text-decoration: none;
	font-size: 0.9rem;
	display: inline-block;
	margin-bottom: 0.5rem;
}

main > a:hover {
	color: var(--accent);
	text-decoration: underline;
}

article h1 {
	margin-top: 1.5rem;
	font-size: 2rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

article time {
	display: block;
	margin: 0.5rem 0 2rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

article {
	font-size: 1.05rem;
}

article h2 {
	margin-top: 2.5rem;
	margin-bottom: 0.75rem;
	font-size: 1.4rem;
}

article h3 {
	margin-top: 2rem;
	margin-bottom: 0.5rem;
	font-size: 1.15rem;
}

article p {
	margin: 1rem 0;
}

article a {
	color: var(--accent);
	text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
	text-underline-offset: 2px;
}

article a:hover {
	text-decoration-color: currentColor;
}

article img {
	max-width: 100%;
	border-radius: 8px;
	display: block;
	margin: 1.5rem auto;
}

article blockquote {
	margin: 1.5rem 0;
	padding: 0.25rem 1.1rem;
	border-left: 3px solid var(--accent);
	color: var(--muted);
	font-style: italic;
}

article code {
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 0.1em 0.35em;
	font-size: 0.9em;
}

article pre {
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 1rem;
	overflow-x: auto;
}

article pre code {
	background: none;
	border: none;
	padding: 0;
}

article ul,
article ol {
	padding-left: 1.4rem;
}

article li {
	margin: 0.35rem 0;
}

article hr {
	border: none;
	border-top: 1px solid var(--border);
	margin: 2.5rem 0;
}

.contact-form {
	display: flex;
	flex-direction: column;
	margin-top: 1.5rem;
}

.contact-form label {
	font-weight: 700;
	font-size: 0.85rem;
	margin-top: 1rem;
	margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
	font: inherit;
	color: var(--fg);
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 0.6rem 0.75rem;
	resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: 2px solid var(--accent);
	outline-offset: 1px;
}

.contact-form .cf-turnstile {
	margin-top: 1rem;
}

.contact-form button {
	margin-top: 1.5rem;
	align-self: flex-start;
	border: none;
	cursor: pointer;
	font: inherit;
}

.contact-form button:disabled {
	opacity: 0.6;
	cursor: default;
}

.form-success,
.form-error {
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	font-weight: 600;
}

.form-success {
	background: color-mix(in srgb, #2e8b57 18%, transparent);
	color: #2e8b57;
}

.form-error {
	background: color-mix(in srgb, #c0392b 18%, transparent);
	color: #c0392b;
}
