/* Site footer — full-bleed band with brand, city info, nav, a big
   "Where manga meets." display line, and the small-print bottom row. */

.site-footer {
	background: var(--color-white);
	color: var(--color-text);
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
	color: inherit;
}

.site-footer__main {
	display: flex;
	flex-direction: column;
}

.site-footer__columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 2.5rem;
	align-items: start;
	padding-top: 4rem;
	padding-bottom: 3rem;
}

.site-footer__brand {
	display: flex;
	align-items: flex-start;
}

.site-footer__logo-link {
	display: inline-block;
	line-height: 0;
}

.site-footer__logo {
	display: block;
	width: 100%;
	max-width: 9rem;
	height: auto;
	fill: var(--color-text);
}

.site-footer__logo path {
	fill: inherit;
}

.site-footer__city {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	font-size: 0.875rem;
	line-height: 1.5;
}

.site-footer__city-title {
	margin: 0;
	font-family: "Maax Bold";
	font-weight: 400;
	font-size: 1.5rem;
	line-height: 1.1;
}

.site-footer__city-dates {
	margin: 0 0 0.5rem;
	font-family: "Maax Bold";
	font-weight: 400;
	font-size: 1.125rem;
	line-height: 1.2;
}

.site-footer__city-address {
	margin: 0;
}

.site-footer__city-meta {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.site-footer__city-meta p {
	margin: 0;
}

.site-footer__city-label {
	font-family: "Maax Bold";
	font-weight: 400;
}

.site-footer__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	font-size: 0.875rem;
}

.site-footer__nav-list a {
	color: var(--color-text);
	text-decoration: none;
}

.site-footer__nav-list a:hover {
	text-decoration: underline;
	text-underline-offset: 0.2rem;
	text-decoration-thickness: 2px;
}

.site-footer__nav-list a:focus-visible {
	outline: 2px solid var(--color-text);
	outline-offset: 2px;
}

/* "Where manga meets." — display line spanning the page. */
.site-footer__manga-meets {
	padding: 1.5rem 1rem 2rem;
	text-align: center;
}

.site-footer__manga-meets-text {
	margin: 0;

	/* Font-family + tracking come from the .kodansha-black utility. */
	font-size: clamp(2.5rem, 8vw, 6rem);
	line-height: 1;
}

/* Bottom row — the privacy/version fineprint on top, then the copyright
   (and the commented-out manga attributions), stacked and centered. */
.site-footer__bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
	text-align: center;
}

.site-footer__copyright {
	margin: 0;
	font-family: "Maax Bold";
	font-weight: 400;
	font-size: 0.9375rem;
}

.site-footer__attributions {
	margin: 0;
	max-width: 64rem;
	font-family: "Maax Medium";
	font-size: 0.8125rem;
	line-height: 1.6;
	color: var(--color-text-2);
}

.site-footer__attributions-sep {
	display: inline-block;
	margin: 0 0.5em;
	color: var(--color-line-3);
}

.site-footer__fineprint {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.75rem 2rem;
	margin-top: 0.5rem;
	font-family: "Maax Medium";
	font-weight: 400;
	font-size: 0.75rem;
	letter-spacing: 0.16ch;
	text-transform: uppercase;
}

.site-footer__bottom a {
	color: var(--color-text);
	text-decoration: none;
}

.site-footer__bottom a:hover {
	text-decoration: underline;
	text-underline-offset: 0.2rem;
	text-decoration-thickness: 2px;
}

.site-footer__bottom a:focus-visible {
	outline: 2px solid var(--color-text);
	outline-offset: 2px;
}

/* `.site-footer__do-not-sell-my-data` and `.site-footer__version` retain
   their original structure; color values flip to read on the light field. */
.site-footer__do-not-sell-my-data {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
	margin: 0;
}

.site-footer__do-not-sell-my-data a + a::before {
	content: "|";
	display: inline-block;
	margin-right: 1em;
	color: var(--color-text);
	text-decoration: none;
}

.site-footer__version {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
}

.site-footer__version-label {
	font-family: "Maax Bold";
	background-color: var(--color-black);
	color: var(--color-white);
	padding: 0.25rem 1rem;
	font-size: 0.75rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	display: inline-block;
}

.site-footer__version-number,
.site-footer__version-build {
	font-family: Maax;
	font-size: 0.75rem;
	opacity: 0.5;
	color: var(--color-text);
}

/* Tablet — pair the two parallel city blocks side-by-side, and let the
   brand logo and legal nav each span their own full-width row so the small
   logo no longer sits beside the tall LA block leaving ragged whitespace. */
@media (max-width: 900px) {

	.site-footer__columns {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 2.5rem 2rem;
	}

	.site-footer__brand,
	.site-footer__nav {
		grid-column: 1 / -1;
	}

	/* Full-width nav reads better as a horizontal wrap than a tall column. */
	.site-footer__nav-list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.75rem 1.5rem;
	}

	/* Separator between the stacked bands. Drawn on the *top* of each band
	   (not the bottom) so the side-by-side city blocks — which have unequal
	   heights — share one aligned divider instead of two ragged ones. The
	   brand is always the first/top band, so it never gets a divider. */
	.site-footer__city,
	.site-footer__nav {
		border-top: 1px solid var(--color-line-3);
		padding-top: 1.5rem;
	}
}

/* Mobile — single column; everything stacks. The brand/nav span rules above
   still resolve to the full row, and the nav keeps its horizontal wrap. */
@media (max-width: 600px) {

	.site-footer__columns {
		grid-template-columns: minmax(0, 1fr);
		gap: 2.25rem;
		padding-top: 3rem;
		padding-bottom: 2rem;
	}

	/* Stack the two privacy links centered and drop the "|" separator — it
	   only reads correctly between items on a single line, and would
	   otherwise strand at the start of the wrapped second link. */
	.site-footer__do-not-sell-my-data {
		flex-direction: column;
		align-items: center;
		gap: 0.5rem;
	}

	.site-footer__do-not-sell-my-data a + a::before {
		content: none;
	}
}
