/* O nama: scoped Page composition using the existing Breganja tokens. */
.breganja-about-page,
.breganja-about-page * {
	box-sizing: border-box;
}

.breganja-about-page {
	background: var(--wp--preset--color--off-white);
	color: var(--wp--preset--color--ink);
}

.breganja-about-page .wp-block-post-content,
.breganja-about-page .wp-block-post-content > * {
	margin-block-start: 0;
}

.about-section {
	padding-block: clamp(68px, 6.2vw, 96px);
}

.about-shell {
	width: min(calc(100% - 2 * clamp(20px, 4vw, 64px)), 1320px);
	max-width: none;
	margin-inline: auto;
}

/* Custom grids keep Gutenberg's flow class; let grid gap, not flow blockGap, space their children. */
.breganja-about-page :where(
	.about-areas__grid,
	.about-history__grid,
	.about-stickers__grid,
	.about-join__grid
) > * {
	margin-block-start: 0;
}

.about-eyebrow,
.about-card__label,
.about-milestone__year {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: clamp(0.76rem, 0.72rem + 0.12vw, 0.88rem);
	font-weight: 700;
	letter-spacing: 0.09em;
	line-height: 1.35;
	text-transform: uppercase;
}

.about-eyebrow {
	color: var(--wp--preset--color--breganja-red);
}

.about-hero {
	padding-block: clamp(88px, 9vw, 128px);
}

.about-hero .about-shell {
	max-width: 950px;
}

.about-hero h1 {
	margin-block: 18px 0;
	font-size: var(--wp--preset--font-size--h-1);
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.about-hero__lead {
	max-width: 760px;
	margin-block: 28px 0;
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.58;
}

.about-section h2 {
	max-width: 22ch;
	margin-block: 0 24px;
	font-size: var(--wp--preset--font-size--h-2);
	line-height: 1.05;
	letter-spacing: -0.025em;
}

.about-section__intro {
	max-width: 760px;
	font-size: var(--wp--preset--font-size--lead);
}

.about-areas {
	background: var(--wp--preset--color--mist);
}

.about-areas__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-block-start: 48px;
}

.about-card {
	display: flex;
	min-width: 0;
	min-height: 310px;
	flex-direction: column;
	padding: clamp(24px, 3vw, 48px);
	border: 1px solid rgb(23 25 24 / 12%);
	border-radius: 8px;
	background: var(--wp--preset--color--off-white);
}

.about-card__label {
	margin: 0;
	color: var(--wp--preset--color--breganja-red);
}

.about-card h3 {
	margin-block: 18px 0;
	font-size: var(--wp--preset--font-size--h-3);
}

.about-card p:not(.about-card__label, .about-card__cta) {
	max-width: 55ch;
	margin-block: 16px 0;
}

.about-card__cta {
	margin-block: auto 0;
	padding-block-start: 24px;
}

.about-link {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	border-bottom: 2px solid var(--wp--preset--color--breganja-red);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
}

.about-link:hover,
.about-link:focus-visible {
	color: var(--wp--preset--color--breganja-red);
}

.about-history__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin-block-start: 48px;
}

.about-milestone {
	min-width: 0;
	padding: 24px 0;
	border-top: 2px solid var(--wp--preset--color--breganja-red);
}

.about-milestone__year {
	margin: 0;
	color: var(--wp--preset--color--breganja-red);
}

.about-milestone h3 {
	margin-block: 16px;
	font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.75rem);
	line-height: 1.18;
}

.about-milestone p {
	margin-block: 12px 0;
}

.about-people {
	background: var(--wp--preset--color--mist);
}

.about-people .about-shell {
	max-width: 900px;
}

.about-people p {
	max-width: 760px;
}

.about-people p + p {
	margin-block-start: 24px;
}

.about-stickers__intro {
	max-width: 760px;
}

.about-stickers__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	margin-block-start: 48px;
}

.about-sticker {
	display: grid;
	min-width: 0;
	min-height: 166px;
	place-items: center;
	margin: 0;
	padding: 16px 8px;
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
}

.about-sticker img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	object-fit: contain;
}

.about-join {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--off-white);
}

.about-join h2,
.about-join p,
.about-join a {
	color: inherit;
}

.about-join__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-block-start: 48px;
}

.about-join__path {
	min-width: 0;
	min-height: 136px;
	padding: 28px;
	border-top: 1px solid rgb(247 246 242 / 28%);
	border-right: 1px solid rgb(247 246 242 / 22%);
}

.about-join__path:last-child {
	border-right: 0;
}

.about-join__path .about-link {
	border-color: var(--wp--preset--color--off-white);
	font-size: 1rem;
}

.about-join__path .about-link:hover,
.about-join__path .about-link:focus-visible {
	color: var(--wp--preset--color--off-white);
	border-color: var(--wp--preset--color--breganja-red);
}

.breganja-about-page a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

@media (max-width: 900px) {
	.about-history__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.about-stickers__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.about-join__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.about-join__path {
		min-height: 90px;
		border-right: 0;
	}
}

@media (max-width: 640px) {
	.about-section {
		padding-block: 64px;
	}

	.about-hero {
		padding-block: 80px 64px;
	}

	.about-areas__grid,
	.about-history__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		margin-block-start: 32px;
	}

	.about-card {
		min-height: 0;
	}

	.about-stickers__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		margin-block-start: 32px;
	}

	.about-sticker {
		min-height: 142px;
		padding: 8px;
	}

	.about-join__grid {
		margin-block-start: 32px;
	}
}
