/*
 * Junokali — Home page hero ("India Collection / 01").
 *
 * The hero is a full-viewport "poster". All positions and sizes are expressed in
 * container-query units (cqw/cqh = 1% of the hero's width/height) and were measured
 * off the client's 1920x1080 design, so the layout scales proportionally at any
 * landscape viewport. Below a square aspect ratio it switches to a stacked layout.
 */

/* ---- Fonts (self-hosted — no third-party requests, GDPR-safe for an EU site) ---- */
@font-face {
	font-family: 'Noto Serif Display';
	font-style: normal;
	font-weight: 500;
	font-stretch: 62.5%;
	font-display: swap;
	src: url('fonts/noto-serif-display-cond-500.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	/* latin-ext: the macrons in "Iūnō" */
	font-family: 'Noto Serif Display';
	font-style: normal;
	font-weight: 500;
	font-stretch: 62.5%;
	font-display: swap;
	src: url('fonts/noto-serif-display-cond-500-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	/* Devanagari companion face for "काली", same condensed width */
	font-family: 'Noto Serif Devanagari';
	font-style: normal;
	font-weight: 500;
	font-stretch: 62.5%;
	font-display: swap;
	src: url('fonts/noto-serif-devanagari-cond-500.woff2') format('woff2');
	unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/inter-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/inter-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Design tokens ---- */
.jk-hero {
	--jk-blue: #305e90;
	--jk-cream: #f7f0e0;
	--jk-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
	--jk-serif: 'Noto Serif Display', 'Bodoni Moda', 'Times New Roman', serif;
}

/* ---- Page-level: let the poster own the whole viewport ---- */
body.jk-home {
	background: #305e90;
}
body.jk-home .ct-container,
body.jk-home .ct-container-full,
body.jk-home .ct-container-narrow {
	max-width: none;
	padding: 0;
}
body.jk-home .entry-content > .wp-block-group.jk-hero-wrap,
body.jk-home .entry-content > .jk-hero-wrap {
	margin: 0;
	padding: 0;
	max-width: none;
}
body.jk-home .entry-content {
	margin: 0;
}

/* ---- The poster ---- */
.jk-hero {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	height: 100svh;
	min-height: 480px;
	overflow: hidden;
	background: var(--jk-blue);
	color: var(--jk-cream);
	font-family: var(--jk-sans);
	line-height: 1.15;
	-webkit-font-smoothing: antialiased;
	container-type: size;
}
body.admin-bar .jk-hero {
	height: calc(100svh - 32px);
}
.jk-hero *,
.jk-hero *::before,
.jk-hero *::after {
	box-sizing: inherit;
}
.jk-hero a {
	color: inherit;
	text-decoration: none;
}
.jk-hero a:hover,
.jk-hero a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}
.jk-hero p {
	margin: 0;
}

/* Every positioned element shares these */
.jk-hero__link,
.jk-hero__dates,
.jk-hero__title,
.jk-hero__collection,
.jk-hero__address,
.jk-hero__figure {
	position: absolute;
	margin: 0;
}

/* Model + bag (transparent PNG), sits between the blue field and the type */
.jk-hero__figure {
	top: 0;
	left: 4.5cqw;
	height: 102.5cqh;
	width: auto;
	z-index: 1;
	pointer-events: none;
	user-select: none;
}
.jk-hero__figure img {
	display: block;
	height: 100%;
	width: auto;
	max-width: none;
}

/* Type layer */
.jk-hero__link,
.jk-hero__dates,
.jk-hero__title,
.jk-hero__collection,
.jk-hero__address {
	z-index: 2;
}

/* "WWW.JUNOKALI.IN" — vertical, reads bottom-to-top, top-left corner */
.jk-hero__link {
	top: 4cqh;
	left: 2.35cqw;
	font-weight: 700;
	font-size: 1.85cqh;
	letter-spacing: 0.08em;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	white-space: nowrap;
}

/* "29.09 — 05.10.2026" */
.jk-hero__dates {
	top: 3cqh;
	left: 20.8cqw;
	font-weight: 700;
	font-size: 3.6cqh;
	line-height: 1.15;
	letter-spacing: 0.015em;
	white-space: nowrap;
}

/* "JUNO KALI" — the design uses an ultra-condensed Didone; the closest free face
   (Noto Serif Display, condensed width) is still ~35% too wide, so it is narrowed
   further with a horizontal scale to match the design's letter proportions. */
.jk-hero__title {
	top: 25.6cqh;
	left: 7.1cqw;
	font-family: var(--jk-serif);
	font-weight: 500;
	font-stretch: 62.5%;
	font-size: 26cqh;
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--jk-cream);
	transform: scaleX(0.64);
	transform-origin: left top;
}

/* "INDIA COLLECTION / 01" */
.jk-hero__collection {
	top: 54.6cqh;
	left: 8cqw;
	font-weight: 500;
	font-size: 3.1cqh;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Address block, bottom-left */
.jk-hero__address {
	left: 2.35cqw;
	bottom: 3.6cqh;
	font-size: 2.45cqh;
	font-weight: 700;
	font-style: normal; /* <address> is italic by default */
	line-height: 1.15;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}
.jk-hero__address small {
	display: block;
	margin-top: 0.1em;
	font-size: 0.8em;
	font-weight: 400;
	letter-spacing: 0.02em;
}

/* ---- Portrait screens: the same poster, recomposed for a tall canvas ----
   Type column top-left on the blue field (link, dates, wordmark, collection, address),
   the figure bleeding off the bottom edge with the bag as the focal point — mirroring the
   desktop composition rather than stacking into a generic mobile page. */
@media (max-aspect-ratio: 1/1) {
	/* NB: container units can't live in a custom property on the container itself
	   (they'd resolve against the viewport), so sizes are repeated on each child. */
	.jk-hero {
		min-height: 560px;
	}
	.jk-hero__link {
		top: 3.5cqh;
		left: 4cqw;
		font-size: clamp(10px, 3cqw, 14px);
		letter-spacing: 0.1em;
	}
	.jk-hero__dates {
		top: 3cqh;
		left: 15cqw;
		font-size: clamp(16px, 5.8cqw, 28px);
	}
	.jk-hero__title {
		top: 21cqh;
		left: 5cqw;
		font-size: clamp(88px, 32cqw, 180px);
	}
	.jk-hero__collection {
		top: calc(21cqh + clamp(88px, 32cqw, 180px) * 1.08);
		left: 5.5cqw;
		font-size: clamp(12px, 3.9cqw, 22px);
	}
	.jk-hero__address {
		top: calc(21cqh + clamp(88px, 32cqw, 180px) * 1.08 + clamp(12px, 3.9cqw, 22px) * 1.3 + 3cqh);
		bottom: auto;
		left: 4cqw;
		font-size: clamp(12px, 3.2cqw, 18px);
	}
	/* Sized by the shorter side so the bag stays large on phones without swallowing
	   the type column on portrait tablets; centred on the bag, cropped left/right. */
	.jk-hero__figure {
		top: auto;
		bottom: -2cqh;
		left: 50%;
		height: min(100cqw, 48cqh);
		transform: translateX(-56%);
	}
}

/* ---- Footer: same palette and type system, sits below the fold ---- */
.jk-footer {
	--jk-blue: #305e90;
	--jk-cream: #f7f0e0;
	--jk-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
	--jk-serif: 'Noto Serif Display', 'Noto Serif Devanagari', 'Bodoni Moda', 'Times New Roman', serif;
	position: relative;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 1.5rem 3rem;
	align-items: end;
	width: 100%;
	padding: clamp(40px, 5.5vw, 88px) clamp(20px, 4.5vw, 86px) clamp(24px, 3vw, 48px);
	background: var(--jk-blue);
	color: var(--jk-cream);
	font-family: var(--jk-sans);
	line-height: 1.15;
	-webkit-font-smoothing: antialiased;
	border-top: 1px solid rgba(247, 240, 224, 0.35);
}
.jk-footer p {
	margin: 0;
}
.jk-footer a {
	color: inherit;
	text-decoration: none;
}
.jk-footer a:hover,
.jk-footer a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* "Iūnō काली" — same condensed Didone treatment as the hero wordmark */
.jk-footer__brand {
	font-family: var(--jk-serif);
	font-weight: 500;
	font-stretch: 62.5%;
	font-size: clamp(48px, 7vw, 128px);
	line-height: 1;
	white-space: nowrap;
	transform: scaleX(0.64);
	transform-origin: left bottom;
}
.jk-footer__tagline {
	font-weight: 500;
	font-size: clamp(12px, 1.05vw, 17px);
	line-height: 2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: right;
	white-space: nowrap;
}
.jk-footer__meta {
	grid-column: 1 / -1;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: clamp(16px, 2.5vw, 40px);
	padding-top: clamp(14px, 1.2vw, 20px);
	border-top: 1px solid rgba(247, 240, 224, 0.25);
	font-size: clamp(11px, 0.8vw, 13px);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

@media (max-width: 700px) {
	.jk-footer {
		grid-template-columns: 1fr;
		gap: 1.25rem;
		padding: 48px 6vw 24px;
	}
	.jk-footer__brand {
		font-size: clamp(56px, 20vw, 96px);
	}
	.jk-footer__tagline {
		text-align: left;
		font-size: clamp(11px, 3.2vw, 14px);
		white-space: normal;
	}
	.jk-footer__meta {
		flex-direction: column;
		gap: 0.4rem;
		font-size: 11px;
	}
}
