/**
 * Curatery public profile — the rebrand.
 *
 * public-profile.php, built to the mockup's profile-readandmake.html. The
 * collection cards are styled by collections.css.
 */

.cur-profile {
	--theme-link-initial-color: currentColor;
	--theme-link-hover-color: var(--cur-tomato);
	padding: 3rem var(--cur-gutter) 6rem;
	background: #fff9ef;
	color: var(--cur-ink);
	font-family: var(--cur-sans);
}

.cur-profile__inner {
	max-width: var(--cur-max-width);
	margin: 0 auto;
}

.cur-profile :is(h1, h2, h3) {
	color: inherit;
	font-family: var(--cur-serif);
	font-weight: 400;
}

.cur-profile :where(a) {
	text-decoration: none;
}

/* ── Who they are ─────────────────────────────────────────── */

.cur-profile__head {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr) auto;
	gap: 1.6rem;
	align-items: center;
	padding: 2rem;
	border-radius: 86px 16px 16px 16px;
	background: var(--cur-peach);
}

.cur-profile__photo {
	display: grid;
	place-items: center;
	overflow: hidden;
	width: 140px;
	height: 140px;
	border: 7px solid var(--cur-paper);
	border-radius: 50%;
	background: var(--cur-butter);
	box-shadow: 0 8px 18px rgba(36, 27, 22, 0.12);
	color: var(--cur-ink);
	font: 400 4rem/1 var(--cur-serif);
}

.cur-profile__photo--official {
	background: var(--cur-tomato);
	color: #ffffff;
}

.cur-profile__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cur-profile .cur-profile__copy h1 {
	margin: 0.2rem 0;
	font-size: clamp(3rem, 6vw, 5.4rem);
	line-height: 0.85;
	letter-spacing: -0.04em;
	overflow-wrap: anywhere;
}

.cur-profile__handle {
	display: block;
	margin: 0.4rem 0 0.8rem;
	color: var(--cur-ink-muted);
	font-weight: 700;
}

.cur-profile .cur-profile__copy > p:not(.cur-eyebrow) {
	max-width: 650px;
	margin: 0;
}

.cur-profile__actions {
	display: grid;
	gap: 0.7rem;
	min-width: 150px;
}

.cur-profile .cur-profile__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.62rem 0.9rem;
	border: 1px solid var(--cur-ink);
	border-radius: 22px;
	background: var(--cur-paper);
	color: var(--cur-ink);
	font-size: 0.72rem;
	font-weight: 700;
}

.cur-profile .cur-profile__button:hover {
	background: var(--cur-ink);
	color: #ffffff;
}

.cur-profile .cur-profile__button--primary {
	border-color: var(--cur-green);
	background: var(--cur-green);
	color: #ffffff;
}

.cur-profile .cur-profile__button--primary:hover {
	border-color: var(--cur-ink);
}

.cur-profile__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.7rem;
	padding: 1.2rem 1rem;
	border-bottom: 1px solid var(--cur-line);
}

.cur-profile__stat strong,
.cur-profile__stat span {
	display: block;
}

.cur-profile__stat strong {
	font: 400 1.5rem/1 var(--cur-serif);
}

.cur-profile__stat span {
	color: var(--cur-ink-muted);
	font-size: 0.72rem;
}

/* ── Collections and following ────────────────────────────── */

.cur-profile__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 2.4rem 0 0;
	scroll-margin-top: 1rem;
}

.cur-profile .cur-profile__tabs .cur-chip {
	padding: 0.65rem 1rem;
	background: var(--cur-cream);
	font-size: 0.8rem;
}

.cur-profile .cur-profile__tabs .cur-chip[aria-current="page"] {
	background: var(--cur-green);
}

.cur-profile__section {
	margin-top: 2.2rem;
}

.cur-profile__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.3rem;
}

.cur-profile .cur-profile__following {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cur-profile .cur-profile__following > li {
	margin: 0;
}

.cur-profile-follow {
	display: flex;
	align-items: center;
	gap: 1rem;
	height: 100%;
	padding: 1rem 1.1rem;
	border: 1px solid var(--cur-line);
	border-radius: 12px;
	background: var(--cur-paper);
	color: var(--cur-ink);
	transition: transform 0.2s ease;
}

.cur-profile-follow:hover {
	transform: translateY(-3px);
	color: var(--cur-ink);
}

.cur-profile-follow__icon {
	display: grid;
	flex: 0 0 48px;
	place-items: center;
	overflow: hidden;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--cur-butter);
}

.cur-profile-follow__icon--corner {
	background: var(--cur-green-pale);
}

.cur-profile-follow__icon svg {
	width: 22px;
	height: 22px;
}

.cur-profile-follow__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cur-profile-follow strong,
.cur-profile-follow small {
	display: block;
}

.cur-profile-follow strong {
	font: 400 1.25rem/1.05 var(--cur-serif);
}

.cur-profile-follow small {
	margin-top: 0.25rem;
	color: var(--cur-ink-muted);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.cur-profile__empty {
	padding: 3rem 1.5rem;
	border: 1px solid var(--cur-line);
	border-radius: 12px;
	background: var(--cur-paper);
	text-align: center;
}

.cur-profile .cur-profile__empty p {
	margin: 0 0 0.8rem;
	color: var(--cur-ink-muted);
}

.cur-profile__empty a {
	border-bottom: 1px solid currentColor;
	color: var(--cur-green);
	font-size: 0.8rem;
	font-weight: 700;
}

/* ── Profile not found ────────────────────────────────────── */

.cur-profile__missing {
	max-width: 760px;
	margin: 1rem auto;
	padding: 3.5rem clamp(1.4rem, 6vw, 4.5rem);
	border-radius: 86px 16px 16px 16px;
	background: var(--cur-peach);
	text-align: center;
}

.cur-profile .cur-profile__missing h1 {
	margin: 0.45rem 0 1rem;
	font-size: clamp(2.8rem, 6vw, 4.6rem);
	line-height: 0.92;
	letter-spacing: -0.04em;
}

.cur-profile .cur-profile__missing p:not(.cur-eyebrow) {
	margin: 0 0 1.5rem;
}

/* ── Narrower screens ─────────────────────────────────────── */

@media (max-width: 900px) {
	.cur-profile__head {
		grid-template-columns: 120px 1fr;
	}

	.cur-profile__photo {
		width: 112px;
		height: 112px;
		font-size: 3.2rem;
	}

	.cur-profile__actions {
		display: flex;
		flex-wrap: wrap;
		grid-column: 1 / -1;
	}

	.cur-profile__grid,
	.cur-profile .cur-profile__following {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.cur-profile {
		padding-top: 2rem;
		padding-bottom: 5rem;
	}

	.cur-profile__head {
		grid-template-columns: 1fr;
		border-radius: 60px 12px 12px 12px;
	}

	.cur-profile .cur-profile__copy h1 {
		font-size: 3.4rem;
	}

	.cur-profile__actions {
		display: grid;
	}

	.cur-profile__grid,
	.cur-profile .cur-profile__following {
		grid-template-columns: 1fr;
	}

	.cur-profile__missing {
		border-radius: 60px 12px 12px 12px;
	}
}
