/* OpenPress global footer. Uses tokens from main.css. */

.op-footer {
	/* Always-ink band in both themes: anchors the page and closes the section rhythm. */
	--op-bg: var(--op-black);
	--op-bg-elevated: var(--op-dark-surface);
	--op-text: var(--op-snow);
	--op-text-muted: #A9B3CE;
	--op-border: var(--op-border-dark);
	--op-link: #7CA5FF;
	--op-focus: #7CA5FF;
	color-scheme: dark;
	position: relative;
	margin-top: var(--op-section-space);
	padding-block: var(--op-space-8) var(--op-space-6);
	background:
		radial-gradient(50rem 22rem at 90% 0%, rgb(91 141 255 / 0.16), transparent 70%),
		radial-gradient(40rem 20rem at 0% 100%, rgb(167 139 250 / 0.12), transparent 70%),
		var(--op-black);
	color: var(--op-text);
	border-top: 0;
}
.op-footer::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, #5B8DFF 30%, #A78BFA 70%, transparent);
	opacity: 0.7;
}
.op-footer .op-logo { color: var(--op-text); }

/* Mobile: stacked */
.op-footer__main {
	display: grid;
	gap: var(--op-space-7);
	padding-bottom: var(--op-space-7);
}

.op-footer__brand {
	max-width: 28rem;
}

.op-footer__tagline {
	margin: var(--op-space-4) 0 var(--op-space-2);
	color: var(--op-text);
	font-family: var(--op-font-display);
	font-size: 1.1875rem;
	font-weight: var(--op-weight-bold);
	letter-spacing: -0.01em;
}

.op-footer__about {
	margin: 0;
	color: var(--op-text-muted);
	font-size: var(--op-text-small);
}

.op-footer__heading {
	margin: 0 0 var(--op-space-3);
	font-family: var(--op-font-display);
	font-size: var(--op-text-meta);
	font-weight: var(--op-weight-bold);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: var(--op-leading-snug);
	color: var(--op-text);
}

.op-footer__list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.op-footer__list a {
	display: inline-block;
	padding-block: 0.3125rem;
	color: var(--op-text-muted);
	font-size: var(--op-text-small);
	text-decoration: none;
	transition: color var(--op-transition), transform var(--op-transition);
}
.op-footer__list a:hover {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: #7CA5FF;
	text-underline-offset: 0.3em;
}

/* Bottom bar */
.op-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: var(--op-space-3);
	padding-top: var(--op-space-5);
	border-top: 1px solid var(--op-border);
}

.op-footer__copyright {
	margin: 0;
	color: var(--op-text-muted);
	font-size: var(--op-text-small);
}

.op-footer__bottom .op-footer__list {
	flex-direction: row;
	flex-wrap: wrap;
	gap: var(--op-space-1) var(--op-space-5);
}

/* Tablet: brand on top, three link columns */
@media (min-width: 640px) {
	.op-footer__main {
		grid-template-columns: repeat(3, 1fr);
	}
	.op-footer__brand {
		grid-column: 1 / -1;
	}
}

/* Desktop: brand beside link columns */
@media (min-width: 1024px) {
	.op-footer__main {
		grid-template-columns: 1.6fr 1fr 1fr 1fr;
	}
	.op-footer__brand {
		grid-column: auto;
	}
	.op-footer__bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

/* Task 050: comfortable tap targets for footer links on touch-sized screens. */
@media (max-width: 1023.98px) {
	.op-footer__list a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-block: 0; }
	.op-footer__bottom .op-footer__list { gap: 0 var(--op-space-5); }
}
