/*
 * Public pages styled after the Linktree profile frame:
 * gray stage, centered white column, soft link cards.
 */

@font-face {
	font-display: swap;
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 400;
	src: url("../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2") format("woff2");
}
@font-face {
	font-display: swap;
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 600;
	src: url("../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.woff2") format("woff2");
}
@font-face {
	font-display: swap;
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 700;
	src: url("../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.woff2") format("woff2");
}

html {
	background: var(--lt-stage);
}

:root {
	--lt-stage: #e0e0e0;
	--lt-stage-shade: rgba(0, 0, 0, 0.2);
	--lt-card: #ffffff;
	--lt-text: #000000;
	--lt-link-shadow:
		0 1px 1px rgba(0, 0, 0, 0.04),
		0 6px 16px rgba(0, 0, 0, 0.08);
	--lt-width: 580px;
}

.lt-page {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	min-height: 100vh;
	margin: 0;
	padding: 40px 0;
	background: var(--lt-stage);
	color: var(--lt-text);
	font-family: "Open Sans", system-ui, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.lt-page-solid .lt-shade,
.lt-page-solid .lt-glow {
	display: none;
}

.lt-shade {
	position: fixed;
	inset: 0;
	background: var(--lt-stage-shade);
	pointer-events: none;
	z-index: 0;
}

.lt-glow {
	position: fixed;
	left: -5vw;
	top: -5vh;
	width: 110vw;
	height: 110vh;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	filter: blur(50px);
	opacity: 0.25;
	pointer-events: none;
	z-index: 0;
}

.lt-card {
	position: relative;
	z-index: 1;
	width: min(var(--lt-width), 100%);
	margin: auto;
	padding: 72px 28px 48px;
	background: var(--lt-card);
	border-radius: 24px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
	text-align: center;
}

.lt-tool {
	position: absolute;
	top: 28px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	color: #000;
	background: rgba(239, 240, 236, 0.92);
	border: 0;
	border-radius: 16px;
	outline: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: none;
	backdrop-filter: blur(16px) brightness(1.4);
	cursor: pointer;
	transition: transform 150ms ease-out, background-color 75ms ease-out;
}

.lt-qr {
	left: 28px;
}

.lt-share {
	right: 28px;
}

.lt-tool:hover {
	background: #e7e8e4;
	color: #000;
}

.lt-tool:active {
	transform: scale(0.95);
}

.lt-tool svg {
	display: block;
	width: 20px;
	height: 20px;
}

.lt-modal {
	position: fixed;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.45);
}

.lt-modal[hidden] {
	display: none;
}

.lt-modal-card {
	position: relative;
	width: min(360px, 100%);
	padding: 28px 24px 24px;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
	text-align: center;
}

.lt-modal-card h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
}

.lt-modal-card p {
	margin: 6px 0 16px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
}

.lt-modal-card img {
	width: min(280px, 100%);
	height: auto;
	margin: 0 auto 16px;
}

.lt-modal-card .lt-link {
	width: 100%;
}

.lt-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	color: #000;
	background: transparent;
	border: 0;
	border-radius: 12px;
	cursor: pointer;
}

.lt-modal-close:hover {
	background: rgba(0, 0, 0, 0.06);
}

body.lt-modal-open {
	overflow: hidden;
}

.lt-share-note {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	padding: 6px 10px;
	border-radius: 8px;
	background: #111;
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
}

.lt-share[data-copied="1"] .lt-share-note {
	opacity: 1;
}

.lt-avatar,
.lt-avatar-fallback {
	width: 112px;
	height: 112px;
	margin: 0 auto;
	border-radius: 50%;
	object-fit: cover;
}

.lt-avatar-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #111;
	color: #fff;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
}

.lt-card h1 {
	margin: 16px 0 0;
	color: var(--lt-text);
	font-size: 29px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
}

.lt-bio {
	margin: 4px 0 0;
	color: var(--lt-text);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0;
	white-space: pre-line;
}

.lt-socials {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px;
	margin: 12px 0 0;
	padding: 0;
}

.lt-socials a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	color: var(--lt-text);
	text-decoration: none;
	border-radius: 12px;
}

.lt-socials a:hover {
	background: rgba(0, 0, 0, 0.06);
}

.lt-socials img {
	width: 32px;
	height: 32px;
	max-width: none;
	filter: brightness(0);
}

.lt-links,
.lt-directory {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 32px 0 0;
	padding: 0;
}

.lt-link,
.lt-person {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 64px;
	padding: 12px 16px;
	background: #fff;
	color: #000;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	box-shadow: var(--lt-link-shadow);
	font-size: 19px;
	font-weight: 500;
	letter-spacing: -0.2px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 75ms ease-out, transform 75ms ease-out, box-shadow 75ms ease-out;
}

.lt-link:hover,
.lt-person:hover {
	background: color-mix(in srgb, #ffffff 93%, #000000 7%);
	border-color: rgba(0, 0, 0, 0.12);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 10px 22px rgba(0, 0, 0, 0.1);
	color: var(--lt-text);
}

.lt-link:active,
.lt-person:active {
	transform: scale(0.985);
}

.lt-link:focus-visible,
.lt-person:focus-visible {
	outline: 2px solid #000;
	outline-offset: 3px;
}

.lt-person {
	justify-content: flex-start;
	gap: 14px;
	text-align: left;
}

.lt-person img,
.lt-person .lt-avatar-fallback {
	display: flex;
	width: 48px;
	height: 48px;
	margin: 0;
	flex-shrink: 0;
	font-size: 1.1rem;
	font-weight: 700;
}

.lt-person-text {
	min-width: 0;
}

.lt-person-text strong,
.lt-person-text span {
	display: block;
}

.lt-person-text span {
	margin-top: 2px;
	font-size: 14px;
	font-weight: 400;
	white-space: pre-line;
}

.lt-empty {
	margin: 32px 0 0;
	color: #444;
}

.lt-page :focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

@media (max-width: 639px) {
	.lt-page {
		padding: 16px 0;
	}

	.lt-card {
		width: auto;
		margin-block: auto;
		margin-inline: 16px;
		padding: 56px 20px 32px;
	}

	.lt-tool {
		top: 14px;
	}

	.lt-qr {
		left: 14px;
	}

	.lt-share {
		right: 14px;
	}
}
