/* Site styles: minimal, editorial, dark. Replaces the Strata (HTML5 UP) theme. */

:root {
	--bg: #1f1815;
	--bg-elevated: #26201b;
	--border: #3a3128;
	--text: #cdc7be;
	--text-muted: #8f887e;
	--heading: #f5f2ee;
	--accent: #49bf9d;
	--accent-soft: rgba(73, 191, 157, 0.12);
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* {
	box-sizing: border-box;
}

html {
	background: var(--bg);
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.6;
	margin: 0;
	-webkit-font-smoothing: antialiased;
}

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

	a:hover {
		text-decoration: underline;
	}

h1, h2, h3 {
	color: var(--heading);
	line-height: 1.25;
	margin: 0;
}

.page {
	margin: 0 auto;
	max-width: 760px;
	padding: 4.5rem 1.5rem 6rem;
}

/* Header */

.site-header {
	align-items: center;
	display: flex;
	gap: 1.5rem;
	margin-bottom: 5rem;
}

.avatar {
	border: 2px solid var(--accent-soft);
	border-radius: 100%;
	flex-shrink: 0;
	height: 84px;
	width: 84px;
	object-fit: cover;
}

.site-header h1 {
	font-size: 1.7rem;
	font-weight: 700;
}

.tagline {
	color: var(--accent);
	font-family: var(--font-mono);
	font-size: 0.95rem;
	margin: 0.4em 0 0 0;
}

.site-header .social-icons {
	margin-top: 0.9rem;
}

/* Sections */

section {
	border-top: 1px solid var(--border);
	margin-top: 4.5rem;
	padding-top: 3rem;
}

section h2 {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
}

	section h2:before {
		color: var(--accent);
		content: '// ';
		font-family: var(--font-mono);
		font-weight: 400;
	}

.section-intro {
	color: var(--text-muted);
	font-size: 0.95rem;
	margin: -0.75rem 0 1.75rem 0;
}

#about p {
	margin: 0 0 1.1em 0;
}

	#about p:last-child {
		margin-bottom: 0;
	}

/* Things I Can Do */

.skills-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.skills-list li {
	align-items: center;
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: 2em;
	display: inline-flex;
	font-size: 0.9rem;
	gap: 0.55em;
	padding: 0.5em 1em;
}

.skills-list i {
	color: var(--accent);
}

/* Projects */

.project-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-card {
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: 0.75rem;
	overflow: hidden;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

	.project-card:hover {
		border-color: var(--accent);
		transform: translateY(-2px);
	}

.project-thumb {
	background: var(--bg);
	display: block;
}

	.project-thumb img {
		aspect-ratio: 600 / 352;
		display: block;
		object-fit: cover;
		width: 100%;
	}

	a.project-thumb {
		cursor: pointer;
	}

.project-body {
	padding: 1.25rem 1.4rem 1.4rem;
}

.project-body h3 {
	font-size: 1.05rem;
	font-weight: 600;
}

	.project-body h3 a {
		color: var(--heading);
	}

		.project-body h3 a:hover {
			color: var(--accent);
		}

.project-body p {
	color: var(--text-muted);
	font-size: 0.92rem;
	line-height: 1.55;
	margin: 0.5em 0 0 0;
}

.readme-link {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 0.82rem;
	margin-top: 0.9em;
}

/* Footer */

.site-footer {
	margin-top: 5rem;
	padding-top: 2rem;
	text-align: center;
}

.turtle-tag {
	align-items: center;
	color: var(--text-muted);
	display: flex;
	flex-direction: column;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	gap: 0.5em;
	margin: 2rem 0 0 0;
	text-align: center;
}

.turtle-icon {
	height: 32px;
	image-rendering: pixelated;
	width: 32px;
}

.social-icons {
	display: flex;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

	.social-icons a {
		align-items: center;
		background: var(--bg-elevated);
		border: 1px solid var(--border);
		border-radius: 100%;
		color: var(--text);
		display: flex;
		height: 2.5em;
		justify-content: center;
		width: 2.5em;
	}

		.social-icons a:hover {
			border-color: var(--accent);
			color: var(--accent);
		}

.copyright {
	color: var(--text-muted);
	font-size: 0.85rem;
	margin: 0;
}

	.copyright a {
		color: var(--text-muted);
	}

@media (max-width: 560px) {
	.page {
		padding: 3rem 1.25rem 4rem;
	}

	.site-header {
		margin-bottom: 3.5rem;
	}
}

/* README modal */

.readme-modal {
	bottom: 0;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	visibility: hidden;
	z-index: 10001;
}

	.readme-modal.is-visible {
		visibility: visible;
	}

	.readme-modal-overlay {
		background: rgba(15, 11, 9, 0.85);
		bottom: 0;
		left: 0;
		position: absolute;
		right: 0;
		top: 0;
	}

	.readme-modal-content {
		background-color: var(--bg-elevated);
		border: 1px solid var(--border);
		border-radius: 0.75rem;
		box-shadow: 0 1em 3em rgba(0, 0, 0, 0.5);
		box-sizing: border-box;
		color: var(--text);
		left: 50%;
		max-height: 80vh;
		max-width: 42em;
		overflow-y: auto;
		padding: 2.25rem;
		position: absolute;
		top: 50%;
		transform: translate(-50%, -50%);
		width: calc(100% - 3rem);
	}

	.readme-modal-close {
		background: none;
		border: 0;
		color: var(--text-muted);
		cursor: pointer;
		font-size: 1.5em;
		line-height: 1;
		padding: 0.25em;
		position: absolute;
		right: 0.6em;
		top: 0.6em;
	}

		.readme-modal-close:hover {
			color: var(--accent);
		}

	#readme-modal-title {
		font-family: var(--font-mono);
		font-size: 1rem;
		font-weight: 400;
		margin: 0 2em 1em 0;
	}

	#readme-modal-body {
		font-size: 0.95rem;
		line-height: 1.7;
	}

		#readme-modal-body h1,
		#readme-modal-body h2,
		#readme-modal-body h3 {
			font-size: 1.1em;
			margin: 1.25em 0 0.5em 0;
		}

		#readme-modal-body p {
			margin: 0 0 1em 0;
		}

		#readme-modal-body ul,
		#readme-modal-body ol {
			margin: 0 0 1em 0;
			padding-left: 1.4em;
		}

		#readme-modal-body code {
			background-color: var(--bg);
			border-radius: 0.25em;
			font-size: 0.9em;
			padding: 0.1em 0.4em;
		}

		#readme-modal-body pre {
			background-color: var(--bg);
			border-radius: 0.5em;
			overflow-x: auto;
			padding: 1em;
		}

			#readme-modal-body pre code {
				background: none;
				padding: 0;
			}

		#readme-modal-body img {
			max-width: 100%;
		}
