/**
 * Blind Dates by Iconik — front end.
 *
 * Mobile-first: the base rules are the phone layout, and the wider breakpoints
 * add to them. Most visitors arrive from an Instagram link on a phone.
 */

:root {
	--bdi-bg: #14041f;
	--bdi-bg-2: #2b1055;
	--bdi-bg-3: #4a1e6d;
	--bdi-ink: #fff;
	--bdi-ink-soft: #cfc3dd;
	--bdi-muted: #a294b5;
	--bdi-pink: #ff6ec7;
	--bdi-gold: #ffc94d;
	--bdi-cyan: #4dd8e8;
	--bdi-purple: #a855f7;
	--bdi-surface: rgba(255, 255, 255, 0.06);
	--bdi-border: rgba(255, 255, 255, 0.14);
	--bdi-radius: 16px;
	--bdi-max: 1140px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	background: var(--bdi-bg);
	background-image: radial-gradient(ellipse at 20% 0%, var(--bdi-bg-3) 0%, transparent 55%),
		radial-gradient(ellipse at 90% 20%, #7b2b62 0%, transparent 45%),
		linear-gradient(180deg, var(--bdi-bg-2) 0%, var(--bdi-bg) 60%);
	background-attachment: fixed;
	color: var(--bdi-ink);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.6;
	margin: 0;
	/* Stops iOS Safari inflating text in landscape. */
	-webkit-text-size-adjust: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

a {
	color: var(--bdi-gold);
}

.bdi-skip {
	background: var(--bdi-gold);
	color: #2b1055;
	left: -9999px;
	padding: 10px 16px;
	position: absolute;
	top: 0;
	z-index: 100;
}

.bdi-skip:focus {
	left: 0;
}

.bdi-container {
	margin: 0 auto;
	max-width: var(--bdi-max);
	padding: 0 20px;
	width: 100%;
}

.bdi-container--narrow {
	max-width: 760px;
}

.bdi-muted {
	color: var(--bdi-muted);
}

.bdi-gradient {
	background: linear-gradient(90deg, var(--bdi-pink), var(--bdi-gold), var(--bdi-cyan));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* --- hero ------------------------------------------------------------------ */

.bdi-hero {
	padding: 0 0 56px;
	position: relative;
}

/* The photo is the pitch -- two people mid-blind-date behind YES signs -- so it
   runs full width at full strength rather than sitting behind the text. */
.bdi-hero__media {
	aspect-ratio: 16 / 9;
	max-height: 66vh;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.bdi-hero__media img {
	display: block;
	height: 100%;
	object-fit: cover;
	/* Slightly above centre keeps both faces in frame as the crop narrows. */
	object-position: center 40%;
	width: 100%;
}

/* Fades the photo into the page instead of ending on a hard edge. */
.bdi-hero__media::after {
	background: linear-gradient(180deg, transparent 55%, var(--bdi-bg) 100%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.bdi-hero__inner {
	margin-top: -48px;
	position: relative;
	text-align: center;
	z-index: 1;
}

@media (max-width: 720px) {
	.bdi-hero__media {
		aspect-ratio: 4 / 3;
	}

	.bdi-hero__inner {
		margin-top: -32px;
	}
}

.bdi-logo img {
	border-radius: 20px;
	margin: 0 auto 24px;
	max-width: 180px;
}

.bdi-hero__card {
	margin: 0 auto;
	max-width: 620px;
}

.bdi-hero__title {
	font-size: clamp(26px, 7vw, 40px);
	line-height: 1.2;
	margin: 0 0 12px;
}

/* --- sections ---------------------------------------------------------------- */

.bdi-section {
	padding: 56px 0;
	position: relative;
}

.bdi-section--alt {
	background: rgba(0, 0, 0, 0.22);
}

.bdi-section__title {
	font-size: clamp(24px, 6vw, 36px);
	line-height: 1.25;
	margin: 0 0 14px;
	text-align: center;
}

.bdi-section__lead {
	color: var(--bdi-ink-soft);
	margin: 0 auto 32px;
	max-width: 720px;
	text-align: center;
}

/* --- cards -------------------------------------------------------------------- */

.bdi-card {
	background: var(--bdi-surface);
	border: 1px solid var(--bdi-border);
	border-radius: var(--bdi-radius);
	padding: 24px;
}

.bdi-card h3 {
	font-size: 20px;
	margin: 0 0 8px;
}

.bdi-card p {
	color: var(--bdi-ink-soft);
	margin: 0 0 12px;
}

.bdi-card p:last-child {
	margin-bottom: 0;
}

.bdi-card__icon {
	font-size: 40px;
	line-height: 1;
	margin-bottom: 12px;
}

.bdi-card__icon--gold {
	color: var(--bdi-gold);
}

.bdi-card__icon--pink {
	color: var(--bdi-pink);
}

.bdi-card__icon--purple {
	color: var(--bdi-purple);
}

.bdi-card__head {
	align-items: center;
	display: flex;
	gap: 14px;
	margin-bottom: 12px;
}

.bdi-card__head h3 {
	margin: 0;
}

.bdi-card__head p {
	margin: 0;
}

.bdi-card__emoji {
	font-size: 28px;
	line-height: 1;
}

.bdi-list {
	color: var(--bdi-ink-soft);
	margin: 0;
	padding-left: 20px;
}

.bdi-list li {
	margin-bottom: 6px;
}

.bdi-grid {
	display: grid;
	gap: 20px;
}

.bdi-stack {
	display: grid;
	gap: 20px;
}

/* --- steps ---------------------------------------------------------------------- */

.bdi-steps {
	display: grid;
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bdi-step {
	text-align: center;
}

.bdi-step h3 {
	font-size: 19px;
	margin: 0 0 6px;
}

.bdi-step p {
	color: var(--bdi-ink-soft);
	margin: 0 auto;
	max-width: 300px;
}

.bdi-step__num {
	align-items: center;
	border: 3px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	display: flex;
	font-size: 28px;
	font-weight: 800;
	height: 76px;
	justify-content: center;
	margin: 0 auto 14px;
	width: 76px;
}

.bdi-step__num--one {
	background: linear-gradient(135deg, var(--bdi-pink), #9333ea);
}

.bdi-step__num--two {
	background: linear-gradient(135deg, var(--bdi-cyan), #3b82f6);
}

.bdi-step__num--three {
	background: linear-gradient(135deg, var(--bdi-purple), var(--bdi-pink));
}

/* --- map --------------------------------------------------------------------------- */

.bdi-map iframe {
	border-radius: 12px;
	display: block;
	margin-bottom: 16px;
	width: 100%;
}

/* --- buttons ------------------------------------------------------------------------- */

.bdi-btn {
	border: 1px solid transparent;
	border-radius: 999px;
	display: inline-block;
	font-weight: 700;
	/* 48px tall: comfortably above the 44px iOS touch target minimum. */
	padding: 14px 30px;
	text-align: center;
	text-decoration: none;
	transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.bdi-btn:active {
	transform: scale(0.98);
}

.bdi-btn--primary {
	background: linear-gradient(90deg, var(--bdi-pink), var(--bdi-gold));
	color: #2b1055;
}

.bdi-btn--primary:hover {
	box-shadow: 0 8px 26px rgba(255, 110, 199, 0.35);
}

.bdi-btn--secondary {
	background: transparent;
	border-color: var(--bdi-border);
	color: var(--bdi-ink);
	display: block;
}

.bdi-btn--secondary:hover {
	border-color: var(--bdi-gold);
}

.bdi-btn--large {
	font-size: 18px;
	padding: 16px 40px;
}

.bdi-cta {
	text-align: center;
}

.bdi-cta__title {
	font-size: clamp(26px, 7vw, 44px);
	margin: 0 0 14px;
}

/* --- inner pages ---------------------------------------------------------------------- */

.bdi-page {
	padding: 48px 0 64px;
}

.bdi-page__title {
	font-size: clamp(26px, 6vw, 36px);
	margin: 0 0 24px;
	text-align: center;
}

.bdi-prose {
	color: var(--bdi-ink-soft);
}

.bdi-prose a {
	color: var(--bdi-gold);
}

/* --- footer ------------------------------------------------------------------------------ */

.bdi-footer {
	background: rgba(0, 0, 0, 0.4);
	border-top: 1px solid var(--bdi-border);
	color: var(--bdi-muted);
	padding: 32px 0;
	text-align: center;
}

.bdi-footer p {
	margin: 0 0 8px;
}

.bdi-footer__links a {
	color: var(--bdi-muted);
	text-decoration: none;
}

.bdi-footer__links a:hover {
	color: var(--bdi-ink);
}

/* --- reveal on scroll ---------------------------------------------------------------------- */

.bdi-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.bdi-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.bdi-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.bdi-btn {
		transition: none;
	}
}

/* --- wider screens ------------------------------------------------------------------------- */

@media (min-width: 768px) {
	.bdi-section {
		padding: 84px 0;
	}

	.bdi-hero {
		padding: 70px 0 90px;
	}

	.bdi-logo img {
		max-width: 208px;
	}

	.bdi-grid--2 {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}

	.bdi-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}

	.bdi-steps {
		grid-template-columns: repeat(3, 1fr);
		position: relative;
	}

	/* The connecting line between the three step markers. */
	.bdi-steps::before {
		background: linear-gradient(90deg, var(--bdi-pink), var(--bdi-cyan), var(--bdi-purple));
		content: "";
		height: 2px;
		left: 16%;
		opacity: 0.45;
		position: absolute;
		right: 16%;
		top: 38px;
	}

	.bdi-step {
		position: relative;
	}

	.bdi-step__num {
		height: 84px;
		position: relative;
		width: 84px;
	}
}

/* --- navigation ------------------------------------------------------------- */

.bdi-nav {
	background: rgba(14, 5, 22, 0.72);
	border-bottom: 1px solid var(--bdi-border);
	backdrop-filter: blur(10px);
	position: sticky;
	top: 0;
	z-index: 40;
}

.bdi-nav__inner {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	/* No site name on the left any more, so the links sit on the right. */
	justify-content: flex-end;
	min-height: 60px;
}

.bdi-nav__brand {
	color: var(--bdi-ink);
	font-weight: 700;
	letter-spacing: 0.01em;
	text-decoration: none;
}

.bdi-nav__list {
	align-items: center;
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bdi-nav__list a {
	border-radius: 999px;
	color: var(--bdi-ink-soft);
	display: block;
	padding: 9px 16px;
	text-decoration: none;
	transition: color 0.15s ease, background 0.15s ease;
}

.bdi-nav__list a:hover,
.bdi-nav__list .current-menu-item > a {
	background: rgba(255, 255, 255, 0.08);
	color: var(--bdi-ink);
}

.bdi-nav__list a.bdi-nav__cta {
	background: linear-gradient(90deg, var(--bdi-pink), var(--bdi-gold));
	color: #2b1055;
	font-weight: 700;
}

/* The checkbox drives the mobile menu, so it works without JavaScript. */
.bdi-nav__checkbox,
.bdi-nav__burger {
	display: none;
}

/* --- events ------------------------------------------------------------------ */

.bdi-events__head {
	margin-bottom: 36px;
	text-align: center;
}

.bdi-events__eyebrow {
	color: var(--bdi-gold);
	font-size: 13px;
	letter-spacing: 0.14em;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.bdi-events__intro {
	color: var(--bdi-ink-soft);
	margin: 0 auto;
	max-width: 56ch;
}

.bdi-events__section { margin-bottom: 48px; }

.bdi-events__heading {
	border-bottom: 1px solid var(--bdi-border);
	font-size: 14px;
	letter-spacing: 0.12em;
	margin: 0 0 22px;
	padding-bottom: 10px;
	text-transform: uppercase;
}

.bdi-events__grid {
	display: grid;
	gap: 22px;
	/* auto-fit rather than a fixed column count: a section with two events
	   fills the row instead of leaving an empty third track. */
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.bdi-events__empty,
.bdi-admin-warning {
	background: var(--bdi-surface);
	border: 1px solid var(--bdi-border);
	border-radius: var(--bdi-radius);
	color: var(--bdi-ink-soft);
	padding: 18px 20px;
	text-align: center;
}

.bdi-admin-warning {
	border-color: var(--bdi-gold);
	margin-bottom: 26px;
}

.bdi-event {
	background: var(--bdi-surface);
	border: 1px solid var(--bdi-border);
	border-radius: var(--bdi-radius);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.bdi-event__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.bdi-event__media img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.bdi-event__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px;
}

.bdi-event__when {
	color: var(--bdi-gold);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	margin: 0 0 6px;
	text-transform: uppercase;
}

.bdi-event__when span {
	color: var(--bdi-ink-soft);
	font-weight: 400;
	margin-left: 8px;
	text-transform: none;
}

.bdi-event__title {
	font-size: 22px;
	line-height: 1.25;
	margin: 0 0 6px;
	/* One unbroken word must not push past the card edge. */
	overflow-wrap: anywhere;
}

.bdi-event__price {
	color: var(--bdi-ink);
	font-weight: 700;
	margin: 0 0 12px;
}

.bdi-event__text {
	color: var(--bdi-ink-soft);
	flex: 1;
	overflow-wrap: anywhere;
}

/* Long descriptions stop at about six lines and fade out; the full text is on
   the event's own page. */
.bdi-event__text.is-clamped {
	flex: 0 0 auto;
	-webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
	mask-image: linear-gradient(180deg, #000 60%, transparent);
	max-height: 9.6em;
	overflow: hidden;
}

.bdi-event__more {
	color: var(--bdi-gold);
	display: inline-block;
	font-weight: 600;
	margin: 2px 0 auto;
	padding: 6px 0 14px;
}

/* --- single event ------------------------------------------------------------ */

.bdi-event-single {
	margin: 0 auto;
	max-width: 760px;
}

.bdi-event-single__back {
	color: var(--bdi-ink-soft);
	display: inline-block;
	margin-bottom: 18px;
	text-decoration: none;
}

.bdi-event-single__back:hover { color: var(--bdi-ink); }

.bdi-event-single__media {
	border-radius: var(--bdi-radius);
	margin-bottom: 24px;
	overflow: hidden;
}

.bdi-event-single__media img {
	display: block;
	width: 100%;
}

.bdi-event-single h1 {
	font-size: clamp(26px, 6vw, 38px);
	line-height: 1.2;
	margin: 0 0 8px;
	overflow-wrap: anywhere;
}

.bdi-event-single .bdi-event__price { font-size: 18px; }

.bdi-event-single__text {
	color: var(--bdi-ink-soft);
	margin: 18px 0 26px;
	overflow-wrap: anywhere;
}

.bdi-event__text p { margin: 0 0 12px; }

.bdi-btn--whatsapp {
	align-items: center;
	align-self: flex-start;
	background: #25d366;
	color: #08230f;
	display: inline-flex;
	gap: 9px;
	margin-top: 8px;
}

.bdi-btn--whatsapp:hover {
	box-shadow: 0 8px 22px rgba(37, 211, 102, 0.3);
}

/* --- navigation on a phone ------------------------------------------------------ */

@media (max-width: 760px) {
	.bdi-nav__burger {
		align-items: center;
		cursor: pointer;
		display: flex;
		height: 44px;
		justify-content: center;
		width: 44px;
	}

	.bdi-nav__bars,
	.bdi-nav__bars::before,
	.bdi-nav__bars::after {
		background: var(--bdi-ink);
		border-radius: 2px;
		content: "";
		display: block;
		height: 2px;
		width: 22px;
	}

	.bdi-nav__bars {
		position: relative;
	}

	.bdi-nav__bars::before { position: absolute; top: -7px; }
	.bdi-nav__bars::after { position: absolute; top: 7px; }

	.bdi-nav__menu {
		display: none;
		flex-basis: 100%;
	}

	.bdi-nav__checkbox:checked ~ .bdi-nav__menu { display: block; }

	.bdi-nav__list {
		align-items: stretch;
		flex-direction: column;
		gap: 4px;
		padding-bottom: 14px;
	}

	.bdi-nav__list a {
		padding: 13px 14px;
		text-align: center;
	}
}
