/* ==========================================================================
   pages.css — per-page treatments
   ========================================================================== */

/* --- Cover (index.html) -------------------------------------------------- */

.cover h1 {
	margin-block: 0.5rem 1.5rem;
	max-width: 14ch;
}

.cover h1 em {
	font-style: italic;
	color: var(--rose);
}

.cover__opening {
	max-width: 32rem;
	color: var(--muted);
	margin-top: 1.25rem;
}

/* One orchestrated page-load reveal, cover only */
.cover .chapter-mark,
.cover h1,
.cover .lede,
.cover .cover__opening,
.cover .actions {
	animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}

.cover h1 {
	animation-delay: 0.08s;
}
.cover .lede {
	animation-delay: 0.16s;
}
.cover .cover__opening {
	animation-delay: 0.22s;
}
.cover .actions {
	animation-delay: 0.28s;
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* --- About (about.html) -------------------------------------------------- */

.about__pull {
	font-family: var(--display);
	font-style: italic;
	font-size: clamp(1.2rem, 3vw, 1.7rem);
	line-height: 1.45;
	color: var(--parchment);
	border-left: 2px solid var(--rose);
	padding-left: 1.25rem;
	margin-block: 2.25rem;
	max-width: 32rem;
}

.about__pull cite {
	display: block;
	font-size: var(--t-sm);
	color: var(--muted);
	font-style: normal;
	font-family: var(--body);
	margin-top: 0.6rem;
}

/* --- Section headings shared by the interior pages ----------------------- */

.section-head {
	font-size: clamp(1.5rem, 3.2vw, 2rem);
	margin-top: 3rem;
	margin-bottom: 0.25rem;
	padding-bottom: 0.6rem;
}

.section-head + .entries,
.section-head + .marginalia,
.section-head + .ledger {
	margin-top: 1rem;
}

/* --- "Things I've made" grid (about.html) -------------------------------- */

.made__lead {
	color: var(--muted);
	font-size: var(--t-sm);
	margin-top: 0.75rem;
}

.made {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: 1.5rem 2rem;
	margin-top: 1.5rem;
}

.made__group h3 {
	font-size: var(--t-base);
	color: var(--gilt);
	font-style: italic;
	padding-bottom: 0.5rem;
	margin-bottom: 0.6rem;
	border-bottom: 1px solid var(--rule);
}

.made__group ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.3rem;
}

.made__group li {
	position: relative;
	padding-left: 0.95rem;
	color: var(--muted);
	font-size: var(--t-sm);
	line-height: 1.5;
}

.made__group li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--edge);
	opacity: 0.8;
}

.made__more {
	margin-top: 1.25rem;
	color: var(--muted);
	font-family: var(--display);
	font-style: italic;
	font-size: var(--t-sm);
}

/* --- Work (work.html) ---------------------------------------------------- */

/* Featured project: story on the left, its live Discord plate on the right */
.feature {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: start;
	padding: clamp(1.5rem, 4vw, 2.25rem) 0 clamp(2rem, 4vw, 2.75rem);
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}

.feature h2 {
	font-size: clamp(2.4rem, 6vw, 3.6rem);
	margin-block: 0.1rem 1rem;
	letter-spacing: 0.02em;
}

.feature__text p {
	color: var(--muted);
}

.feature__text p + p {
	margin-top: 1rem;
}

.feature__text .actions {
	margin-top: 1.75rem;
}

/* Platforms ONR has been built and run against */
.stack {
	margin-top: 1.5rem;
	display: grid;
	gap: 0.85rem;
}

.stack__row {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: 0.5rem 1rem;
	align-items: start;
}

.stack__label {
	font-family: var(--display);
	font-style: italic;
	font-size: var(--t-sm);
	color: var(--gilt);
	padding-top: 0.2rem;
}

.stack__row ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.stack__row li {
	font-size: var(--t-xs);
	color: var(--parchment);
	border: 1px solid var(--edge-line);
	background: var(--edge-glow);
	border-radius: 999px;
	padding: 0.22em 0.7em;
	line-height: 1.6;
	white-space: nowrap;
}

@media (max-width: 560px) {
	.stack__row {
		grid-template-columns: 1fr;
		gap: 0.35rem;
	}
}

@media (max-width: 860px) {
	.feature {
		grid-template-columns: 1fr;
	}
}

.work__note {
	color: var(--muted);
	margin-top: 2rem;
	font-size: var(--t-sm);
}

/* --- Contact (contact.html) ---------------------------------------------- */

.contact__lead {
	max-width: 36rem;
}

.contact .entry__numeral {
	font-size: var(--t-base);
	font-style: normal;
}
