/*
 * MMI or Not? game.
 *
 * One case, two big answers. The case text is set large because reading it is
 * the game. Button colors use !important because themes style buttons at high
 * specificity. Hover is limited to real pointers.
 */

.imn {
	--imn-ink: #1a1a1a;
	--imn-muted: #5f6368;
	--imn-line: #d8dde3;
	--imn-navy: #1f3a5f;
	--imn-navy-dark: #14283f;
	--imn-soft: #eaf0f7;
	--imn-right: #246147;
	--imn-missed: #9c3a23;
	--imn-display: Georgia, 'Iowan Old Style', 'Apple Garamond', serif;

	width: 100%;
	max-width: 660px;
	margin: 2rem auto;
	color: var(--imn-ink);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	line-height: 1.5;
}

.imn *,
.imn *::before,
.imn *::after {
	box-sizing: border-box;
}

.imn h2,
.imn h3,
.imn p {
	margin: 0;
	padding: 0;
	border: 0;
	letter-spacing: normal;
	text-transform: none;
}

.imn h2:focus {
	outline: none;
}

.imn .imn__title,
.imn .imn__score {
	font-family: var(--imn-display);
	font-size: clamp(2.25rem, 8vw, 3.25rem);
	font-weight: 700;
	line-height: 1.08;
	color: var(--imn-navy);
	margin-bottom: 0.5rem;
}

.imn .imn__lede {
	font-size: 1.125rem;
}

.imn .imn__meta {
	color: var(--imn-muted);
	font-size: 0.9375rem;
	margin: 0.5rem 0 1.25rem;
}

.imn__progress {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--imn-line);
	color: var(--imn-muted);
	font-size: 0.9375rem;
	margin-bottom: 1rem;
}

.imn .imn__case {
	font-family: var(--imn-display);
	font-size: clamp(1.25rem, 4.5vw, 1.5rem);
	font-weight: 400;
	line-height: 1.45;
	color: var(--imn-ink);
}

.imn__choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.625rem;
	margin-top: 1.25rem;
}

.imn .imn__choice {
	min-height: 64px;
	margin: 0;
	padding: 0.75rem;
	border: 1px solid var(--imn-navy) !important;
	border-radius: 4px;
	background: #fff !important;
	box-shadow: none;
	color: var(--imn-navy) !important;
	font-family: var(--imn-display);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

/* Feedback */

.imn .imn__verdict {
	font-family: var(--imn-display);
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: 0.25rem;
}

.imn .imn__verdict.is-right {
	color: var(--imn-right);
}

.imn .imn__verdict.is-missed {
	color: var(--imn-missed);
}

.imn .imn__call {
	font-size: 1.0625rem;
	font-weight: 600;
}

.imn .imn__quote {
	color: var(--imn-muted);
	font-family: var(--imn-display);
	font-size: 0.9375rem;
	margin-top: 0.375rem;
}

.imn .imn__why {
	margin-top: 0.5rem;
}

.imn .imn__ref {
	color: var(--imn-muted);
	font-size: 0.8125rem;
	margin-top: 0.125rem;
}

.imn .imn__next {
	margin-top: 1rem !important;
}

/* Buttons */

.imn .imn__btn:not(.imn__choice) {
	display: inline-block;
	min-height: 44px;
	margin: 0;
	padding: 0.625rem 1rem;
	border: 1px solid var(--imn-navy) !important;
	border-radius: 4px;
	box-shadow: none;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.imn .imn__btn:focus-visible {
	outline: 3px solid var(--imn-navy);
	outline-offset: 2px;
}

.imn .imn__btn--primary {
	background: var(--imn-navy) !important;
	color: #fff !important;
}

.imn .imn__btn--secondary {
	background: #fff !important;
	color: var(--imn-navy) !important;
}

@media (hover: hover) {
	.imn .imn__choice:hover,
	.imn .imn__btn--secondary:hover {
		background: var(--imn-soft) !important;
	}

	.imn .imn__btn--primary:hover {
		background: var(--imn-navy-dark) !important;
	}
}

/* Results */

.imn .imn__subhead {
	font-size: 0.9375rem;
	font-weight: 600;
	margin-top: 1rem;
}

.imn__item {
	margin-top: 0.625rem;
	padding-left: 0.75rem;
	border-left: 3px solid var(--imn-missed);
}

.imn__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin-top: 1.25rem;
}

.imn .imn__disclaimer {
	color: var(--imn-muted);
	font-size: 0.8125rem;
	margin-top: 1.25rem;
}
