:root {
	--accent: #b43706;
	--accent-dark: #8a2a04;
	--text: #222;
	--muted: #5c5c5c;
	--bg: #fff;
	--panel: #f6f3ef;
	--border: #e2dcd4;
	--radius: 6px;
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

@media (min-width: 1800px) {
	html {
		font-size: 112.5%;
	}
}

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	overflow-wrap: break-word;
}

main {
	padding-top: 1.5rem;
	padding-bottom: 4rem;
}

main p,
.experience {
	max-width: 72ch;
}

a {
	color: var(--accent);
}

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

.wrap {
	width: 100%;
	max-width: 70rem;
	margin: 0 auto;
	padding-left: clamp(1rem, 4vw, 2rem);
	padding-right: clamp(1rem, 4vw, 2rem);
}

h1,
h2,
h3 {
	line-height: 1.25;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--bg);
	border-bottom: 4px solid var(--accent);
}

.site-header .wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.25rem 1.5rem;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.brand {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text);
	text-decoration: none;
}

.site-header nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.9rem;
	font-size: 0.9rem;
}

.site-header nav a {
	color: var(--text);
	text-decoration: none;
	font-weight: 500;
	padding: 0.4rem 0;
}

@media (min-width: 640px) {
	.brand {
		font-size: 1.5rem;
	}

	.site-header nav {
		gap: 0 1.25rem;
		font-size: 1rem;
	}
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
	color: var(--accent);
}

main > section + section {
	margin-top: 3rem;
}

main > section {
	scroll-margin-top: 7rem;
}

@media (min-width: 640px) {
	main > section {
		scroll-margin-top: 5rem;
	}
}

.hero {
	padding: 0.5rem 0 0;
}

@media (min-width: 640px) {
	.hero {
		padding: 1.5rem 0 1rem;
	}
}

.hero h1 {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	margin: 0 0 0.5rem;
}

.lead {
	font-size: 1.2rem;
	color: var(--muted);
	max-width: 40em;
}

.cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin: 1.5rem 0;
}

@media (min-width: 640px) {
	.cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1040px) {
	.cards {
		grid-template-columns: repeat(4, 1fr);
	}

	.cards.cards-3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

.card {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.25rem;
}

.experience {
	padding-left: 1.25rem;
}

.experience li {
	margin-bottom: 0.75rem;
}

.cards .card {
	margin-bottom: 0;
}

.card h2,
.card h3 {
	margin-top: 0;
}

.button {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	border: 0;
	border-radius: var(--radius);
	padding: 0.65rem 1.25rem;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.button:hover {
	background: var(--accent-dark);
	color: #fff;
}

.contact-form {
	display: grid;
	gap: 0.4rem;
	max-width: 36rem;
}

.contact-form label {
	font-weight: 600;
	margin-top: 0.75rem;
}

.contact-form input,
.contact-form textarea {
	font: inherit;
	padding: 0.55rem 0.7rem;
	border: 1px solid #bbb;
	border-radius: var(--radius);
	width: 100%;
}

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

.contact-form .g-recaptcha {
	margin: 1rem 0 0.5rem;
}

@media (max-width: 359px) {
	.contact-form .g-recaptcha {
		transform: scale(0.86);
		transform-origin: 0 0;
	}
}

.contact-form .button {
	justify-self: start;
}

.notice {
	border-radius: var(--radius);
	padding: 0.75rem 1rem;
	max-width: 36rem;
}

.notice.success {
	background: #e8f5e9;
	border: 1px solid #a5d6a7;
}

.notice.error {
	background: #fdecea;
	border: 1px solid #f5b5ae;
}

.notice.error p,
.notice.error ul {
	margin: 0.25rem 0;
}
