/*
 * Marvelous City Rio — front page ("The Traveller" home grammar).
 *
 * Adapted from the approved prototypes (source of truth for every value):
 *   workspace/design/2026-07-17-masthead-explorations/header-conde.html
 *     → hero figure + centered feature block (.proto-conde → .mc-*)
 *   workspace/design/2026-07-17-page-templates/page-home.html
 *     → below-fold bands 1–4 (.proto-home → .mc-*)
 *
 * Loads after chrome.css (masthead + site footer live there — the ft-* /
 * mast styles from the prototypes are deliberately NOT repeated here).
 * Everything is scoped under .mc-home, the <main> wrapper in
 * templates/front-page.html. Shared print grammar (kicker, k-small, byline,
 * photo placeholders) is deduplicated across the two source fragments:
 * defined once below, with the feature/lead border variants layered on top.
 *
 * Hairlines: rgba(30,30,28,0.16). Square corners, no shadows, nothing under
 * 14px effective. The hero photo slot renders as a labeled placeholder
 * (tinted block + hairline + uppercase label) — the prototype's on-photo
 * gradient and photography credit return only when the real image lands.
 */

/* ---------- Scope + tokens ---------- */

.mc-home {
	--mc-paper: var(--wp--preset--color--paper, #FAF8F4);
	--mc-ink: var(--wp--preset--color--ink, #1E1E1C);
	--mc-body: var(--wp--preset--color--body, #4A4843);
	--mc-teal: var(--wp--preset--color--teal, #0F6E56);
	--mc-gold: var(--wp--preset--color--gold, #C29B4E);
	--mc-fd: var(--wp--preset--font-family--display, "Fraunces", Georgia, "Times New Roman", serif);
	--mc-ft: var(--wp--preset--font-family--text, "Inter", "Helvetica Neue", Arial, sans-serif);
	--mc-hair: rgba(30, 30, 28, 0.16);
	--mc-ink-soft: rgba(30, 30, 28, 0.62);
	background: var(--mc-paper);
	color: var(--mc-ink);
	font-family: var(--mc-ft);
	overflow-x: clip;
}

.mc-home p {
	margin: 0;
}

.mc-home .mc-wrap {
	max-width: 72rem;
	margin: 0 auto;
	padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.mc-home .mc-band {
	padding-block: clamp(2.5rem, 5.5vw, 4rem);
}

/* ---------- Shared print grammar ---------- */

/* Band title: flanked kicker — the masthead feature grammar, deduplicated */
.mc-home .mc-kicker {
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: clamp(0.75rem, 2vw, 1.1rem);
	font: 600 0.875rem/1 var(--mc-ft);
	text-transform: uppercase;
	letter-spacing: 0.28em;
	text-indent: 0.28em;
	color: var(--mc-teal);
}

.mc-home .mc-kicker::before,
.mc-home .mc-kicker::after {
	content: "";
	width: clamp(26px, 6vw, 56px);
	height: 1px;
	background: rgba(30, 30, 28, 0.18);
}

/* Story kicker: same voice, no flanks */
.mc-home .mc-k-small {
	font: 600 0.875rem/1 var(--mc-ft);
	text-transform: uppercase;
	letter-spacing: 0.24em;
	text-indent: 0.24em;
	color: var(--mc-teal);
}

.mc-home .mc-byline {
	font: 600 0.875rem/1.5 var(--mc-ft);
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--mc-ink-soft);
}

.mc-home .mc-dot {
	color: var(--mc-gold);
}

.mc-home a:focus-visible,
.mc-home button:focus-visible,
.mc-home input:focus-visible {
	outline: 2px solid var(--mc-teal);
	outline-offset: 3px;
}

/* ---------- Photo placeholders (PHOTO TK — RODRIGO BATCH) ---------- */

.mc-home .mc-photo-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: rgba(194, 155, 78, 0.10);
	border: 1px solid rgba(30, 30, 28, 0.14);
}

/* Hero slot keeps the prototype photograph's height */
.mc-home .mc-ph-hero {
	height: clamp(340px, 58vh, 660px);
}

.mc-home .mc-ph-lead {
	aspect-ratio: 4 / 3;
}

.mc-home .mc-ph-card {
	aspect-ratio: 3 / 2;
}

.mc-home .mc-ph-label {
	padding: 1rem;
	font: 600 0.875rem/1.6 var(--mc-ft);
	text-transform: uppercase;
	letter-spacing: 0.2em;
	text-indent: 0.2em;
	text-align: center;
	color: rgba(30, 30, 28, 0.58);
}

/* ---------- Hero band · photo + feature block (header-conde) ---------- */

.mc-home .mc-hero {
	margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
	position: relative;
}

.mc-home .mc-feature {
	padding: clamp(2.75rem, 7vw, 4.75rem) clamp(1.25rem, 4vw, 3rem) clamp(3.25rem, 7vw, 5.5rem);
	text-align: center;
}

.mc-home .mc-headline {
	margin: clamp(1.1rem, 3vw, 1.75rem) auto 0;
	max-width: 46rem;
	font-family: var(--mc-fd);
	font-weight: 600;
	font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.5rem);
	line-height: 1.1;
	color: var(--mc-ink);
	text-wrap: balance;
}

.mc-home .mc-dek {
	margin: clamp(1.1rem, 3vw, 1.6rem) auto 0;
	max-width: 58ch;
	font: 400 1.0625rem/1.65 var(--mc-ft);
	color: var(--mc-body);
}

/* Feature byline: ruled capsule variant */
.mc-home .mc-feature .mc-byline {
	margin: clamp(1.75rem, 4vw, 2.5rem) auto 0;
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.85rem 1.6rem;
	border-top: 1px solid var(--mc-hair);
	border-bottom: 1px solid var(--mc-hair);
	line-height: 1.4;
	letter-spacing: 0.2em;
}

/* ---------- Band 1 · From the Magazine ---------- */

.mc-home .mc-lead {
	margin-top: clamp(2rem, 5vw, 3.25rem);
	display: grid;
	grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
	gap: clamp(1.75rem, 4vw, 3.5rem);
	align-items: center;
}

.mc-home .mc-lead-text {
	text-align: center;
}

.mc-home .mc-lead-hed {
	margin: clamp(1rem, 2.5vw, 1.4rem) auto 0;
	max-width: 24ch;
	font-family: var(--mc-fd);
	font-weight: 600;
	font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.4rem);
	line-height: 1.12;
	text-wrap: balance;
}

.mc-home .mc-lead-hed a,
.mc-home .mc-card-hed a {
	color: inherit;
	text-decoration: none;
	transition: color 140ms ease;
}

.mc-home .mc-lead-hed a:hover,
.mc-home .mc-card-hed a:hover {
	color: var(--mc-teal);
}

.mc-home .mc-lead-dek {
	margin: clamp(0.9rem, 2.5vw, 1.3rem) auto 0;
	max-width: 46ch;
	font: 400 1rem/1.65 var(--mc-ft);
	color: var(--mc-body);
}

/* Lead byline: ruled capsule variant (inline-block flavor) */
.mc-home .mc-lead-text .mc-byline {
	margin-top: clamp(1.2rem, 3vw, 1.75rem);
	display: inline-block;
	padding: 0.85rem 1.6rem;
	border-top: 1px solid var(--mc-hair);
	border-bottom: 1px solid var(--mc-hair);
	letter-spacing: 0.2em;
}

.mc-home .mc-cards {
	margin-top: clamp(2.5rem, 6vw, 4rem);
	padding-top: clamp(2.5rem, 6vw, 4rem);
	border-top: 1px solid var(--mc-hair);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 3.5vw, 2.75rem);
}

.mc-home .mc-card {
	display: flex;
	flex-direction: column;
	text-align: center;
}

.mc-home .mc-card .mc-photo-ph {
	margin-bottom: 1.4rem;
}

.mc-home .mc-card-hed {
	margin: 0.9rem auto 0;
	max-width: 26ch;
	font-family: var(--mc-fd);
	font-weight: 600;
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	line-height: 1.2;
	text-wrap: balance;
}

.mc-home .mc-card-dek {
	margin: 0.75rem auto 0;
	max-width: 34ch;
	font: 400 0.9375rem/1.65 var(--mc-ft);
	color: var(--mc-body);
}

.mc-home .mc-card .mc-byline {
	margin-top: auto;
	padding-top: 1.2rem;
}

/* ---------- Band 2 · Section rail ---------- */

.mc-home .mc-rail {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: clamp(2rem, 4vw, 3.5rem);
}

.mc-home .mc-rail-item {
	display: block;
	padding: 1.4rem 0.25rem 1.6rem;
	border-top: 1px solid var(--mc-hair);
	text-align: center;
	text-decoration: none;
}

.mc-home .mc-rail-name {
	display: block;
	font: 600 0.875rem/1 var(--mc-ft);
	text-transform: uppercase;
	letter-spacing: 0.24em;
	text-indent: 0.24em;
	color: var(--mc-ink);
	transition: color 140ms ease;
}

.mc-home .mc-rail-item:hover .mc-rail-name {
	color: var(--mc-teal);
}

.mc-home .mc-rail-desc {
	display: block;
	margin: 0.6rem auto 0;
	max-width: 30ch;
	font: 400 0.9375rem/1.55 var(--mc-ft);
	color: var(--mc-body);
}

/* ---------- Band 3 · The Season Ahead ---------- */

.mc-home .mc-band-events {
	padding-top: 0;
}

.mc-home .mc-ruled {
	border-top: 1px solid var(--mc-hair);
	padding-top: clamp(2.5rem, 5.5vw, 4rem);
}

.mc-home .mc-events {
	list-style: none;
	margin: clamp(1.75rem, 4.5vw, 2.75rem) auto 0;
	padding: 0;
	max-width: 56rem;
}

.mc-home .mc-ev {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	padding-block: clamp(1.25rem, 3vw, 1.6rem);
}

.mc-home .mc-ev + .mc-ev {
	border-top: 1px solid var(--mc-hair);
}

.mc-home .mc-ev-name {
	font-family: var(--mc-fd);
	font-weight: 600;
	font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
	line-height: 1.2;
}

.mc-home .mc-ev-desc {
	margin-top: 0.4rem;
	max-width: 52ch;
	font: 400 0.9375rem/1.6 var(--mc-ft);
	color: var(--mc-body);
}

.mc-home .mc-ev-date {
	flex: none;
	font: 600 0.875rem/1 var(--mc-ft);
	text-transform: uppercase;
	letter-spacing: 0.2em;
	white-space: nowrap;
	/* --mc-gold, deepened for text contrast on paper */
	color: #85683A;
	color: color-mix(in srgb, var(--mc-gold) 58%, var(--mc-ink));
}

.mc-home .mc-cal {
	margin-top: clamp(1.75rem, 4vw, 2.5rem);
	text-align: center;
}

.mc-home .mc-cal-link {
	display: inline-block;
	padding-bottom: 0.3rem;
	font: 600 0.875rem/1 var(--mc-ft);
	text-transform: uppercase;
	letter-spacing: 0.22em;
	text-indent: 0.22em;
	text-decoration: none;
	color: var(--mc-teal);
	border-bottom: 1px solid transparent;
	transition: border-color 140ms ease;
}

.mc-home .mc-cal-link:hover {
	border-bottom-color: var(--mc-teal);
}

/* ---------- Band 4 · Newsletter ---------- */

.mc-home .mc-band-news {
	background: rgba(194, 155, 78, 0.10);
	border-top: 1px solid rgba(30, 30, 28, 0.08);
	padding-block: clamp(3.25rem, 7vw, 5rem);
	text-align: center;
}

.mc-home .mc-news-hed {
	margin: clamp(1rem, 2.5vw, 1.4rem) auto 0;
	font-family: var(--mc-fd);
	font-weight: 600;
	font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
	line-height: 1.1;
}

.mc-home .mc-news-dek {
	margin: clamp(0.9rem, 2.5vw, 1.2rem) auto 0;
	max-width: 44ch;
	font: 400 1rem/1.65 var(--mc-ft);
	color: var(--mc-body);
}

.mc-home .mc-news-form {
	margin: clamp(1.75rem, 4vw, 2.25rem) auto 0;
	display: flex;
	justify-content: center;
	max-width: 30rem;
}

.mc-home .mc-news-input {
	flex: 1;
	min-width: 0;
	padding: 0.95rem 1.1rem;
	font: 400 1rem/1.4 var(--mc-ft);
	color: var(--mc-ink);
	background: var(--mc-paper);
	border: 1px solid rgba(30, 30, 28, 0.35);
	border-right: none;
	border-radius: 0;
}

.mc-home .mc-news-input::placeholder {
	color: rgba(30, 30, 28, 0.55);
}

.mc-home .mc-news-btn {
	flex: none;
	padding: 0 1.6rem;
	font: 600 0.875rem/1 var(--mc-ft);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	text-indent: 0.18em;
	color: var(--mc-paper);
	background: var(--mc-ink);
	border: 1px solid var(--mc-ink);
	border-radius: 0;
	cursor: pointer;
	transition: background-color 140ms ease;
}

.mc-home .mc-news-btn:hover {
	background: #35342F;
}

.mc-home .mc-news-micro {
	margin-top: 1.1rem;
	font: 400 0.875rem/1.5 var(--mc-ft);
	color: var(--mc-ink-soft);
}

.mc-home .mc-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 899px) {
	.mc-home .mc-lead {
		grid-template-columns: minmax(0, 1fr);
	}
	.mc-home .mc-ph-lead {
		aspect-ratio: 16 / 10;
	}
	.mc-home .mc-rail {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 759px) {
	.mc-home .mc-cards {
		grid-template-columns: minmax(0, 1fr);
		gap: clamp(2.25rem, 6vw, 3rem);
	}
	.mc-home .mc-card {
		max-width: 30rem;
		margin-inline: auto;
		width: 100%;
	}
}

@media (max-width: 599px) {
	.mc-home .mc-feature .mc-byline {
		flex-direction: column;
		gap: 0.5rem;
		padding: 0.85rem 1.1rem;
	}
	.mc-home .mc-feature .mc-byline .mc-dot {
		display: none;
	}
}

@media (max-width: 539px) {
	.mc-home .mc-rail {
		grid-template-columns: minmax(0, 1fr);
	}
	.mc-home .mc-ev {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.6rem;
	}
	.mc-home .mc-news-form {
		flex-direction: column;
		gap: 0.75rem;
	}
	.mc-home .mc-news-input {
		border-right: 1px solid rgba(30, 30, 28, 0.35);
	}
	.mc-home .mc-news-btn {
		padding: 0.95rem 1.6rem;
	}
	.mc-home .mc-kicker::before,
	.mc-home .mc-kicker::after {
		width: clamp(16px, 5vw, 26px);
	}
}

/* Live hero photograph (replaces placeholder once the real frame is in media) */
.mc-hero-live { position: relative; margin: 0; }
.mc-hero-live img { display: block; width: 100%; height: clamp(340px, 58vh, 660px); object-fit: cover; }
.mc-hero-live::after { content: ""; position: absolute; inset: auto 0 0 0; height: 32%; background: linear-gradient(to top, rgba(20, 19, 17, 0.55), transparent); pointer-events: none; }
.mc-hero-live .mc-hero-credit { position: absolute; right: clamp(1rem, 3vw, 2.5rem); bottom: 0.9rem; z-index: 1; font-weight: 600; font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase; color: #FAF8F4; }

/* Query-loop homepage (2026-07-27): the lead feature is now core blocks pulled from
   the newest post, so neutralise their default wrappers and keep the print grammar. */
.mc-home .wp-block-query,
.mc-home .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mc-home .mc-hero-live .wp-block-post-featured-image {
	margin: 0;
}

.mc-home .mc-hero-live .wp-block-post-featured-image a {
	display: block;
}

.mc-home .mc-feature .mc-byline > * {
	margin: 0;
}

/* Query-loop magazine band (2026-07-27). post-template renders a <ul>, so the
   grid children are <li> wrappers rather than the article itself. */
.mc-home .mc-cards {
	list-style: none;
	margin-top: clamp(2.5rem, 6vw, 4rem);
	padding: clamp(2.5rem, 6vw, 4rem) 0 0;
}

.mc-home .mc-cards > li {
	display: flex;
	min-width: 0;
}

.mc-home .mc-cards > li > .mc-card { flex: 1 1 auto; }

.mc-home .mc-lead .wp-block-post-featured-image,
.mc-home .mc-card .wp-block-post-featured-image {
	margin: 0;
}

.mc-home .mc-card .wp-block-post-featured-image { margin-bottom: 1.4rem; }

.mc-home .mc-lead .wp-block-post-featured-image img,
.mc-home .mc-card .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* post-terms renders a <div> of links; keep the small-kicker grammar. */
.mc-home .mc-k-small a {
	color: inherit;
	text-decoration: none;
}

.mc-home .mc-lead-text .mc-byline,
.mc-home .mc-card .mc-byline {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	justify-content: center;
}

.mc-home .mc-lead-text .mc-byline > *,
.mc-home .mc-card .mc-byline > * { margin: 0; }

.mc-home .mc-empty {
	margin: clamp(2rem, 5vw, 3rem) 0 0;
	font: 400 1rem/1.6 var(--mc-ft);
	color: var(--mc-ink-soft);
}
