/*
	Israel Showell - Landing Page v3
	Standalone stylesheet for index.html (project pages still use main.css).
	Palette carried over from the HTML5 UP "Landed" template used in v2.
*/

:root {
	--bg: #1c1d26;
	--bg-alt: #22232e;
	--surface: #272833;
	--surface-hi: #2f3040;
	--border: rgba(255, 255, 255, 0.09);
	--text: #f2f2f5;
	--text-dim: rgba(255, 255, 255, 0.72);
	--text-faint: rgba(255, 255, 255, 0.5);
	--accent: #e44c65;
	--accent-soft: rgba(228, 76, 101, 0.14);
	--radius: 12px;
	--max: 1100px;
	--header-h: 64px;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 12px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text-dim);
	font-family: "Roboto", Helvetica, Arial, sans-serif;
	font-weight: 300;
	font-size: 1rem;
	line-height: 1.65;
	overflow-x: hidden;
}

h1, h2, h3, h4 {
	color: var(--text);
	font-weight: 400;
	line-height: 1.25;
	margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

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

img { max-width: 100%; display: block; }

ul { margin: 0; padding: 0; }

.container {
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 1rem;
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--accent);
	color: #fff;
	padding: 0.5rem 1rem;
	z-index: 100;
}
.skip-link:focus { left: 1rem; }

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--header-h);
	background: rgba(28, 29, 38, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border);
}

.site-header .container {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.logo {
	color: var(--text);
	font-weight: 400;
	font-size: 1.1rem;
	letter-spacing: 0.04em;
	white-space: nowrap;
}
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--border);
	border-radius: 8px;
	color: var(--text);
	width: 42px;
	height: 42px;
	font-size: 1.1rem;
	cursor: pointer;
}

.site-nav ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.site-nav a {
	color: var(--text-dim);
	font-size: 0.92rem;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }

.site-nav .nav-cta {
	color: #fff;
	background: var(--accent);
	padding: 0.45rem 0.95rem;
	border-radius: 999px;
}
.site-nav .nav-cta:hover { filter: brightness(1.08); }
.site-nav .nav-cta.alt {
	background: transparent;
	color: var(--accent);
	box-shadow: inset 0 0 0 1px var(--accent);
}
.site-nav .nav-cta.alt:hover { background: var(--accent-soft); filter: none; }

@media (max-width: 820px) {
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

	.site-nav {
		position: absolute;
		top: var(--header-h);
		left: 0;
		right: 0;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		display: none;
	}
	.site-nav.open { display: block; }

	.site-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0.5rem 1rem 1rem;
	}
	.site-nav li a {
		display: block;
		padding: 0.8rem 0.25rem;
		font-size: 1rem;
		border-bottom: 1px solid var(--border);
	}
	.site-nav li a.nav-cta { border-bottom: 0; margin-top: 0.75rem; text-align: center; }
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1.25rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	color: var(--text);
	font-size: 0.95rem;
	font-weight: 400;
	transition: border-color 0.2s, background 0.2s;
}
.btn:hover { text-decoration: none; border-color: var(--accent); }

.btn-primary {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}
.btn-primary:hover { filter: brightness(1.08); }

/* ---------- Hero ---------- */

.hero {
	padding: 4.5rem 0 3.5rem;
	background:
		radial-gradient(ellipse at 85% 0%, rgba(228, 76, 101, 0.16), transparent 55%),
		var(--bg);
}

.hero .container {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 3rem;
	align-items: center;
}

.eyebrow {
	color: var(--accent);
	font-size: 0.8rem;
	font-weight: 400;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin-bottom: 0.75rem;
}

.hero h1 {
	font-size: clamp(2.2rem, 6vw, 3.4rem);
	font-weight: 300;
	margin-bottom: 0.35em;
}

.hero .role {
	color: var(--text);
	font-size: clamp(1.05rem, 2.6vw, 1.3rem);
	margin-bottom: 1rem;
}

.hero .summary { max-width: 60ch; }

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.5rem 0 1.25rem;
}

.badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
}
.badges li {
	font-size: 0.8rem;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text);
}
.badges li i { color: var(--accent); margin-right: 0.35rem; }

.hero-photo img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
	border: 4px solid var(--surface);
	box-shadow: 0 0 0 2px var(--accent), 0 20px 50px rgba(0, 0, 0, 0.45);
}

@media (max-width: 820px) {
	.hero { padding: 2.5rem 0 2.5rem; }
	.hero .container {
		grid-template-columns: 1fr;
		gap: 1.75rem;
		text-align: center;
	}
	.hero-photo { order: -1; }
	.hero-photo img { width: 170px; margin: 0 auto; }
	.hero .summary { margin-left: auto; margin-right: auto; }
	.hero-actions, .badges { justify-content: center; }
}

/* ---------- Stats strip ---------- */

.stats {
	background: var(--surface);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}
.stats ul {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}
.stats li {
	padding: 1.5rem 0.75rem;
	text-align: center;
}
.stats li + li { border-left: 1px solid var(--border); }
.stats strong {
	display: block;
	color: var(--text);
	font-size: 1.8rem;
	font-weight: 300;
	line-height: 1.1;
}
.stats strong em { color: var(--accent); font-style: normal; }
.stats span { font-size: 0.82rem; color: var(--text-faint); }

@media (max-width: 640px) {
	.stats ul { grid-template-columns: repeat(2, 1fr); }
	.stats li:nth-child(3) { border-left: 0; }
	.stats li:nth-child(n+3) { border-top: 1px solid var(--border); }
	.stats strong { font-size: 1.5rem; }
}

/* ---------- Sections ---------- */

.section { padding: 4.5rem 0; }
.section.alt { background: var(--bg-alt); }

.section-head { margin-bottom: 2rem; max-width: 65ch; }
.section-head h2 {
	font-size: clamp(1.6rem, 4vw, 2.1rem);
	font-weight: 300;
}
.section-head h2::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin-top: 0.6rem;
	background: var(--accent);
	border-radius: 2px;
}
.section-head p { margin: 0.75rem 0 0; }

@media (max-width: 640px) {
	.section { padding: 3rem 0; }
}

/* ---------- Cards ---------- */

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

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.4rem;
}
.card h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.card p { font-size: 0.93rem; margin: 0; }

.card .icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-bottom: 0.9rem;
	border-radius: 10px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 1.1rem;
}

a.card { display: block; color: inherit; transition: border-color 0.2s, transform 0.2s; }
a.card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
a.card .more { display: inline-block; margin-top: 0.8rem; font-size: 0.85rem; color: var(--accent); }

/* ---------- Experience ---------- */

.job {
	background: var(--surface);
	border: 1px solid var(--border);
	border-left: 3px solid var(--accent);
	border-radius: var(--radius);
	padding: 1.6rem;
}

.job-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	margin-bottom: 1rem;
}
.job-head h3 { margin: 0; font-size: 1.25rem; }
.job-head .org { color: var(--text); }
.job-head .date {
	font-size: 0.85rem;
	color: var(--text-faint);
	white-space: nowrap;
}

.job ul:not(.tags) {
	list-style: none;
	display: grid;
	gap: 0.6rem;
}
.job ul:not(.tags) li {
	position: relative;
	padding-left: 1.2rem;
	font-size: 0.95rem;
}
.job ul:not(.tags) li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.65em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin-top: 1.1rem;
}
.tags li {
	font-size: 0.78rem;
	padding: 0.2rem 0.6rem;
	border-radius: 6px;
	background: var(--surface-hi);
	color: var(--text-dim);
}

/* Earlier roles (collapsible) */

.earlier { margin-top: 1rem; }

.earlier details {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.earlier details + details { margin-top: 0.6rem; }

.earlier summary {
	list-style: none;
	cursor: pointer;
	padding: 1rem 1.25rem;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.25rem 1rem;
}
.earlier summary::-webkit-details-marker { display: none; }
.earlier summary .t { color: var(--text); font-weight: 400; }
.earlier summary .t small { display: block; color: var(--text-faint); font-weight: 300; font-size: 0.85rem; }
.earlier summary .d { font-size: 0.82rem; color: var(--text-faint); }
.earlier summary .d::after {
	content: "\f078";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	margin-left: 0.6rem;
	color: var(--accent);
	display: inline-block;
	transition: transform 0.2s;
}
.earlier details[open] summary .d::after { transform: rotate(180deg); }
.earlier details p {
	padding: 0 1.25rem 1.1rem;
	margin: 0;
	font-size: 0.93rem;
}

.subhead {
	color: var(--text);
	font-size: 1rem;
	font-weight: 400;
	margin: 2.25rem 0 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ---------- Skills ---------- */

.skill-group h3 {
	font-size: 1rem;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.8rem;
}
.skill-group h3 i { color: var(--accent); width: 1.1em; text-align: center; }
.skill-group .tags { margin-top: 0; }

/* ---------- Background / highlights ---------- */

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
@media (max-width: 820px) {
	.split { grid-template-columns: 1fr; }
}

.list-plain { list-style: none; display: grid; gap: 0.9rem; }
.list-plain li { display: flex; gap: 0.8rem; font-size: 0.93rem; }
.list-plain li i { color: var(--accent); margin-top: 0.3rem; width: 1.1em; text-align: center; flex-shrink: 0; }
.list-plain strong { color: var(--text); font-weight: 400; display: block; }

.photo-card {
	padding: 0;
	overflow: hidden;
}
.photo-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.photo-card .body { padding: 1.2rem 1.4rem 1.4rem; }

/* ---------- Projects ---------- */

.projects {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	margin-top: 1rem;
}

.project {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	color: inherit;
	transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.project:hover {
	text-decoration: none;
	border-color: var(--accent);
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.project-thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--surface-hi);
	border-bottom: 1px solid var(--border);
}
.project-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top left;
	opacity: 0.9;
	transition: transform 0.35s, opacity 0.2s;
}
.project:hover .project-thumb img { transform: scale(1.04); opacity: 1; }

.project-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.2rem 1.3rem 1.3rem;
}
.project-body h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.project-body p { font-size: 0.92rem; margin-bottom: 0.9rem; }
.project-body .tags { margin-top: 0; }

.kicker {
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 0.4rem;
}

.project .more {
	margin-top: auto;
	padding-top: 1rem;
	font-size: 0.85rem;
	color: var(--accent);
}
.project .more i { transition: transform 0.2s; margin-left: 0.25rem; }
.project:hover .more i { transform: translateX(3px); }

/* Featured (WhyWait) */

.project.featured {
	flex-direction: row;
}
.project.featured .project-thumb {
	flex: 0 0 38%;
	aspect-ratio: auto;
	min-height: 240px;
	border-bottom: 0;
	border-right: 1px solid var(--border);
}
.project.featured .project-body { padding: 1.6rem 1.8rem; }
.project.featured h3 { font-size: 1.45rem; }

.project-thumb.logo {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0e0e0c;
}
.project-thumb.logo img {
	width: auto;
	height: 100%;
	max-height: 280px;
	object-fit: contain;
	object-position: center;
}

@media (max-width: 720px) {
	.project.featured { flex-direction: column; }
	.project.featured .project-thumb {
		flex: none;
		min-height: 0;
		aspect-ratio: 16 / 8;
		border-right: 0;
		border-bottom: 1px solid var(--border);
	}
	.project.featured .project-body { padding: 1.2rem 1.3rem 1.3rem; }
	.project.featured h3 { font-size: 1.2rem; }
}

/* ---------- Contact / footer ---------- */

.contact {
	text-align: center;
	background:
		radial-gradient(ellipse at 50% 120%, rgba(228, 76, 101, 0.18), transparent 60%),
		var(--bg-alt);
}
.contact .section-head { margin-left: auto; margin-right: auto; }
.contact .section-head h2::after { margin-left: auto; margin-right: auto; }
.contact .hero-actions { justify-content: center; margin-bottom: 0; }

.site-footer {
	padding: 1.75rem 0;
	border-top: 1px solid var(--border);
	font-size: 0.82rem;
	color: var(--text-faint);
}
.site-footer .container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
}
.site-footer .social { list-style: none; display: flex; gap: 1.1rem; }
.site-footer .social a { color: var(--text-dim); font-size: 1.1rem; }
.site-footer .social a:hover { color: var(--accent); }

@media (max-width: 640px) {
	.site-footer .container { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
