/* Project styles: the accent & fonts. Edit freely; the scaffold never overwrites this file. */
:root {
	/* The kit's default accent, the Course Reader magenta. */
	--norn-ui-accent: #8b1e5e;
	/* Fonts: Instrument Sans is bundled; uncomment it, or load your own (@font-face or @import) & put the family first.
	--norn-font-body: "Instrument Sans", "Instrument Sans Fallback", ui-sans-serif, system-ui, sans-serif; */
}

/* Norn's card text reads 6.3:1 in dark. Light keeps Norn's own value; dark is lighter (7.7:1). */
norn-card > article > p {
	color: light-dark(#4b5160, #b6bccb);
}

/* Quick start: numbered steps, each a heading over a code block. */
.steps {
	display: grid;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;

	li {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 0.5rem;
		counter-increment: step;
	}

	h3 {
		display: flex;
		align-items: center;
		gap: 0.6rem;
		margin: 0;
		font-size: 1.1rem;

		&::before {
			content: counter(step);
			display: grid;
			place-items: center;
			inline-size: 1.8rem;
			block-size: 1.8rem;
			border-radius: 50%;
			background: var(--norn-ui-accent);
			color: #fff;
			font-size: 0.95rem;
		}
	}
}

/* Feature cards: the icon leads the card, in the title's accent: Norn's own
   formula for its text accent, which lightens in dark mode (the raw accent is
   too dark to see on a dark card).
   On a phone the card fills the width, so the icon grows with it. Norn wraps a
   card's content in an article. */
norn-card > article > norn-icon {
	color: var(--norn-text-accent, light-dark(oklch(from color-mix(in oklch, var(--norn-ui-accent) 82%, black) min(l, 0.5) c h), oklch(from color-mix(in oklch, var(--norn-ui-accent) 55%, white) max(l, 0.72) c h)));

	@media (width <= 640px) {
		--norn-ui-icon-m: 2.5rem;
	}
}

/* The gallery: each starter page live in a scaled, inert frame. */
.examples {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;

	article {
		display: grid;
		gap: 0.5rem;
	}

	h3 {
		margin: 0;
		font-size: 1rem;
	}
}

.example-frame {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border: 1px solid color-mix(in oklab, currentcolor 25%, transparent);
	border-radius: 6px;

	iframe {
		position: absolute;
		inset: 0;
		inline-size: 400%;
		block-size: 400%;
		border: 0;
		scale: 0.25;
		transform-origin: 0 0;
		pointer-events: none;
	}
}

.inline-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
