/*
 * ARGELIT News Promo — main stylesheet.
 *
 * The look of ARGELIT News Daily, the theme the presentation is about: a light grey page, white
 * surfaces divided by thin rules instead of floating cards, graphite type, wine-red labels with a
 * short dash, square corners and bold uppercase buttons, Playfair Display for the masthead and the
 * titles, Jost for text and labels, EB Garamond for leads, a dark panel beside the lead story and
 * a dark footer under a red band. Slides alternate white and grey (and sometimes the dark panel)
 * like pages of a deck.
 *
 * Breakpoints: 640px (two columns), 1024px (desktop layouts), 1200px (the full chapter bar).
 */

/* ------------------------------------------------------------------ Fonts */

@font-face {
	font-family: Jost;
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/jost-cyrillic-wght-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: Jost;
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url("../fonts/playfair-display-cyrillic-wght-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url("../fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "EB Garamond";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/eb-garamond-cyrillic-wght-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "EB Garamond";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/eb-garamond-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ Tokens */

:root {
	--ink: #1b1e24;
	--ink-2: #292e37;
	--panel: #272b33;
	--muted: #626873;
	--paper: #f4f5f7;
	--white: #fff;
	--mist: #e9ecf0;
	--line: #d6dae0;
	--line-dark: #454b55;
	--brand: #b3263a;
	--brand-dark: #8e1c2d;
	/* Brand red is too dark on the ink surfaces — this one is used there. */
	--brand-soft: #ec6b7c;
	--on-dark: #f7f8fa;
	--on-dark-muted: #b9bec7;
	--focus: #155eef;
	--sans: Jost, "Futura PT", Futura, "Century Gothic", system-ui, sans-serif;
	--serif: "EB Garamond", Garamond, "Times New Roman", serif;
	--didone: "Playfair Display", "Bodoni 72", Didot, Georgia, serif;
	--gutter: 16px;
	--container: 1360px;
	--measure: 780px;
	--header: 60px;
	--chapters: 48px;
	--ease: 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 640px) {
	:root {
		--gutter: 24px;
	}
}

@media (min-width: 1024px) {
	:root {
		--gutter: 40px;
		--header: 76px;
		--chapters: 52px;
	}
}

/* ------------------------------------------------------------------ Base */

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

html {
	--sticky: calc(var(--header) + var(--chapters) + 2px);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--sticky) + var(--sticky-admin, 0px));
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

@media (min-width: 601px) and (max-width: 782px) {
	html:has(> body.admin-bar) {
		--sticky-admin: 46px;
	}
}

@media (min-width: 783px) {
	html:has(> body.admin-bar) {
		--sticky-admin: 32px;
	}
}

body {
	margin: 0;
	overflow-x: hidden;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--sans);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.005em;
	text-wrap: balance;
	overflow-wrap: break-word;
}

p,
ul,
ol {
	margin: 0;
}

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

button {
	cursor: pointer;
}

code {
	font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
	font-size: 0.9em;
}

.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:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 12px 16px;
	margin: 0;
	clip: auto;
	background: var(--ink-2);
	color: var(--white);
	font: 700 0.875rem/1 var(--sans);
}

.container {
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
}

.container--narrow {
	--container: 860px;
}

.site-main:focus {
	outline: none;
}

.icon {
	flex: none;
	width: 18px;
	height: 18px;
}

/* ------------------------------------------------------------------ Labels and buttons */

/* Section label above a headline: red bold capitals after a short dash. */
.label {
	display: flex;
	align-items: center;
	max-width: 100%;
	margin: 0 0 10px;
	color: var(--brand);
	font: 600 0.75rem/1.3 var(--sans);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.label::before {
	content: "";
	flex: none;
	width: 20px;
	height: 2px;
	margin-right: 9px;
	background: currentColor;
}

.label__number {
	margin-right: 10px;
	color: var(--ink);
	font-family: var(--didone);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid var(--ink);
	border-radius: 0;
	background: var(--ink);
	color: var(--white);
	font: 700 0.75rem/1.2 var(--sans);
	letter-spacing: 0.06em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}

.button:hover {
	border-color: var(--brand);
	background: var(--brand);
	color: var(--white);
}

.button--small {
	min-height: 40px;
	padding: 0 16px;
}

.button--ghost {
	background: transparent;
	color: var(--ink);
}

.button--ghost:hover {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--white);
}

/* The call to action: brand red. */
.button--light {
	border-color: var(--brand);
	background: var(--brand);
	color: var(--white);
}

.button--light:hover {
	border-color: var(--brand-dark);
	background: var(--brand-dark);
	color: var(--white);
}

/* A light outline on the dark panel. */
.button--outline {
	border-color: var(--on-dark-muted);
	background: transparent;
	color: var(--on-dark);
}

.button--outline:hover {
	border-color: var(--white);
	background: var(--white);
	color: var(--ink);
}

.button .icon {
	width: 16px;
	height: 16px;
	margin-right: -4px;
}

/* ------------------------------------------------------------------ Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--white);
	border-bottom: 1px solid var(--ink);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__bar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	height: var(--header);
	padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
}

.logo {
	min-width: 0;
	margin: 0;
	font-family: var(--didone);
	font-size: clamp(1.125rem, 4.8vw, 1.5rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	white-space: nowrap;
}

.logo a:hover {
	color: var(--brand);
}

.site-header__start {
	grid-column: 2;
	grid-row: 1;
}

.site-header__end {
	display: none;
}

@media (min-width: 1024px) {
	.site-header__bar {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		gap: 24px;
	}

	.site-header__start {
		grid-column: 1;
	}

	.logo {
		grid-column: 2;
		grid-row: 1;
		font-size: clamp(1.75rem, 2.6vw, 2.5rem);
		text-align: center;
	}

	.site-header__end {
		display: flex;
		grid-column: 3;
		justify-content: flex-end;
	}

	.site-header__start .button,
	.site-header__end .button {
		min-height: 44px;
	}
}

/* The bar of chapters: the letter mark and the slides, like the rubric bar of the product.
   Narrow screens scroll it sideways. */
.chapters {
	border-top: 1px solid var(--ink);
	background: var(--white);
}

.chapters__inner {
	display: flex;
	align-items: stretch;
	height: var(--chapters);
	padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
	overflow-x: auto;
	scrollbar-width: none;
}

.chapters__inner::-webkit-scrollbar {
	display: none;
}

.chapters__mark {
	display: none;
}

.chapters__list {
	display: flex;
	flex: none;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chapters__list li {
	display: flex;
}

.chapters__list a {
	position: relative;
	display: flex;
	align-items: center;
	padding: 0 14px;
	border-right: 1px solid var(--line);
	font: 700 0.75rem/1 var(--sans);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color var(--ease), background-color var(--ease);
}

.chapters__list li:first-child a {
	padding-left: 0;
}

.chapters__list a:hover {
	color: var(--brand);
}

.chapters__list a[aria-current="true"] {
	background: var(--ink);
	color: var(--white);
}

.chapters__list li:first-child a[aria-current="true"] {
	padding-left: 14px;
}

@media (min-width: 1024px) {
	.chapters__mark {
		display: flex;
		flex: none;
		align-items: center;
		justify-content: center;
		width: var(--chapters);
		margin-right: 0;
		background: var(--brand);
		color: var(--white);
		font: 700 1.625rem/1 var(--didone);
		transition: background-color var(--ease);
	}

	.chapters__mark:hover {
		background: var(--brand-dark);
	}

	.chapters__list a,
	.chapters__list li:first-child a {
		padding: 0 18px;
	}
}

/* How far the deck is read. */
.progress {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 3px;
	pointer-events: none;
}

.progress__bar {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--brand);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

/* ------------------------------------------------------------------ Slides */

.slide {
	position: relative;
	padding-block: clamp(56px, 8vw, 112px);
	border-bottom: 1px solid var(--line);
	background: var(--white);
}

.slide--paper {
	background: var(--paper);
}

.slide--dark {
	border-bottom-color: var(--ink);
	background: var(--panel);
	color: var(--on-dark);
}

/* On a desktop screen a slide fills the screen under the header, like a slide of a deck. */
@media (min-width: 1024px) and (min-height: 700px) {
	.slide:not(.slide--page) {
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: calc(100vh - var(--sticky) - var(--sticky-admin, 0px));
	}

	.slide > .container {
		width: min(100% - 2 * var(--gutter), var(--container));
	}
}

.slide__head {
	max-width: 980px;
	margin-bottom: clamp(32px, 4.5vw, 56px);
	padding-bottom: clamp(20px, 2.5vw, 28px);
	border-bottom: 4px solid var(--ink);
}

.slide--dark .slide__head {
	border-bottom-color: var(--on-dark);
}

.slide--dark .label {
	color: var(--brand-soft);
}

.slide--dark .label__number {
	color: var(--on-dark);
}

.slide__title {
	font-family: var(--didone);
	font-size: clamp(2rem, 5.2vw, 4rem);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -0.01em;
}

.slide__lead {
	max-width: var(--measure);
	margin-top: 16px;
	color: var(--ink-2);
	font: 400 clamp(1.1875rem, 1.9vw, 1.4375rem)/1.45 var(--serif);
}

.slide--dark .slide__lead {
	color: var(--on-dark-muted);
}

.slide__note {
	max-width: var(--measure);
	margin-top: 24px;
	color: var(--muted);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.slide--dark .slide__note {
	color: var(--on-dark-muted);
}

.slide__note a,
.points__text a,
.faq__answer a {
	color: var(--brand);
	text-decoration: underline;
}

.slide--dark .slide__note a,
.slide--dark .points__text a {
	color: var(--brand-soft);
}

/* ------------------------------------------------------------------ Points */

.points {
	display: grid;
	gap: 0;
	padding: 0;
	list-style: none;
}

.points__item {
	padding-block: 18px;
	border-top: 1px solid var(--line);
}

.points__item:first-child {
	border-top-color: var(--ink);
}

.slide--dark .points__item {
	border-top-color: var(--line-dark);
}

.slide--dark .points__item:first-child {
	border-top-color: var(--on-dark-muted);
}

.points__title {
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.3;
}

.points__text {
	margin-top: 6px;
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.55;
}

.slide--dark .points__text {
	color: var(--on-dark-muted);
}

.points--compact .points__item {
	padding-block: 12px;
}

.points--compact .points__title {
	font-size: 1rem;
}

.points--compact .points__text {
	font-size: 0.9375rem;
}

.points--grid {
	margin-top: clamp(32px, 4vw, 48px);
}

@media (min-width: 640px) {
	.points--grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 32px;
	}

	.points--grid .points__item {
		border-top: 2px solid var(--ink);
	}

	.slide--dark .points--grid .points__item {
		border-top-color: var(--on-dark-muted);
	}
}

@media (min-width: 1024px) {
	.points--grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 40px;
	}

	.points--grid:has(> li:nth-child(4):last-child) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ------------------------------------------------------------------ Screenshots */

.shot {
	margin: 0;
	min-width: 0;
}

/* A browser window: square corners and a thin ink border, like the product's surfaces. */
.frame {
	overflow: hidden;
	border: 1px solid var(--ink);
	background: var(--white);
	box-shadow: 0 1px 0 var(--ink), 0 24px 48px -28px rgb(27 30 36 / 0.45);
}

.slide--dark .frame {
	border-color: #0f1115;
	box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.7);
}

.frame__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 30px;
	padding: 0 12px;
	border-bottom: 1px solid var(--line);
	background: var(--mist);
}

.frame__dots {
	display: flex;
	gap: 5px;
}

.frame__dots i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #c3c8cf;
}

.frame__dots i:first-child {
	background: var(--brand);
}

.frame__url {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	padding: 3px 10px;
	background: var(--white);
	color: var(--muted);
	font-size: 0.6875rem;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.frame__viewport img {
	width: 100%;
}

/* A whole page in a window of a screen's height: it scrolls down while pointed at or focused,
   and can be scrolled by hand on touch screens. */
.frame--scroll .frame__viewport {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.frame--scroll .frame__viewport img {
	position: absolute;
	top: 0;
	left: 0;
	transition: transform 9s cubic-bezier(0.45, 0, 0.55, 1);
}

.frame--scroll .frame__viewport:hover img,
.frame--scroll .frame__viewport:focus-visible img {
	transform: translateY(calc(-100% + 100cqh));
}

.frame--scroll .frame__viewport {
	container-type: size;
}

@media (hover: none) {
	.frame--scroll .frame__viewport {
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.frame--scroll .frame__viewport img {
		position: static;
		transform: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.frame--scroll .frame__viewport {
		overflow-y: auto;
	}

	.frame--scroll .frame__viewport img {
		position: static;
		transform: none !important;
		transition: none;
	}
}

/* A phone: a dark rounded body around the screen. */
.shot--phone {
	width: min(100%, 300px);
}

.phone {
	padding: 8px;
	border-radius: 34px;
	background: var(--ink);
	box-shadow: 0 0 0 1px #3a3f48 inset, 0 30px 50px -30px rgb(27 30 36 / 0.6);
}

.phone__screen {
	overflow: hidden;
	border-radius: 27px;
	background: var(--white);
}

.phone__screen img {
	width: 100%;
}

.shot__caption {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	margin-top: 12px;
	color: var(--muted);
	font-size: 0.8125rem;
	line-height: 1.45;
}

.shot__caption > span {
	flex: 1 1 260px;
}

.slide--dark .shot__caption {
	color: var(--on-dark-muted);
}

.shot__link {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 4px;
	color: var(--brand);
	font-weight: 700;
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.shot__link .icon {
	width: 14px;
	height: 14px;
}

.shot__link:hover {
	color: var(--brand-dark);
	text-decoration: underline;
}

.slide--dark .shot__link {
	color: var(--brand-soft);
}

.shot--phone .shot__caption {
	display: block;
}

.shot--phone .shot__link {
	margin-top: 4px;
}

/* ------------------------------------------------------------------ Cover */

.slide--cover {
	padding-block: clamp(24px, 3vw, 40px) clamp(48px, 6vw, 80px);
	background: var(--paper);
}

.cover {
	display: grid;
	gap: 24px;
}

.cover__lead {
	padding: clamp(20px, 3vw, 36px);
	background: var(--white);
}

.cover__title {
	font-family: var(--didone);
	font-size: clamp(2.25rem, 5.6vw, 4.375rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.015em;
}

.cover__text {
	max-width: 640px;
	margin-top: 18px;
	color: var(--ink-2);
	font: 400 clamp(1.1875rem, 2vw, 1.4375rem)/1.45 var(--serif);
}

.cover__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.cover__media {
	position: relative;
	margin-top: clamp(28px, 4vw, 44px);
}

.cover__phone {
	display: none;
}

@media (min-width: 640px) {
	.cover__media {
		padding-right: 72px;
	}

	.cover__phone {
		position: absolute;
		right: 0;
		bottom: -28px;
		display: block;
		width: clamp(132px, 22%, 190px);
	}

	.cover__phone .phone {
		padding: 6px;
		border-radius: 24px;
	}

	.cover__phone .phone__screen {
		border-radius: 19px;
	}

	.cover__phone .shot__caption {
		display: none;
	}
}

.cover__cards {
	display: grid;
	gap: 0;
	background: var(--white);
}

.card {
	display: block;
	padding: 20px;
	border-top: 1px solid var(--line);
}

.card:first-child {
	border-top: 0;
}

.card__image {
	display: block;
	margin-bottom: 14px;
	overflow: hidden;
	border: 1px solid var(--line);
	aspect-ratio: 16 / 10;
}

.card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card:hover .card__image img {
	transform: scale(1.03);
}

.card__title {
	display: block;
	font-size: 1.1875rem;
	font-weight: 600;
	line-height: 1.3;
}

.card:hover .card__title {
	color: var(--brand);
}

/* The dark column, like the «latest news» panel beside the lead story of Daily. */
.cover__panel {
	padding: 24px clamp(20px, 2.5vw, 32px);
	background: var(--panel);
	color: var(--on-dark);
}

.cover__panel-title {
	margin-bottom: 4px;
	color: var(--on-dark-muted);
	font: 700 0.75rem/1.3 var(--sans);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.cover__list {
	padding: 0;
	list-style: none;
}

.cover__list li + li {
	border-top: 1px solid var(--line-dark);
}

.cover__list a {
	display: block;
	padding-block: 16px;
}

.cover__list .label {
	margin-bottom: 6px;
	color: var(--brand-soft);
}

.cover__item {
	display: block;
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.35;
	transition: color var(--ease);
}

.cover__list a:hover .cover__item {
	color: var(--brand-soft);
}

@media (min-width: 640px) and (max-width: 1023px) {
	.cover__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.card,
	.card:first-child {
		border-top: 0;
	}

	.card + .card {
		border-left: 1px solid var(--line);
	}
}

@media (min-width: 1024px) {
	.cover {
		grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr) minmax(0, 1fr);
		gap: 0;
		align-items: stretch;
	}

	.cover__cards {
		grid-column: 1;
		grid-row: 1;
		align-content: start;
		border-right: 1px solid var(--line);
	}

	.cover__lead {
		grid-column: 2;
		grid-row: 1;
	}

	.cover__panel {
		grid-column: 3;
		grid-row: 1;
	}

	.card {
		padding: 24px;
	}
}

/* ------------------------------------------------------------------ Split slides */

.split {
	display: grid;
	gap: clamp(32px, 4vw, 56px);
	align-items: start;
}

.split__media {
	display: grid;
	gap: 28px;
	min-width: 0;
}

.split__media .shot--phone {
	justify-self: center;
}

@media (min-width: 1024px) {
	.split {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}

	.slide--reverse .split__media {
		order: -1;
	}

	.slide--reverse .split {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}

	/* A desktop screen with a phone over its corner. */
	.split__media--pair {
		position: relative;
		padding-bottom: 40px;
	}

	.split__media--pair:has(.split__phone) {
		padding-right: 120px;
	}

	.split__phone {
		position: absolute;
		right: 0;
		bottom: 0;
		width: 210px;
	}

	.split__phone .shot__caption {
		display: none;
	}

	/* The caption of the screen beside the phone keeps clear of it. */
	.split__media--pair:has(.split__phone) > .shot:first-child .shot__caption {
		padding-right: 110px;
	}

	.split--table {
		grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
	}
}

/* ------------------------------------------------------------------ Themes */

.tabs {
	display: flex;
	margin-bottom: 28px;
}

.tabs[hidden] {
	display: none;
}

.tabs__tab {
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid var(--ink);
	background: var(--white);
	color: var(--ink);
	font: 700 0.75rem/1 var(--sans);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: background-color var(--ease), color var(--ease);
}

.tabs__tab + .tabs__tab {
	border-left: 0;
}

.tabs__tab[aria-selected="true"] {
	background: var(--ink);
	color: var(--white);
}

.tabs__tab:hover:not([aria-selected="true"]) {
	color: var(--brand);
}

.themes__panel {
	display: grid;
	gap: 32px;
	align-items: start;
}

.themes__panel + .themes__panel {
	margin-top: 56px;
}

.js .themes[data-ready] .themes__panel + .themes__panel {
	margin-top: 0;
}

.themes__panel[hidden] {
	display: none;
}

.themes__media {
	position: relative;
	min-width: 0;
}

.themes__phone {
	display: none;
}

.themes__name {
	font-family: var(--didone);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 700;
	line-height: 1.1;
}

.themes__about {
	margin: 12px 0 20px;
	color: var(--ink-2);
	font: 400 1.25rem/1.45 var(--serif);
}

@media (min-width: 640px) {
	.themes__media {
		padding-right: 96px;
		padding-bottom: 32px;
	}

	.themes__phone {
		position: absolute;
		right: 0;
		bottom: 0;
		display: block;
		width: clamp(150px, 24%, 220px);
	}

	.themes__phone .shot__caption {
		display: none;
	}
}

@media (min-width: 1024px) {
	.themes__panel {
		grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
		gap: 56px;
	}
}

/* ------------------------------------------------------------------ Steps */

.steps {
	display: grid;
	gap: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.steps__item {
	position: relative;
	display: grid;
	align-content: start;
	gap: 10px;
	padding-block: 24px;
	border-top: 2px solid var(--ink);
	min-width: 0;
}

.slide--dark .steps__item {
	border-top-color: var(--on-dark-muted);
}

.steps__number {
	color: var(--brand);
	font: 700 clamp(2.5rem, 4vw, 3.5rem)/1 var(--didone);
}

.slide--dark .steps__number {
	color: var(--brand-soft);
}

.steps__title {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}

.steps__text {
	color: var(--muted);
	line-height: 1.55;
}

.slide--dark .steps__text {
	color: var(--on-dark-muted);
}

.steps__code {
	margin: 4px 0 0;
	padding: 12px 14px;
	overflow-x: auto;
	background: var(--ink);
	color: var(--on-dark);
	font-size: 0.8125rem;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
}

.steps__item .shot {
	margin-top: 10px;
}

@media (min-width: 640px) {
	.steps--2,
	.steps--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 32px;
	}
}

@media (min-width: 1024px) {
	.steps--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 40px;
	}

	.steps--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		column-gap: 32px;
	}

	.steps--5 {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		column-gap: 28px;
	}

	/* The arrow between steps. */
	.steps__item:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 38px;
		right: -18px;
		width: 10px;
		height: 10px;
		border-top: 2px solid var(--line);
		border-right: 2px solid var(--line);
		transform: rotate(45deg);
	}
}

/* ------------------------------------------------------------------ Tables */

.table-wrap {
	overflow-x: auto;
}

.table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.table th,
.table td {
	padding: 14px 16px 14px 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.table thead th {
	padding-top: 0;
	border-bottom: 2px solid var(--ink);
	color: var(--muted);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
}

.table tbody th {
	min-width: 150px;
	font-weight: 600;
}

.table td {
	color: var(--ink-2);
}

.table--dark th,
.table--dark td {
	border-bottom-color: var(--line-dark);
}

.table--dark thead th {
	border-bottom-color: var(--on-dark-muted);
	color: var(--on-dark-muted);
}

.table--dark td {
	color: var(--on-dark-muted);
}

.table--dark code {
	padding: 2px 8px;
	background: var(--ink);
	color: var(--white);
	font-size: 0.9375rem;
}

/* ------------------------------------------------------------------ Phones and grids */

.phones-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 28px;
	justify-items: center;
	max-width: 1040px;
	margin-inline: auto;
}

.phones-row .shot--phone {
	width: min(100%, 280px);
}

.grid-shots {
	display: grid;
	gap: 32px;
	margin-top: clamp(32px, 4vw, 48px);
}

@media (min-width: 1024px) {
	.grid-shots--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px;
	}

	.grid-shots--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ------------------------------------------------------------------ Audience */

.audience {
	display: grid;
	gap: 32px;
	padding: 0;
	list-style: none;
}

.audience__item {
	min-width: 0;
}

.audience__photo {
	margin: 0 0 18px;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background: var(--mist);
}

.audience__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.audience__title {
	font-family: var(--didone);
	font-size: clamp(1.375rem, 2.2vw, 1.75rem);
	font-weight: 700;
	line-height: 1.15;
}

.audience__text {
	margin-top: 10px;
	color: var(--ink-2);
	font: 400 1.1875rem/1.45 var(--serif);
}

@media (min-width: 640px) and (max-width: 1023px) {
	.audience {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.audience {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 40px;
	}
}

/* ------------------------------------------------------------------ Brand */

.brand {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
	align-items: end;
}

.brand figure {
	margin: 0;
}

.brand__card img {
	width: 100%;
	border: 1px solid var(--line);
	box-shadow: 0 24px 48px -30px rgb(27 30 36 / 0.45);
}

.brand__icon {
	max-width: 200px;
}

.brand__icon img {
	width: 160px;
	border-radius: 22%;
	box-shadow: 0 18px 36px -22px rgb(27 30 36 / 0.6);
}

@media (min-width: 640px) {
	.brand {
		grid-template-columns: minmax(0, 1fr) 180px;
	}
}

/* ------------------------------------------------------------------ Demo */

.demo {
	display: grid;
	gap: 40px;
	align-items: start;
}

.demo__actions {
	display: grid;
	gap: 12px;
	align-content: start;
}

.demo__actions .points {
	margin-top: 20px;
}

@media (min-width: 1024px) {
	.demo {
		grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
		gap: 72px;
	}
}

/* ------------------------------------------------------------------ Questions */

.faq {
	max-width: 980px;
	border-top: 2px solid var(--ink);
}

.faq__item {
	border-bottom: 1px solid var(--line);
}

.faq__question {
	position: relative;
	display: block;
	padding: 20px 48px 20px 0;
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	font-weight: 600;
	line-height: 1.35;
	list-style: none;
	cursor: pointer;
	transition: color var(--ease);
}

.faq__question::-webkit-details-marker {
	display: none;
}

.faq__question::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 8px;
	width: 12px;
	height: 12px;
	margin-top: -9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform var(--ease);
}

.faq__item[open] .faq__question::after {
	margin-top: -3px;
	transform: rotate(-135deg);
}

.faq__question:hover {
	color: var(--brand);
}

.faq__answer {
	max-width: var(--measure);
	padding-bottom: 22px;
	color: var(--ink-2);
	font: 400 1.1875rem/1.55 var(--serif);
}

/* ------------------------------------------------------------------ Request form (Contact Form 7) */

.contact {
	display: grid;
	gap: 40px;
	align-items: start;
}

.contact .slide__head {
	margin-bottom: 28px;
}

.contact__photo {
	margin: 28px 0 0;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background: var(--mist);
}

.contact__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 1023px) {
	.contact__photo {
		display: none;
	}
}

@media (min-width: 1024px) {
	.contact {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		gap: 72px;
	}
}

.lead-form {
	padding: clamp(20px, 3vw, 36px);
	border-top: 4px solid var(--brand);
	background: var(--white);
	box-shadow: 0 24px 48px -32px rgb(27 30 36 / 0.4);
}

.lead-form__grid {
	display: grid;
	gap: 18px;
}

@media (min-width: 640px) {
	.lead-form__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 20px;
	}

	.lead-form__field--wide {
		grid-column: 1 / -1;
	}
}

.lead-form__field {
	display: grid;
	gap: 8px;
	min-width: 0;
}

.lead-form__label {
	font: 700 0.75rem/1.3 var(--sans);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.lead-form .wpcf7-form-control-wrap {
	display: block;
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form textarea {
	display: block;
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid var(--ink);
	border-radius: 0;
	background: var(--white);
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color var(--ease), box-shadow var(--ease);
}

.lead-form textarea {
	min-height: 128px;
	resize: vertical;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
	color: #8a9099;
}

.lead-form input:focus,
.lead-form textarea:focus {
	border-color: var(--brand);
	outline: none;
	box-shadow: 0 0 0 3px rgb(179 38 58 / 0.18);
}

.lead-form .wpcf7-not-valid {
	border-color: var(--brand);
}

.wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	color: var(--brand);
	font-size: 0.8125rem;
	font-weight: 600;
}

.lead-form__consent {
	margin-top: 22px;
	color: var(--muted);
	font-size: 0.875rem;
	line-height: 1.5;
}

.lead-form__consent .wpcf7-list-item {
	margin: 0;
}

.lead-form__consent label {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 12px;
	align-items: start;
	cursor: pointer;
}

.lead-form__consent input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--brand);
}

.lead-form__consent a {
	color: var(--ink);
	text-decoration: underline;
}

.lead-form__consent a:hover {
	color: var(--brand);
}

.lead-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
}

.lead-form__actions .button {
	min-width: 220px;
}

/* Contact Form 7's own stylesheet is not loaded: what it did and the form needs. */
.lead-form fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.lead-form .wpcf7-form-control-wrap {
	position: relative;
}

.lead-form .wpcf7-spinner {
	display: inline-block;
	width: 22px;
	height: 22px;
	margin: 0;
	border: 2px solid var(--line);
	border-top-color: var(--brand);
	border-radius: 50%;
	visibility: hidden;
	animation: argnews-spin 0.8s linear infinite;
}

.lead-form form.submitting .wpcf7-spinner {
	visibility: visible;
}

@keyframes argnews-spin {
	to {
		transform: rotate(360deg);
	}
}

.lead-form form.init .wpcf7-response-output,
.lead-form form.resetting .wpcf7-response-output,
.lead-form form.submitting .wpcf7-response-output {
	display: none;
}

.lead-form .wpcf7-response-output {
	margin: 20px 0 0 !important;
	padding: 14px 16px !important;
	border: 0 !important;
	border-left: 4px solid var(--ink) !important;
	background: var(--paper);
	font-weight: 500;
}

.lead-form .wpcf7-form.sent .wpcf7-response-output {
	border-left-color: #1f7a4d !important;
	background: #eaf6ef;
}

.lead-form .wpcf7-form.invalid .wpcf7-response-output,
.lead-form .wpcf7-form.unaccepted .wpcf7-response-output,
.lead-form .wpcf7-form.failed .wpcf7-response-output,
.lead-form .wpcf7-form.aborted .wpcf7-response-output,
.lead-form .wpcf7-form.spam .wpcf7-response-output {
	border-left-color: var(--brand) !important;
	background: #fbecee;
}

.lead-form .screen-reader-response {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* The field for bots. */
.argnews-trap {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ------------------------------------------------------------------ Pages */

.slide--page {
	min-height: 50vh;
}

.entry {
	max-width: var(--measure);
	font: 400 1.1875rem/1.6 var(--serif);
}

.entry > * + * {
	margin-top: 1em;
}

/* ------------------------------------------------------------------ Footer */

.site-footer {
	padding: 48px 0 28px;
	background: var(--ink);
	color: var(--white);
	border-top: 8px solid var(--brand);
}

.site-footer__grid {
	display: grid;
	gap: 36px 32px;
}

@media (min-width: 640px) {
	.site-footer {
		padding-top: 60px;
	}

	.site-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1024px) {
	.site-footer__grid {
		grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
		gap: 48px;
	}

	.site-footer__brand {
		grid-column: auto;
	}
}

.logo--footer {
	color: var(--white);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	white-space: normal;
}

.logo--footer a:hover {
	color: var(--brand-soft);
}

.site-footer__about {
	max-width: 460px;
	margin: 18px 0 24px;
	color: #bdb3af;
	font: 400 1.125rem/1.5 var(--serif);
}

.site-footer__title {
	margin-bottom: 12px;
	color: #a39b98;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

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

.footer-menu a {
	display: flex;
	align-items: center;
	min-height: 42px;
	border-bottom: 1px solid var(--line-dark);
	color: #ece5df;
	font-size: 0.8125rem;
	font-weight: 700;
	transition: color var(--ease);
}

.footer-menu a:hover {
	color: var(--brand-soft);
}

.site-footer__legal {
	margin-top: 44px;
	padding-top: 20px;
	border-top: 1px solid var(--line-dark);
	color: #9a918e;
	font-size: 0.75rem;
	line-height: 1.6;
}

/* ------------------------------------------------------------------ Slide counter */

.deck-nav {
	position: fixed;
	right: max(12px, calc((100% - var(--container)) / 2 - 64px));
	bottom: 16px;
	z-index: 40;
	display: flex;
	align-items: center;
	border: 1px solid var(--ink);
	background: var(--white);
	box-shadow: 0 12px 24px -16px rgb(27 30 36 / 0.5);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity var(--ease), transform var(--ease);
}

.deck-nav[hidden] {
	display: none;
}

.deck-nav.is-visible {
	opacity: 1;
	transform: none;
}

.deck-nav__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ink);
	transition: background-color var(--ease), color var(--ease);
}

.deck-nav__button:hover {
	background: var(--ink);
	color: var(--white);
}

.deck-nav__button:disabled {
	color: var(--line);
	background: transparent;
	cursor: default;
}

.deck-nav__count {
	min-width: 64px;
	padding: 0 4px;
	border-inline: 1px solid var(--line);
	font: 700 0.8125rem/40px var(--sans);
	letter-spacing: 0.06em;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

/* On a phone the chapter bar is enough: the counter would cover the text. */
@media (max-width: 639px) {
	.deck-nav {
		display: none;
	}
}

/* ------------------------------------------------------------------ Motion */

/* Screenshots rise into place as their slide comes in; only when the script runs and motion
   is welcome, so the content is never hidden otherwise. */
@media (prefers-reduced-motion: no-preference) {
	.js [data-reveal] {
		opacity: 0;
		transform: translateY(28px);
		transition: opacity 700ms ease, transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
	}

	.js [data-reveal].is-shown {
		opacity: 1;
		transform: none;
	}
}

@media print {
	.site-header,
	.deck-nav,
	.lead-form {
		display: none;
	}

	.slide {
		min-height: 0 !important;
		break-inside: avoid;
	}
}
