/*
 * Portfolio presentation based on the original Worthy theme.
 * Original assets and attribution are retained in ReadMe.txt.
 */
:root {
	color-scheme: light;
	--ink: #333333;
	--muted: #666666;
	--paper: #ffffff;
	--soft: #f5f5f5;
	--dark: #222222;
	--blue: #155f8f;
	--accent: #a83a13;
	--line: #dddddd;
}

* { box-sizing: border-box; }

html {
	scroll-padding-top: 5.5rem;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 1rem/1.75 "Segoe UI", "Open Sans", Arial, sans-serif;
}

a {
	color: var(--accent);
	text-underline-offset: .2em;
	overflow-wrap: anywhere;
}

a:hover { color: #7d290d; }

:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 4px;
	box-shadow: 0 0 0 6px var(--accent);
}

.skip-link {
	position: fixed;
	left: 1rem;
	top: -8rem;
	z-index: 100;
	padding: .75rem 1rem;
	background: var(--paper);
	color: var(--ink);
	font-weight: 700;
}

.skip-link:focus { top: 1rem; }

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: 4.75rem;
	padding: .55rem max(1.5rem, calc((100vw - 1170px) / 2));
	background: rgba(0, 0, 0, .9);
	box-shadow: 0 1px 5px rgba(0, 0, 0, .35);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: .7rem;
	color: #ffffff;
	font: 700 1.45rem/1 "Segoe UI", "Open Sans", Arial, sans-serif;
	text-decoration: none;
	white-space: nowrap;
}

.brand::before {
	width: 2.8rem;
	height: 2.8rem;
	background: url("../images/logo.png") center / contain no-repeat;
	content: "";
}

.brand span { color: var(--accent); }

nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: .1rem .4rem;
}

nav a {
	padding: .75rem .8rem;
	border-radius: .15rem;
	color: #ffffff;
	font-size: .9rem;
	font-weight: 600;
	text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
	background: rgba(255, 255, 255, .08);
	color: var(--accent);
}

main { width: 100%; }

.mobile-menu { display: none; }

section {
	padding: 5.5rem max(1.5rem, calc((100vw - 1170px) / 2));
}

.hero {
	display: flex;
	min-height: 100vh;
	padding-top: 8rem;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 1.5rem;
	background:
		linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .66)),
		url("../images/banner.jpg") center / cover no-repeat fixed;
	color: #ffffff;
	text-align: center;
}

.hero > div {
	order: 2;
	max-width: 880px;
}

.portrait {
	order: 1;
	width: clamp(150px, 22vw, 245px);
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .35));
}

.eyebrow {
	margin: 0 0 .65rem;
	color: var(--accent);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.hero .eyebrow { color: #ffffff; }

h1,
h2,
h3,
h4 {
	font-family: "Segoe UI", "Raleway", Arial, sans-serif;
	font-weight: 400;
	line-height: 1.2;
	text-wrap: balance;
}

h1 {
	margin: .5rem 0 1.25rem;
	font-size: clamp(2.35rem, 5.8vw, 4.4rem);
	text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
}

h2 {
	margin: .5rem 0 2.5rem;
	font-size: clamp(2rem, 4vw, 3rem);
}

h2::after {
	display: block;
	width: 4rem;
	height: .18rem;
	margin-top: 1rem;
	background: var(--accent);
	content: "";
}

h3 {
	margin: .4rem 0 1rem;
	font-size: clamp(1.4rem, 2.3vw, 1.85rem);
}

h3 span { font-weight: 300; }

h4 {
	margin: 2.2rem 0 .7rem;
	font-size: 1.15rem;
	font-weight: 650;
}

p,
li { max-width: 82ch; }

.hero p { margin-inline: auto; }

.intro {
	margin-inline: auto;
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	font-weight: 300;
	text-shadow: 0 1px 5px rgba(0, 0, 0, .8);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .85rem 1.25rem;
	margin-top: 1.75rem;
}

.hero .actions { justify-content: center; }

.button {
	display: inline-block;
	padding: .78rem 1.25rem;
	border: 2px solid var(--accent);
	border-radius: .15rem;
	background: var(--accent);
	color: #ffffff;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.button:hover {
	border-color: #ffffff;
	background: #ffffff;
	color: var(--accent);
}

.secondary {
	border-color: #ffffff;
	background: transparent;
	color: #ffffff;
}

.file-type { font-size: .85em; }

#about { text-align: center; }

#about h2,
#about p {
	margin-right: auto;
	margin-left: auto;
}

#about h2::after { margin-inline: auto; }

#about > p:not(.eyebrow) {
	font-size: 1.12rem;
	font-weight: 300;
}

#experience { background: var(--soft); }

.experience-entry {
	padding: 2rem;
	border-top: 4px solid var(--blue);
	background: #ffffff;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
}

.experience-entry + .experience-entry { margin-top: 1.6rem; }

.meta {
	margin-bottom: .35rem;
	color: var(--muted);
	font-size: .92rem;
}

#expertise {
	background: var(--blue);
	color: #ffffff;
}

#expertise .eyebrow { color: #ffffff; }

#expertise h3 { margin-top: 2rem; }

#expertise a { color: #ffffff; }

#expertise h2::after { background: #ffffff; }

.skills-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	margin: 0;
}

.skills-grid > div {
	padding: 1.5rem;
	border: 1px solid rgba(255, 255, 255, .35);
	background: rgba(0, 0, 0, .12);
}

dt {
	margin-bottom: .5rem;
	font-size: 1.12rem;
	font-weight: 750;
}

dd {
	margin: 0;
	color: #ffffff;
}

#work { background: #ffffff; }

.case-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.case-links a {
	display: flex;
	min-height: 11rem;
	padding: 2rem;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	border: 1px solid var(--line);
	background: var(--soft);
	color: var(--ink);
	text-decoration: none;
	transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.case-links a:hover,
.case-links a:focus-visible {
	background: var(--accent);
	color: #ffffff;
	transform: translateY(-3px);
}

.case-links strong { font-size: 1.35rem; }

.case-links span { margin-top: .45rem; }

.case-study {
	margin-top: 3rem;
	padding: 2.5rem;
	border-left: 5px solid var(--accent);
	background: var(--soft);
}

.case-study ul,
.case-study ol { padding-left: 1.35rem; }

li + li { margin-top: .7rem; }

#contact {
	background: var(--dark);
	color: #dddddd;
	text-align: center;
}

#contact .eyebrow { color: #ffffff; }

#contact h2,
#contact p,
#contact .actions {
	margin-right: auto;
	margin-left: auto;
}

#contact h2 { color: #ffffff; }

#contact h2::after { margin-inline: auto; }

#contact .actions { justify-content: center; }

#contact a { color: #ffffff; }

#contact a:hover { color: var(--accent); }

footer {
	padding: 2.25rem max(1.5rem, calc((100vw - 1170px) / 2));
	border-top: 1px solid #333333;
	background: #111111;
	color: #aaaaaa;
	font-size: .82rem;
	text-align: center;
}

footer p { margin-inline: auto; }

footer a { color: #dddddd; }

@media (max-width: 767px) {
	html { scroll-padding-top: 5.5rem; }

	.site-header {
		align-items: center;
		flex-direction: row;
		gap: .75rem;
		padding-block: .55rem;
	}

	.brand::before {
		width: 2.1rem;
		height: 2.1rem;
	}

	.brand { font-size: 1.15rem; }

	.desktop-navigation { display: none; }

	.mobile-menu { display: block; }

	.mobile-menu summary {
		display: flex;
		align-items: center;
		gap: .5rem;
		min-height: 44px;
		padding: .5rem .75rem;
		border: 1px solid #777777;
		border-radius: .2rem;
		color: #ffffff;
		cursor: pointer;
		list-style: none;
	}

	.mobile-menu summary::-webkit-details-marker { display: none; }

	.mobile-menu[open] summary { background: #333333; }

	.mobile-menu nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: .25rem;
		max-height: calc(100svh - 5rem);
		overflow-y: auto;
		padding: .75rem 1.5rem 1rem;
		border-top: 1px solid #444444;
		background: rgba(17, 17, 17, .5);
		box-shadow: 0 5px 10px rgba(0, 0, 0, .3);
	}

	.mobile-menu nav a {
		padding: .65rem .75rem;
		min-height: 44px;
		font-size: 1rem;
	}

	section { padding-block: 4rem; }

	.hero {
		min-height: 100svh;
		padding-top: 10.5rem;
		background-attachment: scroll;
	}

	.skills-grid,
	.case-links { grid-template-columns: 1fr; }

	.experience-entry,
	.case-study { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	.button,
	.case-links a { transition: none; }
}

@media print {
	body {
		background: #ffffff;
		font-size: 10pt;
	}

	.site-header,
	.portrait,
	.skip-link { display: none; }

	section,
	.hero,
	#expertise,
	#contact,
	footer {
		min-height: 0;
		padding: 1rem 0;
		background: #ffffff;
		color: #000000;
	}

	.case-study,
	.experience-entry,
	.skills-grid > div {
		padding: .75rem;
		box-shadow: none;
	}

	a,
	#contact a { color: inherit; }
}
