/**
 * Styles for the front page.
 * Shared layout/typography live in event-instance.css and event-series.css.
 *
 * @package car-events
 * @since   0.4.0
 */

/* Homepage hero overrides — wordmark + long-tagline H1 */

/**
 * Wordmark: replaces the former eyebrow on the homepage hero.
 * Reuses the .ce-hero__eyebrow style profile (mono, small, muted).
 */
.ce-hero__wordmark {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fg-3);
	margin: 0 0 16px;
}

/**
 * Homepage-specific H1 sizing: the tagline string is longer than the single-word
 * wordmark, so we use a tighter clamp to prevent awkward wrapping at 1024–1440px.
 */
.ce-hero .ce-hero__title {
	font-size: clamp(40px, 6vw, 84px);
	line-height: 1.04;
}

/* Series grid section */
.ce-series-grid { padding: var(--density-pad); }
.ce-series-grid__header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.ce-series-grid__tip { margin: 32px 0 0; text-align: center; font-size: 14px; color: var(--fg-3); }
.ce-series-grid__tip a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.ce-series-grid__tip a:hover { color: var(--accent); }
.ce-series-grid__heading { font-family: var(--font-display); font-size: clamp(36px, 4vw, 60px); font-weight: 600; margin: 8px 0 0 0; letter-spacing: -0.02em; line-height: 0.95; }
.ce-series-grid__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* Series card */
.ce-series-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); overflow: hidden; text-decoration: none; color: inherit; transition: border-color 120ms ease, transform 120ms ease; }
.ce-series-card:hover { border-color: var(--fg-3); transform: translateY(-2px); }
.ce-series-card:hover .ce-series-card__thumb img { transform: scale(1.04); }
.ce-series-card__thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg); }
.ce-series-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms ease; }
.ce-series-card__thumb--empty { border-bottom: 1px dashed var(--line-2); }
.ce-series-card__thumb-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, oklch(from var(--bg-2) l c h / 0.85) 100%); pointer-events: none; }
.ce-series-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.ce-series-card__label { font-size: 10px; letter-spacing: 0.14em; color: var(--fg-4); text-transform: uppercase; }
.ce-series-card__title { font-family: var(--font-display); font-size: clamp(20px, 2vw, 24px); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--fg); margin: 0; }
.ce-series-card__meta { font-size: 11px; letter-spacing: 0.1em; color: var(--fg-4); text-transform: uppercase; margin-top: 2px; }
.ce-series-card__meta-rows { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.ce-series-card__meta-row { font-size: 11px; letter-spacing: 0.06em; color: var(--fg-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

@media (max-width: 560px) {
	.ce-series-grid__cards { grid-template-columns: 1fr; }
}

/* Homepage About region: single-column collapse (audit removed AT A GLANCE,
   leaving an empty second column in the shared .ce-info two-column grid). */
.ce-info--single { grid-template-columns: 1fr; }
.ce-info--single .ce-info__details-grid { grid-template-columns: 1fr; }

/* Photographer band — sits between the recent events feed and the series grid */
.ce-photographer-band {
	padding: var(--density-pad);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.ce-photographer-band__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	max-width: 560px;
}

.ce-photographer-band__heading {
	font-family: var(--font-display);
	font-size: clamp(32px, 4vw, 52px);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1;
	margin: 0;
	color: var(--fg);
}

.ce-photographer-band__sub {
	font-size: 15px;
	line-height: 1.55;
	color: var(--fg-3);
	margin: 0;
}

@media (max-width: 560px) {
	.ce-photographer-band__heading {
		font-size: clamp(28px, 8vw, 40px);
	}
}

