/* =============================================
   Here Maple — Link-in-Bio Theme
   Mobile-first, warm golden aesthetic
   ============================================= */

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

:root {
	--cream:       #FFF8EE;
	--cream-mid:   #FFF0D9;
	--gold:        #D4852A;
	--gold-light:  #F5C87A;
	--gold-pale:   #FAE5B8;
	--brown-dark:  #3D2B1F;
	--brown-mid:   #7A5C3D;
	--brown-light: #B08A5E;
	--white:       #FFFFFF;
	--card-border: rgba(212, 133, 42, 0.18);
	--shadow:      0 4px 24px rgba(61, 43, 31, 0.10);
	--shadow-btn:  0 2px 10px rgba(61, 43, 31, 0.08);
	--radius-card: 28px;
	--radius-btn:  16px;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
	background: var(--cream);
	color: var(--brown-dark);
	min-height: 100vh;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 2rem 1rem 3rem;
	background-image:
		radial-gradient(ellipse 60% 40% at 50% 0%, rgba(245, 200, 122, 0.25) 0%, transparent 70%),
		url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='12' cy='8' rx='4' ry='5.5' fill='%23D4852A' opacity='.04'/%3E%3Cellipse cx='22' cy='4' rx='4' ry='5.5' fill='%23D4852A' opacity='.04'/%3E%3Cellipse cx='32' cy='6' rx='4' ry='5.5' fill='%23D4852A' opacity='.04'/%3E%3Cellipse cx='22' cy='20' rx='9' ry='11' fill='%23D4852A' opacity='.04'/%3E%3C/svg%3E");
}

/* ── Page layout ── */

.hm-page {
	width: 100%;
	max-width: 460px;
}

.hm-card {
	background: var(--white);
	border-radius: var(--radius-card);
	border: 1px solid var(--card-border);
	box-shadow: var(--shadow);
	padding: 2.25rem 1.75rem 2rem;
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* ── Profile section ── */

.hm-profile {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-bottom: 1.75rem;
}

.hm-avatar-wrap {
	position: relative;
	width: 110px;
	height: 110px;
	margin-bottom: 1rem;
}

.hm-avatar,
.hm-avatar-placeholder {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	position: relative;
	z-index: 1;
}

.hm-avatar-placeholder {
	background: var(--gold-pale);
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.hm-avatar-ring {
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
	z-index: 0;
}

.hm-name {
	font-family: 'Nunito', sans-serif;
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--brown-dark);
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin-bottom: 0.3rem;
}

.hm-handle {
	margin-bottom: 0.65rem;
}

.hm-ig-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-family: 'Nunito', sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--gold);
	text-decoration: none;
	letter-spacing: 0.01em;
	transition: color 0.18s ease;
}

.hm-ig-link:hover,
.hm-ig-link:focus-visible {
	color: var(--brown-dark);
}

.hm-ig-icon {
	flex-shrink: 0;
}

.hm-bio {
	font-size: 0.92rem;
	color: var(--brown-mid);
	line-height: 1.6;
	max-width: 28ch;
}

/* ── Links ── */

.hm-links {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding-bottom: 1.75rem;
}

.hm-link-btn {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.95rem 1.1rem 0.95rem 1rem;
	background: var(--cream);
	border: 1.5px solid var(--gold-pale);
	border-radius: var(--radius-btn);
	text-decoration: none;
	color: var(--brown-dark);
	box-shadow: var(--shadow-btn);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.hm-link-btn:hover,
.hm-link-btn:focus-visible {
	background: var(--gold-pale);
	border-color: var(--gold-light);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(61, 43, 31, 0.13);
	outline: none;
}

.hm-link-btn:active {
	transform: translateY(0);
	box-shadow: var(--shadow-btn);
}

.hm-link-emoji {
	font-size: 1.25rem;
	flex-shrink: 0;
	width: 2rem;
	text-align: center;
}

.hm-link-label {
	flex: 1;
	font-family: 'Nunito', sans-serif;
	font-size: 0.97rem;
	font-weight: 700;
	color: var(--brown-dark);
	line-height: 1.3;
}

.hm-link-arrow {
	flex-shrink: 0;
	color: var(--brown-light);
	display: flex;
	align-items: center;
	transition: transform 0.15s ease, color 0.15s ease;
}

.hm-link-btn:hover .hm-link-arrow {
	transform: translateX(3px);
	color: var(--gold);
}

/* ── Footer ── */

.hm-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.hm-paw-divider {
	opacity: 0.6;
}

.hm-footer-text {
	font-size: 0.8rem;
	color: var(--brown-light);
	font-family: 'Nunito', sans-serif;
	font-weight: 600;
	letter-spacing: 0.01em;
}

/* ── Focus styles for accessibility ── */

:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

/* ── Slight desktop lift ── */

@media (min-width: 520px) {
	body {
		padding-top: 3rem;
		padding-bottom: 4rem;
	}

	.hm-card {
		padding: 2.75rem 2.5rem 2.25rem;
	}
}
