@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/inter-latin-700-normal.woff2') format('woff2');
}

:root {
	--bg: #f0ebe1;
	--text: #1a1a1a;
	--accent: #e8341a;
	--pill-border: #d4cfc6;
}

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

html, body { margin: 0; }

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	padding: 48px 16px 32px;
	background: var(--bg) url('../image/pattern.jpg') repeat;
	color: var(--text);
	font-family: 'Inter', sans-serif;
	-webkit-font-smoothing: antialiased;
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	border: 5px solid var(--accent);
	pointer-events: none;
	z-index: 10;
}

main {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

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

main a:hover { text-decoration: underline; }

/* Welcome */

.welcome {
	width: 100%;
	max-width: 420px;
	text-align: center;
}

.welcome__label {
	margin: 0 0 24px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 2.52px;
	text-transform: uppercase;
}

.welcome__portrait {
	display: block;
	width: 100%;
	max-width: 280px;
	height: auto;
	aspect-ratio: 2 / 3;
	margin: 0 auto 32px;
	object-fit: cover;
}

.welcome__name {
	margin: 0 0 16px;
	font-size: 40px;
	font-weight: 700;
	letter-spacing: -0.5px;
	line-height: 1.1;
}

.welcome__text {
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.7;
}

.social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

main .social__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 24px;
	border: 1.5px solid var(--pill-border);
	border-radius: 999px;
	color: var(--accent);
	font-size: 13px;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.2s, opacity 0.2s;
}

main .social__link:hover {
	border-color: var(--accent);
	opacity: 0.75;
	text-decoration: none;
}

.social__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* Legal pages */

.legal {
	width: 100%;
	max-width: 640px;
	font-size: 15px;
	line-height: 1.7;
	overflow-wrap: break-word;
}

.legal h1 {
	margin: 0 0 32px;
	font-size: 40px;
	letter-spacing: -0.5px;
	line-height: 1.1;
}

.legal h2 {
	margin: 40px 0 8px;
	font-size: 14px;
	letter-spacing: 2.52px;
	text-transform: uppercase;
}

.legal h3 {
	margin: 24px 0 4px;
	font-size: 15px;
}

.legal p,
.legal ul { margin: 0 0 16px; }

.legal ul { padding-left: 20px; }

.legal__back {
	display: inline-block;
	margin-bottom: 32px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.98px;
	text-transform: uppercase;
}

/* Footer */

.footer {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-top: 48px;
}

.footer a {
	color: var(--text);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.98px;
	text-transform: uppercase;
	text-decoration: none;
}

.footer a:hover,
.footer a[aria-current] { color: var(--accent); }

@media (max-width: 480px) {
	.welcome__name,
	.legal h1 { font-size: 32px; }
	.welcome__portrait { max-width: 220px; }
}

.welcome picture { display: block; }
