/* =========================================================
   Indie Game Buzz – main stylesheet

   1. Fonts
   2. Design tokens
   3. Base
   4. Accessibility helpers
   5. Layout and pixel helpers
   6. Components: buttons, chips, icon buttons, dialog box, search form,
      pagination
   7. Header: brand, menu, submenus, tools, search panel
   8. Promo band, ground strip, footer
   9. Cards, section headings, sidebar widgets, forms
  10. Article page: header, image, layout, verdict, footer rows, author
  11. Article text (.prose): old posts' captions, embeds and pasted markup
  12. Home, archives, search and 404
  13. Promotion page (promotion.php)
  14. Reduced motion

   Convention: link colours set for an area are written with :where(),
   which adds no specificity, so component classes such as .btn and .chip
   always keep their own text colour. (Phase 2 found a dark tag with dark
   text when a link rule won.)
   ========================================================= */


/* ---------- 1. Fonts: Figtree, self-hosted (SIL Open Font License) ---------- */
@font-face {
	font-family: "Figtree";
	src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2");
	font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("../fonts/figtree-latin-400-italic.woff2") format("woff2");
	font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2");
	font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("../fonts/figtree-latin-800-normal.woff2") format("woff2");
	font-weight: 800; font-style: normal; font-display: swap;
}


/* ---------- 2. Design tokens ---------- */
:root {
	/* Colour: from the promo page, plus the tints the mockups use on ink */
	--sky: #9fd9ff;
	--sky-deep: #62bdf5;
	--sky-light: #bfe6ff;      /* bottom of the sky gradient */
	--ink: #1d1a3d;            /* text and pixel outlines */
	--ink-soft: #4a4670;       /* secondary text on light backgrounds */
	--ink-raised: #2c2858;     /* hover on ink */
	--ink-line: #3a3666;       /* rules on ink */
	--on-ink: #ffffff;         /* text on ink */
	--on-ink-soft: #c9c6e8;    /* secondary text on ink */
	--on-ink-body: #dedcf3;    /* longer text inside dialog boxes */
	--buzz: #ff8a1f;           /* IGB orange: buttons, scores, accents */
	--buzz-hover: #ffa24d;
	--grass: #4cb863;
	--grass-dark: #2f8a46;
	--dirt: #b4703f;
	--dirt-dark: #8e5530;
	--paper: #ffffff;
	--mist: #edf6ff;           /* pale blue panels */
	--rule: #d6e7f6;           /* thin rules on mist */

	/* Type */
	--font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--fs-xs: 0.8125rem;        /* 13px  small labels */
	--fs-sm: 0.9375rem;        /* 15px  meta, tagline, footer bar */
	--fs-body-sm: 1rem;        /* 16px  card text, sidebar */
	--fs-base: 1.125rem;       /* 18px  body */
	--fs-prose: 1.1875rem;     /* 19px  article text */
	--fs-md: 1.375rem;         /* 22px  card titles */
	--fs-lg: clamp(1.625rem, 1.25vw + 1.1rem, 2.125rem);    /* 26–34px band headings */
	--fs-xl: clamp(1.75rem, 2vw + 1rem, 2.25rem);           /* 28–36px section headings */
	--fs-2xl: clamp(1.875rem, 2.4vw + 0.875rem, 2.75rem);   /* 30–44px featured title */
	--fs-3xl: clamp(2.25rem, 3.6vw + 0.75rem, 3.75rem);     /* 36–60px article title */
	--lh-body: 1.6;
	--lh-prose: 1.7;
	--lh-tight: 1.12;

	/* Space */
	--space-3xs: 0.25rem;
	--space-2xs: 0.5rem;
	--space-xs: 0.75rem;
	--space-s: 1rem;
	--space-m: 1.5rem;
	--space-l: 2rem;
	--space-xl: 3rem;
	--space-2xl: 4rem;
	--gap: clamp(1.25rem, 3vw, 2rem);
	--section-y: clamp(3rem, 6vw, 4.5rem);
	--wrap: 1180px;
	--measure: 720px;          /* article text column */

	/* Pixel art */
	--px: 4px;                 /* one "pixel" */
	--line: 3px;               /* ink outlines */
	--press: inset 0 calc(var(--px) * -1) 0 rgb(29 26 61 / 0.28);
	--tap: 44px;               /* minimum touch target */
}


/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
	color: var(--ink);
	background: var(--paper);
	overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; }
svg { display: block; }
/* Old [caption] shortcodes set an inline pixel width; never wider than
   the screen. Phase 4 styles captions and embeds properly. */
.wp-caption, iframe, embed, object { max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font);
	font-weight: 800;
	line-height: var(--lh-tight);
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); }
h4 { font-size: var(--fs-base); }
h5, h6 { font-size: var(--fs-body-sm); }

p { margin: 0 0 1em; }

a {
	color: inherit;
	text-underline-offset: 0.18em;
	text-decoration-thickness: 2px;
}
a:hover { text-decoration-color: var(--buzz); }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--buzz); color: var(--ink); }


/* ---------- 4. Accessibility helpers ---------- */

/* Focus ring follows the text colour, so it shows on light and dark areas.
   Notched elements (clip-path cuts outlines) draw their own, see below. */
:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute; left: 1rem; top: -5rem; z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--ink); color: var(--on-ink);
	font-weight: 700;
	text-decoration: none;
}
.skip-link:focus { top: 1rem; outline-color: var(--buzz); }


/* ---------- 5. Layout and pixel helpers ---------- */
.wrap {
	width: min(100% - 2.5rem, var(--wrap));
	margin-inline: auto;
}
.section { padding-block: var(--section-y); }

/* Pixel-stepped corners: one step (4px) or two steps (8px) */
.notch {
	clip-path: polygon(
		0 var(--px), var(--px) var(--px), var(--px) 0,
		calc(100% - var(--px)) 0, calc(100% - var(--px)) var(--px), 100% var(--px),
		100% calc(100% - var(--px)), calc(100% - var(--px)) calc(100% - var(--px)), calc(100% - var(--px)) 100%,
		var(--px) 100%, var(--px) calc(100% - var(--px)), 0 calc(100% - var(--px))
	);
}
.notch8 {
	clip-path: polygon(
		0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0,
		calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px,
		100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%,
		8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px)
	);
}

/* Pixel grass-and-dirt strip */
.ground {
	height: 40px;
	background:
		linear-gradient(var(--grass) 0 12px, var(--grass-dark) 12px 16px, transparent 16px),
		repeating-conic-gradient(var(--dirt) 0 25%, var(--dirt-dark) 0 50%) 0 16px / 16px 16px;
	background-color: var(--dirt);
	border-top: var(--px) solid var(--ink);
}


/* ---------- 6. Components ---------- */

/* Buttons: orange, pixel-notched, with a pressed shadow.
   They set their own text colour so link rules can't change it. */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	gap: 0.5em;
	min-height: 48px;
	padding: 0.7rem 1.5rem;
	font-family: var(--font);
	font-weight: 700;
	font-size: var(--fs-base);
	line-height: 1;
	color: var(--ink);
	background: var(--buzz);
	border: 0;
	border-radius: 0;
	text-decoration: none;
	cursor: pointer;
	box-shadow: var(--press);
	clip-path: polygon(
		0 var(--px), var(--px) var(--px), var(--px) 0,
		calc(100% - var(--px)) 0, calc(100% - var(--px)) var(--px), 100% var(--px),
		100% calc(100% - var(--px)), calc(100% - var(--px)) calc(100% - var(--px)), calc(100% - var(--px)) 100%,
		var(--px) 100%, var(--px) calc(100% - var(--px)), 0 calc(100% - var(--px))
	);
}
.btn:hover { color: var(--ink); background: var(--buzz-hover); }
.btn:active { box-shadow: inset 0 var(--px) 0 rgb(29 26 61 / 0.28); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 var(--px) var(--ink); }
.btn .icon { width: 20px; height: 20px; flex: none; }

.btn--sm { min-height: var(--tap); padding: 0.5rem 1.1rem; font-size: var(--fs-body-sm); }

.btn--ghost { background: var(--paper); box-shadow: inset 0 0 0 var(--line) var(--ink); }
.btn--ghost:hover { background: var(--mist); }
.btn--ghost:focus-visible { box-shadow: inset 0 0 0 5px var(--ink); }

/* Chips: category and tag labels */
.chip {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--ink);
	background: var(--sky);
	text-decoration: none;
}
.chip:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink); }
.chip--ink, .chip--ink:hover { color: var(--on-ink); background: var(--ink); }
.chip--ink:hover { text-decoration-color: var(--buzz); }
.chip--paper { background: var(--paper); }
.chip.notch:focus-visible { outline: none; box-shadow: inset 0 0 0 var(--line) var(--buzz); }
.chip--lg { padding: 0.45rem 0.9rem; font-size: var(--fs-sm); }

/* A row of chips: platforms on Game Reviews, sections on the 404 page */
.chip-nav { margin-top: 1.4rem; }
.chip-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Square icon buttons (search, menu) */
.iconbtn {
	display: inline-flex; align-items: center; justify-content: center;
	flex: none;
	width: var(--tap); height: var(--tap);
	padding: 0;
	color: var(--ink);
	background: var(--paper);
	border: 0;
	border-radius: 0;
	cursor: pointer;
	box-shadow: inset 0 0 0 var(--line) var(--ink);
	clip-path: polygon(
		0 var(--px), var(--px) var(--px), var(--px) 0,
		calc(100% - var(--px)) 0, calc(100% - var(--px)) var(--px), 100% var(--px),
		100% calc(100% - var(--px)), calc(100% - var(--px)) calc(100% - var(--px)), calc(100% - var(--px)) 100%,
		var(--px) 100%, var(--px) calc(100% - var(--px)), 0 calc(100% - var(--px))
	);
}
.iconbtn:hover { background: var(--mist); }
.iconbtn:focus-visible { outline: none; background: var(--buzz); }
.iconbtn .icon { width: 20px; height: 20px; }

/* Open/closed icon pairs inside toggle buttons */
[aria-expanded="true"] > .when-closed,
[aria-expanded="false"] > .when-open,
:not([aria-expanded]) > .when-open { display: none; }

/* RPG dialog box: an ink panel with a white pixel frame and an orange
   label on its top edge (home hero, 404). The verdict box is the same. */
.dialog {
	position: relative;
	padding: 2.6rem 2rem 2rem;
	color: var(--on-ink);
	background: var(--ink);
	box-shadow: inset 0 0 0 var(--px) var(--ink), inset 0 0 0 calc(var(--px) * 2) var(--paper);
}
.dialog__label {
	position: absolute;
	top: 0;
	left: var(--space-m);
	margin: 0;
	padding: 0.35rem 0.75rem 0.3rem;
	font-size: var(--fs-sm);
	font-weight: 800;
	line-height: 1.2;
	color: var(--ink);
	background: var(--buzz);
}
:where(.dialog) a { color: var(--on-ink); }
.dialog .search-form__input:focus-visible { outline-color: var(--buzz); }
@media (max-width: 559.98px) {
	.dialog { padding: 2.4rem 1.25rem 1.5rem; }
	.dialog__label { left: 1rem; }
}

/* Search form (the theme's own, and the Search block in widget areas) */
.search-form,
.wp-block-search .wp-block-search__inside-wrapper { display: flex; gap: var(--space-2xs); }
.search-form__input,
.wp-block-search .wp-block-search__input {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	padding: 0 0.9rem;
	font-size: var(--fs-body-sm);
	color: var(--ink);
	background: var(--paper);
	border: 0;
	border-radius: 0;
	box-shadow: inset 0 0 0 var(--line) var(--ink);
	-webkit-appearance: none;
	appearance: none;
}
.search-form__input::placeholder,
.wp-block-search .wp-block-search__input::placeholder { color: var(--ink-soft); opacity: 1; }
.search-form__input:focus-visible,
.wp-block-search .wp-block-search__input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.search-form__submit { flex: none; }
.wp-block-search .wp-block-search__button {
	flex: none;
	min-height: 48px;
	margin: 0;
	padding: 0 1.1rem;
	font-weight: 700;
	font-size: var(--fs-body-sm);
	color: var(--ink);
	background: var(--buzz);
	border: 0;
	border-radius: 0;
	box-shadow: var(--press);
	cursor: pointer;
}
.wp-block-search .wp-block-search__button:hover { background: var(--buzz-hover); }
.wp-block-search .wp-block-search__button:focus-visible { outline: none; box-shadow: inset 0 0 0 var(--px) var(--ink); }

/* Page numbers (the_posts_pagination) */
.pagination .nav-links {
	display: flex; flex-wrap: wrap; justify-content: center;
	gap: 0.6rem;
	margin-top: 3.5rem;
}
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	gap: 0.35em; /* "Next →": flex drops the space between word and arrow */
	min-width: 48px; height: 48px;
	padding: 0 0.9rem;
	font-weight: 800;
	text-decoration: none;
	color: var(--ink);
	background: var(--paper);
	box-shadow: inset 0 0 0 var(--line) var(--ink);
}
.pagination a.page-numbers:hover { background: var(--mist); }
.pagination .page-numbers.current { background: var(--buzz); box-shadow: var(--press); }
.pagination .page-numbers.dots { box-shadow: none; }


/* ---------- 7. Header ----------
   Small screens (< 900px): name, menu button and search on one row; the
   menu opens as a panel below.
   Medium (900–1199px): name and tools on the first row, menu on the second.
   Large (1200px+): everything on one row, as in the mockups. */
.site-header {
	position: relative;
	z-index: 20;
	background: var(--sky);
}

.site-header__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	grid-template-areas:
		"brand toggle tools"
		"nav   nav    nav";
	align-items: center;
	column-gap: var(--space-xs);
	padding-block: var(--space-s);
}

/* Name and tagline (or logo) */
.brand {
	grid-area: brand;
	justify-self: start;
	display: flex;
	flex-direction: column;
	line-height: 1.1;
	color: var(--ink);
	text-decoration: none;
}
.brand__name {
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.brand__tagline {
	max-width: 19rem;
	margin-top: 0.15rem;
	font-size: var(--fs-sm);
	font-weight: 700;
	color: var(--ink-soft);
}
a.brand:hover .brand__name { text-decoration: underline; text-decoration-color: var(--buzz); text-decoration-thickness: 3px; }
.brand--logo .custom-logo-link { display: block; }
.brand--logo img { display: block; width: auto; max-height: 64px; }

.menu-toggle { grid-area: toggle; }

.site-tools {
	grid-area: tools;
	display: flex;
	align-items: center;
	gap: var(--space-xs);
}

/* Main menu */
.site-nav { grid-area: nav; }

.nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nav li { position: relative; }
.nav > li { display: flex; align-items: center; }

.nav a {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
	text-underline-offset: 0.3em;
}
.nav a:hover {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-decoration-color: var(--buzz);
}
/* Current section: ink underline (orange on sky is too faint to rely on) */
.nav .current-menu-item > a,
.nav .current-menu-ancestor > a,
.nav .current-menu-parent > a,
.nav .current-post-ancestor > a,
.nav .current-cat > a {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-decoration-color: var(--ink);
}
.nav .current-menu-item > a:hover,
.nav .current-menu-ancestor > a:hover,
.nav .current-menu-parent > a:hover,
.nav .current-post-ancestor > a:hover { text-decoration-color: var(--buzz); }

.submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: var(--tap);
	margin-left: 0.15rem;
	margin-right: -0.4rem;
	padding: 0;
	color: var(--ink);
	background: none;
	border: 0;
	cursor: pointer;
}
.submenu-toggle .icon { width: 12px; height: 12px; }
.submenu-toggle[aria-expanded="true"] .icon { transform: scaleY(-1); }

.sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__cta { display: none; }

/* Search panel under the header row */
.search-panel { padding-bottom: 1.25rem; }
.search-panel .search-form { max-width: 44rem; }

/* With JavaScript, the menu (small screens) and search start closed.
   Without it, both stay open and the toggle buttons are hidden. */
.js .search-panel:not(.is-open) { display: none; }
.no-js .search-toggle,
.no-js .menu-toggle { display: none; }

/* Small screens */
@media (max-width: 899.98px) {
	.site-nav {
		margin-top: var(--space-s);
		padding-top: var(--space-2xs);
		border-top: var(--line) solid var(--ink);
	}
	.js .site-nav:not(.is-open) { display: none; }

	.nav { display: block; }
	.nav > li { display: block; border-bottom: 2px solid rgb(29 26 61 / 0.15); }
	.nav a { display: flex; min-height: 48px; }
	.submenu-toggle { display: none; }
	.nav .sub-menu { padding: 0 0 var(--space-2xs) var(--space-s); }
	.nav .sub-menu a { min-height: var(--tap); font-size: var(--fs-body-sm); }
}

@media (max-width: 559.98px) {
	/* Icon-only search button, so the field has room for its placeholder */
	.search-form__submit { min-width: 48px; padding-inline: 0.8rem; }
	.search-form__label {
		position: absolute;
		width: 1px; height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
	.brand__name { font-size: 1.5rem; }
	.brand__tagline { font-size: 0.875rem; }
	.site-tools__cta { display: none; }
	.site-nav__cta { display: flex; width: 100%; margin-block: var(--space-s) var(--space-2xs); }
}

/* Medium and large screens */
@media (min-width: 900px) {
	.site-header__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"brand tools"
			"nav   nav";
		column-gap: var(--space-l);
	}
	.menu-toggle { display: none; }
	.site-nav { margin-top: var(--space-2xs); }

	/* Dropdown submenus */
	.nav .sub-menu {
		position: absolute;
		top: 100%;
		left: -0.75rem;
		z-index: 30;
		display: none;
		min-width: 15rem;
		padding: 0.5rem;
		background: var(--paper);
		box-shadow: inset 0 0 0 var(--line) var(--ink), inset 0 calc(var(--px) * -2) 0 var(--ink);
	}
	.nav .is-open > .sub-menu { display: block; }
	.no-js .nav li:focus-within > .sub-menu { display: block; }
	.nav .sub-menu a {
		display: flex;
		width: 100%;
		min-height: var(--tap);
		padding: 0 0.75rem;
		font-size: var(--fs-body-sm);
		white-space: nowrap;
	}
	.nav .sub-menu a:hover { background: var(--mist); }
	.nav .sub-menu a:focus-visible { outline-offset: -3px; }
}
@media (min-width: 900px) and (hover: hover) {
	.nav > li:hover > .sub-menu { display: block; }
}

@media (min-width: 1200px) {
	.site-header__inner {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "brand nav tools";
	}
	.site-nav { margin-top: 0; justify-self: end; }
	.nav { justify-content: flex-end; }
}


/* ---------- 8. Promo band, footer ---------- */
.promo-band { background: var(--ink); color: var(--on-ink); }
.promo-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-m);
	padding-block: var(--space-xl);
}
.promo-band__title { font-size: var(--fs-lg); margin: 0 0 0.3rem; }
.promo-band__text { margin: 0; max-width: 40rem; color: var(--on-ink-soft); }

.site-footer { background: var(--ink); color: var(--on-ink); }
:where(.site-footer) a { color: var(--on-ink); }

.site-footer__main {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-l) var(--space-2xl);
	padding-block: var(--space-xl) var(--space-l);
}
/* Columns: about text, Explore links, Follow buttons, optional widgets.
   The last two shrink and wrap their contents before dropping a row. */
.site-footer__about { flex: 0 1 22rem; }
.site-footer__nav { flex: 0 0 auto; }
.site-footer__social { flex: 1 1 14rem; }
.site-footer__about p { margin: var(--space-s) 0 0; font-size: var(--fs-body-sm); color: var(--on-ink-soft); }
.site-footer .brand { color: var(--on-ink); }
.site-footer .brand__tagline { color: var(--on-ink-soft); }

.site-footer__heading,
.site-footer .widget-title {
	margin: 0 0 0.6rem;
	font-size: 0.875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--on-ink-soft);
}

.footer-menu {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, auto));
	gap: 0.2rem 2.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.footer-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	font-weight: 700;
	text-decoration: none;
}
.footer-menu a:hover { text-decoration: underline; text-decoration-color: var(--buzz); }

.social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.social a {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
	padding: 0 0.9rem;
	font-size: var(--fs-sm);
	font-weight: 700;
	text-decoration: none;
	box-shadow: inset 0 0 0 var(--line) var(--on-ink);
}
.social a:hover { background: var(--ink-raised); }
.social a:focus-visible { outline: none; background: var(--on-ink); color: var(--ink); }

.site-footer__widgets { flex: 1 1 14rem; max-width: 22rem; font-size: var(--fs-body-sm); }
.site-footer__widgets .widget + .widget { margin-top: var(--space-m); }

.site-footer__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-s);
	padding-block: 1.2rem;
	border-top: 2px solid var(--ink-line);
	font-size: var(--fs-sm);
	color: var(--on-ink-soft);
}
.site-footer__bar p { margin: 0; }
.to-top { font-weight: 700; }


/* ---------- 9. Cards, section headings, sidebar widgets, forms ---------- */

/* Section heading with a pixel square in front */
.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-s);
	margin-bottom: var(--space-l);
}
.section-head__title { margin: 0; font-size: var(--fs-xl); }
.section-head__more { font-weight: 700; }
.section-head__title::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 12px;
	vertical-align: 4px;
	background: var(--buzz);
	box-shadow: var(--px) var(--px) 0 var(--ink);
}

/* Post cards */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 2.5rem var(--space-l);
}
.card-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }

.card {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	min-width: 0;
}
.card__img {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: repeating-linear-gradient(45deg, #d6ecfb 0 12px, #cbe6f9 12px 24px);
	box-shadow: 0 0 0 var(--line) var(--ink);
}
.card__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.card__noimg { display: block; }

/* Orange score badge on a card image */
.score-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	color: var(--ink);
	background: var(--buzz);
	box-shadow: var(--press);
}
.score-badge b { font-size: 1.625rem; font-weight: 800; line-height: 1; }
.score-badge span { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

.card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.9rem;
	font-size: var(--fs-sm);
	font-weight: 700;
	color: var(--ink-soft);
}
.card__meta .chip { font-size: var(--fs-xs); }
.card__title { margin: 0.2rem 0 0; font-size: var(--fs-md); }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-decoration-color: var(--buzz); }
.card__excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: var(--fs-body-sm);
	color: var(--ink-soft);
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
}

/* Sidebar widgets (classic Search, Recent Posts, Categories, and others) */
.sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--space-m);
	min-width: 0;
	font-size: var(--fs-body-sm);
}
.sidebar .widget { padding: 1.4rem; background: var(--mist); }
.sidebar .widget-title { margin: 0 0 0.8rem; font-size: 1.25rem; }
.sidebar .widget ul { margin: 0; padding: 0; list-style: none; }
.sidebar .widget li a {
	display: block;
	padding: 0.45rem 0;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
	border-bottom: 2px solid var(--rule);
}
.sidebar .widget li a:hover { text-decoration: underline; text-decoration-color: var(--buzz); }
.sidebar .widget li a .count { float: right; margin-left: 0.5rem; color: var(--ink-soft); }
.sidebar .widget li a:hover .count { text-decoration: none; }
.sidebar .widget li .sub-menu,
.sidebar .widget li .children { padding-left: var(--space-s); }
.sidebar .widget > :last-child { margin-bottom: 0; }
.sidebar .widget .post-date { display: block; padding-bottom: 0.4rem; font-size: var(--fs-xs); color: var(--ink-soft); }

/* Block widgets (the Widgets screen adds blocks since WordPress 5.8): a
   Heading block or the Search block's label stands in for the title */
.sidebar .widget :is(h2, h3, h4).wp-block-heading,
.sidebar .widget .wp-block-search__label {
	display: block;
	margin: 0 0 0.8rem;
	font-size: 1.25rem;
	font-weight: 800;
	line-height: var(--lh-tight);
}
.sidebar .widget .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
.sidebar .widget .wp-block-latest-posts__post-date { font-size: var(--fs-xs); color: var(--ink-soft); }

/* Any widget area: tag cloud as chips, dropdowns, images */
:is(.tagcloud, .wp-block-tag-cloud) { display: flex; flex-wrap: wrap; gap: 0.4rem; }
:is(.tagcloud, .wp-block-tag-cloud) a {
	display: inline-block;
	margin: 0;
	padding: 0.2rem 0.6rem;
	font-size: var(--fs-xs) !important; /* the tag cloud sizes tags with inline styles */
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	color: var(--ink);
	background: var(--paper);
}
:is(.tagcloud, .wp-block-tag-cloud) a:hover { text-decoration: underline; }
.widget select {
	width: 100%;
	min-height: 48px;
	padding: 0 0.6rem;
	font-size: var(--fs-body-sm);
	color: var(--ink);
	background: var(--paper);
	border: 0;
	border-radius: 0;
	box-shadow: inset 0 0 0 var(--line) var(--ink);
}
.widget img { display: block; height: auto; }
/* Narrow column: icon-only search button */
.sidebar .search-form__submit { min-width: 48px; padding-inline: 0.8rem; }
.sidebar .search-form__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Form fields: Contact Form 7 (Contact page, giveaway posts) and the
   password form on protected posts */
.wpcf7 label,
.post-password-form label { display: block; font-weight: 700; }
.wpcf7 :is(input:not([type="submit"], [type="checkbox"], [type="radio"], [type="file"], [type="hidden"]), textarea, select),
.post-password-form input[type="password"] {
	display: block;
	width: 100%;
	min-height: 48px;
	margin-top: 0.35rem;
	padding: 0.6rem 0.9rem;
	font-size: var(--fs-body-sm);
	font-weight: 400;
	color: var(--ink);
	background: var(--paper);
	border: 0;
	border-radius: 0;
	box-shadow: inset 0 0 0 var(--line) var(--ink);
	-webkit-appearance: none;
	appearance: none;
}
.wpcf7 textarea { min-height: 10rem; resize: vertical; }
.wpcf7 :is(input, textarea, select):focus-visible,
.post-password-form input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.wpcf7 input[type="submit"],
.post-password-form input[type="submit"] {
	min-height: 48px;
	padding: 0.7rem 1.5rem;
	font-weight: 700;
	color: var(--ink);
	background: var(--buzz);
	border: 0;
	border-radius: 0;
	cursor: pointer;
	box-shadow: var(--press);
}
.wpcf7 input[type="submit"]:hover,
.post-password-form input[type="submit"]:hover { background: var(--buzz-hover); }
.wpcf7 .wpcf7-not-valid-tip { display: block; margin-top: 0.3rem; font-size: var(--fs-sm); font-weight: 700; color: #b3261e; }
.wpcf7 form .wpcf7-response-output { margin: var(--space-s) 0 0; padding: 0.8rem 1rem; border: var(--line) solid currentColor; }
.wpcf7-spinner { vertical-align: middle; }


/* ---------- 10. Article page ---------- */

/* Header on sky, with a pixel cloud */
.article-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(var(--sky) 0 62%, var(--sky-light) 100%);
}
.article-hero__cloud {
	position: absolute;
	top: 10%;
	right: 6%;
	width: clamp(80px, 10vw, 130px);
	color: var(--paper);
}
@media (max-width: 599.98px) {
	.article-hero__cloud { display: none; }
}
.article-hero__inner {
	position: relative;
	padding-block: 2.8rem 2.6rem;
}
.article-hero__cats {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
	margin-bottom: var(--space-s);
}
.article-hero__title {
	max-width: 22em;
	margin-bottom: 0.8rem;
	font-size: var(--fs-3xl);
}
.article-hero__lead {
	max-width: 44rem;
	margin: 0;
	font-size: clamp(1.125rem, 0.5vw + 1rem, 1.3125rem);
	color: var(--ink-soft);
}

.article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.2rem;
	margin-top: 1.2rem;
	font-size: var(--fs-body-sm);
	font-weight: 700;
	color: var(--ink-soft);
}
:where(.article-meta) a { color: var(--ink); }
.article-meta__score {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2xs);
	text-decoration: none;
}
.article-meta__score:hover { text-decoration: underline; text-decoration-color: var(--ink); }
.score-chip {
	padding: 0.15rem 0.55rem;
	font-weight: 800;
	color: var(--ink);
	background: var(--buzz);
}

/* Featured image. Wide images fill a frame (16:9 on phones, 21:9 above);
   squarer ones show whole, centred on mist. */
.article-image { margin-block: 2.5rem 0; margin-inline: auto; }
.article-image__frame {
	display: flex;
	justify-content: center;
	background: var(--mist);
	box-shadow: 0 0 0 var(--line) var(--ink);
}
.article-image__img { display: block; }
.article-image--wide .article-image__img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
@media (min-width: 700px) {
	.article-image--wide .article-image__img { aspect-ratio: 21 / 9; }
}
.article-image--whole .article-image__img {
	width: auto;
	max-height: min(560px, 75vh);
	object-fit: contain;
}
.article-image__caption { margin-top: 0.6rem; font-size: var(--fs-sm); color: var(--ink-soft); }

/* Article beside the sidebar */
.article-layout {
	display: grid;
	gap: var(--space-xl) var(--space-2xl);
	padding-block: var(--space-xl) var(--space-2xl);
}
.article-main { min-width: 0; max-width: var(--measure); }
.article-layout--full .article-main { max-width: none; } /* "Full Width Page" template */
@media (min-width: 1000px) {
	.article-layout--sidebar {
		grid-template-columns: minmax(0, var(--measure)) minmax(260px, 340px);
		justify-content: space-between;
		align-items: start;
	}
}

/* Verdict box: an RPG dialog box with the score */
.verdict {
	position: relative;
	margin-top: var(--space-xl);
	padding: 2.6rem 2rem 2rem;
	color: var(--on-ink);
	background: var(--ink);
	box-shadow: inset 0 0 0 var(--px) var(--ink), inset 0 0 0 calc(var(--px) * 2) var(--paper);
	scroll-margin-top: var(--space-s);
}
.verdict__label {
	position: absolute;
	top: 0;
	left: var(--space-m);
	margin: 0;
	padding: 0.35rem 0.75rem 0.3rem;
	font-size: var(--fs-sm);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0;
	color: var(--ink);
	background: var(--buzz);
}
.verdict__body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-m) var(--space-l);
}
.verdict__score {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 120px;
	height: 120px;
	margin: 0;
	color: var(--ink);
	background: var(--buzz);
	box-shadow: inset 0 -6px 0 rgb(29 26 61 / 0.28);
}
.verdict__number { font-size: 3.25rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.verdict__outof { font-size: 0.875rem; font-weight: 800; }
.verdict__text { flex: 1 1 260px; }
.verdict__word {
	margin: 0 0 0.3rem;
	font-size: clamp(1.75rem, 1.5vw + 1.2rem, 2.125rem);
	font-weight: 800;
	line-height: 1.1;
}
.verdict__summary { margin: 0; color: var(--on-ink-body); }

/* Store links, tags and share links under the article */
.article-footer {
	display: grid;
	gap: 1.4rem;
	margin-top: 2.5rem;
}
.article-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2xs) var(--space-xs);
}
.article-row__label {
	margin: 0;
	font-size: var(--fs-base);
	letter-spacing: 0;
	line-height: var(--lh-body);
}
@media (min-width: 560px) {
	.article-row__label { flex: 0 0 7.5rem; }
}
.article-row__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
	margin: 0;
	padding: 0;
	list-style: none;
}
.article-row--share .article-row__list,
.article-row--stores .article-row__list { gap: 0.6rem; }
.article-row .btn .icon { width: 14px; height: 14px; }
.copy-link .btn[data-copied] { background: var(--mist); }

/* Author box (when the author has a bio) */
.author-box {
	display: flex;
	align-items: flex-start;
	gap: 1.2rem;
	margin-top: 2.5rem;
	padding: var(--space-m);
	background: var(--mist);
}
.author-box__avatar {
	flex: none;
	width: 72px;
	height: 72px;
	background: var(--sky-deep);
}
.author-box__title { margin: 0 0 0.3rem; font-size: 1.25rem; }
.author-box__text { min-width: 0; font-size: var(--fs-body-sm); color: var(--ink-soft); }
.author-box__text p { margin: 0 0 0.5rem; }
.author-box__more { margin: 0; }
.author-box__more a { font-weight: 700; color: var(--ink); }

/* Related posts band, and the home page's "Latest reviews" band */
.related,
.mist-band { padding-block: var(--space-2xl) 4.5rem; background: var(--mist); }
:is(.related, .mist-band) .card__meta .chip { background: var(--paper); }

/* Pages of a multi-page post (<!--nextpage-->) */
.page-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin-top: var(--space-l);
	font-weight: 800;
}
.page-links .post-page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 48px;
	text-decoration: none;
	background: var(--paper);
	box-shadow: inset 0 0 0 var(--line) var(--ink);
}
.page-links .post-page-numbers.current { background: var(--buzz); box-shadow: var(--press); }


/* ---------- 11. Article text ----------
   Most posts come from the Classic Editor between 2015 and 2021, so this
   styles plain HTML: [caption] figures, aligned images, bare YouTube links
   turned into players, and markup pasted in from other sites. */
.prose {
	font-size: var(--fs-prose);
	line-height: var(--lh-prose);
}
.prose::after { content: ""; display: table; clear: both; }

.prose h2 { margin: 2.2rem 0 0.7rem; font-size: clamp(1.5rem, 1vw + 1.2rem, 1.875rem); }
.prose h3 { margin: 2rem 0 0.6rem; font-size: clamp(1.25rem, 0.5vw + 1.1rem, 1.4375rem); }
.prose :is(h4, h5, h6) { margin: 1.6rem 0 0.5rem; font-size: var(--fs-prose); }
.prose > :first-child { margin-top: 0; }
/* Empty headings left over in old posts (also removed in inc/content.php) */
.prose :is(h1, h2, h3, h4, h5, h6, p):empty { display: none; }

.prose :is(ul, ol) { margin: 0 0 1em; padding-left: 1.4em; }
.prose li + li { margin-top: 0.3em; }
.prose li > :is(ul, ol) { margin: 0.3em 0 0; }

.prose blockquote {
	margin: 1.6rem 0;
	padding: 1.1rem 1.4rem;
	font-size: 1.25rem;
	font-style: italic;
	background: var(--mist);
	border: 0;
	box-shadow: inset 6px 0 0 var(--sky-deep);
}
.prose blockquote > :last-child { margin-bottom: 0; }
.prose blockquote cite { display: block; margin-top: 0.5rem; font-size: var(--fs-sm); font-style: normal; font-weight: 700; }

.prose hr {
	height: var(--px);
	margin: 2.4rem 0;
	border: 0;
	background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 16px);
	clear: both;
}

.prose :is(pre, code, kbd) { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.875em; }
.prose code { padding: 0.1em 0.3em; background: var(--mist); }
.prose pre { margin: 1.6rem 0; padding: 1rem 1.2rem; overflow-x: auto; background: var(--mist); line-height: 1.5; }
.prose pre code { padding: 0; background: none; }

.prose table {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 1.6rem 0;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: var(--fs-body-sm);
	line-height: 1.5;
}
.prose :is(th, td) { padding: 0.5rem 0.7rem; text-align: left; vertical-align: top; border-bottom: 2px solid var(--rule); }
.prose th { font-weight: 800; border-bottom-color: var(--ink); }

/* Images and captions */
.prose img { height: auto; }
.prose :is(figure, .wp-caption) { max-width: 100%; margin: 1.6rem 0; }
.prose :is(figure, .wp-caption) img { display: block; }
.prose :is(figcaption, .wp-caption-text, .wp-caption-dd) {
	margin: 0.5rem 0 0;
	padding-left: 0.8rem;
	font-size: var(--fs-sm);
	line-height: 1.5;
	color: var(--ink-soft);
	box-shadow: inset 3px 0 0 var(--buzz);
}
.prose .aligncenter { display: block; margin-inline: auto; }
.prose figure.aligncenter,
.prose .wp-caption.aligncenter { display: table; } /* shrink to the image, then centre */
.prose .wp-block-image .aligncenter { display: table; margin-inline: auto; }
.prose :is(.alignleft, .alignright) { display: block; margin: 1.6rem auto; }
@media (min-width: 600px) {
	.prose :is(.alignleft, .alignright) { max-width: 45%; margin-block: 0.4rem 1rem; }
	.prose .alignleft { float: left; margin-right: 1.6rem; margin-left: 0; }
	.prose .alignright { float: right; margin-left: 1.6rem; margin-right: 0; }
}

/* Videos: YouTube and Vimeo players fill the column at 16:9, whether they
   came from a bare link, [embed], a pasted iframe or a block. */
.prose :is(iframe, embed, object, video) { max-width: 100%; }
.prose :not(.wp-block-embed__wrapper) > iframe:is([src*="youtube.com"], [src*="youtube-nocookie.com"], [src*="youtu.be"], [src*="vimeo.com"]) {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	margin: 1.6rem 0;
	border: 0;
	background: var(--ink);
	box-shadow: 0 0 0 var(--line) var(--ink);
}
.prose p > iframe:only-child { margin-block: 0; }
.prose .wp-block-embed { margin: 1.6rem 0; }
.prose .wp-block-embed.is-type-video .wp-block-embed__wrapper { background: var(--ink); box-shadow: 0 0 0 var(--line) var(--ink); }
.prose .wp-block-embed__wrapper iframe { border: 0; }

/* Formatting pasted in from Word, Wix, Steam and other sites: inline
   fonts, sizes and colours give way to the site's own. Bold, italics,
   alignment and links stay. */
.prose [style*="font-family"],
.prose [style*="font-size"],
.prose [style*="color"],
.prose [style*="line-height"],
.prose [style*="letter-spacing"],
.prose [style*="font-variant"],
.prose [style*="text-indent"] {
	font-family: inherit !important;
	font-size: inherit !important;
	font-variant: normal !important;
	line-height: inherit !important;
	letter-spacing: inherit !important;
	text-indent: 0 !important;
	color: inherit !important;
	background-color: transparent !important;
}


/* ---------- 12. Home, archives, search and 404 ---------- */

/* Sky with pixel clouds behind the content, ending in the ground strip */
.sky {
	position: relative;
	overflow: hidden;
	background: linear-gradient(var(--sky) 0 62%, var(--sky-light) 100%);
}
.sky__cloud { position: absolute; color: var(--paper); }
.sky > .wrap { position: relative; } /* in front of the clouds */

/* Home: the featured post's image beside a dialog box */
.home-hero__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	align-items: center;
	gap: 2.5rem;
	padding-block: 3rem 3.5rem;
}
.home-hero__cloud-1 { top: 8%; left: 44%; width: 150px; }
.home-hero__cloud-2 { top: 18%; right: 3%; width: 110px; opacity: 0.8; }
.home-hero__cloud-3 { top: 70%; left: 1%; width: 90px; opacity: 0.7; }
.home-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.9rem;
	margin-bottom: 0.6rem;
	font-size: var(--fs-sm);
	font-weight: 700;
	color: var(--on-ink-soft);
}
.home-hero__title { margin-bottom: 0.8rem; font-size: var(--fs-2xl); }
.home-hero__title a { text-decoration: none; }
.home-hero__title a:hover { text-decoration: underline; text-decoration-color: var(--buzz); }
.home-hero__excerpt { font-size: var(--fs-prose); color: var(--on-ink-body); }
@media (max-width: 879.98px) {
	/* One column: keep the clouds in the sky above the image */
	.home-hero__cloud-1,
	.home-hero__cloud-3 { display: none; }
	.home-hero__cloud-2 { top: 0.25rem; width: 64px; }
	.home-hero__inner { gap: 2rem; padding-block: 2.5rem 3rem; }
}

/* Archives, search and later home pages: label, title, description */
.listing-hero__inner { padding-block: 3rem; }
.listing-hero__cloud-1 { top: 14%; right: 10%; width: 130px; }
.listing-hero__cloud-2 { top: 52%; right: 30%; width: 90px; opacity: 0.75; }
.listing-hero__label { margin: 0 0 0.4rem; font-weight: 700; color: var(--ink-soft); }
.listing-hero__title { max-width: 22em; margin-bottom: 0.6rem; font-size: var(--fs-3xl); }
.listing-hero__title:last-child { margin-bottom: 0; }
.listing-hero__desc { max-width: 40rem; font-size: 1.25rem; color: var(--ink-soft); }
.listing-hero__desc > :last-child { margin-bottom: 0; }
.listing-hero__search { max-width: 44rem; margin-top: 1.4rem; }
.listing-hero__tip { margin: 1.4rem 0 0; font-weight: 700; }
.listing-hero__tip + .chip-nav { margin-top: 0.8rem; }
@media (max-width: 699.98px) {
	.listing-hero__inner { padding-block: 2.5rem; }
	.listing-hero__cloud-1 { top: 10%; right: 4%; width: 80px; }
	.listing-hero__cloud-2 { display: none; }
}

/* The card grid under a header */
.listing { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem); }
.listing--empty { padding-bottom: 0; }
.listing__empty { margin: 0; font-size: var(--fs-md); font-weight: 700; }

/* 404: a dialog box on sky */
.notfound__inner { padding-block: 3.5rem 4rem; }
.notfound__box { max-width: 46rem; margin-inline: auto; }
.notfound__cloud-1 { top: 12%; left: 6%; width: 140px; }
.notfound__cloud-2 { top: 60%; right: 6%; width: 100px; opacity: 0.8; }
.notfound__title { margin-bottom: 0.6rem; font-size: var(--fs-2xl); }
.notfound__text { color: var(--on-ink-body); }
.notfound .chip-nav { margin-top: 1.2rem; }
.notfound__home { margin: 1.4rem 0 0; font-weight: 700; }
@media (max-width: 699.98px) {
	.notfound__inner { padding-block: 2.5rem 3rem; }
	.notfound__cloud-1,
	.notfound__cloud-2 { display: none; }
}


/* ---------- 13. Promotion page (promotion.php) ----------
   The promo packages landing page from IGB_promo_page. Reuses .sky,
   .dialog, .chip-nav, .section-head, .ground and .btn; everything else is
   prefixed promo-. */
.promo-section { padding-block: var(--section-y); }
.promo-section--mist { background: var(--mist); }
.promo-section--ink { color: var(--on-ink); background: var(--ink); }
.promo-section .wrap.promo-narrow { width: min(100% - 2.5rem, 46rem); }
.promo-lede { max-width: 40rem; margin: calc(var(--space-s) * -1) 0 var(--space-xl); font-size: 1.25rem; color: var(--ink-soft); }
.promo-why p { font-size: 1.25rem; }
.promo-why p:last-child,
.promo-fit p:last-child { margin-bottom: 0; }

/* Yellow notes for empty fields, shown only to people who can edit */
.promo-todo {
	display: inline-block;
	padding: 0.1rem 0.4rem;
	font-size: var(--fs-sm);
	font-weight: 700;
	color: var(--ink);
	background: #fff1a8;
}
p.promo-todo { display: block; width: fit-content; }

/* Top of the page */
.promo-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	align-items: end;
	gap: clamp(2rem, 5vw, 4rem);
	padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 6vw, 4.5rem);
}
.promo-hero__cloud-1 { top: 6%; left: 54%; width: 150px; }
.promo-hero__cloud-2 { top: 28%; right: 3%; width: 110px; opacity: 0.8; }
.promo-hero__cloud-3 { top: 64%; left: 1%; width: 90px; opacity: 0.7; }
.promo-hero__title {
	max-width: 11em;
	margin-bottom: var(--space-m);
	font-size: clamp(2.25rem, 4.4vw + 0.5rem, 4.25rem);
	line-height: 1;
}
.promo-hero__text { max-width: 34rem; margin-bottom: var(--space-l); font-size: var(--fs-md); }
.promo-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-s) var(--space-m);
	margin-bottom: 2.5rem;
}
.promo-hero__status { max-width: 22rem; margin: 0; font-size: var(--fs-sm); }
.promo-proof {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs) var(--space-l);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--fs-sm);
}
.promo-proof li { max-width: 13rem; line-height: 1.35; }
.promo-proof strong {
	display: block;
	font-size: var(--fs-lg);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
}
.promo-hero__nav { margin-top: var(--space-l); }

/* The quote in a dialog box, with a blinking "more" caret */
.promo-quote {
	margin: 0 0 0.5rem;
	box-shadow: inset 0 0 0 var(--px) var(--ink), inset 0 0 0 calc(var(--px) * 2) var(--paper);
}
.promo-quote blockquote { margin: 0; }
.promo-quote blockquote p { margin: 0; font-size: var(--fs-md); font-weight: 700; line-height: 1.45; }
.promo-quote__caret {
	position: absolute;
	right: var(--space-m);
	bottom: var(--space-s);
	border-top: 8px solid var(--buzz);
	border-right: 7px solid transparent;
	border-left: 7px solid transparent;
	animation: promo-caret 1.1s steps(2, jump-none) infinite;
}
@keyframes promo-caret { 50% { transform: translateY(4px); } }

/* Where your game goes: four stops on a dotted path */
.promo-map {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}
.promo-map::before {
	content: "";
	position: absolute;
	top: 34px; left: 36px; right: 12%;
	height: var(--px);
	background: repeating-linear-gradient(90deg, var(--ink-soft) 0 8px, transparent 8px 16px);
}
.promo-stop { position: relative; }
.promo-stop:last-child { background: var(--mist); } /* the path ends at its icon */
.promo-stop__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin-bottom: 1.25rem;
	background: var(--paper);
	box-shadow: inset 0 0 0 var(--px) var(--ink);
	transition: background-color 160ms ease;
}
.promo-stop__icon svg { width: 36px; height: 36px; fill: var(--ink); fill-rule: evenodd; }
.promo-stop__title { margin-bottom: 0.4em; }
.promo-stop p { max-width: 18rem; margin: 0; color: var(--ink-soft); }
.promo-map[data-reach="1"] .promo-stop:nth-child(-n+1) .promo-stop__icon,
.promo-map[data-reach="2"] .promo-stop:nth-child(-n+2) .promo-stop__icon,
.promo-map[data-reach="3"] .promo-stop:nth-child(-n+3) .promo-stop__icon,
.promo-map[data-reach="4"] .promo-stop:nth-child(-n+4) .promo-stop__icon { background: var(--buzz); }

/* Packages */
.promo-tiers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: var(--gap);
	margin-top: var(--space-xl);
}
.promo-tier {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: var(--space-l) 1.75rem;
	background: var(--paper);
	box-shadow: inset 0 0 0 var(--line) var(--ink);
}
.promo-tier--featured {
	margin-block: -1rem;
	padding-top: 3.5rem;
	background: var(--sky);
	box-shadow: inset 0 0 0 var(--px) var(--ink), 0 calc(var(--px) * 3) 0 var(--ink);
}
.promo-tier__flag {
	position: absolute;
	top: 0; left: 0; right: 0;
	margin: 0;
	padding: 0.35rem 1.75rem;
	font-size: var(--fs-sm);
	font-weight: 700;
	color: var(--on-ink);
	background: var(--ink);
}
.promo-tier__name { margin-bottom: 0.3em; font-size: var(--fs-lg); }
.promo-tier__pitch { min-height: 3.2em; color: var(--ink-soft); }
.promo-tier--featured .promo-tier__pitch { color: var(--ink); }
.promo-tier__price {
	margin-bottom: var(--space-xs);
	font-size: var(--fs-xl);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
}
.promo-tier__slots { margin: -0.25rem 0 var(--space-xs); font-size: var(--fs-sm); font-weight: 700; }
.promo-tier__plus { margin-bottom: var(--space-2xs); font-weight: 700; }
.promo-tier .promo-ticks { margin-bottom: var(--space-l); }
.promo-tier .btn { width: 100%; margin-top: auto; line-height: 1.2; text-align: center; }
.promo-tier .promo-todo { margin-bottom: var(--space-xs); }

.promo-pips { display: flex; align-items: center; gap: 6px; margin: 0.25rem 0 var(--space-m); }
.promo-pip { width: 20px; height: 20px; background: var(--paper); box-shadow: inset 0 0 0 var(--line) var(--ink); }
.promo-pip.is-on { background: var(--buzz); }
.promo-pips__label { margin-left: 0.6rem; font-size: var(--fs-sm); font-weight: 700; }

/* Tick list: packages and "Is this for you?" */
.promo-ticks { margin: 0 0 var(--space-m); padding: 0; list-style: none; }
.promo-ticks li { position: relative; margin-bottom: 0.7rem; padding-left: 1.9rem; line-height: 1.5; }
.promo-ticks li::before {
	content: "";
	position: absolute;
	top: 0.35em; left: 0;
	width: 16px;
	height: 12px;
	background: var(--grass-dark);
	clip-path: polygon(0 50%, 25% 50%, 25% 66%, 37.5% 66%, 37.5% 83%, 50% 83%, 50% 33%, 62.5% 33%, 62.5% 16%, 75% 16%, 75% 0, 100% 0, 100% 16%, 87.5% 16%, 87.5% 33%, 75% 33%, 75% 50%, 62.5% 50%, 62.5% 100%, 25% 100%, 25% 83%, 12.5% 83%, 12.5% 66%, 0 66%);
}

/* Comparison table */
.promo-compare { margin-top: var(--space-xl); }
.promo-compare summary { width: fit-content; font-size: var(--fs-md); font-weight: 700; cursor: pointer; }
.promo-compare__scroll { margin-top: var(--space-m); overflow-x: auto; }
.promo-compare table { width: 100%; min-width: 640px; border-collapse: collapse; }
.promo-compare :is(th, td) {
	padding: 0.8rem 1rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 2px solid var(--rule);
}
.promo-compare thead th { font-weight: 800; border-bottom: var(--line) solid var(--ink); }
.promo-compare tbody th { font-weight: 400; color: var(--ink-soft); }
.promo-compare :is(th, td):nth-child(3) { background: var(--mist); }

/* Add-ons */
.promo-addons { margin: 0; padding: 0; list-style: none; }
.promo-addon {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: var(--space-s) var(--space-l);
	padding-block: var(--space-m);
	border-top: var(--line) solid var(--ink);
}
.promo-addon:last-child { border-bottom: var(--line) solid var(--ink); }
.promo-addon__name { margin-bottom: 0.25em; }
.promo-addon p { margin: 0; color: var(--ink-soft); }
.promo-addon .promo-addon__price { font-size: var(--fs-lg); font-weight: 800; color: var(--ink); white-space: nowrap; }
.promo-addon .btn { min-width: 10rem; white-space: nowrap; }

/* How it works: numbered steps joined by a dotted line */
.promo-steps {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}
.promo-steps li { position: relative; counter-increment: step; }
.promo-steps li::before {
	content: counter(step);
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: var(--space-s);
	font-size: var(--fs-md);
	font-weight: 800;
	color: var(--on-ink);
	background: var(--ink);
}
.promo-steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: calc(1.5rem - 2px); left: 3.5rem; right: calc(var(--gap) * -1 + 0.5rem);
	height: var(--px);
	background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 16px);
}
.promo-steps__title { margin-bottom: 0.3rem; font-size: var(--fs-base); font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.promo-steps p { margin: 0; font-size: var(--fs-body-sm); line-height: 1.5; color: var(--ink-soft); }

/* Results so far, on ink */
.promo-results__title { font-size: var(--fs-xl); }
.promo-case { max-width: 46rem; }
.promo-case__game { margin-bottom: var(--space-2xs); font-weight: 700; color: var(--sky); }
.promo-case__result { margin: 0; font-size: clamp(1.625rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }

/* Questions */
.promo-fit + .promo-faq { padding-top: 0; }
.promo-faq details { border-top: var(--line) solid var(--ink); }
.promo-faq details:last-of-type { border-bottom: var(--line) solid var(--ink); }
.promo-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-s);
	padding: 1.1rem 0;
	font-size: var(--fs-md);
	font-weight: 700;
	line-height: 1.3;
	list-style: none;
	cursor: pointer;
}
.promo-faq summary::-webkit-details-marker { display: none; }
.promo-faq summary::after {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: var(--ink);
	clip-path: polygon(37.5% 0, 62.5% 0, 62.5% 37.5%, 100% 37.5%, 100% 62.5%, 62.5% 62.5%, 62.5% 100%, 37.5% 100%, 37.5% 62.5%, 0 62.5%, 0 37.5%, 37.5% 37.5%);
}
.promo-faq details[open] summary::after { clip-path: polygon(0 37.5%, 100% 37.5%, 100% 62.5%, 0 62.5%); }
.promo-faq__answer { max-width: 38rem; padding-bottom: 1.25rem; color: var(--ink-soft); }
.promo-faq__answer > :last-child { margin-bottom: 0; }
.promo-faq details > .promo-todo { margin-bottom: 1.25rem; }

/* Closing section on sky, with the waitlist form */
.promo-final__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
	align-items: start;
	gap: clamp(2rem, 5vw, 4rem);
	padding-block: var(--section-y);
}
.promo-final__cloud { top: 10%; left: 38%; width: 120px; opacity: 0.85; }
.promo-final__title { font-size: var(--fs-2xl); }
.promo-final__copy p { max-width: 32rem; font-size: var(--fs-md); }
.promo-final__buttons {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--space-xs);
	width: min(100%, 20rem);
	margin: var(--space-m) 0 var(--space-l);
}
.promo-final .promo-final__aside { font-size: var(--fs-base); color: var(--ink-soft); }

.promo-waitlist {
	padding: var(--space-l) 1.75rem;
	background: var(--paper);
	box-shadow: inset 0 0 0 var(--px) var(--ink);
}
.promo-waitlist__title { margin-bottom: 1.25rem; font-size: var(--fs-lg); }
.promo-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: var(--space-s); }
.promo-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-s); }
.promo-field label { font-size: var(--fs-sm); font-weight: 700; }
.promo-field :is(input, select) {
	width: 100%;
	min-width: 0;
	min-height: 48px;
	padding: 0.55rem 0.75rem;
	font-size: var(--fs-body-sm);
	color: var(--ink);
	background: var(--paper);
	border: 0;
	border-radius: 0;
	box-shadow: inset 0 0 0 var(--line) var(--ink);
}
.promo-field :is(input, select):focus-visible { outline: 3px solid var(--buzz); outline-offset: 0; }
.promo-field input[aria-invalid="true"] { box-shadow: inset 0 0 0 var(--line) #b3261e; }
.promo-form .btn { width: 100%; margin-top: var(--space-2xs); }
.promo-form__status { margin: var(--space-s) 0 0; font-weight: 700; }
.promo-form__status:empty { display: none; }
.promo-form__status.is-error { color: #b3261e; }
.promo-form__status.is-ok { color: var(--grass-dark); }
.promo-form__alt { margin: var(--space-xs) 0 0; font-size: var(--fs-sm); color: var(--ink-soft); }

/* Narrower screens */
@media (max-width: 999.98px) {
	.promo-tiers { grid-template-columns: 1fr; max-width: 34rem; }
	/* Kept in order (the original moved Launch Boost first), so "Everything
	   in Spotlight, plus:" comes after Spotlight */
	.promo-tier--featured { margin-block: 0; }
	.promo-tier__pitch { min-height: 0; }
	.promo-steps { grid-template-columns: 1fr; max-width: 34rem; }
	.promo-steps li { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1.25rem; }
	.promo-steps li::before { grid-row: span 2; margin: 0; }
	.promo-steps li:not(:last-child)::after {
		top: 3.5rem; right: auto; bottom: calc(var(--gap) * -1 + 0.5rem); left: calc(1.5rem - 2px);
		width: var(--px);
		height: auto;
		background: repeating-linear-gradient(180deg, var(--ink) 0 8px, transparent 8px 16px);
	}
	.promo-addon { grid-template-columns: 1fr auto; }
	.promo-addon .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 859.98px) {
	.promo-hero__inner { grid-template-columns: 1fr; }
	.promo-quote { max-width: 32rem; }
	.promo-hero__cloud-1 { left: 60%; }
	.promo-map { grid-template-columns: 1fr; gap: 1.75rem; max-width: 34rem; }
	.promo-map::before {
		top: 36px; right: auto; bottom: 36px; left: 34px;
		width: var(--px);
		height: auto;
		background: repeating-linear-gradient(180deg, var(--ink-soft) 0 8px, transparent 8px 16px);
	}
	.promo-stop { display: grid; grid-template-columns: 72px 1fr; column-gap: 1.25rem; }
	.promo-stop__icon { grid-row: span 2; margin: 0; }
	.promo-final__inner { grid-template-columns: 1fr; }
}
@media (max-width: 639.98px) {
	.promo-hero__title { max-width: none; }
	.promo-hero__cloud-2,
	.promo-hero__cloud-3,
	.promo-final__cloud { display: none; }
	.promo-hero__cloud-1 { top: 0.75rem; right: -12px; left: auto; width: 84px; }
	.promo-proof { gap: var(--space-s) var(--space-m); }
	.promo-field-row { grid-template-columns: 1fr; gap: 0; }
	.promo-addon { grid-template-columns: 1fr; gap: var(--space-xs); }
	.promo-addon .btn { min-width: 0; }
	.promo-waitlist { padding: var(--space-m) 1.25rem; }
}


/* ---------- 14. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
