/* Main stylesheet — shared layout, accessibility, responsiveness */

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	position: relative;
	font-family: Arial, Helvetica, sans-serif;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	line-height: 1.5;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: crimson;
}

a:hover {
	cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 2px solid crimson;
	outline-offset: 2px;
}

li:hover {
	cursor: pointer;
}

button {
	padding: 0.5em 0.8em;
	background-color: #333;
	color: seashell;
	border: 1px solid seashell;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

button:hover {
	cursor: pointer;
	background-color: seashell;
	color: #333;
	border: 1px solid #333;
}

.theme_dot {
	padding: 0;
	background-color: transparent;
	border: none;
}

.theme_dot:hover {
	background-color: transparent;
	color: inherit;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	z-index: 1000;
	padding: 0.75em 1.25em;
	background: #111;
	color: #fff;
	text-decoration: none;
	font-family: "Roboto Mono", monospace;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
	width: auto;
	height: auto;
}

/* ---- Layout (overrides fixed theme widths) ---- */

#full_page .main-container {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: clamp(0.75rem, 4vw, 1.5rem);
}

#full_page h1 {
	font-size: clamp(1.75rem, 5vw, 3.5rem);
}

#full_page h2,
#full_page .section-heading {
	font-size: clamp(1.35rem, 3.5vw, 2.25rem);
}

#full_page h3 {
	font-size: clamp(1.15rem, 2.5vw, 1.75rem);
}

#full_page h4 {
	font-size: clamp(1.05rem, 2vw, 1.5rem);
}

.hero-tagline {
	margin-top: 0.5rem;
	font-size: clamp(0.95rem, 2.5vw, 1.1rem);
	opacity: 0.9;
	padding-inline: 0.5rem;
}

.section-heading {
	text-align: center;
	margin: clamp(1.5rem, 4vw, 2rem) 0 clamp(0.75rem, 2vw, 1rem);
}

.theme-heading {
	font-size: clamp(1rem, 2.5vw, 1.25rem);
	text-align: center;
}

#settings_note {
	font-size: 0.85rem;
	font-style: italic;
	text-align: center;
	max-width: 14rem;
}

#full_page #skills {
	width: 100%;
	max-width: 100%;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

#full_page .about_wrapper {
	margin: clamp(2rem, 6vw, 5rem) 0;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

#full_page .post_wrapper {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	margin: clamp(1.5rem, 4vw, 3rem) auto;
}

#full_page #preview_shadow {
	width: min(300px, 100%);
	max-width: 100%;
	height: auto;
	min-height: 180px;
	padding: clamp(1rem, 3vw, 2em);
}

#full_page #preview {
	width: 100%;
	max-width: 300px;
	padding: clamp(1.25rem, 4vw, 2.5em);
}

#full_page #profile_pic {
	width: min(200px, 70vw);
	height: min(200px, 70vw);
}

#full_page #navigation {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
	justify-content: flex-end;
}

#full_page #footer {
	height: auto;
	min-height: unset;
	padding: 1.5rem 0;
	text-align: center;
}

/* ---- Contact: vertically centered side-by-side ---- */

#contact .contact_layout {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: clamp(1rem, 3vw, 1.5rem);
	margin: clamp(1.5rem, 4vw, 2rem) 0 clamp(2rem, 5vw, 3rem);
	width: 100%;
}

.contact_form {
	flex: 1 1 0;
	min-width: 0;
	width: 100%;
	max-width: 100%;
	padding: 0;
	align-self: center;
}

.contact_form:hover {
	transform: none;
}

#cf_fields {
	width: 100%;
	max-width: 100%;
	margin: 0;
	box-sizing: border-box;
}

.social_links {
	flex: 0 1 300px;
	width: min(300px, 100%);
	max-width: 100%;
	align-self: center;
	display: grid;
	justify-items: center;
	text-align: center;
}

.social_links:hover {
	transform: none;
}

#social_img {
	width: min(300px, 100%);
	height: auto;
	margin: 0 auto;
}

.social_links ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.65rem;
	list-style: none;
}

.social_links li a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.social_links li img {
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	max-width: none;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	flex-shrink: 0;
}

.form_status {
	margin-bottom: 1rem;
	padding: 0.75em 1em;
	border-radius: 5px;
	font-family: "Roboto Mono", monospace;
	font-size: 0.95rem;
	width: 100%;
}

.form_status--success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.hp-field {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
	pointer-events: none;
}

.post_title {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.post_note {
	font-size: 0.9rem;
	margin-top: 0.75rem;
	font-style: italic;
}

.thumbnail {
	display: block;
	width: 100%;
	height: auto;
	min-height: 140px;
	max-height: 220px;
	object-fit: cover;
}

#profile_pic,
#social_img {
	display: block;
}

#preview cite {
	display: block;
	margin-top: 0.75rem;
	font-style: normal;
	font-size: clamp(0.9rem, 2vw, 1.25rem);
}

/* ---- Responsive breakpoints ---- */

@media (max-width: 1024px) {
	#full_page .intro_wrapper {
		margin-inline: 0;
	}

	#full_page .right_column {
		justify-content: center;
		padding-bottom: clamp(2rem, 6vw, 4rem);
	}
}

@media (max-width: 800px) {
	#full_page .intro_wrapper {
		grid-template-areas:
			"nav_wrapper"
			"left_column"
			"right_column";
	}

	#full_page .nav_wrapper {
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.5rem;
		padding: 0.5rem;
	}

	#full_page #navigation {
		justify-content: center;
		width: 100%;
	}

	#full_page #skills {
		flex-direction: column;
		align-items: flex-start;
		padding: 1em;
	}

	#full_page #skills ul {
		width: 100%;
	}

	#contact .contact_layout {
		flex-direction: column;
		align-items: center;
	}

	.contact_form,
	.social_links {
		flex: 1 1 auto;
		width: 100%;
		max-width: 560px;
	}
}

@media (max-width: 600px) {
	#full_page .greeting_wrapper {
		min-height: 7em;
	}

	#full_page .post_preview {
		padding: 0.75em 1.25em;
	}

	#full_page .left_column {
		padding: 2rem 0;
	}

	#full_page #preview_shadow {
		padding-left: 1rem;
		padding-top: 1rem;
	}

	#full_page #preview p {
		font-size: 0.85rem;
	}
}

@media (max-width: 480px) {
	#full_page h1 {
		line-height: 1.2;
	}

	#full_page .theme_dot {
		height: 26px;
		width: 26px;
	}

	#full_page #footer p {
		font-size: 0.9rem;
	}

	#full_page #s,
	#full_page #j {
		color: orangered;
	}
}

@media (max-width: 350px) {
	#full_page .main-container {
		padding-inline: 0.65rem;
	}

	#full_page #preview {
		padding: 1rem;
	}
}
