/* ==========================================================
   Address Circle Bio — front end
   All brand values arrive as custom properties from the page
   editor (see acbio_inline_css). Nothing brand-specific here.
   ========================================================== */

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

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

body.bio-page {
	margin: 0;
	min-height: 100vh;
	min-height: 100svh;
	background: var(--b-bg);
	color: var(--b-text);
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.bio {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: max(56px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}

.bio__main {
	width: 100%;
	max-width: var(--b-max);
	margin-block: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* Soft, static brand light behind the logo. */
.bio__glow {
	position: absolute;
	z-index: -1;
	inset: 0 0 auto;
	height: min(78vh, 760px);
	pointer-events: none;
	background:
		radial-gradient(34% 42% at 50% 30%, color-mix(in srgb, var(--b-g2) 24%, transparent), transparent 72%),
		radial-gradient(26% 30% at 38% 22%, color-mix(in srgb, var(--b-g1) 16%, transparent), transparent 72%),
		radial-gradient(26% 32% at 63% 26%, color-mix(in srgb, var(--b-g3) 20%, transparent), transparent 72%);
}

/* ---------- Brand ---------- */

.bio__head { display: flex; flex-direction: column; align-items: center; }

.bio__brand {
	margin: 0;
	display: grid;
	place-items: center;
	font: inherit;
}

.bio__logo {
	display: block;
	width: var(--b-logo);
	max-width: 72vw;
	height: auto;
}

.bio__wordmark {
	font-family: var(--f-head);
	font-weight: 500;
	font-size: clamp(26px, 7vw, 36px);
	line-height: 1.1;
	letter-spacing: -0.015em;
	max-width: 14ch;
}

/* Ring frame: one circle, drawn once. */
.bio__brand--ring {
	position: relative;
	width: min(calc(var(--b-logo) + 104px), 76vw);
	aspect-ratio: 1;
}
.bio__brand--ring .bio__logo { width: min(var(--b-logo), calc(76vw - 104px)); }
.bio__brand--ring .bio__wordmark { font-size: clamp(20px, 5.4vw, 26px); max-width: 9ch; }

.bio__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
	overflow: visible;
}
.bio__ring circle { fill: none; }
.bio__ring-track { stroke: var(--b-line); stroke-width: .4; }
.bio__ring-line {
	stroke-width: .6;
	stroke-linecap: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 0;
	animation: bio-ring 1.6s cubic-bezier(.65, 0, .35, 1) .15s both;
}
@keyframes bio-ring { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.bio__tagline {
	margin: 28px 0 0;
	max-width: 30ch;
	font-family: var(--f-head);
	font-size: clamp(16px, 4.2vw, 18px);
	font-weight: 400;
	line-height: 1.45;
	text-wrap: balance;
}
.bio__sub {
	margin: 10px 0 0;
	max-width: 36ch;
	color: var(--b-muted);
	font-size: 15px;
	text-wrap: balance;
}

/* ---------- Social ---------- */

.bio__social { margin-top: 32px; }
.bio__social ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.bio__social a {
	display: grid;
	place-items: center;
	width: var(--b-icon);
	height: var(--b-icon);
	color: var(--b-text);
	text-decoration: none;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.bio__icon { width: 20px; height: 20px; }

/* Circles */
.bio__social--circle a {
	border-radius: 50%;
	background: var(--b-surface);
	border: 1px solid var(--b-line);
}
.bio__social--circle a:hover { border-color: var(--b-accent); }

/* Framed strip: one hairline frame, divided into equal cells. */
.bio__social--segmented ul { gap: 0; border: 1px solid var(--b-line); flex-wrap: nowrap; max-width: 100%; }
.bio__social--segmented li + li { border-inline-start: 1px solid var(--b-line); }
.bio__social--segmented a { width: min(var(--b-icon), calc((100vw - 48px) / 6)); }
.bio__social--segmented a:hover { background: var(--b-text); color: var(--b-bg); }

/* Icons only */
.bio__social--plain ul { gap: 6px; }
.bio__social--plain a { opacity: .8; }
.bio__social--plain a:hover { opacity: 1; color: var(--b-accent); }

.bio__social a:focus-visible,
.store:focus-visible {
	outline: 2px solid var(--b-text);
	outline-offset: 3px;
}

/* ---------- App download ---------- */

.bio__app {
	width: 100%;
	margin-top: 44px;
	padding-top: 36px;
	border-top: 1px solid var(--b-line);
}
.bio__app-title {
	margin: 0;
	font-family: var(--f-head);
	font-size: clamp(20px, 5vw, 22px);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.01em;
}
.bio__app-text { margin: 8px 0 0; color: var(--b-muted); font-size: 15px; }

.bio__stores {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 24px;
}

.store {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 60px;
	padding: 10px 16px;
	border-radius: var(--b-radius);
	background: var(--b-surface);
	border: 1px solid var(--b-line);
	color: var(--b-text);
	text-decoration: none;
	text-align: start;
	transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.store__icon { width: 24px; height: 24px; flex: none; }
.store__txt { display: flex; flex-direction: column; line-height: 1.15; }
.store__txt small { font-size: 11px; opacity: .72; letter-spacing: .01em; }
.store__txt strong { font-family: var(--f-head); font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }

.store:hover { border-color: var(--b-accent); }

/* Gradient edge when the brand gradient is on; filled on hover and for the
   visitor's own store. */
.bio__stores.has-grad .store {
	border-color: transparent;
	background: linear-gradient(var(--b-surface), var(--b-surface)) padding-box, var(--b-grad) border-box;
}
.bio__stores.has-grad .store:hover,
.bio__stores.has-grad .store.is-primary {
	background: var(--b-grad) border-box;
	color: #fff;
}
.bio__stores:not(.has-grad) .store.is-primary {
	background: var(--b-text);
	border-color: var(--b-text);
	color: var(--b-bg);
}

/* On a phone the visitor's store leads, full width. */
.bio__stores.is-detected { grid-template-columns: 1fr; }

@media (max-width: 380px) {
	.bio__stores { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.bio__foot {
	margin-top: 56px;
	color: var(--b-muted);
	font-size: 12px;
	letter-spacing: .02em;
	text-align: center;
}

/* ---------- Preferences ---------- */

@media (prefers-reduced-motion: reduce) {
	.bio__ring-line { animation: none; }
	.bio__social a, .store { transition: none; }
}

@media (forced-colors: active) {
	.bio__social a, .store { border: 1px solid CanvasText; }
}
