/* ==========================================================================
   Commits and Conflicts — main stylesheet
   Ink outlines, hard shadows, sticky notes and speech bubbles, pulled
   straight from the strip.
   ========================================================================== */

:root {
	/* Palette */
	--ink: #0b1430;
	--night: #0a1a3f;
	--night-2: #10275c;
	--navy: #15307a;
	--blue: #1e8bff;
	--blue-deep: #1747d6;
	--cyan: #5ee7ff;
	--orange: #ff7a1a;
	--orange-deep: #f2560f;
	--amber: #ffc21a;
	--note: #fff07a;
	--paper: #fff8ec;
	--paper-2: #fdeed6;
	--card: #ffffff;
	--text: #1b2340;
	--muted: #5b6785;
	--on-night: #e9efff;
	--on-night-muted: #a9b8e0;

	/* Type */
	--font-display: "Luckiest Guy", "Arial Black", Impact, sans-serif;
	--font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-hand: "Patrick Hand", "Comic Sans MS", "Chalkboard SE", cursive;

	/* Shape */
	--line: 3px;
	--radius: 14px;
	--shadow: 6px 6px 0 var(--ink);
	--shadow-sm: 4px 4px 0 var(--ink);
	--gutter: clamp(16px, 4vw, 40px);
	--max: 1180px;
}

/* ------------------------------------------------------------------ Base */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--paper);
	background-image: radial-gradient(rgba(11, 20, 48, 0.07) 1px, transparent 1.2px);
	background-size: 14px 14px;
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--blue-deep);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--orange-deep);
}

:focus-visible {
	outline: 3px solid var(--orange);
	outline-offset: 3px;
	border-radius: 4px;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0.01em;
	color: var(--ink);
	margin: 0 0 0.5em;
}

kbd {
	display: inline-block;
	padding: 0 0.45em;
	border: 2px solid var(--ink);
	border-bottom-width: 3px;
	border-radius: 6px;
	background: var(--card);
	font-family: var(--font-body);
	font-size: 0.85em;
	font-weight: 800;
	line-height: 1.5;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--note);
	color: var(--ink);
	border: var(--line) solid var(--ink);
	border-radius: 10px;
	font-weight: 800;
}

.skip-link:focus {
	top: 12px;
}

.site-main:focus {
	outline: none;
}

.muted {
	color: var(--muted);
}

/* -------------------------------------------------------------- Wordmark */
/* The logo art already carries its own white + ink outline. */

.wordmark {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
}

.wordmark--xs {
	width: 260px;
}

.wordmark--sm {
	width: clamp(200px, 28vw, 300px);
}

.wordmark--xl {
	width: min(720px, 100%);
	margin: 0 auto;
	filter: drop-shadow(0 6px 0 rgba(4, 10, 30, 0.45));
}

/* ----------------------------------------------------------------- Header */

.site-header {
	position: relative;
	z-index: 20;
	background: var(--night);
	border-bottom: var(--line) solid var(--ink);
}

.site-header__inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 14px var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.site-header__brand {
	flex-shrink: 0;
	text-decoration: none;
	padding: 4px 0;
}

.primary-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 6px;
}

.primary-nav__list a {
	display: block;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--on-night);
	font-weight: 800;
	font-size: 0.95rem;
	text-decoration: none;
	letter-spacing: 0.02em;
	transition: background-color 0.15s, color 0.15s;
}

.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.primary-nav__list .current-menu-item > a {
	box-shadow: inset 0 -3px 0 var(--orange);
}

.nav-toggle {
	display: none;
	width: 46px;
	height: 42px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 10px;
	background: transparent;
	cursor: pointer;
	position: relative;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	position: absolute;
	left: 50%;
	width: 22px;
	height: 3px;
	margin-left: -11px;
	border-radius: 2px;
	background: #fff;
	transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle__bars {
	top: 50%;
	margin-top: -1.5px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	left: 0;
	margin-left: 0;
}

.nav-toggle__bars::before {
	top: -7px;
}

.nav-toggle__bars::after {
	top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1040px) {
	.js .nav-toggle {
		display: block;
	}

	.js .primary-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--night);
		border-bottom: var(--line) solid var(--ink);
		padding: 8px var(--gutter) 16px;
		display: none;
	}

	.js .primary-nav.is-open {
		display: block;
	}

	.js .primary-nav__list {
		flex-direction: column;
	}

	.js .primary-nav__list a {
		border-radius: 10px;
		padding: 12px 14px;
		font-size: 1.05rem;
	}
}

/* ------------------------------------------------------------------- Hero */

.hero {
	position: relative;
	background:
		radial-gradient(60% 50% at 8% 0%, rgba(30, 139, 255, 0.35), transparent 70%),
		radial-gradient(45% 40% at 100% 10%, rgba(255, 122, 26, 0.28), transparent 70%),
		linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
	color: var(--on-night);
	border-bottom: var(--line) solid var(--ink);
	padding: clamp(28px, 6vw, 64px) 0 clamp(40px, 6vw, 72px);
	overflow: hidden;
}

.hero::after {
	/* Window-light grid, a nod to the strip's night office. */
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 48px 48px;
	pointer-events: none;
	mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

.hero__inner {
	position: relative;
	z-index: 1;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.hero__intro {
	text-align: center;
	margin-bottom: clamp(28px, 5vw, 48px);
}

.hero__wordmark {
	margin: 0 0 18px;
	color: inherit;
}

.hero__tagline {
	display: inline-block;
	margin: 0;
	padding: 8px 22px;
	background: #fff;
	color: var(--ink);
	border: var(--line) solid var(--ink);
	border-radius: 999px;
	font-family: var(--font-hand);
	font-size: clamp(1.05rem, 2.4vw, 1.4rem);
	line-height: 1.3;
	box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}

.hero__episode {
	max-width: 1100px;
	margin: 0 auto;
}

.hero__meta {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.hero__meta .sticky-note {
	margin: 0;
}

.hero__title {
	font-size: clamp(1.9rem, 5vw, 3.2rem);
	margin: 6px 0 22px;
	color: #fff;
	text-shadow: 0 3px 0 var(--ink);
}

.hero__title a {
	color: inherit;
	text-decoration: none;
}

.hero__title a:hover {
	color: var(--amber);
}

.hero__excerpt {
	margin: 22px auto 0;
	max-width: 46ch;
	text-align: center;
	font-family: var(--font-hand);
	font-size: 1.35rem;
	line-height: 1.35;
	color: var(--on-night);
}

.hero__empty {
	text-align: center;
	font-family: var(--font-hand);
	font-size: 1.5rem;
}

.hero .comic-frame {
	box-shadow: 10px 10px 0 var(--orange), 10px 10px 0 var(--line) var(--ink);
}

.badge {
	display: inline-block;
	padding: 4px 12px 2px;
	background: var(--orange);
	color: #fff;
	border: 2px solid var(--ink);
	border-radius: 999px;
	font-family: var(--font-display);
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: 2px 2px 0 var(--ink);
}

/* ------------------------------------------------------------ Sticky note */

.sticky-note {
	position: relative;
	display: inline-block;
	margin: 0 0 14px;
	padding: 8px 18px 6px;
	background: var(--note);
	color: var(--ink);
	font-family: var(--font-hand);
	font-size: 1.35rem;
	line-height: 1.2;
	transform: rotate(-3deg);
	box-shadow: 3px 4px 0 rgba(11, 20, 48, 0.28);
}

.sticky-note::before {
	/* Tape */
	content: "";
	position: absolute;
	top: -9px;
	left: 50%;
	width: 54px;
	height: 18px;
	margin-left: -27px;
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(11, 20, 48, 0.1);
	transform: rotate(4deg);
}

/* ------------------------------------------------------------ Comic frame */

.comic-frame {
	margin: 0;
	padding: clamp(6px, 1vw, 10px);
	background: #fff;
	border: var(--line) solid var(--ink);
	border-radius: 8px;
	box-shadow: 10px 10px 0 var(--ink);
}

.comic-frame a {
	display: block;
}

.comic-frame__img {
	width: 100%;
	border-radius: 3px;
}

/* -------------------------------------------------------- Comic nav bar */

.comic-nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 26px 0;
}

.comic-nav__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 46px;
	padding: 8px 18px 5px;
	background: var(--card);
	color: var(--ink);
	border: var(--line) solid var(--ink);
	border-radius: 12px;
	box-shadow: var(--shadow-sm);
	font-family: var(--font-display);
	font-size: 1.05rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	transition: transform 0.12s, box-shadow 0.12s;
}

a.comic-nav__btn:hover {
	color: var(--ink);
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0 var(--ink);
}

a.comic-nav__btn:active {
	transform: translate(2px, 2px);
	box-shadow: 1px 1px 0 var(--ink);
}

.comic-nav__btn--prev,
.comic-nav__btn--next {
	background: var(--blue);
	color: #fff;
}

a.comic-nav__btn--prev:hover,
a.comic-nav__btn--next:hover {
	color: #fff;
	background: var(--blue-deep);
}

.comic-nav__btn--archive {
	background: var(--note);
}

.comic-nav__btn.is-disabled {
	opacity: 0.38;
	box-shadow: none;
	cursor: not-allowed;
}

@media (max-width: 560px) {
	.comic-nav {
		display: grid;
		grid-template-columns: auto 1fr auto 1fr auto;
		gap: 6px;
	}

	.comic-nav__btn {
		justify-content: center;
		padding: 8px 10px 5px;
		font-size: 0.92rem;
	}

	.comic-nav__btn--first .comic-nav__text,
	.comic-nav__btn--latest .comic-nav__text {
		display: none;
	}
}

/* ---------------------------------------------------------------- Sections */

.section {
	padding: clamp(44px, 7vw, 88px) 0;
}

.section + .section {
	padding-top: 0;
}

.section__inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.section__inner--narrow {
	max-width: 820px;
}

.section__header,
.page-header {
	text-align: center;
	margin-bottom: clamp(28px, 4vw, 44px);
}

.section__title,
.page-header__title {
	display: inline-block;
	position: relative;
	font-size: clamp(2.1rem, 5vw, 3.2rem);
	margin: 0 0 8px;
}

.section__title::after,
.page-header__title::after {
	content: "";
	position: absolute;
	left: -4%;
	right: -4%;
	bottom: 0.08em;
	height: 0.32em;
	background: var(--amber);
	opacity: 0.7;
	z-index: -1;
	border-radius: 4px;
	transform: rotate(-1deg);
}

.section__title,
.page-header__title {
	isolation: isolate;
}

.section__lede,
.page-header__lede {
	margin: 0;
	color: var(--muted);
	font-size: 1.15rem;
}

.section__more,
.button-row {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
	margin: clamp(32px, 4vw, 48px) 0 0;
}

.section--cast {
	background: linear-gradient(180deg, transparent 0, var(--paper-2) 160px);
	border-top: var(--line) dashed rgba(11, 20, 48, 0.15);
	padding-top: clamp(44px, 7vw, 88px) !important;
}

/* ----------------------------------------------------------------- Buttons */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 10px 24px 7px;
	background: var(--orange);
	color: #fff;
	border: var(--line) solid var(--ink);
	border-radius: 999px;
	box-shadow: var(--shadow-sm);
	font-family: var(--font-display);
	font-size: 1.1rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	transition: transform 0.12s, box-shadow 0.12s;
}

.button:hover {
	color: #fff;
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0 var(--ink);
}

.button--ghost {
	background: var(--card);
	color: var(--ink);
}

.button--ghost:hover {
	color: var(--ink);
}

/* ------------------------------------------------------------ Episode grid */

.episode-grid {
	display: grid;
	grid-auto-flow: row dense; /* lets cards backfill around full-width ad rows */
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: clamp(22px, 3vw, 34px);
}

.episode-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--card);
	color: inherit;
	border: var(--line) solid var(--ink);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	text-decoration: none;
	transition: transform 0.15s, box-shadow 0.15s;
}

.episode-card__link:hover {
	color: inherit;
	transform: translate(-3px, -3px) rotate(-0.4deg);
	box-shadow: 9px 9px 0 var(--ink);
}

.episode-card__media {
	position: relative;
	aspect-ratio: 3 / 2;
	background: var(--night);
	border-bottom: var(--line) solid var(--ink);
}

.episode-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.episode-card__number {
	position: absolute;
	right: 10px;
	bottom: -14px;
	padding: 4px 12px 2px;
	background: var(--note);
	border: 2px solid var(--ink);
	border-radius: 8px;
	font-family: var(--font-display);
	font-size: 1.15rem;
	color: var(--ink);
	transform: rotate(3deg);
	box-shadow: 2px 2px 0 var(--ink);
}

.episode-card__body {
	padding: 20px 20px 22px;
}

.episode-card__kicker {
	margin: 0 0 4px;
	color: var(--orange-deep);
	font-weight: 800;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.episode-card__title {
	font-size: 1.55rem;
	margin: 0 0 8px;
}

.episode-card__link:hover .episode-card__title {
	color: var(--blue-deep);
}

.episode-card__excerpt {
	margin: 0;
	color: var(--muted);
	font-size: 0.98rem;
	line-height: 1.5;
}

/* ------------------------------------------------------------ Single episode */

.episode {
	max-width: calc(1100px + 2 * var(--gutter));
	margin: 0 auto;
	padding: clamp(32px, 5vw, 56px) var(--gutter) clamp(48px, 7vw, 88px);
}

.episode__header {
	text-align: center;
}

.episode__title {
	font-size: clamp(2.1rem, 6vw, 3.8rem);
	margin: 4px 0 6px;
	text-shadow: 3px 3px 0 var(--amber);
}

.episode__date {
	margin: 0;
	color: var(--muted);
	font-weight: 600;
}

.episode__hint {
	margin: -8px 0 0;
	text-align: center;
	color: var(--muted);
	font-size: 0.9rem;
}

@media (hover: none) {
	.episode__hint {
		display: none;
	}
}

.episode__notes {
	max-width: 760px;
	margin: clamp(32px, 5vw, 52px) auto 0;
	display: grid;
	gap: 24px;
}

.episode__excerpt {
	position: relative;
	margin: 0;
	padding: 20px 26px;
	background: #fff;
	border: var(--line) solid var(--ink);
	border-radius: 28px;
	font-family: var(--font-hand);
	font-size: 1.45rem;
	line-height: 1.35;
	text-align: center;
	box-shadow: var(--shadow-sm);
}

.transcript {
	background: var(--card);
	border: var(--line) solid var(--ink);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.transcript summary {
	cursor: pointer;
	padding: 16px 22px 13px;
	font-family: var(--font-display);
	font-size: 1.2rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.transcript summary::-webkit-details-marker {
	display: none;
}

.transcript summary::after {
	content: "+";
	font-size: 1.6rem;
	line-height: 1;
	transition: transform 0.15s;
}

.transcript[open] summary::after {
	transform: rotate(45deg);
}

.transcript__body {
	padding: 4px 22px 18px;
	border-top: 2px dashed rgba(11, 20, 48, 0.15);
}

.transcript__body h3 {
	margin: 1.1em 0 0.35em;
	font-size: 1.1rem;
	color: var(--orange-deep);
	letter-spacing: 0.04em;
}

.transcript__body p {
	margin: 0 0 0.4em;
}

/* ------------------------------------------------------------- Panels */

.panel {
	background: var(--card);
	border: var(--line) solid var(--ink);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: clamp(22px, 4vw, 40px);
}

.panel--center {
	text-align: center;
}

.post-list {
	display: grid;
	gap: 28px;
}

.post-summary__title {
	font-size: 1.8rem;
}

.post-summary__title a {
	color: inherit;
	text-decoration: none;
}

.post-summary__meta {
	margin-top: -6px;
	color: var(--muted);
	font-weight: 600;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content > :last-child {
	margin-bottom: 0;
}

.entry-content h2 {
	font-size: 1.9rem;
	margin-top: 1.4em;
}

.entry-content h3 {
	font-size: 1.4rem;
	margin-top: 1.3em;
}

.entry-content .wp-block-image {
	margin: 0 0 1.5em;
}

.entry-content .wp-block-image img {
	border: var(--line) solid var(--ink);
	border-radius: 10px;
}

/* The series card leads the About page. */
.entry-content .about-card img {
	width: 100%;
	box-shadow: var(--shadow);
}

.entry-content blockquote {
	margin: 1.5em 0;
	padding: 4px 0 4px 20px;
	border-left: 5px solid var(--orange);
	font-style: italic;
}

/* -------------------------------------------------------------- Cast */

.cast-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: clamp(26px, 4vw, 40px);
}

.cast-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 28px 24px 30px;
	background: var(--card);
	border: var(--line) solid var(--ink);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.cast-card__portrait {
	width: 156px;
	height: 156px;
	border-radius: 50%;
	overflow: hidden;
	border: var(--line) solid var(--ink);
	box-shadow: 0 0 0 6px var(--note), 0 0 0 9px var(--ink);
	background: var(--night);
	margin: 6px 0 0;
}

.cast-card--nova .cast-card__portrait {
	box-shadow: 0 0 0 6px var(--cyan), 0 0 0 9px var(--ink);
}

.cast-card--paul .cast-card__portrait {
	box-shadow: 0 0 0 6px var(--blue), 0 0 0 9px var(--ink);
}

.cast-card--therapist .cast-card__portrait {
	box-shadow: 0 0 0 6px var(--orange), 0 0 0 9px var(--ink);
}

.cast-card--leticia .cast-card__portrait {
	box-shadow: 0 0 0 6px #19a39a, 0 0 0 9px var(--ink);
}

.cast-card__portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cast-card__name {
	font-size: 2rem;
	margin: 0;
}

.cast-card__role {
	margin: 2px 0 12px;
	color: var(--orange-deep);
	font-weight: 800;
	font-size: 0.82rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cast-card__bio {
	margin: 0;
	color: var(--muted);
	font-size: 0.98rem;
}

/* ---------------------------------------------------------- Speech bubble */

.speech-bubble {
	position: relative;
	order: -1;
	margin: 0 0 30px;
	padding: 12px 20px;
	background: #fff;
	border: var(--line) solid var(--ink);
	border-radius: 26px;
	font-family: var(--font-hand);
	font-size: 1.3rem;
	line-height: 1.25;
	color: var(--ink);
}

.speech-bubble p {
	margin: 0;
}

.speech-bubble::after {
	/* Tail */
	content: "";
	position: absolute;
	bottom: -13px;
	left: 50%;
	width: 22px;
	height: 22px;
	margin-left: -11px;
	background: #fff;
	border-right: var(--line) solid var(--ink);
	border-bottom: var(--line) solid var(--ink);
	transform: skewX(18deg) rotate(45deg);
}

.speech-bubble--center {
	display: inline-block;
	max-width: 520px;
	margin: 12px auto 22px;
}

/* -------------------------------------------------------------- Pagination */

.pagination {
	margin-top: clamp(32px, 4vw, 48px);
}

.pagination .nav-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	min-height: 46px;
	padding: 6px 14px 3px;
	background: var(--card);
	color: var(--ink);
	border: var(--line) solid var(--ink);
	border-radius: 12px;
	box-shadow: var(--shadow-sm);
	font-family: var(--font-display);
	font-size: 1.05rem;
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--note);
}

/* ------------------------------------------------------------------ Footer */

.site-footer {
	background: var(--night);
	color: var(--on-night-muted);
	border-top: var(--line) solid var(--ink);
}

.site-footer__inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 40px var(--gutter) 32px;
	display: grid;
	gap: 18px;
	justify-items: center;
	text-align: center;
}

.site-footer__tagline {
	margin: 10px 0 0;
	font-family: var(--font-hand);
	font-size: 1.15rem;
	color: var(--on-night);
}

.site-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 22px;
}

.site-footer__menu a {
	color: var(--on-night);
	font-weight: 800;
	text-decoration: none;
}

.site-footer__menu a:hover {
	color: var(--amber);
}

.site-footer__legal {
	margin: 0;
	font-size: 0.85rem;
	max-width: 60ch;
}

/* ------------------------------------------------------- Sponsor credit */

.sponsor-credit {
	margin: 14px 0 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--on-night-muted);
}

.sponsor-credit a {
	color: var(--amber);
	font-weight: 800;
}

.sponsor-credit a:hover {
	color: #fff;
}

.sponsor-credit--footer {
	margin: 0;
}

/* -------------------------------------------------------------------- Ads */

.ad-slot {
	max-width: calc(970px + 2 * var(--gutter));
	margin: clamp(28px, 4vw, 44px) auto;
	padding: 0 var(--gutter);
}

.site-main > .ad-slot--leaderboard:first-child {
	margin-top: clamp(20px, 3vw, 32px);
	margin-bottom: 0;
}

.ad-slot--after-comic {
	padding: 0;
}

.ad-slot__label,
.ad-card__label {
	margin: 0 0 6px;
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ad {
	display: block;
	color: var(--ink);
	text-decoration: none;
	border: var(--line) solid var(--ink);
	border-radius: 12px;
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: transform 0.12s, box-shadow 0.12s;
}

.ad:hover {
	color: var(--ink);
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0 var(--ink);
}

.ad--image img {
	width: 100%;
}

.ad--text {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	padding: 16px 22px;
	background:
		repeating-linear-gradient(-45deg, rgba(255, 194, 26, 0.12) 0 12px, transparent 12px 24px),
		var(--card);
}

.ad__copy {
	display: grid;
	gap: 2px;
}

.ad__sponsor {
	color: var(--orange-deep);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ad__headline,
.ad-card__headline {
	font-family: var(--font-display);
	font-size: clamp(1.2rem, 2.4vw, 1.5rem);
	line-height: 1.15;
	letter-spacing: 0.01em;
}

.ad__body,
.ad-card__text {
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.45;
}

.ad__cta {
	flex: none;
	align-self: center;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 18px 5px;
	background: var(--orange);
	color: #fff;
	border: var(--line) solid var(--ink);
	border-radius: 999px;
	box-shadow: 2px 2px 0 var(--ink);
	font-family: var(--font-display);
	font-size: 1rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.ad--text {
		flex-direction: column;
		align-items: flex-start;
	}

	.ad--text .ad__cta {
		align-self: flex-start;
	}

	/* Keep the top slot short so the comic stays near the top on phones. */
	.ad-slot--leaderboard .ad__body {
		display: none;
	}

	.ad-slot--leaderboard .ad--text {
		flex-direction: row;
		align-items: center;
		padding: 12px 14px;
	}

	.ad-slot--leaderboard .ad__headline {
		font-size: 1.05rem;
	}

	.ad-slot--leaderboard .ad__cta {
		min-height: 38px;
		padding: 6px 12px 4px;
		font-size: 0.85rem;
		align-self: center;
	}
}

.hero + .ad-slot {
	margin-top: clamp(32px, 5vw, 56px);
	margin-bottom: 0;
}

/* In-feed native card: spans the whole grid row. */
.ad-card {
	grid-column: 1 / -1;
}

.ad-card__link {
	display: grid;
	grid-template-columns: 1fr;
	height: 100%;
	color: var(--ink);
	text-decoration: none;
	background:
		repeating-linear-gradient(-45deg, rgba(30, 139, 255, 0.07) 0 14px, transparent 14px 28px),
		var(--card);
	border: var(--line) dashed var(--ink);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: transform 0.15s, box-shadow 0.15s;
}

.ad-card__link:hover {
	color: var(--ink);
	transform: translate(-3px, -3px);
	box-shadow: 9px 9px 0 var(--ink);
}

.ad-card--has-image .ad-card__link {
	border-style: solid;
}

@media (min-width: 700px) {
	.ad-card--has-image .ad-card__link {
		grid-template-columns: minmax(240px, 360px) 1fr;
	}
}

.ad-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	background: var(--night);
}

.ad-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ad-card__body {
	display: grid;
	align-content: center;
	justify-items: start;
	gap: 6px;
	padding: clamp(18px, 3vw, 28px) clamp(20px, 3vw, 32px);
}

.ad-card__body .ad__cta {
	margin-top: 8px;
}

/* Wide banner: the whole image across the top, copy and button below. */
.ad-card--banner .ad-card__link {
	border-style: solid;
	grid-template-columns: 1fr;
}

.ad-card--banner .ad-card__media {
	aspect-ratio: auto;
	border-bottom: var(--line) solid var(--ink);
}

.ad-card--banner .ad-card__media img {
	height: auto;
	object-fit: initial;
}

@media (min-width: 700px) {
	.ad-card--banner .ad-card__body {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"label cta"
			"headline cta"
			"text cta";
		column-gap: 28px;
		align-items: center;
	}

	.ad-card--banner .ad-card__label { grid-area: label; }
	.ad-card--banner .ad-card__headline { grid-area: headline; }
	.ad-card--banner .ad-card__text { grid-area: text; }

	.ad-card--banner .ad__cta {
		grid-area: cta;
		margin-top: 0;
	}
}

/* ------------------------------------------------------------------ Share */

.share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 14px;
	margin: 26px 0 0;
}

.share__label {
	margin: 0;
	font-family: var(--font-hand);
	font-size: 1.3rem;
	color: var(--ink);
}

.share__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.share__btn {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 6px 14px;
	background: var(--card);
	color: var(--ink);
	border: 2px solid var(--ink);
	border-radius: 999px;
	box-shadow: 2px 2px 0 var(--ink);
	font: 800 0.9rem/1 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.12s, box-shadow 0.12s, background-color 0.12s;
}

.share__btn:hover {
	color: var(--ink);
	transform: translate(-1px, -1px);
	box-shadow: 3px 3px 0 var(--ink);
}

.share__btn--x:hover { background: #e7e9ee; }
.share__btn--facebook:hover { background: #dbe7ff; }
.share__btn--linkedin:hover { background: #d7ebf7; }
.share__btn--reddit:hover { background: #ffe1d4; }
.share__btn--bluesky:hover { background: #d9ecff; }
.share__btn--email:hover { background: var(--note); }

.share__btn--native,
.share__btn--copy {
	background: var(--note);
}

.share__btn.is-done {
	background: #c8f7d4;
}

/* ============================================================ Membership */

/* Header call to action */
.primary-nav {
	display: flex;
	align-items: center;
	gap: 10px;
}

.primary-nav__cta {
	display: flex;
	align-items: center;
}

.button--sm {
	min-height: 40px;
	padding: 6px 16px 4px;
	font-size: 0.95rem;
	box-shadow: 3px 3px 0 var(--ink);
}

.site-header .button--sm {
	border-color: var(--ink);
}

.nav-account {
	display: block;
	padding: 8px 14px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 999px;
	color: var(--on-night);
	font-weight: 800;
	font-size: 0.95rem;
	text-decoration: none;
}

.nav-account:hover {
	color: #fff;
	border-color: #fff;
}

@media (max-width: 1040px) {
	.js .primary-nav.is-open {
		display: block;
	}

	.js .primary-nav__cta {
		margin-top: 10px;
		padding: 0 14px;
	}
}

/* Flash notices */
.notice-banner {
	max-width: calc(var(--max) - 2 * var(--gutter) + 2 * var(--gutter));
	margin: 18px auto 0;
	padding: 0 var(--gutter);
}

.notice-banner p {
	margin: 0;
	padding: 12px 18px;
	border: var(--line) solid var(--ink);
	border-radius: 12px;
	box-shadow: var(--shadow-sm);
	font-weight: 700;
	background: var(--note);
}

.notice-banner--success p {
	background: #c8f7d4;
}

.notice-banner--error p {
	background: #ffd9d3;
}

/* Lock badge */
.lock-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px 3px;
	background: var(--ink);
	color: #fff;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.4;
	white-space: nowrap;
}

.episode-card__media .lock-badge {
	position: absolute;
	left: 10px;
	top: 10px;
	box-shadow: 0 0 0 2px #fff;
}

/* Subscribe form */
.subscribe-form {
	position: relative;
}

.subscribe-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.subscribe-form__input {
	flex: 1 1 220px;
	min-width: 0;
	min-height: 52px;
	padding: 0 20px;
	background: #fff;
	color: var(--ink);
	border: var(--line) solid var(--ink);
	border-radius: 999px;
	font: 600 1.05rem var(--font-body);
}

.subscribe-form__input:focus {
	outline: 3px solid var(--orange);
	outline-offset: 2px;
}

.subscribe-form__button {
	flex: 0 0 auto;
	cursor: pointer;
	min-height: 52px;
}

.subscribe-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.subscribe-form__fine {
	margin: 10px 4px 0;
	color: var(--muted);
	font-size: 0.85rem;
	line-height: 1.5;
}

/* Perks list */
.perks {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	display: grid;
	gap: 10px;
}

.perks li {
	position: relative;
	padding-left: 34px;
	font-weight: 700;
	line-height: 1.45;
}

.perks li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	width: 24px;
	height: 24px;
	display: grid;
	place-items: center;
	background: var(--orange);
	color: #fff;
	border: 2px solid var(--ink);
	border-radius: 50%;
	font-size: 0.8rem;
	font-weight: 900;
}

.perks--light li {
	color: var(--on-night);
}

/* Paywall */
.paywall {
	display: grid;
	gap: clamp(20px, 3vw, 32px);
	align-items: center;
	margin: 0 auto;
	max-width: 1000px;
}

@media (min-width: 860px) {
	.paywall--episode {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	}
}

.paywall__preview {
	position: relative;
	border: var(--line) solid var(--ink);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 10px 10px 0 var(--ink);
	background: var(--night);
}

.paywall__preview-img {
	width: 100%;
	filter: blur(7px) saturate(1.15);
	transform: scale(1.08);
}

.paywall__panel {
	padding: clamp(22px, 4vw, 36px);
	background: var(--card);
	border: var(--line) solid var(--ink);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.paywall__panel .sticky-note {
	margin-bottom: 10px;
}

.paywall__title {
	font-size: clamp(1.7rem, 4vw, 2.4rem);
	margin-bottom: 8px;
}

.paywall__lede {
	margin: 0 0 18px;
	color: var(--muted);
}

.paywall__signin {
	margin: 14px 0 0;
	font-size: 0.9rem;
	font-weight: 700;
}

.episode__excerpt--teaser {
	max-width: 760px;
	margin: 0 auto 28px;
}

/* Free-read meter */
.meter-banner {
	max-width: 1100px;
	margin: 0 auto 20px;
}

.meter-banner p {
	margin: 0;
	padding: 10px 16px;
	background: var(--note);
	border: 2px dashed var(--ink);
	border-radius: 10px;
	text-align: center;
	font-size: 0.95rem;
}

/* Subscribe band */
.subscribe-band {
	background:
		radial-gradient(50% 80% at 0% 0%, rgba(30, 139, 255, 0.35), transparent 70%),
		radial-gradient(40% 70% at 100% 100%, rgba(255, 122, 26, 0.3), transparent 70%),
		var(--night);
	border-top: var(--line) solid var(--ink);
	border-bottom: var(--line) solid var(--ink);
	color: var(--on-night);
	padding: clamp(36px, 6vw, 64px) 0;
}

.subscribe-band__inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: grid;
	gap: 24px 48px;
	align-items: center;
}

@media (min-width: 900px) {
	.subscribe-band__inner {
		grid-template-columns: 1fr 1fr;
	}
}

.subscribe-band__title {
	color: #fff;
	font-size: clamp(2rem, 4.5vw, 3rem);
	text-shadow: 0 3px 0 var(--ink);
	margin-bottom: 18px;
}

.subscribe-band .perks {
	margin: 0;
}

.subscribe-band .subscribe-form__fine {
	color: var(--on-night-muted);
}

.section + .subscribe-band {
	margin-top: 0;
}

.subscribe-band + .section {
	padding-top: clamp(44px, 7vw, 88px);
}

/* ===================================================== Conflict Resolution */

.post-grid {
	display: grid;
	grid-auto-flow: row dense;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: clamp(22px, 3vw, 34px);
}

.post-card__link {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	padding: 22px 22px 20px;
	background: var(--card);
	color: inherit;
	border: var(--line) solid var(--ink);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	text-decoration: none;
	transition: transform 0.15s, box-shadow 0.15s;
}

.post-card__link:hover {
	color: inherit;
	transform: translate(-3px, -3px) rotate(0.3deg);
	box-shadow: 9px 9px 0 var(--ink);
}

.post-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.post-card__kicker {
	font-family: var(--font-hand);
	font-size: 1.15rem;
	color: var(--blue-deep);
}

.post-card__kicker::before {
	content: "$ git merge --resolve ";
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 0.75rem;
	color: var(--muted);
}

.post-card__title {
	font-size: 1.5rem;
	margin: 0;
}

.post-card__link:hover .post-card__title {
	color: var(--blue-deep);
}

.post-card__excerpt {
	color: var(--muted);
	font-size: 0.98rem;
	line-height: 1.5;
}

.post-card__meta {
	margin-top: auto;
	padding-top: 8px;
	color: var(--muted);
	font-size: 0.82rem;
	font-weight: 700;
}

/* Single article */
.article {
	max-width: calc(820px + 2 * var(--gutter));
	margin: 0 auto;
	padding: clamp(32px, 5vw, 56px) var(--gutter) clamp(48px, 7vw, 88px);
}

.article__header {
	text-align: center;
	margin-bottom: clamp(24px, 4vw, 36px);
}

.article__title {
	font-size: clamp(2rem, 5.5vw, 3.2rem);
	margin: 4px 0 8px;
	text-shadow: 3px 3px 0 var(--amber);
}

.article__meta {
	margin: 0;
	color: var(--muted);
	font-weight: 600;
}

.article__inspired {
	margin: 10px 0 0;
	font-weight: 700;
}

.article__body {
	font-size: 1.1rem;
}

.article .share {
	margin-top: 30px;
}

.article__cta {
	margin-top: 32px;
}

.article__cta-title {
	font-size: 1.6rem;
}

.entry-content code {
	padding: 1px 6px;
	background: #f3ecdf;
	border: 1px solid rgba(11, 20, 48, 0.15);
	border-radius: 5px;
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 0.9em;
}

.entry-content pre {
	padding: 16px 18px;
	background: var(--night);
	color: #e9efff;
	border: var(--line) solid var(--ink);
	border-radius: 10px;
	overflow-x: auto;
	font-size: 0.9rem;
	line-height: 1.5;
}

.entry-content pre code {
	padding: 0;
	background: none;
	border: 0;
	color: inherit;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.3em;
}

.entry-content li + li {
	margin-top: 0.35em;
}

/* "The lesson behind the joke" */
.lesson {
	display: grid;
	gap: 16px;
}

.lesson__title {
	font-size: 1.6rem;
	margin: 0;
	text-align: center;
}

.lesson__note {
	margin: -6px 0 0;
	text-align: center;
	color: var(--muted);
	font-weight: 700;
}

.lesson--more {
	margin-top: 36px;
}

.free-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px 3px;
	background: #c8f7d4;
	color: var(--ink);
	border: 2px solid var(--ink);
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.4;
	white-space: nowrap;
}

/* ============================================================= Account */

.account-grid {
	display: grid;
	gap: 24px;
}

.account__title {
	font-size: 1.5rem;
}

.toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 6px;
	font-weight: 800;
	cursor: pointer;
}

.toggle input {
	width: 22px;
	height: 22px;
	accent-color: var(--orange);
}

.panel--danger {
	border-style: dashed;
}

.panel--danger .account__title {
	color: #b42318;
}

.button--danger {
	margin-top: 10px;
	background: #d92d20;
	color: #fff;
	cursor: pointer;
}

.account-grid .button {
	cursor: pointer;
}

/* Subscribe page */
.subscribe-panel {
	margin-bottom: 40px;
}

.faq__title {
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 1.2rem;
	font-weight: 800;
	text-align: center;
}

.faq__item {
	margin-bottom: 12px;
	background: var(--card);
	border: var(--line) solid var(--ink);
	border-radius: 12px;
	box-shadow: var(--shadow-sm);
}

.faq__item summary {
	cursor: pointer;
	padding: 14px 18px;
	font-weight: 800;
}

.faq__item p {
	margin: 0;
	padding: 0 18px 16px;
	color: var(--muted);
}

/* ================================================================= Search */

.nav-search {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--on-night);
	font-weight: 800;
	font-size: 0.95rem;
	text-decoration: none;
}

.nav-search:hover,
.nav-search[aria-expanded="true"] {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.primary-nav__cta .button {
	white-space: nowrap;
}

/* Mid-width desktops: tighten the header so six links, search and the
   Subscribe button fit on one line. */
@media (min-width: 1041px) and (max-width: 1240px) {
	.primary-nav__list a {
		padding: 8px 9px;
	}

	.nav-search {
		margin-right: 4px;
	}
}

@media (min-width: 1041px) and (max-width: 1180px) {
	.nav-search__text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}
}

.site-search {
	background: var(--night-2);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-search[hidden] {
	display: none;
}

.site-search__inner {
	max-width: 720px;
	margin: 0 auto;
	padding: 14px var(--gutter) 18px;
}

.search-form {
	display: flex;
	align-items: stretch;
	min-height: 52px;
	background: #fff;
	border: var(--line) solid var(--ink);
	border-radius: 999px;
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.search-form:focus-within {
	outline: 3px solid var(--orange);
	outline-offset: 2px;
}

.search-form__prompt {
	display: flex;
	align-items: center;
	padding-left: 18px;
	color: var(--muted);
	font: 700 0.85rem ui-monospace, SFMono-Regular, Consolas, monospace;
	white-space: nowrap;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	padding: 0 12px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font: 600 1.05rem var(--font-body);
}

.search-form__input:focus {
	outline: none;
}

.search-form__input::-webkit-search-cancel-button {
	cursor: pointer;
}

.search-form__button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 20px 0 18px;
	background: var(--blue);
	color: #fff;
	border: 0;
	border-left: var(--line) solid var(--ink);
	font-family: var(--font-display);
	font-size: 1rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
}

.search-form__button:hover {
	background: var(--blue-deep);
}

@media (max-width: 480px) {
	.search-form__prompt,
	.search-form__button-text {
		display: none;
	}

	.search-form__input {
		padding-left: 18px;
	}
}

.search-hero {
	max-width: 620px;
	margin: 22px auto 0;
}

.section__header .search-hero {
	margin-top: 18px;
}

.search-section__title {
	font-size: 1.7rem;
	margin: clamp(28px, 4vw, 44px) 0 18px;
}

.section--search .page-header + .search-section__title {
	margin-top: 0;
}

.search-empty {
	max-width: 680px;
	margin: 0 auto;
}

.search-empty__title {
	font-size: 1.6rem;
}

mark {
	background: var(--note);
	color: inherit;
	padding: 0 2px;
	border-radius: 3px;
	box-shadow: 0 1px 0 rgba(11, 20, 48, 0.25);
}

/* ================================================= Paul's Hint of the Week */

.sticky-note--hint {
	background: #bfe3ff;
}

.hint__summary {
	max-width: 760px;
	margin: 0 auto 28px;
}

.hint__body h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 6px;
	border-bottom: 3px solid var(--note);
}

.hint__body h3 {
	color: var(--blue-deep);
}

.hint__body ul,
.hint__body ol {
	padding-left: 1.4em;
}

.hint-outline {
	max-width: 760px;
	margin: 0 auto 28px;
}

.hint-outline__title {
	font-size: 1.5rem;
	margin-bottom: 12px;
}

.hint-outline__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

.hint-outline__item--h2 {
	font-weight: 800;
	margin-top: 6px;
}

.hint-outline__item--h3 {
	padding-left: 22px;
	color: var(--muted);
	position: relative;
}

.hint-outline__item--h3::before {
	content: "↳";
	position: absolute;
	left: 4px;
}

.hint-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin: 30px 0 0;
}

.hint-nav__link {
	padding: 8px 16px;
	background: var(--card);
	color: var(--ink);
	border: 2px solid var(--ink);
	border-radius: 999px;
	box-shadow: 2px 2px 0 var(--ink);
	font-weight: 800;
	text-decoration: none;
}

.hint-nav__link:hover {
	background: var(--note);
	color: var(--ink);
}

/* Hint cards */
.hint-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: clamp(22px, 3vw, 34px);
}

.hint-card__link {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	padding: 22px 22px 20px;
	background: linear-gradient(160deg, #f3f8ff 0%, var(--card) 55%);
	color: inherit;
	border: var(--line) solid var(--ink);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	text-decoration: none;
	overflow: hidden;
	transition: transform 0.15s, box-shadow 0.15s;
}

.hint-card__link:hover {
	color: inherit;
	transform: translate(-3px, -3px) rotate(-0.3deg);
	box-shadow: 9px 9px 0 var(--ink);
}

.hint-card__number {
	position: absolute;
	right: -6px;
	bottom: -18px;
	font-family: var(--font-display);
	font-size: 6rem;
	line-height: 1;
	color: rgba(30, 139, 255, 0.09);
	pointer-events: none;
}

.hint-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.hint-card__kicker {
	font-family: var(--font-hand);
	font-size: 1.15rem;
	color: var(--blue-deep);
}

.hint-card__title {
	font-size: 1.55rem;
	margin: 0;
}

.hint-card__excerpt {
	color: var(--muted);
	font-size: 0.98rem;
	line-height: 1.5;
}

.hint-card__meta {
	margin-top: auto;
	padding-top: 8px;
	color: var(--muted);
	font-size: 0.82rem;
	font-weight: 700;
}

/* Home page spotlight */
.hint-spotlight {
	display: grid;
	gap: 24px 36px;
	align-items: center;
	padding: clamp(24px, 4vw, 40px);
	background: linear-gradient(135deg, #e6f2ff 0%, var(--card) 60%);
	border: var(--line) solid var(--ink);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

@media (min-width: 760px) {
	.hint-spotlight {
		grid-template-columns: auto 1fr;
	}
}

.hint-spotlight__badge {
	display: grid;
	place-items: center;
	width: 150px;
	height: 150px;
	margin: 0 auto;
	background: var(--blue);
	color: #fff;
	border: var(--line) solid var(--ink);
	border-radius: 50%;
	box-shadow: 0 0 0 6px var(--note), 0 0 0 9px var(--ink);
	text-align: center;
	transform: rotate(-6deg);
}

.hint-spotlight__badge-label {
	align-self: end;
	font-family: var(--font-hand);
	font-size: 1.3rem;
}

.hint-spotlight__badge-number {
	align-self: start;
	font-family: var(--font-display);
	font-size: 3rem;
	line-height: 1;
	text-shadow: 2px 2px 0 var(--ink);
}

.hint-spotlight__kicker {
	margin: 0 0 4px;
	color: var(--orange-deep);
	font-weight: 800;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hint-spotlight__title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	margin: 0 0 8px;
}

.hint-spotlight__title a {
	color: inherit;
	text-decoration: none;
}

.hint-spotlight__excerpt {
	margin: 0;
	color: var(--muted);
	font-size: 1.1rem;
}

.hint-spotlight__actions {
	justify-content: flex-start;
	margin-top: 18px;
}

/* Copy buttons on code blocks */
.entry-content pre.has-copy {
	position: relative;
	padding-top: 38px;
}

.code-copy {
	position: absolute;
	top: 8px;
	right: 8px;
	padding: 4px 12px;
	background: var(--note);
	color: var(--ink);
	border: 2px solid var(--ink);
	border-radius: 999px;
	font: 800 0.75rem var(--font-body);
	cursor: pointer;
}

.code-copy:hover {
	background: #fff;
}

/* ---------------------------------------------------------- Reduced motion */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
