/**
 * Footer — 2026 editorial redesign. Near-black ground for contrast against
 * the ivory page, but otherwise the same quiet language as the rest of the
 * site: plain type, thin hairline rules, no icon chips, no gradient blobs,
 * no pill buttons. Columns stack simply on mobile — no accordion.
 */

.qg-footer {
	background: var(--qg-color-ink);
	color: rgba(246, 242, 236, 0.7);
	margin-top: var(--qg-space-7);
}

/* Top: brand statement + columns. */

.qg-footer__top {
	display: grid;
	gap: var(--qg-space-6);
	padding-block: var(--qg-space-7) var(--qg-space-6);
}

@media (min-width: 900px) {
	.qg-footer__top {
		grid-template-columns: minmax(220px, 320px) 1fr;
		gap: var(--qg-space-6);
	}
}

.qg-footer__wordmark {
	display: inline-block;
	font-family: var(--qg-font-heading);
	font-size: 1.7rem;
	font-weight: 500;
	color: var(--qg-color-surface);
	text-decoration: none;
	letter-spacing: 0.01em;
}

.qg-footer__tagline {
	margin: var(--qg-space-3) 0 0;
	max-width: 34ch;
	font-size: 0.9rem;
	line-height: 1.7;
	color: rgba(246, 242, 236, 0.5);
}

.qg-footer__columns {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--qg-space-5);
}

@media (min-width: 560px) {
	.qg-footer__columns {
		grid-template-columns: repeat(4, 1fr);
	}
}

.qg-footer__col-title {
	margin: 0 0 var(--qg-space-3);
	font-family: var(--qg-font-body);
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--qg-tracking-label);
	color: rgba(246, 242, 236, 0.4);
}

.qg-footer__col-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}

.qg-footer__col-list a {
	color: rgba(246, 242, 236, 0.78);
	text-decoration: none;
	font-size: 0.88rem;
	transition: color 0.2s var(--qg-ease);
}

.qg-footer__col-list a:hover,
.qg-footer__col-list a:focus-visible {
	color: var(--qg-color-surface);
}

/* Bottom bar — bare, one line. */

.qg-footer__bottom {
	border-top: 1px solid rgba(246, 242, 236, 0.12);
}

.qg-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--qg-space-3);
	flex-wrap: wrap;
	padding-block: var(--qg-space-4);
}

.qg-footer__copy {
	margin: 0;
	font-size: 0.78rem;
	color: rgba(246, 242, 236, 0.45);
}

.qg-footer__legal-link {
	font-size: 0.78rem;
	color: rgba(246, 242, 236, 0.45);
	text-decoration: none;
	transition: color 0.2s var(--qg-ease);
}

.qg-footer__legal-link:hover {
	color: var(--qg-color-surface);
}
