/* Accessibility and phone fixes. Loads last, so it adjusts the theme without rewriting it. */

/* 1. Focus rings that show up on light backgrounds (keyboard users) */

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 3px;
	border-radius: 4px
}

	.closing a:focus-visible {
		outline-color: #fff
	}

/* 2. Small colored text dark enough to read (WCAG AA, 4.5:1) */

:root {
	--coral: #a8380a
}

.how .eyebrow, .how .stepnum, .how .textlink {
	color: var(--blue-dark)
}

.topics .topic:nth-child(3) {
	--accent: var(--blue-dark)
}

.closing .eyebrow {
	color: #fff
}

.navmenu-list a:hover {
	color: var(--blue-dark)
}

/* 3. Headlines fit narrow screens */

h1, h2, h3 {
	overflow-wrap: break-word
}

@media(max-width:850px) {
	.hero h1 {
		font-size: clamp(36px, 6vw, 45px)
	}
}

@media(max-width:620px) {
	.hero h1 {
		font-size: clamp(34px, 10.5vw, 51px);
		max-width: none
	}

	.guide-hero h1 {
		font-size: clamp(32px, 9vw, 40px)
	}
}

/* 4. Footer links look like links, with room to tap */

.footer-row a:not(.logo) {
	display: inline-block;
	padding: 6px 0;
	text-decoration: underline;
	text-underline-offset: 3px
}

/* Less motion for people who ask for it */

@media(prefers-reduced-motion:reduce) {
	.btn:hover, .topics .topic:hover {
		transform: none
	}
}