/* ============================================================
   Site chrome — header + footer styles, enqueued on every page.
   Keep this lean: it loads on every URL, so anything heavy goes
   in single-article.css or another conditional stylesheet.
   ============================================================ */

/* Skip link — visible only on keyboard focus, accessibility */
.uj-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #B3421D;
	color: #fff;
	padding: 0.5rem 1rem;
	text-decoration: none;
	z-index: 100000;
	font: 600 0.9375rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.uj-skip-link:focus { left: 0; }

/* ------------------------------------------------------------
   Header — sticky on scroll, no JS required.
   ------------------------------------------------------------ */
.uj-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #ffffff;
	border-bottom: 1px solid #e5e7eb;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	font: 0.9375rem/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.uj-site-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.625rem 1.25rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

/* Logo */
.uj-site-header__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	text-decoration: none;
	color: #B3421D;
	flex-shrink: 0;
}
.uj-site-header__logo img {
	width: 44px;
	height: 44px;
	border-radius: 6px;
	object-fit: cover;
	display: block;
}
.uj-site-header__logo-text {
	font: 800 1.0625rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* Primary nav */
.uj-site-header__nav {
	flex: 1 1 auto;
	min-width: 0;
}
.uj-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
}
.uj-nav li { margin: 0; }
.uj-nav a {
	color: #1f2937;
	text-decoration: none;
	font: 600 0.9375rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0.01em;
	padding: 0.5rem 0;
	border-bottom: 2px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
	display: inline-block;
}
.uj-nav a:hover,
.uj-nav .current-menu-item > a,
.uj-nav .current-menu-parent > a,
.uj-nav .current-menu-ancestor > a {
	color: #B3421D;
	border-color: #B3421D;
}

/* Header actions — social icons + Insider CTA */
.uj-site-header__actions {
	display: inline-flex;
	gap: 0.875rem;
	align-items: center;
	flex-shrink: 0;
}

/* Social icons — minimal, neutral default, brand-red hover */
.uj-site-header__social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-flex;
	gap: 0.375rem;
	align-items: center;
}
.uj-site-header__social a {
	display: inline-flex;
	width: 32px;
	height: 32px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease;
}
.uj-site-header__social img {
	display: block;
	max-width: 22px;
	max-height: 22px;
	width: auto;
	height: auto;
	object-fit: contain;
}
.uj-site-header__social a:hover,
.uj-site-header__social a:focus-visible {
	background: #FFF5F0;
	transform: translateY(-1px);
}

/* Header CTA — pill-shape, brand red, matches site CTA buttons */
.uj-site-header__cta {
	display: inline-block;
	padding: 0.5rem 1.25rem;
	background: #B3421D;
	color: #fff;
	text-decoration: none;
	border-radius: 999px;
	font: 600 0.9375rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0.01em;
	transition: background 0.15s ease, transform 0.15s ease;
}
.uj-site-header__cta:hover {
	background: #8E331A;
	color: #fff;
	transform: translateY(-1px);
}

/* Mobile — no hamburger; nav wraps to a second line beneath logo+CTA */
@media (max-width: 720px) {
	.uj-site-header__inner {
		gap: 0.75rem;
		padding: 0.5rem 1rem;
	}
	.uj-site-header__logo img { width: 36px; height: 36px; }
	.uj-site-header__logo-text { font-size: 0.9375rem; }
	.uj-site-header__nav {
		order: 3;
		flex: 1 1 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.uj-nav {
		flex-wrap: nowrap;
		gap: 0.875rem;
		padding-bottom: 0.25rem;
	}
	.uj-nav a {
		font-size: 0.875rem;
		white-space: nowrap;
	}
	.uj-site-header__cta { padding: 0.4375rem 1rem; font-size: 0.875rem; }
	/* Hide social on small phones to save space — Insider CTA stays */
	.uj-site-header__social { display: none; }
}
@media (min-width: 721px) and (max-width: 900px) {
	.uj-site-header__social { gap: 0.25rem; }
	.uj-site-header__social a { width: 28px; height: 28px; }
	.uj-site-header__social img { max-width: 18px; max-height: 18px; }
}

/* ------------------------------------------------------------
   Splash art — homepage hero + before-footer art band
   ------------------------------------------------------------ */
.uj-homepage-hero {
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	line-height: 0;
	background: #1f2937;
	overflow: hidden;
}
/* Tagline overlay — centered, white Oswald with shadow for legibility
   over the busy art. A subtle darkening gradient at the bottom keeps
   the text readable against the lighter flag area. */
.uj-homepage-hero__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.35) 100%);
	pointer-events: none;
	line-height: 1.15;
}
.uj-homepage-hero__tagline {
	margin: 0;
	color: #ffffff;
	font: 600 clamp(1.5rem, 3.6vw, 2.75rem)/1.15 "Oswald", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
	letter-spacing: 0.01em;
	text-align: center;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65), 0 1px 2px rgba(0, 0, 0, 0.5);
	max-width: 22ch;
	text-wrap: balance;
}
.uj-homepage-hero img {
	width: 100% !important;
	height: 360px !important;
	max-height: 360px !important;
	display: block !important;
	object-fit: cover !important;
	/* Pull the lower portion of the art into view so the kimono walker
	   + Tokyo street detail are anchoring the hero. */
	object-position: center 90% !important;
}
@media (max-width: 900px) {
	.uj-homepage-hero img { height: 280px !important; max-height: 280px !important; }
}
@media (max-width: 600px) {
	.uj-homepage-hero img { height: 200px !important; max-height: 200px !important; }
}

.uj-footer-art-band {
	display: block;
	width: 100%;
	margin: 3rem 0 0;
	line-height: 0;
	background: #1f2937;
	overflow: hidden;
}
.uj-footer-art-band img {
	width: 100% !important;
	height: 220px !important;
	max-height: 220px !important;
	display: block !important;
	object-fit: cover !important;
	/* Same vertical anchor as the hero so the band reads as a slice
	   of the same composition. Tweak 65–80% to shift the crop. */
	object-position: center 75% !important;
}
@media (max-width: 720px) {
	.uj-footer-art-band { margin-top: 2rem; }
	.uj-footer-art-band img { height: 140px !important; max-height: 140px !important; }
}

/* When the art band is present, the dark footer should sit flush against
   it — kill the existing top margin to avoid a white seam. */
.uj-footer-art-band + .uj-site-footer {
	margin-top: 0;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.uj-site-footer {
	background: #1f2937;
	color: #d1d5db;
	margin-top: 4rem;
	padding: 2.5rem 1.25rem 1.5rem;
	font: 0.9375rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.uj-site-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.4fr 2fr;
	gap: 2rem;
	align-items: start;
}

/* Brand block */
.uj-site-footer__logo {
	font: 800 1.25rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #fff;
	text-decoration: none;
}
.uj-site-footer__tagline {
	margin: 0.5rem 0 0;
	color: #9ca3af;
	font-size: 0.875rem;
}

/* Footer nav */
.uj-site-footer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
}
.uj-site-footer__nav a {
	color: #d1d5db;
	text-decoration: none;
	transition: color 0.15s ease;
}
.uj-site-footer__nav a:hover { color: #fff; text-decoration: underline; }

/* Legal strip */
.uj-site-footer__legal {
	max-width: 1200px;
	margin: 1.5rem auto 0;
	padding-top: 1.25rem;
	border-top: 1px solid #374151;
	color: #9ca3af;
	text-align: center;
	font-size: 0.8125rem;
}

@media (max-width: 720px) {
	.uj-site-footer { padding: 2rem 1rem 1.25rem; margin-top: 2.5rem; }
	.uj-site-footer__inner {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}
