/*
 * Nightlife editorial layer for missuniverse.brightflixx.com only.
 * Local fonts already shipped with Twenty Twenty-Four: Cardo, Inter.
 * No remote font requests.
 *
 * Mobbin references:
 * - Posh web screen 3a4ed956-cc52-4c78-b21e-11b8a5d2fa2c
 *   dark nightlife field, tracked wordmark, pill button, poster plate
 * - Kinfolk section f9785be5-d424-4feb-875a-da4e6df42791
 *   masthead, centered serif title, quiet space around a cover image
 * - SSENSE section 4de98a06-dbff-4e54-83c6-a301c519bba0
 *   large headline, italic deck, outline button
 * - Freshman section 12391065-5e36-4dd6-9033-e6f1b47b5dd7
 *   headline, image plate, narrow copy
 * - NYT web screen 13bdc89d-8497-4ed4-83b9-d6e851d75870
 *   section title, hairline, title-led story row
 * - The New Yorker section 84724b3c-961d-4245-a46a-f176fe4bec67
 *   dark footer, small-caps columns, hairline, legal line
 */

body.wp-theme-twentytwentyfour {
	--nl-bg: #100e0c;
	--nl-bg-raise: #1b1714;
	--nl-bg-card: #141210;
	--nl-paper: #f3eadc;
	--nl-muted: #d7ccbc;
	--nl-gold: #e7c98a;
	--nl-line: rgba(243, 234, 220, 0.2);
	background-color: var(--nl-bg) !important;
	color: var(--nl-paper);
	font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
	text-rendering: optimizeLegibility;
}

body.wp-theme-twentytwentyfour h1,
body.wp-theme-twentytwentyfour h2,
body.wp-theme-twentytwentyfour h3,
body.wp-theme-twentytwentyfour h4,
body.wp-theme-twentytwentyfour h5,
body.wp-theme-twentytwentyfour h6,
body.wp-theme-twentytwentyfour .has-contrast-color,
body.wp-theme-twentytwentyfour .has-contrast-2-color,
body.wp-theme-twentytwentyfour .has-contrast-3-color {
	color: var(--nl-paper) !important;
}

body.wp-theme-twentytwentyfour .has-contrast-2-color,
body.wp-theme-twentytwentyfour .has-contrast-3-color,
body.wp-theme-twentytwentyfour .wp-block-post-date,
body.wp-theme-twentytwentyfour .wp-block-post-date a {
	color: var(--nl-muted) !important;
}

body.wp-theme-twentytwentyfour a:where(:not(.wp-element-button)) {
	color: var(--nl-paper);
	text-underline-offset: 0.18em;
}

body.wp-theme-twentytwentyfour a:where(:not(.wp-element-button)):hover {
	color: var(--nl-gold);
}

body.wp-theme-twentytwentyfour :focus-visible {
	outline: 3px solid var(--nl-gold);
	outline-offset: 3px;
}

body.wp-theme-twentytwentyfour .has-base-background-color {
	background-color: var(--nl-bg) !important;
	color: var(--nl-paper);
}

body.wp-theme-twentytwentyfour .has-base-2-background-color {
	background-color: var(--nl-bg-raise) !important;
	color: var(--nl-paper);
}

body.wp-theme-twentytwentyfour .has-contrast-background-color {
	background-color: #231e19 !important;
	color: var(--nl-paper) !important;
}

body.wp-theme-twentytwentyfour .has-contrast-3-background-color {
	background-color: transparent !important;
}

body.wp-theme-twentytwentyfour h1,
body.wp-theme-twentytwentyfour h2,
body.wp-theme-twentytwentyfour h3,
body.wp-theme-twentytwentyfour p,
body.wp-theme-twentytwentyfour li {
	overflow-wrap: break-word;
}

body.wp-theme-twentytwentyfour img,
body.wp-theme-twentytwentyfour svg,
body.wp-theme-twentytwentyfour video {
	max-width: 100%;
	height: auto;
}

/* Header: Kinfolk masthead on a Posh night field */
body.wp-theme-twentytwentyfour header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--nl-bg);
	box-shadow: inset 0 3px 0 var(--nl-gold);
	border-bottom: 1px solid var(--nl-line);
}

body.wp-theme-twentytwentyfour header .wp-block-site-title,
body.wp-theme-twentytwentyfour header .wp-block-site-title a {
	font-family: Cardo, Palatino, "Palatino Linotype", "Book Antiqua", serif !important;
	font-weight: 400 !important;
	font-size: 1.05rem !important;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--nl-paper) !important;
}

body.wp-theme-twentytwentyfour header .wp-block-navigation-item__content,
body.wp-theme-twentytwentyfour header .wp-block-navigation__responsive-container-open {
	font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nl-paper);
}

body.wp-theme-twentytwentyfour header .wp-block-navigation__responsive-container-open svg,
body.wp-theme-twentytwentyfour header .wp-block-navigation__responsive-container-close svg {
	fill: currentColor;
}

body.wp-theme-twentytwentyfour .wp-block-navigation__responsive-container.is-menu-open,
body.wp-theme-twentytwentyfour .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close,
body.wp-theme-twentytwentyfour .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	background-color: var(--nl-bg);
	color: var(--nl-paper);
}

/* Hero: SSENSE scale, Kinfolk centering, Freshman plate */
body.wp-theme-twentytwentyfour main > .wp-block-group:first-child {
	padding-top: clamp(2.5rem, 6vw, 5.5rem) !important;
}

body.wp-theme-twentytwentyfour main h1.wp-block-heading {
	font-family: Cardo, Palatino, "Palatino Linotype", "Book Antiqua", serif !important;
	font-weight: 400 !important;
	font-size: clamp(2.15rem, 5.4vw, 5.15rem) !important;
	line-height: 0.96 !important;
	letter-spacing: -0.02em;
	max-width: 16em;
	margin-left: auto !important;
	margin-right: auto !important;
	color: var(--nl-paper) !important;
}

body.wp-theme-twentytwentyfour main > .wp-block-group:first-child > .wp-block-group > p {
	font-family: Cardo, Palatino, "Palatino Linotype", serif;
	font-style: italic;
	font-size: clamp(1.05rem, 1.6vw, 1.35rem);
	line-height: 1.45;
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
	color: var(--nl-muted);
}

body.wp-theme-twentytwentyfour .wp-block-image img {
	border-radius: 2px !important;
	border: 1px solid var(--nl-line);
	display: block;
}

/* Outline pills, from the SSENSE editorial button */
body.wp-theme-twentytwentyfour .wp-element-button,
body.wp-theme-twentytwentyfour .wp-block-button__link {
	background-color: transparent !important;
	color: var(--nl-paper) !important;
	border: 1px solid var(--nl-paper) !important;
	border-radius: 999px !important;
	padding: 0.72rem 1.35rem !important;
	font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif !important;
	font-size: 0.72rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.14em !important;
	line-height: 1.2 !important;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

body.wp-theme-twentytwentyfour .wp-element-button:hover,
body.wp-theme-twentytwentyfour .wp-block-button__link:hover {
	background-color: var(--nl-paper) !important;
	color: var(--nl-bg) !important;
	border-color: var(--nl-paper) !important;
}

body.wp-theme-twentytwentyfour .wp-element-button:focus-visible,
body.wp-theme-twentytwentyfour .wp-block-button__link:focus-visible {
	outline: 3px solid var(--nl-gold) !important;
	outline-offset: 3px !important;
	background-color: transparent !important;
	color: var(--nl-paper) !important;
}

/* Section titles and index rules */
body.wp-theme-twentytwentyfour .is-style-asterisk::before {
	content: "" !important;
	width: 2.25rem !important;
	height: 1px !important;
	background: var(--nl-gold) !important;
	clip-path: none !important;
	display: block !important;
	margin: 0 0 0.85rem !important;
}

body.wp-theme-twentytwentyfour .is-style-asterisk.has-text-align-center::before {
	margin-left: auto !important;
	margin-right: auto !important;
}

body.wp-theme-twentytwentyfour main h2.wp-block-heading {
	font-family: Cardo, Palatino, "Palatino Linotype", serif !important;
	font-weight: 400 !important;
	font-size: clamp(2rem, 4vw, 3.4rem) !important;
	line-height: 1.02 !important;
	letter-spacing: -0.02em;
	color: var(--nl-paper) !important;
}

body.wp-theme-twentytwentyfour main h3.wp-block-heading {
	font-family: Cardo, Palatino, "Palatino Linotype", serif !important;
	font-weight: 400 !important;
	font-size: clamp(1.35rem, 2vw, 1.7rem) !important;
	line-height: 1.15 !important;
	color: var(--nl-paper) !important;
}

/* Service index cards */
body.wp-theme-twentytwentyfour main > .wp-block-group.has-base-2-background-color {
	background-color: var(--nl-bg) !important;
	border-block: 1px solid var(--nl-line);
}

body.wp-theme-twentytwentyfour main > .wp-block-group.has-base-2-background-color > .wp-block-columns {
	align-items: stretch;
	gap: 0.85rem;
}

body.wp-theme-twentytwentyfour main > .wp-block-group.has-base-2-background-color > .wp-block-columns > .wp-block-column {
	background: var(--nl-bg-card);
	border: 1px solid var(--nl-line);
	padding: 1.15rem 1.05rem 1.25rem;
	flex: 1 1 15rem;
	min-width: 0;
	max-width: 100%;
}

/* Pull quote */
body.wp-theme-twentytwentyfour main .has-contrast-background-color {
	border-block: 1px solid rgba(231, 201, 138, 0.55);
}

body.wp-theme-twentytwentyfour main .has-contrast-background-color p.has-heading-font-family,
body.wp-theme-twentytwentyfour main .has-contrast-background-color em {
	font-family: Cardo, Palatino, "Palatino Linotype", serif !important;
	font-size: clamp(1.45rem, 2.8vw, 2.45rem) !important;
	line-height: 1.28 !important;
	color: var(--nl-paper) !important;
}

/* Story row: NYT hairline and title */
body.wp-theme-twentytwentyfour h2.wp-block-heading.alignwide {
	border-top: 1px solid var(--nl-line);
	padding-top: 1.1rem;
}

body.wp-theme-twentytwentyfour .wp-block-separator {
	border: 0 !important;
	border-top: 1px solid var(--nl-line) !important;
	color: transparent !important;
	opacity: 1;
}

body.wp-theme-twentytwentyfour .wp-block-post-title,
body.wp-theme-twentytwentyfour .wp-block-post-title a {
	font-family: Cardo, Palatino, "Palatino Linotype", serif !important;
	font-size: clamp(1.55rem, 2.4vw, 2.15rem) !important;
	font-weight: 400 !important;
	line-height: 1.15 !important;
	color: var(--nl-paper) !important;
}

body.wp-theme-twentytwentyfour .wp-block-post .wp-block-group.is-layout-flex {
	flex-wrap: wrap;
	row-gap: 0.35rem;
	min-width: 0;
}

/* Subscribe panel */
body.wp-theme-twentytwentyfour main .wp-block-group.has-base-2-background-color[style*="border-radius"] {
	background-color: var(--nl-bg-raise) !important;
	border: 1px solid var(--nl-line) !important;
	border-radius: 0 !important;
	box-shadow: inset 0 3px 0 var(--nl-gold);
}

/* Footer: New Yorker columns */
body.wp-theme-twentytwentyfour footer.wp-block-template-part {
	background: #0b0a09;
	border-top: 1px solid var(--nl-line);
	color: var(--nl-paper);
}

body.wp-theme-twentytwentyfour footer .wp-block-site-title,
body.wp-theme-twentytwentyfour footer .wp-block-site-title a {
	font-family: Cardo, Palatino, "Palatino Linotype", serif !important;
	font-weight: 400 !important;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--nl-paper) !important;
}

body.wp-theme-twentytwentyfour footer h2.wp-block-heading {
	font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 0.72rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.16em !important;
	line-height: 1.3 !important;
	text-transform: uppercase;
	color: var(--nl-gold) !important;
}

body.wp-theme-twentytwentyfour footer .wp-block-navigation-item__content {
	color: var(--nl-paper);
	font-size: 0.95rem;
}

body.wp-theme-twentytwentyfour footer .wp-block-group.alignwide {
	border-top: 1px solid var(--nl-line);
	margin-top: 1.5rem;
}

@media (max-width: 700px) {
	body.wp-theme-twentytwentyfour header .wp-block-site-title,
	body.wp-theme-twentytwentyfour header .wp-block-site-title a {
		letter-spacing: 0.16em;
		font-size: 0.92rem !important;
	}

	body.wp-theme-twentytwentyfour main h1.wp-block-heading {
		font-size: clamp(2.05rem, 10.2vw, 2.7rem) !important;
		max-width: 100%;
	}

	body.wp-theme-twentytwentyfour footer .wp-block-columns,
	body.wp-theme-twentytwentyfour footer .is-content-justification-space-between.is-layout-flex {
		flex-direction: column;
		align-items: flex-start;
	}

	body.wp-theme-twentytwentyfour footer .wp-block-column {
		flex-basis: auto !important;
		width: 100%;
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.wp-theme-twentytwentyfour *,
	body.wp-theme-twentytwentyfour *::before,
	body.wp-theme-twentytwentyfour *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
