/**
 * PU.nl — redesigned homepage.
 *
 * The page borrows an editorial rhythm, not a look: eyebrow + rule department
 * heads, numbering where order carries meaning, and a lot of air between
 * departments. Everything visual is PU's own — near-black ground, the orange
 * accent, and Bree Serif, the display face the theme already ships.
 *
 * Colours come from the theme's HSL tokens, so light and dark both work from
 * one set of rules.
 */

.pu-home {
	display: flex;
	flex-direction: column;
	gap: 3rem;
	padding-bottom: 3rem;
}

/* Masthead ---------------------------------------------------------------- */

.pu-masthead {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding-top: 1.25rem;
}

.pu-masthead__since {
	font-family: 'Bree Serif', Georgia, serif;
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	color: hsl(var(--link));
	white-space: nowrap;
}

.pu-masthead__rule {
	flex: 1;
	height: 1px;
	background: hsl(var(--accent));
}

.pu-masthead__date {
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: hsl(var(--foreground) / 0.5);
	white-space: nowrap;
}

/* The statement replaces the old plain h1 — the one place on the page where
   the display face runs large. */
.pu-home__statement {
	margin: 0;
	font-family: 'Bree Serif', Georgia, serif;
	font-size: clamp(1.5rem, 3.6vw, 2.75rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: hsl(var(--foreground));
}

/* No max-width and no text-wrap:balance here on purpose. Both were fighting
   the explicit line break: the measure snapped the sentence mid-phrase and
   left a narrow column against a wide empty right side. The <br> already puts
   the break where it belongs, so the first line simply runs the width. */
@media (max-width: 640px) {
	.pu-home__statement {
		font-size: 1.5rem;
	}
}

.pu-home__statement em {
	font-style: normal;
	color: hsl(var(--link));
}

/* Department heads -------------------------------------------------------- */

.pu-rubriek {
	display: flex;
	flex-direction: column;
}

.pu-rubriek__head {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.pu-rubriek__eyebrow {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
	color: hsl(var(--foreground));
}

.pu-rubriek__eyebrow > span {
	color: hsl(var(--link));
}

.pu-rubriek__rule {
	flex: 1;
	height: 1px;
	background: hsl(var(--accent));
}

.pu-rubriek__more {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.75rem;
	font-weight: 700;
	white-space: nowrap;
	color: hsl(var(--link));
	text-decoration: none;
}

.pu-rubriek__more:hover {
	color: hsl(var(--foreground));
	text-decoration: none;
}

.pu-rubriek__title {
	margin: 0.75rem 0 0;
	font-family: 'Bree Serif', Georgia, serif;
	font-size: 1.5rem;
	font-weight: 400;
	color: hsl(var(--foreground));
}

.pu-rubriek__sub {
	margin: 0.5rem 0 0;
	font-size: 0.8125rem;
	color: hsl(var(--foreground) / 0.6);
	max-width: 60ch;
}

.pu-rubriek > .pu-news,
.pu-rubriek > .pu-guides-grid,
.pu-rubriek > .pu-principles,
.pu-rubriek > .slotsl-lobby,
.pu-rubriek > .toplist-punl__wrapper {
	margin-top: 1.25rem;
}

/* News -------------------------------------------------------------------- */

.pu-news {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.pu-news__day {
	margin: 0.75rem 0 0.25rem;
	font-family: 'Bree Serif', Georgia, serif;
	font-size: 1.125rem;
	font-weight: 400;
	color: hsl(var(--link));
}

.pu-news__day:first-child {
	margin-top: 0;
}

/* Principles -------------------------------------------------------------- */

/* Each principle carries its own border rather than the container painting
   grid lines behind a 1px gap — a short last row then simply ends, instead of
   leaving a phantom empty cell. */
.pu-principles {
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

.pu-principles__item {
	display: flex;
	gap: 0.875rem;
	padding: 1.25rem;
	border: 1px solid hsl(var(--accent));
	border-top: 2px solid hsl(var(--link));
	border-radius: 0.5rem;
	background: hsl(var(--background));
}

.pu-principles__num {
	flex: none;
	font-family: 'Bree Serif', Georgia, serif;
	font-size: 1rem;
	line-height: 1.2;
	color: hsl(var(--link));
}

.pu-principles__body {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.pu-principles__title {
	font-weight: 700;
	font-size: 0.9375rem;
}

.pu-principles__text {
	font-size: 0.8125rem;
	line-height: 1.55;
	color: hsl(var(--foreground) / 0.65);
}

/* Figures band ------------------------------------------------------------ */

.pu-figures {
	background: hsl(var(--link));
	color: hsl(var(--primary-foreground));
}

.pu-figures__inner {
	padding-top: 2.75rem;
	padding-bottom: 2.75rem;
}

/* The band is full-bleed and sits between two .pu-home containers, so it gets
   no gap from their flex layout — the department after it needs its own room. */
.pu-figures + .pu-home {
	padding-top: 3rem;
}

.pu-figures__label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.7;
}

.pu-figures__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1.5rem 2rem;
	margin: 1.5rem 0 0;
}

.pu-figures__grid dt {
	font-family: 'Bree Serif', Georgia, serif;
	font-size: clamp(1.75rem, 3.5vw, 2.75rem);
	line-height: 1;
}

.pu-figures__grid dd {
	margin: 0.4rem 0 0;
	font-size: 0.75rem;
	line-height: 1.4;
	opacity: 0.8;
}

/* Grids ------------------------------------------------------------------- */

.pu-guides-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 1rem 1.5rem;
}

.pu-legal {
	margin: 0.75rem 0 0;
	font-size: 0.6875rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: hsl(var(--foreground) / 0.5);
}

/* About ------------------------------------------------------------------- */

.pu-about {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: 1.75rem;
	border: 1px solid hsl(var(--accent));
	border-radius: 0.75rem;
}

.pu-about__logo {
	width: 150px;
	height: 43px;
	flex-shrink: 0;
}

.pu-about__title {
	margin: 0 0 0.75rem;
	font-family: 'Bree Serif', Georgia, serif;
	font-size: 1.375rem;
	font-weight: 400;
	color: hsl(var(--foreground));
}

.pu-about__text {
	margin: 0 0 1rem;
	line-height: 1.7;
	color: hsl(var(--foreground) / 0.75);
	max-width: 75ch;
}

.pu-about__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.7rem 1.1rem;
	font-weight: 700;
	border-radius: 0.375rem;
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	text-decoration: none;
}

.pu-about__cta:hover {
	text-decoration: none;
	opacity: 0.9;
}

@media (min-width: 768px) {
	.pu-about {
		flex-direction: row;
		align-items: center;
		gap: 2rem;
	}
}

/* Toplist ----------------------------------------------------------------- */

#top-casinos-section .toplist-punl__wrapper {
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.pu-home {
		gap: 2.5rem;
	}
}


/* ==========================================================================
   Two-world lead.

   The brief was that nobody should be in any doubt, above the fold, that this
   site is games *and* kansspelen. Game-news cards cannot say that on their own,
   so the lead is split into two named worlds and the kansspel side carries real
   slot artwork — the one image type that reads as casino instantly.
   ========================================================================== */

.pu-lead {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
}

.pu-lead__world {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* The kansspel side is a panel, so it reads as its own department rather than
   as more of the same news river. */
.pu-lead__world--kansspelen {
	gap: 0.875rem;
	padding: 1rem;
	border: 1px solid hsl(var(--accent));
	border-top: 2px solid hsl(var(--link));
	border-radius: 0.5rem;
	background: hsl(var(--background-light, var(--accent)) / 0.4);
}

.pu-lead__games {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin-top: 1rem;
}

.pu-lead__hero {
	height: 300px;
}

.pu-lead__stack {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* Casino headlines: compact, dated, unmistakably a list of news. */
.pu-lead__casino-news {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.pu-lead__casino-news li + li {
	border-top: 1px solid hsl(var(--accent));
}

.pu-lead__casino-news a {
	display: flex;
	gap: 0.6rem;
	padding: 0.55rem 0;
	text-decoration: none;
	color: inherit;
}

.pu-lead__casino-news a:hover .pu-lead__casino-title {
	color: hsl(var(--link));
}

.pu-lead__casino-date {
	flex: none;
	font-size: 0.6875rem;
	line-height: 1.45;
	padding-top: 0.1rem;
	color: hsl(var(--link));
	font-weight: 700;
}

.pu-lead__casino-title {
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.15s ease;
}

/* Slot artwork */
.pu-lead__slots {
	padding-top: 0.75rem;
	border-top: 1px solid hsl(var(--accent));
}

.pu-lead__slots-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.6rem;
}

.pu-lead__slots-head > span {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.pu-lead__slots-head a {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	font-size: 0.6875rem;
	font-weight: 700;
	color: hsl(var(--link));
	text-decoration: none;
	white-space: nowrap;
}

.pu-lead__slots-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.5rem;
}

.pu-lead__slot {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	text-decoration: none;
	color: inherit;
	min-width: 0;
}

.pu-lead__slot img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 0.3rem;
	display: block;
	transition: transform 0.15s ease;
}

.pu-lead__slot:hover img {
	transform: translateY(-2px);
}

.pu-lead__slot span {
	font-size: 0.625rem;
	line-height: 1.3;
	color: hsl(var(--foreground) / 0.7);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pu-lead__casino-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	margin-top: auto;
	padding: 0.7rem 1rem;
	font-size: 0.8125rem;
	font-weight: 700;
	border-radius: 0.375rem;
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	text-decoration: none;
}

.pu-lead__casino-cta:hover {
	text-decoration: none;
	opacity: 0.9;
}

@media (min-width: 768px) {
	.pu-lead {
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: 1.75rem;
	}

	.pu-lead__games {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	}

	.pu-lead__hero {
		height: 340px;
	}

	.pu-lead__stack {
		height: 340px;
		justify-content: space-between;
	}
}

@media (min-width: 1280px) {
	.pu-lead {
		grid-template-columns: minmax(0, 1fr) 380px;
	}
}

@media (max-width: 767px) {
	.pu-lead__world--games,
	.pu-lead__games {
		display: contents;
	}

	.pu-lead__world--games > .pu-rubriek__head {
		order: 1;
	}

	.pu-lead__hero {
		order: 2;
		height: 240px;
	}

	.pu-lead__world--kansspelen {
		order: 3;
	}

	.pu-lead__stack {
		order: 4;
	}

	.pu-lead {
		gap: 1rem;
	}
}
