Jump to content

Template:Main Page/styles.css

From The Perfect Tower II
Revision as of 02:54, 7 October 2026 by Speedybrain (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/* Template:Main Page/styles.css (TemplateStyles) for the Main Page.
 * Hero, status line and section spacing. Cards come from Template:Hub card. */

.mp-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 40px 36px 36px;
	margin: 8px 0 20px;
	background-color: var(--tpt-surface);
	border: 1px solid var(--tpt-line);
	border-radius: 4px;
	overflow: hidden;
}

.mp-hero::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--tpt-brand-ember), var(--tpt-brand-sun));
}

.mp-hero > * {
	position: relative;
}

.mp-hero__title {
	max-width: 16ch;
}

.mp-hero__lead {
	max-width: 60ch;
	color: var(--tpt-ink-muted);
}

.mp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 8px;
}

/* Buttons: wikitext links can't carry classes, so the kit's button sits on a wrapper and the link fills it. */
.mp-btn {
	padding: 0;
}

.mp-btn a,
.mp-btn a:visited,
.mp-btn a:hover {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 18px;
	color: inherit;
	text-decoration: none;
}

.mp-hero__note {
	color: var(--tpt-ink-subtle);
}

.mp-status {
	margin-bottom: 8px;
}

.mp-section-intro {
	color: var(--tpt-ink-muted);
	margin: -4px 0 0;
}

.mp-credit {
	margin-top: 32px;
	padding-top: 16px;
	border-top: 1px solid var(--tpt-line);
	font-size: 13px;
	line-height: 20px;
	color: var(--tpt-ink-subtle);
}

@media screen and (max-width: 719px) {
	.mp-hero {
		padding: 28px 20px 24px;
	}

	.mp-hero__title {
		font-size: 40px;
		line-height: 1.05;
	}

	.mp-hero__lead {
		font-size: 17px;
		line-height: 27px;
	}
}