:root {
	--background: #f5ece6;
	--wine: #87233f;
	--ink: #080808;
	--display: 'Cormorant Garamond', Georgia, serif;
	--body: 'Questrial', Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	min-width: 320px;
	background: var(--background);
}

body {
	margin: 0;
	color: var(--ink);
	background:
		radial-gradient(circle at -12% 25%, rgba(222, 140, 161, 0.38) 0, rgba(222, 140, 161, 0) 34%),
		radial-gradient(circle at 112% 92%, rgba(202, 104, 132, 0.52) 0, rgba(202, 104, 132, 0) 38%),
		var(--background);
	font-family: var(--body);
	-webkit-font-smoothing: antialiased;
}

.links-page {
	width: min(100%, 480px);
	min-height: 100svh;
	margin: 0 auto;
	padding: 36px 20px 56px;
}

.profile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 25px;
}

.portrait {
	position: relative;
	width: 236px;
	height: 252px;
}

.portrait::before {
	content: '';
	position: absolute;
	left: 0;
	top: 49px;
	width: 100%;
	height: 203px;
	border: 2px solid #ffefde;
	border-radius: 24px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(221, 183, 187, 0.42)),
		#d9d9d9;
	box-shadow: 0 0 14px 1px rgba(255, 255, 255, 0.25);
}

.portrait img {
	display: block;
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 236px;
	height: auto;
	transform: translateX(-50%);
}

.identity {
	text-align: center;
}

.identity h1,
.link-card strong {
	margin: 0;
	color: var(--wine);
	font-family: var(--display);
	font-weight: 500;
}

.identity h1 {
	font-size: 44px;
	line-height: 0.95;
	letter-spacing: -0.03em;
}

.identity p {
	margin: 10px 0 0;
	font-size: 22px;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.link-list {
	display: grid;
	gap: 14px;
	margin-top: 35px;
}

.link-card {
	display: flex;
	min-height: 94px;
	padding: 16px 18px 18px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 7px;
	border: 1.5px solid var(--wine);
	border-radius: 150px;
	color: var(--ink);
	text-align: center;
	text-decoration: none;
	transition: color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.link-card strong {
	font-size: 28px;
	line-height: 0.95;
	letter-spacing: -0.03em;
}

.link-card span {
	font-size: 19px;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.link-card:hover,
.link-card:focus-visible {
	color: #fffaf7;
	background: var(--wine);
	box-shadow: 0 12px 28px rgba(135, 35, 63, 0.2);
	outline: none;
	transform: translateY(-3px);
}

.link-card:hover strong,
.link-card:focus-visible strong {
	color: #fffaf7;
}

.link-card[aria-disabled='true'] {
	cursor: default;
}

.instagram-link {
	display: grid;
	width: 44px;
	height: 44px;
	margin: 24px auto 0;
	place-items: center;
	border: 1.5px solid var(--wine);
	border-radius: 50%;
	color: var(--wine);
	transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.instagram-link svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.65;
}

.instagram-link .instagram-dot {
	fill: currentColor;
	stroke: none;
}

.instagram-link:hover,
.instagram-link:focus-visible {
	color: #fffaf7;
	background: var(--wine);
	outline: none;
	transform: translateY(-2px);
}

@media (max-width: 520px) {
	.links-page {
		padding: 30px 18px 48px;
	}

	.profile {
		gap: 22px;
	}

	.portrait {
		width: min(218px, 62vw);
		height: min(232px, 66vw);
	}

	.portrait::before {
		top: 19.4%;
		height: 80.6%;
		border-radius: 22px;
	}

	.portrait img {
		width: 100%;
	}

	.identity h1 {
		font-size: clamp(38px, 11vw, 44px);
	}

	.identity p {
		margin-top: 9px;
		font-size: clamp(17px, 5.4vw, 21px);
	}

	.link-list {
		gap: 12px;
		margin-top: 30px;
	}

	.link-card {
		min-height: 88px;
		padding: 14px 14px 16px;
		gap: 6px;
	}

	.link-card strong {
		font-size: clamp(24px, 7.5vw, 28px);
	}

	.link-card span {
		font-size: clamp(16px, 5vw, 19px);
	}

	.instagram-link {
		margin-top: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.link-card,
	.instagram-link {
		transition: none;
	}
}
