/* playfair-display-regular - latin */
@font-face {
	font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 400;
	src: url("../assets/fonts/playfair-display-v40-latin/playfair-display-v40-latin-regular.woff2")
		format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* playfair-display-700 - latin */
@font-face {
	font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 700;
	src: url("../assets/fonts/playfair-display-v40-latin/playfair-display-v40-latin-700.woff2")
		format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* karla-regular - latin */
@font-face {
	font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: "Karla";
	font-style: normal;
	font-weight: 400;
	src: url("../assets/fonts/karla-v33-latin/karla-v33-latin-regular.woff2")
		format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* karla-500 - latin */
@font-face {
	font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: "Karla";
	font-style: normal;
	font-weight: 500;
	src: url("../assets/fonts/karla-v33-latin/karla-v33-latin-500.woff2")
		format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Reset */

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

*:not(dialog) {
	margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		interpolate-size: allow-keywords;
	}
}

body {
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}

input,
button,
textarea,
select {
	font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

p {
	text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	text-wrap: balance;
}

/* Colors */
:root {
	--color-bg: #fffdf8;
	--color-terracotta: #854628;
	--color-sage: #7c7458;
	--color-clay: #d4c7b4;
	--color-ochre: #c7c2a8;
	--color-text: #2d2d23;
	--color-text-muted: #7c7458;
	--color-border: #d4c7b4;
	--color-footer-bg: #283106;
	--color-footer-text: #f2e0cf;
	--color-footer-muted: #c7c2a8;
	--color-blue-grey: #b0b6bc;
	--color-stone: #c7c2a8;
}

/* Page */

body {
	display: flex;
	align-items: center;
	flex-direction: column;
	background-color: var(--color-bg);
}

a {
	transition:
		transform 0.15s ease,
		opacity 0.15s ease;
	border-radius: 10px;
}

a:hover {
	transform: translateY(-3px);
	opacity: 0.75;
}

a:focus-visible {
	outline: 2px solid var(--color-terracotta);
	outline-offset: 5px;
}

/* About me */

header {
	margin-top: 20px;
	overflow: visible;
	margin-bottom: 100px;
}

body::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--color-stone);
	border-radius: 0 0 60% 30% / 0 0 120px 60px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: -1;
	height: 300px;
}

header > div {
	display: flex;
	align-items: center;
	flex-direction: column;
}

header > div > div {
	display: flex;
	align-items: center;
	flex-direction: column;
}

.photo-wrap {
	position: relative;
}

header > .header-inner > .photo-wrap > img {
	max-height: 300px;
	min-width: 200px;
	object-fit: cover;
	object-position: top;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
}

h1 {
	position: absolute;
	color: var(--color-text);
	font-family: "Playfair Display";
	font-weight: 700;
	overflow-wrap: break-word;
	bottom: 210px;
	left: 46px;
	line-height: 0.8;
	letter-spacing: 1.2px;
	font-size: 2rem;
}

.about-card > h2 {
	font-size: 1.75rem;
	font-family: "Playfair Display";
	color: var(--color-text);
	text-align: center;
}

.about-card > p {
	font-size: 1rem;
	font-family: Karla;
	color: var(--color-text-muted);
	margin: 20px;
}

.about-card > .links {
	display: flex;
	flex-direction: row;
	justify-content: center;
	width: 100%;
	gap: 20px;
}

.about-card > .links > a > img {
	width: 40px;
	height: 40px;
	filter: brightness(0) saturate(100%) invert(20%) sepia(15%) hue-rotate(340deg);
}

/* My work */

.my-work > .projects {
	display: flex;
	flex-direction: column;
	width: 100%;
	align-items: center;
	gap: 40px;
	margin-bottom: 100px;
}

.my-work > h2 {
	font-size: 1.75rem;
	font-family: "Playfair Display";
	color: var(--color-text);
	text-align: center;
	margin-bottom: 20px;
}

.project {
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	gap: 10px;
	border-radius: 30px;
	min-height: 370px;
	margin: 0 20px;
	max-width: 370px;
	width: calc(100% - 40px);
}

.project > img {
	object-fit: cover;
	height: 200px;
	border-radius: 20px 20px 0 0;
}

.project-heading {
	display: flex;
	align-items: center;
	padding: 0 20px;
	justify-content: flex-end;
	gap: 10px;
}

.project-heading > a > img {
	width: 20px;
	height: 20px;
	filter: brightness(0) saturate(100%) invert(20%) sepia(15%) hue-rotate(340deg);
}

.project-heading > h3 {
	margin-right: auto;
	font-family: "Playfair Display";
	color: var(--color-text);
}

.project > p {
	margin: 0 10px 20px 10px;
	font-family: Karla;
	color: var(--color-text-muted);
}

.weather > img,
.tasks > img {
	object-position: left;
}

.in-progress > .blank {
	height: 200px;
	width: 100%;
	background-color: var(--color-stone);
	border-radius: 20px 20px 0 0;
}

.project-heading > a.disabled {
	opacity: 0.3;
	pointer-events: none;
	cursor: not-allowed;
}
/* Footer */
footer {
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
	border-radius: 20% 20% 0% 0% / 20% 20% 0% 0%;
	background-color: var(--color-footer-bg);
	width: 100%;
	position: relative;
}

.footer-info > h2 {
	font-size: 1.75rem;
	font-family: "Playfair Display";
	color: var(--color-footer-text);
	text-align: center;
	margin-top: 20px;
}

.footer-info > p {
	padding: 0 0 20px 20px;
	font-family: Karla;
	color: var(--color-footer-muted);
	font-size: 1rem;
}

.footer-info > .email > a > img {
	display: none;
}

.footer-info > .email > a {
	display: inline-flex;
	align-items: center;
	margin: 0 20px;
	text-decoration: none;
	color: var(--color-footer-muted);
	font-family: Karla;
	font-size: 1rem;
	gap: 50px;
	transition:
		transform 0.15s ease,
		opacity 0.15s ease;
	border-radius: 20px;
}

.footer-info > .links {
	display: flex;
	justify-content: center;
	margin: 20px 0;
	gap: 20px;
}

.footer-info > .links > a > img {
	width: 40px;
	height: 40px;
	filter: brightness(0) saturate(100%) invert(94%) sepia(8%) saturate(300%)
		hue-rotate(340deg) brightness(103%);
}

footer > img {
	height: 250px;
	width: 100%;
	object-fit: cover;
	object-position: center 60%;
	border-radius: 40% 20% 0 0 / 60px 60px 0 0;
}

/* Tablet */

@media (min-width: 660px) {
	/* Header */

	header > div {
		align-items: center;
		flex-direction: row;
	}

	.header-inner {
		display: block;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
		background-color: var(--color-bg);
		padding: 20px;
		margin: 40px;
		margin-top: 100px;
		padding-top: 80px;
		max-width: 600px;
	}

	.about-card {
		display: block;
		margin: 0 20px;
		padding-bottom: 20px;
	}

	.about-card > p {
		margin: 0;
	}

	.photo-wrap {
		position: relative;
		float: left;
		width: 300px;
		height: 350px;
		margin-top: -160px;
		margin-left: -70px;
		margin-right: 25px;
		margin-bottom: 10px;
	}

	header > .header-inner > .photo-wrap > img {
		max-height: 350px;
		min-width: 250px;
		height: 100%;
		object-position: center;
	}

	h1 {
		left: 300px;
		bottom: 280px;
		white-space: nowrap;
	}

	.about-card > h2 {
		margin-bottom: 10px;
	}

	.about-card > .links {
		justify-content: flex-end;
		margin-top: 20px;
	}

	/* My work */

	.my-work {
		width: 80%;
		display: flex;
		align-items: center;
		flex-direction: column;
		margin: 0 auto;
	}

	.my-work > h2 {
		text-align: start;
		align-self: flex-start;
	}

	.my-work > .projects {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}

	.project {
		margin: 0;
		width: 100%;
	}

	/* Footer */

	footer {
		display: flex;
		padding: 40px;
		justify-content: space-between;
	}

	.footer-info > h2 {
		text-align: start;
		margin-bottom: 10px;
	}

	.footer-info > p {
		padding: 0;
		margin-bottom: 20px;
		margin-right: 20px;
		max-width: 300px;
	}

	.footer-info > .email > a {
		align-items: flex-start;
		margin: 0;
		gap: 15px;
	}

	.footer-info > .email > a > img {
		display: block;
		width: 20px;
		height: 20px;
		filter: brightness(0) saturate(100%) invert(94%) sepia(8%) saturate(300%)
			hue-rotate(340deg) brightness(103%);
	}

	.footer-info > .links {
		justify-content: flex-start;
	}

	footer > img {
		height: 350px;
		max-width: 300px;
		object-position: center bottom;
		border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	}
}

@media (min-width: 880px) {
	/*Header*/

	.header-inner {
		max-width: 800px;
		max-height: 400px;
		margin-right: -38px;
		padding-top: 40px;
	}

	.photo-wrap {
		width: 350px;
		height: 500px;
		margin-top: -100px;
		margin-left: -85px;
		margin-right: 40px;
	}

	header > .header-inner > .photo-wrap > img {
		max-height: 500px;
		min-width: 380px;
	}

	h1 {
		left: 55px;
		bottom: 410px;
		white-space: nowrap;
	}

	.about-card > .links {
		margin-top: 0px;
	}

	.about-card > h2 {
		text-align: start;
	}

	.about-card > .links {
		width: auto;
	}

	/* My work */

	.my-work > .projects {
		grid-template-columns: 1fr 1fr 1fr;
	}

	.project {
		min-height: 400px;
	}

	/* Footer */

	footer {
		padding: 40px 80px;
	}
}
