/* ==========================================================================
   Chloe Hayes — bridge + landing (v2, dark)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CONTENTS
   1. Tokens (design variables)
   2. Base
   --------------------------------------------------------------------------
   3. Bridge page        (index.html — in-app browser → "More of Me!")
   --------------------------------------------------------------------------
   4. Home page          (home.html)
      4.1 Hero
      4.2 Socials
      4.3 Teaser
      4.4 Footer
   --------------------------------------------------------------------------
   5. Keyframes
   -------------------------------------------------------------------------- */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
	--color-black: #000000;
	--color-white: #ffffff;
	--color-surface: #1c1c1e;
	--color-surface-hover: #2a2a2c;
	--color-button: #2b2b2b;
	--color-button-hover: #363636;
	--color-button-border: #555555;
	--color-muted: #9a9a9f;
	--color-fade: rgba(0, 0, 0, 1);
	--color-fade-mid: rgba(0, 0, 0, 0.55);
	--color-fade-none: rgba(0, 0, 0, 0);
	--color-card-fade: rgba(0, 0, 0, 0.6);
	--color-shadow: rgba(0, 0, 0, 0.5);
	--color-chip-top: #ffffff;
	--color-chip-bottom: #e4e4e9;
	--color-chip-top-hover: #ffffff;
	--color-chip-bottom-hover: #f1f1f5;
	--color-chip-edge: rgba(255, 255, 255, 0.5);
	--color-chip-glow: rgba(255, 255, 255, 0.07);
	--color-chip-shadow: rgba(0, 0, 0, 0.95);
	--font-sans:
		'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--radius-card: 16px;
	--column-width: 480px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	background: var(--color-black);
}

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100svh;
	font-family: var(--font-sans);
	color: var(--color-white);
	background: var(--color-black);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
	margin: 0;
}

/* ==========================================================================
   3. BRIDGE PAGE — index.html
   ========================================================================== */
.bridge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: 48px 24px calc(48px + env(safe-area-inset-bottom));
	text-align: center;
}
.bridge-avatar {
	width: 172px;
	height: 172px;
	padding: 5px;
	border-radius: 50%;
	background: var(--color-white);
	animation: pop 0.8s var(--ease-out) both;
}
.bridge-avatar img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 18%;
}
.bridge-name {
	margin-top: 26px;
	font-size: 30px;
	font-weight: 500;
	letter-spacing: -0.01em;
	animation: rise 0.8s var(--ease-out) 0.1s both;
}
.bridge-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 260px;
	max-width: 100%;
	min-height: 60px;
	margin-top: 40px;
	padding: 0 24px;
	border: 1px solid var(--color-button-border);
	border-radius: 999px;
	background: var(--color-button);
	font-size: 19px;
	font-weight: 500;
	color: var(--color-white);
	transition:
		background 0.3s var(--ease-out),
		transform 0.3s var(--ease-out);
	animation: rise 0.8s var(--ease-out) 0.2s both;
}
.bridge-button:hover {
	background: var(--color-button-hover);
}
.bridge-button:active {
	transform: scale(0.97);
}
.bridge-hint {
	max-width: 300px;
	margin-top: 26px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--color-muted);
	opacity: 1;
	transform: none;
	animation: rise 0.8s var(--ease-out) 0.3s both;
}
.bridge-hint b {
	font-weight: 600;
	color: var(--color-white);
}
.bridge-hint.active {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   4. HOME PAGE — home.html
   ========================================================================== */
.home {
	width: 100%;
	max-width: var(--column-width);
	margin: 0 auto;
	padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

/* --------------------------------------------------------------------------
   4.1 Hero
   -------------------------------------------------------------------------- */
.hero {
	position: relative;
}
.hero-photo {
	position: relative;
	aspect-ratio: 4/5;
	overflow: hidden;
}
.hero-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
	animation: settle 1.8s var(--ease-out) both;
}
/* затемнение снизу */
.hero-photo::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		var(--color-fade-none) 40%,
		var(--color-fade-mid) 70%,
		var(--color-fade) 100%
	);
}
.hero-content {
	position: absolute;
	inset: auto 0 0 0;
	padding: 0 20px 6px;
	text-align: center;
}
.hero-name {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 38px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	animation: rise 0.9s var(--ease-out) 0.3s both;
}
.hero-kiss {
	flex: none;
	width: 0.82em;
	height: 0.82em;
	margin-top: 0.06em;
	transform: rotate(-10deg);
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
	animation: kiss-pop 0.7s var(--ease-out) 1.05s both;
}
.hero-handle {
	margin-top: 6px;
	font-size: 17px;
	color: var(--color-muted);
	animation: rise 0.9s var(--ease-out) 0.4s both;
}

/* --------------------------------------------------------------------------
   4.2 Socials
   -------------------------------------------------------------------------- */
.socials {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 28px;
	animation: rise 0.9s var(--ease-out) 0.5s both;
}
.socials-item {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: linear-gradient(
		to bottom,
		var(--color-chip-top) 0%,
		var(--color-chip-bottom) 100%
	);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.9),
		0 0 0 1px var(--color-chip-edge),
		0 8px 18px -10px var(--color-chip-shadow);
	transition:
		background 0.3s var(--ease-out),
		box-shadow 0.3s var(--ease-out),
		transform 0.3s var(--ease-out);
}
.socials-item img {
	width: 28px;
	height: 28px;
	object-fit: contain;
	/* (для однотонных svg) */
	/* filter: brightness(0) invert(1); */
}
.socials-item:hover {
	background: linear-gradient(
		to bottom,
		var(--color-chip-top-hover) 0%,
		var(--color-chip-bottom-hover) 100%
	);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.9),
		0 0 0 1px var(--color-chip-edge),
		0 10px 22px -10px var(--color-chip-shadow),
		0 0 0 4px var(--color-chip-glow);
}
.socials-item:active {
	transform: scale(0.94);
}

/* --------------------------------------------------------------------------
   4.3 Teaser
   -------------------------------------------------------------------------- */
.teaser {
	margin: 40px 16px 0;
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.9s var(--ease-out),
		transform 0.9s var(--ease-out);
}
.teaser.active {
	opacity: 1;
	transform: none;
}
.teaser-card {
	position: relative;
	display: block;
	border-radius: var(--radius-card);
	overflow: hidden;
	transform: translateZ(0);
	box-shadow: 0 20px 40px -20px var(--color-shadow);
}
.teaser-photo {
	aspect-ratio: 4/3;
	background: var(--color-surface);
}
.teaser-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--ease-out);
}
/* затемнение под подписью */
.teaser-card::after {
	content: '';
	position: absolute;
	inset: 50% 0 0 0;
	background: linear-gradient(
		to bottom,
		var(--color-fade-none) 0%,
		var(--color-card-fade) 100%
	);
	pointer-events: none;
}
.teaser-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	display: block;
	width: 30px;
	height: 30px;
	transition: transform 0.3s var(--ease-out);
}
.teaser-badge img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}
.teaser-card:hover .teaser-badge {
	transform: scale(1.08);
}
.teaser-title {
	position: absolute;
	inset: auto 0 18px 0;
	z-index: 1;
	font-size: 22px;
	font-weight: 600;
	text-align: center;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.teaser-card:hover .teaser-photo img {
	transform: scale(1.04);
}
.teaser-card:active {
	transform: scale(0.99);
}

/* --------------------------------------------------------------------------
   4.4 Footer
   -------------------------------------------------------------------------- */
.footer {
	margin-top: 36px;
	font-size: 12px;
	text-align: center;
	color: var(--color-muted);
}

/* ==========================================================================
   5. KEYFRAMES
   ========================================================================== */
@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@keyframes pop {
	from {
		opacity: 0;
		transform: scale(0.85);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@keyframes kiss-pop {
	from {
		opacity: 0;
		transform: rotate(-10deg) scale(0.4);
	}
	60% {
		opacity: 1;
		transform: rotate(-10deg) scale(1.12);
	}
	to {
		opacity: 1;
		transform: rotate(-10deg) scale(1);
	}
}
@keyframes settle {
	from {
		opacity: 0;
		transform: scale(1.08);
	}
	to {
		opacity: 1;
		transform: none;
	}
}