/* FONTS */

@font-face {
	font-family: 'Lora';
	src: url("../fonts/Lora-VariableFont_wght.ttf") format("truetype");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Lora';
	src: url("../fonts/Lora-Italic-VariableFont_wght.ttf") format("truetype");
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: 'Raleway';
	src: url("../fonts/Raleway-VariableFont_wght.ttf") format("truetype");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Raleway';
	src: url("../fonts/Raleway-Italic-VariableFont_wght.ttf") format("truetype");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}

/* CSS VARIABLES */

:root {
	/* Colors */
	--color-background: #FFFCF5;
	--color-text-dark: #1C1917;
	--color-text-body: #44403C;
	--color-link: #B45309;
	--color-link-hover: #7A330A;

	/* Typography */
	--font-heading: "Raleway", Arial, sans-serif;
	--font-body: "Lora", Georgia, serif;
}

/* BASICS */

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

html {
	font-size: 100%;
}

body {
  background-color: var(--color-background);
  margin: 0;
}

/* TEXT ELEMENTS */

h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
	line-height: 1.2;
  color: var(--color-text-dark);
  font-weight: 600;
	padding-bottom: 1rem;
}

h1 .coffee {
	font-size: 0.95em;
}

h1 .croissant {
	font-size: 0.85em;
}

p {
  font-family: var(--font-body);
  font-size: 1.2rem;
	line-height: 1.5;
  color: var(--color-text-body);
  font-weight: 400;
	padding-bottom: 1rem;
}

a {
	font-family: var(--font-body);
	color: var(--color-link);
	font-weight: 400;
  text-decoration: none;
	transition: color ease-in-out 0.5s;
}

a:hover {
	color: var(--color-link-hover);
}

/* DESKTOP LAYOUT */

.container {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 2rem;
}

.profile-section {
	position: relative;
	padding-top: 60px;
	text-align: center;
	max-width: 650px;
	margin: 0 auto;
}

.profile-img-wrapper {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	width: 120px;
	height: 120px;
}

.profile-img-wrapper::after {
	content: '';
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	border: 2px solid #B45309;
	opacity: 0;
	transition: opacity 0.3s ease, inset 0.3s ease;
	pointer-events: none;
}

.profile-img-wrapper:hover::after {
	opacity: 1;
	inset: -12px;
}

.profile-img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 4px solid #B45309;
	object-fit: cover;
	display: block;
}

.text-box {
	background: rgba(180, 83, 9, 0.05);
	border-radius: 12px;
	padding: 80px 32px 32px 32px;
}

/* TABLET & MOBILE LAYOUT */

@media screen and (max-width: 48rem) {
	/* Typography */
	h1 {
		font-size: 2rem;
		line-height: 1.3;
	}

	p	{
		font-size: 1.1rem;
		line-height: 1.5;
	}

	/* Layout */
	.container {
		padding: 1rem;
	}

	.profile-section {
		max-width: 100%;
		padding-top: 50px;
	}

	.profile-img-wrapper {
		width: 100px;
		height: 100px;
	}

	.text-box {
		padding: 70px 24px 24px 24px;
	}
}
