/*
Theme Name: Snapback Site
Author: Snapback
Description: Marketing site theme for Snapback. A framed white page: hairline rails, calm Rethink Sans headlines with the answer in blue, ring-edged feature cards and real product screens on dotted blue tiles. Core blocks only.
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
Version: 0.8.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: snapback-site
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready
*/

/*
 * The design system. Every colour, size, radius, shadow and timing comes from theme.json; this file turns
 * them into the shared pieces (frame, section head, field, band, window, buttons, header, footer, inner pages).
 * assets/css/product.css composes those pieces into the home page sections. DESIGN.md explains the rules.
 */

/* === tokens === */
:root {
	--sb-ink: var(--wp--preset--color--text);
	--sb-ink-2: var(--wp--preset--color--ink-2);
	--sb-muted: var(--wp--preset--color--muted);
	--sb-soft: var(--wp--preset--color--soft);
	--sb-blue: var(--wp--preset--color--primary);
	--sb-blue-hover: var(--wp--preset--color--primary-hover);
	--sb-tint: var(--wp--preset--color--tint);
	--sb-surface: var(--wp--preset--color--surface);
	--sb-surface-2: var(--wp--preset--color--surface-2);
	--sb-line: var(--wp--preset--color--border);
	--sb-white: var(--wp--preset--color--background);

	--sb-display: var(--wp--preset--font-family--display);
	--sb-text: var(--wp--preset--font-family--geist);
	--sb-mono: var(--wp--preset--font-family--geist-mono);

	/* Text on ink and on blue. */
	--sb-on-dark: rgb(255 255 255 / 0.84);
	--sb-on-dark-soft: rgb(255 255 255 / 0.64);
	--sb-line-on-dark: rgb(255 255 255 / 0.13);
	/* The headline accent on ink, where the brand blue would be too dark to read. */
	--sb-blue-on-dark: #9aa2ff;

	/* The frame. The gutter is the page's side padding; it grows on wide screens so the content column
	   never passes 1200px (keep it equal to styles.spacing.padding in theme.json). The rails run "inset"
	   outside the content column. */
	--sb-gutter: max(clamp(1.25rem, 5vw, 3rem), calc(50vw - 600px));
	--sb-inset: clamp(12px, 2.6vw, 40px);
	--sb-rail: calc(var(--sb-gutter) - var(--sb-inset));

	/* Vertical rhythm. */
	/* One spacing scale: 4, 8, 12, 16, 20, 24, 32, 40, 56, 72, 96. */
	--sb-pad: clamp(3.5rem, 2.25rem + 4vw, 6rem);
	--sb-head-pad: clamp(2.25rem, 1.75rem + 2vw, 3.5rem);
	--sb-head-gap: clamp(1.25rem, 1rem + 1vw, 2rem);
	--sb-header-h: 68px;
	--sb-bar-h: 38px;
	/* A card's edge and the soft ring around it. */
	--sb-card-line: #dde1f3;
	--sb-card-ring: #eceefd;

	/* Corners: 12px for a card, 8px for what sits inside it, 6px for the smallest pieces, pills for
	   buttons and tags. Sections are square. */
	--sb-radius-xs: var(--wp--custom--radius--xs);
	--sb-radius: var(--wp--custom--radius--sm);
	--sb-radius-md: var(--wp--custom--radius--md);
	--sb-radius-in: 10px;
	--sb-radius-lg: var(--wp--custom--radius--lg);

	--sb-shadow-ring: var(--wp--custom--shadow--ring);
	--sb-shadow-lift: var(--wp--custom--shadow--lift);
	--sb-shadow-soft: var(--wp--custom--shadow--soft);

	--sb-ease: var(--wp--custom--motion--ease);
	--sb-fast: var(--wp--custom--motion--fast);
	--sb-base: var(--wp--custom--motion--base);
	--sb-slow: var(--wp--custom--motion--slow);

	/* The small dot that marks where a section line meets a rail. */
	--sb-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17'%3E%3Ccircle cx='8.5' cy='8.5' r='3'/%3E%3C/svg%3E");
	--sb-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.6 6.4 12 13 4.6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* === base === */
html {
	scroll-padding-top: calc(var(--sb-header-h) + 16px);
}
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-synthesis: none;
}
::selection {
	background: var(--sb-blue);
	color: #fff;
}
:is(h1, h2, h3) {
	text-wrap: balance;
}
p {
	text-wrap: pretty;
}
strong,
b {
	font-weight: 600;
}
/* The answer in a headline is set in blue (an inline colour on a mark element). */
:is(h1, h2, h3) mark {
	background: none;
	color: var(--sb-blue);
}

/* Template sections butt edge to edge; the footer stays at the bottom. */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
.wp-site-blocks > * + * {
	margin-block-start: 0;
}
.wp-site-blocks > main {
	flex: 1 0 auto;
}
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--xl);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}
.wp-block-post-content > .alignfull {
	margin-block: 0;
}

/* Keyboard focus: blue on light grounds, white on ink and blue. */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
	outline: 2px solid var(--sb-blue);
	outline-offset: 3px;
	border-radius: 4px;
}
:is(.sb-sec--dark, .sb-sec--blue) :where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
	outline-color: #fff;
}

/* Keeps a term like "wp-admin" from breaking at its hyphen. */
.sb-nowrap {
	white-space: nowrap;
}

/* === the frame ===
   Every section is a full-width band inside two hairline rails. A hairline closes the top of each section
   and a small dot marks where it meets the rails. Sections own their vertical padding. */
.sb-sec {
	--sb-sec-line: var(--sb-line);
	--sb-sec-node: #c3c7d6;
	position: relative;
	padding-block: var(--sb-pad);
	background-color: var(--sb-white);
	color: var(--sb-ink);
}
.sb-sec::before,
.sb-sec::after {
	content: "";
	position: absolute;
	pointer-events: none;
}
.sb-sec::before {
	inset-block: 0;
	left: var(--sb-rail);
	right: var(--sb-rail);
	border-inline: 1px solid var(--sb-sec-line);
	border-top: 1px solid var(--sb-sec-line);
}
.sb-sec::after {
	top: -8px;
	left: calc(var(--sb-rail) - 8px);
	right: calc(var(--sb-rail) - 8px);
	height: 17px;
	background-color: var(--sb-sec-node);
	-webkit-mask:
		var(--sb-plus) left top / 17px 17px no-repeat,
		var(--sb-plus) right top / 17px 17px no-repeat;
	mask:
		var(--sb-plus) left top / 17px 17px no-repeat,
		var(--sb-plus) right top / 17px 17px no-repeat;
	z-index: 1;
}
.sb-sec > * {
	margin-block: 0;
}
/* A section that ends (or starts) with a row running rail to rail gives up its padding on that side. */
.sb-sec:has(> .sb-flush:last-child) {
	padding-bottom: 0;
}
.sb-sec:has(> .sb-flush:first-child) {
	padding-top: 0;
}

/* Grounds. */
.sb-sec--surface {
	background-color: var(--sb-surface);
}
.sb-sec--dark {
	--sb-sec-line: var(--sb-line-on-dark);
	--sb-sec-node: rgb(255 255 255 / 0.45);
	background-color: var(--sb-ink-2);
	color: #fff;
}
.sb-sec--blue {
	--sb-sec-line: rgb(255 255 255 / 0.18);
	--sb-sec-node: rgb(255 255 255 / 0.6);
	background-color: var(--sb-blue);
	color: #fff;
}
:is(.sb-sec--dark, .sb-sec--blue) :is(h1, h2, h3, h4) {
	color: #fff;
}
:is(.sb-sec--dark, .sb-sec--blue) :is(p, li) {
	color: var(--sb-on-dark);
}
:is(.sb-sec--dark, .sb-sec--blue) .is-style-meta {
	color: var(--sb-on-dark-soft);
}
:is(.sb-sec--dark, .sb-sec--blue) a:not(.wp-block-button__link) {
	color: #fff;
}
.sb-sec--dark :is(h1, h2, h3) mark {
	color: var(--sb-blue-on-dark) !important;
}

/* The dark band can carry one glow of the brand blue along its top edge. */
.sb-sec--dark.sb-sec--glow {
	background:
		radial-gradient(60% 420px at 30% 0%, rgb(27 27 228 / 0.62) 0%, transparent 72%),
		radial-gradient(45% 360px at 88% 0%, rgb(124 92 255 / 0.36) 0%, transparent 72%),
		var(--sb-ink-2);
}

/* A row that runs from rail to rail. The WordPress full-width rule would bleed it to the window edge;
   this stops it at the rails. */
.sb-sec > .sb-flush.sb-flush {
	max-width: none;
	margin-inline: calc(var(--sb-inset) * -1) !important;
}

/* === section head: the title and one short paragraph under it, both at the left edge. A hairline from
   rail to rail closes the head, with a dot at each end; the section's content starts under it. === */
.sb-head {
	position: relative;
	padding-bottom: var(--sb-head-pad);
}
.sb-head::before,
.sb-head::after {
	content: "";
	position: absolute;
	pointer-events: none;
}
.sb-head::after {
	left: calc(var(--sb-inset) * -1);
	right: calc(var(--sb-inset) * -1);
	bottom: 0;
	border-bottom: 1px solid var(--sb-sec-line);
}
.sb-head::before {
	left: calc(var(--sb-inset) * -1 - 8px);
	right: calc(var(--sb-inset) * -1 - 8px);
	bottom: -9px;
	height: 17px;
	background-color: var(--sb-sec-node);
	-webkit-mask:
		var(--sb-plus) left top / 17px 17px no-repeat,
		var(--sb-plus) right top / 17px 17px no-repeat;
	mask:
		var(--sb-plus) left top / 17px 17px no-repeat,
		var(--sb-plus) right top / 17px 17px no-repeat;
	z-index: 1;
}
.sb-head > * {
	margin: 0 !important;
}
.sb-head h2 {
	max-width: 42rem;
}
.sb-head > .sb-head__aside {
	max-width: 46rem;
	margin-top: 16px !important;
}
.sb-head__aside > * {
	margin-block: 0;
}
/* The paragraph under a section title, set like context.dev's: about 17px, two lines. */
.sb-head__aside .is-style-lead {
	font-size: 1.0625rem;
	line-height: 1.62;
}
.sb-head__aside > * + * {
	margin-top: 20px;
}
.sb-head + * {
	margin-top: var(--sb-head-gap) !important;
}
/* A section that opens with a head keeps a little less room above it. */
.sb-sec:has(> .sb-head:first-child) {
	padding-top: var(--sb-head-pad);
}

/* === type styles === */
.is-style-lead {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.625;
	letter-spacing: -0.005em;
	color: var(--sb-muted);
}
.is-style-meta {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.55;
	color: var(--sb-muted);
}
.is-style-meta a {
	color: inherit;
	text-underline-offset: 3px;
}
.is-style-meta a:hover {
	color: var(--sb-blue);
}
/* Mono, for code only: addresses, versions. */
.is-style-label {
	font-family: var(--sb-mono);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	line-height: 1.5;
	color: var(--sb-muted);
}
/* A large editorial paragraph in the display face. */
.is-style-statement {
	font-family: var(--sb-display);
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.015em;
	color: var(--sb-ink);
}
/* One sentence pulled out. */
.is-style-pull {
	font-family: var(--sb-display);
	font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.03em;
	color: var(--sb-ink);
	text-wrap: balance;
}
/* What you would type to an agent: a chat bubble. Write the quote marks in the text. */
.is-style-prompt {
	width: fit-content;
	max-width: 100%;
	padding: 10px 16px;
	border-radius: 18px 18px 18px 6px;
	background-color: var(--sb-surface);
	box-shadow: inset 0 0 0 1px var(--sb-line);
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.45;
	color: var(--sb-ink);
}

/* === lists === */
.is-style-checks {
	padding-left: 0;
	list-style: none;
}
.is-style-checks li {
	position: relative;
	padding-left: 28px;
}
.is-style-checks li + li {
	margin-top: 8px;
}
.is-style-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 16px;
	height: 16px;
	background-color: var(--sb-blue);
	-webkit-mask: var(--sb-icon-check) center / contain no-repeat;
	mask: var(--sb-icon-check) center / contain no-repeat;
}

/* === buttons ===
   Every button is a key, like the one in the logo: a rounded rectangle with a lip along its bottom
   edge. 48px tall, never a pill, never an icon. The default is ink. "secondary" is the same key in the
   brand blue: white with a blue outline and blue words. "quiet" is underlined text. On ink and on blue the default turns white.
   Hover lifts the key, press pushes it down onto its lip. A button with no link is flat: it cannot be
   pressed, the honest "not yet" state. */
.wp-block-buttons {
	gap: 12px 12px;
}
.wp-block-button .wp-block-button__link {
	--sb-btn-bg: var(--sb-ink);
	--sb-btn-fg: #fff;
	--sb-btn-bg-hover: #26262d;
	--sb-btn-fg-hover: #fff;
	--sb-btn-edge: inset 0 0 0 0 transparent;
	--sb-btn-lip-color: rgb(255 255 255 / 0.24);
	--sb-btn-lip: 3px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	box-sizing: border-box;
	padding: 10px 22px 13px;
	border-radius: var(--sb-radius);
	background-color: var(--sb-btn-bg);
	color: var(--sb-btn-fg);
	box-shadow:
		var(--sb-btn-edge),
		inset 0 calc(var(--sb-btn-lip) * -1) 0 var(--sb-btn-lip-color);
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition:
		background-color var(--sb-fast) ease,
		color var(--sb-fast) ease,
		box-shadow var(--sb-fast) ease,
		text-decoration-color var(--sb-fast) ease,
		transform var(--wp--custom--motion--press) var(--sb-ease);
}
.wp-block-button :is(a[href], button).wp-block-button__link:hover {
	background-color: var(--sb-btn-bg-hover);
	color: var(--sb-btn-fg-hover);
}
.wp-block-button a.wp-block-button__link:not([href]),
.wp-block-button a.wp-block-button__link:not([href]):hover {
	--sb-btn-lip: 0px;
	padding-block: 11px;
	background-color: var(--sb-btn-bg);
	color: var(--sb-btn-fg);
	cursor: not-allowed;
}
.is-style-secondary .wp-block-button__link {
	--sb-btn-bg: #fff;
	--sb-btn-fg: var(--sb-blue);
	--sb-btn-bg-hover: var(--sb-tint);
	--sb-btn-fg-hover: var(--sb-blue);
	--sb-btn-edge: inset 0 0 0 1.5px var(--sb-blue);
	--sb-btn-lip-color: var(--sb-blue);
}
.is-style-inverse .wp-block-button__link {
	--sb-btn-bg: #fff;
	--sb-btn-fg: var(--sb-ink);
	--sb-btn-bg-hover: var(--sb-tint);
	--sb-btn-fg-hover: var(--sb-ink);
	--sb-btn-lip-color: rgb(10 10 11 / 0.2);
}
/* Quiet: ink text; the underline thickens and turns blue on hover. */
.wp-block-button.is-style-quiet .wp-block-button__link {
	--sb-btn-bg: transparent;
	--sb-btn-fg: var(--sb-ink);
	--sb-btn-bg-hover: transparent;
	--sb-btn-fg-hover: var(--sb-blue);
	--sb-btn-lip: 0px;
	padding: 11px 2px;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, currentColor 32%, transparent);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 5px;
}
.wp-block-button.is-style-quiet :is(a[href], button).wp-block-button__link:hover {
	text-decoration-color: currentColor;
}
/* On ink and on blue. */
:is(.sb-sec--dark, .sb-sec--blue) .wp-block-button:not(.is-style-quiet, .is-style-secondary) .wp-block-button__link {
	--sb-btn-bg: #fff;
	--sb-btn-fg: var(--sb-ink);
	--sb-btn-bg-hover: var(--sb-tint);
	--sb-btn-fg-hover: var(--sb-ink);
	--sb-btn-lip-color: rgb(10 10 11 / 0.2);
}
:is(.sb-sec--dark, .sb-sec--blue) .wp-block-button.is-style-quiet .wp-block-button__link {
	--sb-btn-fg: #fff;
	--sb-btn-fg-hover: #fff;
}
:is(.sb-sec--dark, .sb-sec--blue) .wp-block-button.is-style-secondary .wp-block-button__link {
	--sb-btn-bg: rgb(255 255 255 / 0.1);
	--sb-btn-fg: #fff;
	--sb-btn-bg-hover: rgb(255 255 255 / 0.18);
	--sb-btn-fg-hover: #fff;
	--sb-btn-edge: inset 0 0 0 1.5px rgb(255 255 255 / 0.5);
	--sb-btn-lip-color: rgb(255 255 255 / 0.5);
}

/* === the field: the ground a product screen sits on ===
   One recipe everywhere: a flat pale blue, a grid of fine blue dots that is strongest at the edges, and a
   clear white centre where the screen sits. "is-style-field" on a Group. */
.is-style-field {
	--sb-field-base: #edf0ff;
	--sb-field-dot: rgb(27 27 228 / 0.26);
	--sb-field-glow: #fff;
	position: relative;
	isolation: isolate;
	background:
		radial-gradient(62% 62% at 50% 50%, var(--sb-field-glow) 0%, transparent 100%),
		var(--sb-field-base);
}
.is-style-field::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: radial-gradient(circle at center, var(--sb-field-dot) 1px, transparent 1.6px) 6px 6px / 12px 12px;
	-webkit-mask-image: radial-gradient(70% 70% at 50% 50%, transparent 38%, #000 100%);
	mask-image: radial-gradient(70% 70% at 50% 50%, transparent 38%, #000 100%);
	pointer-events: none;
}
/* The quiet one, for a moment that is not the product's. */
.is-style-field.sb-field--plain {
	--sb-field-base: var(--sb-surface);
	--sb-field-dot: rgb(10 10 11 / 0.14);
}
/* On ink: a deep blue glow. */
.is-style-field.sb-field--dark {
	--sb-field-dot: rgb(255 255 255 / 0.2);
	background:
		radial-gradient(80% 70% at 50% 100%, rgb(27 27 228 / 0.55) 0%, transparent 70%),
		#14141c;
}

/* === product pictures ===
   Always the whole component, at its own size, white on the field with one soft shadow. */
.is-style-shot {
	margin: 0;
}
.is-style-shot img {
	display: block;
	max-width: 100%;
	height: auto;
	filter: drop-shadow(0 1px 1px rgb(15 15 120 / 0.07)) drop-shadow(0 18px 28px rgb(15 15 120 / 0.14));
}
.sb-field--dark .is-style-shot img {
	filter: drop-shadow(0 24px 48px rgb(0 0 0 / 0.5));
}
/* A sheet from the product (rounded at the top only) gets all four corners, so it reads as one whole piece. */
.sb-pic--sheet img {
	border-radius: 18px;
}
/* Each picture has versions rendered for smaller widths; product.css decides which one shows. */
.sb-pic--tablet,
.sb-pic--phone {
	display: none;
}

/* === the card: a white card with a hairline and a soft blue ring around it. Inside: a name, one sentence,
   and one screen on a tile. === */
.sb-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}
.sb-cards > * {
	margin: 0 !important;
}
.sb-card {
	display: flex;
	flex-direction: column;
	gap: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	min-width: 0;
	padding: clamp(1.25rem, 0.75rem + 1.8vw, 2rem);
	border-radius: var(--sb-radius-md);
	background-color: #fff;
	box-shadow:
		0 0 0 1px var(--sb-card-line),
		0 0 0 6px var(--sb-card-ring);
	transition: box-shadow var(--sb-base) ease;
}
.sb-card > * {
	margin: 0 !important;
}
.sb-card__text > * {
	margin-block: 0;
}
.sb-card__text :is(h2, h3) {
	font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.03em;
}
.sb-card__text p {
	margin-top: 10px;
	max-width: 34em;
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	line-height: 1.4;
	letter-spacing: -0.005em;
	color: color-mix(in srgb, var(--sb-ink) 66%, transparent);
}
.sb-card__text .is-style-meta {
	margin-top: 8px;
	max-width: 36em;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.55;
	letter-spacing: 0;
	color: var(--sb-muted);
}
/* The agents a card names: a short label and one chip per agent, each with its own mark.
   The marks are from Simple Icons (CC0); the names and marks belong to their owners. */
.sb-agents {
	gap: 8px;
	margin-top: 18px !important;
}
.sb-agents > * {
	margin: 0 !important;
}
.sb-card__text .sb-agents__label {
	flex-basis: 100%;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
	color: var(--sb-muted);
}
.sb-card__text .sb-agent {
	position: relative;
	padding: 7px 14px 7px 36px;
	border-radius: var(--wp--custom--radius--full);
	background-color: #fff;
	box-shadow: inset 0 0 0 1px var(--sb-card-line);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 20px;
	letter-spacing: -0.005em;
	color: var(--sb-ink);
}
.sb-agent::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	background-color: var(--sb-agent-ink, var(--sb-ink));
	-webkit-mask: var(--sb-agent-mark) center / contain no-repeat;
	mask: var(--sb-agent-mark) center / contain no-repeat;
}
.sb-agent--claude {
	--sb-agent-mark: url("assets/icons/claude.svg");
	--sb-agent-ink: #d97757;
}
.sb-agent--codex {
	--sb-agent-mark: url("assets/icons/openai.svg");
}
.sb-agent--cursor {
	--sb-agent-mark: url("assets/icons/cursor.svg");
}

/* The tile: the field inside a card. Every screen sits whole in the middle of it. */
.sb-tile {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 248px;
	padding: 28px 20px;
	border-radius: var(--sb-radius-in);
	box-shadow: inset 0 0 0 1px rgb(27 27 228 / 0.1);
}
.sb-tile > * {
	margin: 0 !important;
}
@media (max-width: 699px) {
	.sb-cards {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* === the small screen: a simplified drawing of one product screen, built from blocks. A white piece with
   one status, or a short list of rows, and at most two buttons. Nothing else goes in it. === */
.sb-ui {
	width: min(300px, 100%);
	border-radius: var(--sb-radius-in);
	background-color: #fff;
	box-shadow:
		0 0 0 1px rgb(15 15 120 / 0.07),
		0 1px 2px rgb(15 15 120 / 0.05),
		0 14px 28px -10px rgb(15 15 120 / 0.2);
	font-size: 0.8438rem;
	line-height: 1.4;
	color: var(--sb-ink);
	text-align: left;
}
.sb-ui > *,
.sb-ui__row > *,
.sb-ui__text > *,
.sb-ui__actions > * {
	margin: 0 !important;
}
.sb-ui .sb-ui__title {
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: -0.005em;
	color: var(--sb-ink);
}
.sb-ui .sb-ui__title strong {
	font-weight: 600;
}
.sb-ui .sb-ui__sub {
	margin-top: 1px !important;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--sb-muted);
}
/* Rows: a name and a detail on the left, one tag or button on the right, a hairline between rows. */
.sb-ui--list {
	padding: 4px 14px;
}
.sb-ui__row {
	gap: 12px;
	padding-block: 12px;
}
.sb-ui__row + .sb-ui__row {
	border-top: 1px solid var(--sb-line);
}
.sb-ui__text {
	min-width: 0;
}
.sb-ui .sb-ui__tag,
.sb-ui .sb-ui__btn {
	flex: none;
	border-radius: var(--wp--custom--radius--full);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 18px;
	white-space: nowrap;
}
.sb-ui .sb-ui__tag {
	padding: 3px 10px;
	background-color: var(--sb-surface);
	color: var(--sb-muted);
}
.sb-ui .sb-ui__tag--ok {
	background-color: #e3f6e9;
	color: var(--wp--preset--color--success);
}
.sb-ui .sb-ui__btn {
	padding: 8px 14px 10px;
	border-radius: 8px;
	background-color: var(--sb-ink);
	box-shadow: inset 0 -2px 0 rgb(255 255 255 / 0.24);
	color: #fff;
	text-align: center;
}
.sb-ui .sb-ui__btn--plain {
	background-color: #fff;
	box-shadow:
		inset 0 0 0 1px var(--sb-ink),
		inset 0 -2px 0 var(--sb-ink);
	color: var(--sb-ink);
}
.sb-ui .sb-ui__btn--small {
	padding: 4px 11px 6px;
	border-radius: var(--sb-radius-xs);
}
/* A status: a round mark, one line, one detail, the buttons under it. */
.sb-ui--status {
	display: grid;
	justify-items: center;
	gap: 0;
	padding: 22px 18px 18px;
	text-align: center;
}
.sb-ui--status::before {
	content: "";
	width: 40px;
	height: 40px;
	margin-bottom: 12px;
	border-radius: 50%;
	background:
		var(--sb-ui-mark) center / 18px 18px no-repeat,
		var(--sb-ui-mark-bg);
}
.sb-ui--down {
	--sb-ui-mark-bg: #fde3e3;
	--sb-ui-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4.5l7 7m0-7l-7 7' fill='none' stroke='%23cb2a2f' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
}
.sb-ui--ok {
	--sb-ui-mark-bg: #dcf5e4;
	--sb-ui-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4 6.6 11.5 12.5 4.9' fill='none' stroke='%23107d32' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.sb-ui--status .sb-ui__title {
	font-size: 0.9375rem;
	font-weight: 600;
}
.sb-ui--status .sb-ui__btn {
	width: 100%;
	box-sizing: border-box;
	margin-top: 8px !important;
}
.sb-ui--status .sb-ui__sub + .sb-ui__btn {
	margin-top: 16px !important;
}
/* A request: one sentence and two buttons. */
.sb-ui--ask {
	padding: 16px;
}
.sb-ui__actions {
	gap: 8px;
	justify-content: flex-end;
	margin-top: 14px !important;
}

/* === the window: a browser frame around a real page ===
   A Group with a bar (one paragraph: the address) and a body. */
.sb-window {
	overflow: hidden;
	border-radius: var(--sb-radius-in);
	background-color: #fff;
	box-shadow:
		0 0 0 1px rgb(15 15 120 / 0.07),
		0 1px 2px rgb(15 15 120 / 0.05),
		0 14px 28px -10px rgb(15 15 120 / 0.2);
}
.sb-window > * {
	margin: 0 !important;
}
.sb-window__bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 76px;
	border-bottom: 1px solid var(--sb-line);
	background-color: #fff;
}
.sb-window__bar::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 50%;
	width: 10px;
	height: 10px;
	margin-top: -5px;
	border-radius: 50%;
	background-color: #dcdee6;
	box-shadow: 17px 0 0 #dcdee6, 34px 0 0 #dcdee6;
}
.sb-window__bar p {
	margin: 0;
	max-width: 100%;
	overflow: hidden;
	padding: 4px 16px;
	border-radius: var(--wp--custom--radius--full);
	background-color: var(--sb-surface);
	font-family: var(--sb-mono);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--sb-muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sb-window__body {
	background-color: #f3f4f6;
}

/* === the phone: a handset around a phone-size screen === */
.sb-phone {
	box-sizing: content-box;
	width: 318px;
	max-width: calc(100% - 20px);
	padding: 10px;
	border-radius: 46px;
	background-color: #1d1d24;
	box-shadow:
		inset 0 0 0 1px rgb(255 255 255 / 0.14),
		0 0 0 1px rgb(0 0 0 / 0.6),
		0 40px 80px -20px rgb(0 0 0 / 0.7);
}
.sb-phone > * {
	margin: 0 !important;
}
.sb-phone img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 36px;
}

/* === the band: words on one half, a product screen on a field on the other; rail to rail === */
.sb-band {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	border-top: 1px solid var(--sb-sec-line);
}
.sb-band:first-child {
	border-top: 0;
}
.sb-band > * {
	margin: 0 !important;
}
.sb-band__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(3.5rem, 2rem + 5vw, 7rem) clamp(2rem, 5vw, 5.5rem) clamp(3.5rem, 2rem + 5vw, 7rem) var(--sb-inset);
}
.sb-band__text > * {
	margin-block: 0;
}
.sb-band__text > :is(h2, h3) {
	max-width: 14em;
	font-size: var(--wp--preset--font-size--subhead);
	line-height: 1.08;
	letter-spacing: -0.032em;
}
.sb-band__text > :is(h2, h3) + * {
	margin-top: 20px;
}
.sb-band__text > p {
	max-width: 30em;
}
.sb-band__text > p:where(:not([class*="is-style-"], [class*="sb-"])),
.sb-band__text > .is-style-lead {
	font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	line-height: 1.55;
	letter-spacing: -0.008em;
	color: var(--sb-muted);
}
.sb-sec--dark .sb-band__text > :is(p:where(:not([class*="is-style-"], [class*="sb-"])), .is-style-lead) {
	color: var(--sb-on-dark);
}
.sb-band__text > p + p {
	margin-top: 14px;
}
.sb-band__text > .is-style-meta {
	margin-top: 28px;
	max-width: 34em;
}
.sb-band__text > .wp-block-buttons {
	margin-top: 32px;
}
.sb-band__media {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	min-width: 0;
	padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(1.25rem, 3vw, 3rem);
	border-left: 1px solid var(--sb-sec-line);
}
.sb-band__media > * {
	margin: 0 !important;
}
/* Flipped: the picture on the left. */
.sb-band--flip > .sb-band__media {
	order: -1;
	border-left: 0;
	border-right: 1px solid var(--sb-sec-line);
}
.sb-band--flip > .sb-band__text {
	padding-left: clamp(2rem, 5vw, 5.5rem);
	padding-right: var(--sb-inset);
}
/* A wider picture takes seven twelfths. */
.sb-band--wide {
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
/* Short points under a band's paragraph: a title and one or two sentences, a hairline between them. */
.sb-points {
	margin-top: 32px !important;
	max-width: 32em;
	border-top: 1px solid var(--sb-sec-line);
}
.sb-points > * {
	margin: 0 !important;
}
.sb-point {
	padding-block: 18px;
	border-bottom: 1px solid var(--sb-sec-line);
}
.sb-point > * {
	margin: 0 !important;
}
.sb-point h4 {
	font-size: var(--wp--preset--font-size--body);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.01em;
}
.sb-point p {
	margin-top: 4px !important;
	font-size: 0.9688rem;
	line-height: 1.55;
	color: var(--sb-muted);
}
.sb-sec--dark .sb-point p {
	color: var(--sb-on-dark-soft);
}
/* The caption under a picture, on the field. */
.sb-band__media > .is-style-meta {
	font-size: 0.8125rem;
	color: color-mix(in srgb, var(--sb-ink) 56%, transparent);
	text-align: center;
}
.sb-field--dark > .is-style-meta {
	color: var(--sb-on-dark-soft);
}

@media (max-width: 960px) {
	.sb-band,
	.sb-band--wide {
		grid-template-columns: minmax(0, 1fr);
	}
	.sb-band__text,
	.sb-band--flip > .sb-band__text {
		padding: clamp(3rem, 2rem + 4vw, 4.5rem) var(--sb-inset) clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
	}
	.sb-band__media,
	.sb-band--flip > .sb-band__media {
		order: 0;
		border-inline: 0;
		border-top: 1px solid var(--sb-sec-line);
		padding-inline: var(--sb-inset);
	}
}

/* === the top bar: one quiet line above the header. It scrolls away; the header stays. === */
.sb-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--sb-bar-h);
	padding-block: 0;
	border-bottom: 1px solid var(--sb-line);
	background-color: var(--sb-surface);
	color: var(--sb-ink);
}
.sb-bar p {
	margin: 0;
	overflow: hidden;
	font-size: 0.8438rem;
	line-height: 1.4;
	letter-spacing: -0.005em;
	color: var(--sb-muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sb-bar strong {
	font-weight: 500;
	color: var(--sb-ink);
}
.sb-bar a {
	margin-left: 6px;
	color: var(--sb-blue);
	text-underline-offset: 3px;
}
.sb-bar a:hover {
	color: var(--sb-blue-hover);
}
@media (max-width: 480px) {
	.sb-bar strong {
		display: none;
	}
}

/* === header: white, inside the rails; a hairline appears under it once the page has scrolled === */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: calc(var(--sb-bar-h) * -1);
	z-index: 100;
}
body.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: calc(var(--wp-admin--admin-bar--height, 32px) - var(--sb-bar-h));
}
.sb-header {
	position: relative;
	background-color: color-mix(in srgb, var(--sb-white) 88%, transparent);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
	color: var(--sb-ink);
}
.sb-header::before,
.sb-header::after {
	content: "";
	position: absolute;
	pointer-events: none;
}
/* The rails pass through the header. */
.sb-header::before {
	inset-block: 0;
	left: var(--sb-rail);
	right: var(--sb-rail);
	border-inline: 1px solid var(--sb-line);
}
/* The hairline under it, full width, fading in on scroll. */
.sb-header::after {
	inset-inline: 0;
	bottom: -1px;
	height: 1px;
	background-color: var(--sb-line);
	box-shadow: 0 6px 16px rgb(15 15 120 / 0.06);
	opacity: 0;
	transition: opacity var(--sb-base) ease;
}
.sb-header.is-solid::after {
	opacity: 1;
}
.sb-header__bar {
	position: relative;
	min-height: var(--sb-header-h);
	gap: 24px;
}
.sb-header__left {
	gap: clamp(20px, 3.5vw, 44px);
}
/* The logo: the undo key and "snapback" in Rethink Sans, one drawing from brand/build.py. The
   site title stays in the markup for screen readers; its text is not shown. */
.sb-wordmark a {
	display: block;
	width: 143px;
	height: 36px;
	overflow: hidden;
	background: url("assets/brand/snapback-logo.svg") left center / contain no-repeat;
	color: transparent;
	font-size: 0;
}
.sb-nav {
	gap: 2px;
}
.sb-nav .wp-block-navigation-item__content {
	display: inline-block;
	padding: 7px 12px;
	border-radius: 8px;
	color: var(--sb-ink);
	transition:
		background-color var(--sb-fast) ease,
		color var(--sb-fast) ease;
}
.sb-nav .wp-block-navigation-item__content:hover {
	background-color: var(--sb-surface);
}
.sb-nav .wp-block-navigation__responsive-container-open,
.sb-nav .wp-block-navigation__responsive-container-close {
	color: var(--sb-ink);
}
/* Phone menu: a white sheet with large ink links. */
.sb-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 20px var(--sb-gutter) 40px;
	background-color: var(--sb-white);
	color: var(--sb-ink);
}
.sb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 64px;
}
.sb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 4px;
	width: 100%;
}
.sb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	padding: 10px 0;
	font-family: var(--sb-display);
	font-size: 2rem;
	font-weight: 400;
	letter-spacing: -0.035em;
	color: var(--sb-ink);
}
.sb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
	background-color: transparent;
	color: var(--sb-blue);
}
.sb-header__cta .wp-block-button__link {
	--sb-btn-lip: 2px;
	min-height: 40px;
	padding: 7px 16px 9px;
	border-radius: 10px;
	font-size: 0.9375rem;
}
/* On phones the menu button sits at the far right, after the button. */
@media (max-width: 599px) {
	.sb-header__bar {
		gap: 12px;
	}
	.sb-header__left {
		flex: 1;
		justify-content: space-between;
	}
	.sb-header__left .sb-nav {
		order: 3;
	}
	.sb-header__bar > .sb-header__cta {
		order: -1;
		display: none;
	}
}

/* === footer: the ink ground, inside the rails. One row: the logo and its sentence as the first
   column, the three link columns beside it. Then the last row and the name very large. === */
.sb-footer {
	padding-block: clamp(3.5rem, 2.5rem + 3vw, 5rem) 0;
	font-size: var(--wp--preset--font-size--small);
	overflow: hidden;
}
.sb-footer .sb-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 9fr);
	align-items: start;
	gap: 40px clamp(32px, 5vw, 80px);
}
.sb-footer__top > * {
	margin: 0 !important;
}
.sb-footer__brand {
	max-width: 22rem;
}
.sb-footer__brand > * {
	margin-block: 0;
}
.sb-footer__brand > * + * {
	margin-top: 14px;
}
.sb-footer .sb-wordmark a {
	background-image: url("assets/brand/snapback-logo-white.svg");
}
.sb-footer .sb-footer__cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px 24px;
}
@media (max-width: 640px) {
	.sb-footer .sb-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.sb-footer__cols > * {
	margin: 0 !important;
}
.sb-footer__col > * {
	margin-block: 0;
}
.sb-footer__title.sb-footer__title {
	margin-bottom: 16px !important;
	font-weight: 500;
	color: #fff;
}
.sb-footer__nav {
	gap: 10px;
}
.sb-footer .sb-footer__nav .wp-block-navigation-item__content {
	color: var(--sb-on-dark-soft);
	transition: color var(--sb-fast) ease;
}
.sb-footer .sb-footer__nav .wp-block-navigation-item__content:hover {
	color: #fff;
}
/* The last row: the year on the left, one line in the middle, the legal links on the right. */
.sb-footer__base {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 10px 32px;
	margin-top: clamp(40px, 5vw, 72px) !important;
	padding-block: 22px;
	border-top: 1px solid var(--sb-line-on-dark);
}
.sb-footer__base > * {
	margin: 0 !important;
}
.sb-footer__love mark {
	color: var(--sb-blue-on-dark) !important;
}
.sb-footer__legal {
	justify-self: end;
	font-size: var(--wp--preset--font-size--small);
}
.sb-footer__legal .wp-block-navigation__container {
	gap: 4px 20px;
}
.sb-footer .sb-footer__legal .wp-block-navigation-item__content {
	padding: 0;
	color: var(--sb-on-dark-soft);
}
.sb-footer .sb-footer__legal .wp-block-navigation-item__content:hover {
	background: none;
	color: #fff;
}
@media (max-width: 699px) {
	.sb-footer__base {
		grid-template-columns: minmax(0, 1fr);
		justify-items: start;
	}
	.sb-footer__legal {
		justify-self: start;
	}
}
/* The name, very large, in lower case like the logo, and drawn in dots like the field: "snap" in faint
   dots, "back" in bright ones, so the word that matters is the one that comes back. */
.sb-footer__mark.sb-footer__mark {
	--sb-dot: rgb(255 255 255 / 0.3);
	margin: clamp(16px, 3vw, 48px) 0 0 !important;
	padding-bottom: clamp(20px, 3vw, 44px);
	font-family: var(--sb-display);
	font-size: clamp(3.75rem, 20.5vw, 17.5rem);
	font-weight: 700;
	line-height: 0.9;
	letter-spacing: -0.05em;
	text-align: center;
	white-space: nowrap;
	user-select: none;
}
.sb-footer__mark.sb-footer__mark,
.sb-footer__mark strong {
	background-image: radial-gradient(circle at center, var(--sb-dot) 0 34%, transparent 38%);
	background-size: clamp(5px, 0.62vw, 9px) clamp(5px, 0.62vw, 9px);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}
.sb-footer__mark strong {
	--sb-dot: #fff;
	font-weight: inherit;
}
@media (max-width: 860px) {
	.sb-footer .sb-footer__top {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* === inner pages (Docs, Changelog, Support, legal, 404, search, archive) === */
.sb-page-head {
	position: relative;
	padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) 0;
	background-color: var(--sb-white);
	color: var(--sb-ink);
}
.sb-page-head > * {
	margin-block: 0;
}
/* The title and the reading column start at the same left edge as the header and footer. */
.sb-page-head > :not(.alignwide, .alignfull),
.sb-page-body > :not(.alignwide, .alignfull) {
	margin-left: 0 !important;
	margin-right: auto !important;
}
.sb-page-title,
.sb-page-head h1 {
	margin: 0;
	color: var(--sb-ink);
	font-size: var(--wp--preset--font-size--headline);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.035em;
}
.sb-page-head :is(.is-style-meta, .wp-block-term-description, .wp-block-post-date) {
	margin-top: 14px;
	color: var(--sb-muted);
}
.sb-page-head .wp-block-search,
.sb-page-body .wp-block-search {
	margin-top: 28px;
}
.sb-page-body {
	padding-block: clamp(2rem, 1.5rem + 2vw, 3rem) var(--sb-pad);
}
.sb-page-body h2 {
	margin-top: 3rem;
	font-family: var(--sb-text);
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.02em;
}
.sb-page-body h2:first-child {
	margin-top: 0;
}
.sb-page-body a:not(.wp-block-button__link) {
	color: var(--sb-blue);
	text-underline-offset: 3px;
}
.sb-page-body a:not(.wp-block-button__link):hover {
	color: var(--sb-blue-hover);
}
.sb-page-body li + li {
	margin-top: 6px;
}
.sb-page-body .wp-block-post-title a {
	color: var(--sb-ink);
	text-decoration: none;
}
.sb-page-body .wp-block-post-title a:hover {
	color: var(--sb-blue);
}
/* === pages, after context.dev's terms page: a link back, the title large, "Last updated" under it and a
   hairline; then the list of the page's sections on the left (site.js builds it from the h2 titles and
   marks the one being read) and the text on the right. With fewer than two sections the list is not
   shown and the text runs in one column. === */
.sb-page {
	padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) var(--sb-pad);
}
.sb-page > * {
	margin-block: 0 !important;
}
.sb-doc__head {
	padding-bottom: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
	border-bottom: 1px solid var(--sb-line);
}
.sb-doc__head > * {
	margin-block: 0;
}
.sb-doc__back {
	margin-bottom: 20px;
	font-size: var(--wp--preset--font-size--small);
}
.sb-doc__back a {
	color: var(--sb-muted);
	text-decoration: none;
}
.sb-doc__back a:hover {
	color: var(--sb-ink);
}
.sb-doc__head .sb-page-title {
	font-size: clamp(2.5rem, 1.6rem + 3vw, 3.5rem);
	line-height: 1.08;
}
.sb-doc__meta {
	gap: 0.35em;
	margin-top: 18px;
	color: var(--sb-muted);
	font-size: var(--wp--preset--font-size--body);
}
.sb-doc__meta > * {
	margin: 0;
}
/* WordPress prints the date only once a page has been edited after it was published. */
.sb-doc__meta:not(:has(time)) {
	display: none;
}
.sb-doc__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px clamp(40px, 5vw, 72px);
	align-items: start;
	padding-top: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
}
.sb-doc__grid > * {
	margin: 0 !important;
}
.sb-doc__grid > .sb-page-body {
	max-width: 46rem;
	padding: 0;
}
.sb-doc__grid > .sb-page-body > * {
	max-width: none;
}
.sb-doc__toc {
	display: none;
}
@media (min-width: 961px) {
	.sb-doc__grid:has(.sb-doc__toc ul) {
		grid-template-columns: 232px minmax(0, 1fr);
	}
	.sb-doc__toc:has(ul) {
		display: block;
		position: sticky;
		top: calc(var(--sb-header-h) + 28px);
		max-height: calc(100vh - var(--sb-header-h) - 56px);
		overflow-y: auto;
		padding-right: 20px;
		border-right: 3px solid var(--sb-line);
		font-size: var(--wp--preset--font-size--small);
		line-height: 1.35;
	}
}
.sb-doc__toc > * {
	margin: 0;
}
.sb-doc__toc-title {
	margin-bottom: 12px !important;
	font-weight: 500;
	color: var(--sb-ink);
}
.sb-doc__toc ul {
	display: grid;
	gap: 11px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sb-doc__toc a {
	color: var(--sb-muted);
	text-decoration: none;
}
.sb-doc__toc a:hover {
	color: var(--sb-ink);
}
.sb-doc__toc a.is-current {
	color: var(--sb-blue);
}
.sb-doc .sb-page-body h2 {
	margin-top: 3.25rem;
	font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem);
	font-weight: 400;
	letter-spacing: -0.025em;
	scroll-margin-top: calc(var(--sb-header-h) + 28px);
}
.sb-doc .sb-page-body h2:first-child,
.sb-doc .sb-page-body .is-style-lead + h2 {
	margin-top: 0;
}
.sb-doc .sb-page-body .is-style-lead {
	margin-bottom: 2.5rem;
}

/* === blog, after context.dev's: a centred opening (the title with its last word in blue, one line, one
   key) over a short stage with the key from the logo; then the posts as cards, three to a row. A card is
   a picture tile (the post's picture, or the key on the dotted field when it has none), the date, the
   title and two lines. === */
.sb-hero--blog .sb-hero__text {
	padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
.sb-blog__stage {
	min-height: clamp(180px, 22vw, 260px);
	border-top: 1px solid var(--sb-sec-line);
}
.sb-blog__stage::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url("assets/brand/snapback-mark.svg") center / auto min(62%, 150px) no-repeat;
}
.sb-blog .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sb-blog .wp-block-post-template > li {
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	border-radius: var(--sb-radius-md);
	background-color: #fff;
	box-shadow:
		0 0 0 1px var(--sb-card-line),
		0 0 0 6px var(--sb-card-ring);
	transition: box-shadow var(--sb-base) ease;
}
.sb-blog .wp-block-post-template > li > * {
	margin: 0;
}
.sb-post__tile {
	aspect-ratio: 16 / 10;
	border-bottom: 1px solid var(--sb-card-line);
}
.sb-post__tile > * {
	margin: 0;
}
.sb-post__tile img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* No picture: the key from the logo on the field. */
.sb-post__tile:not(:has(img))::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url("assets/brand/snapback-mark.svg") center / auto 46% no-repeat;
}
.sb-post__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.sb-post__body > * {
	margin: 0;
}
.sb-blog .wp-block-post-title {
	font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: -0.025em;
}
.sb-blog .wp-block-post-title a {
	color: var(--sb-ink);
	text-decoration: none;
}
.sb-blog .wp-block-post-title a:hover {
	color: var(--sb-blue);
}
.sb-blog .wp-block-post-excerpt {
	color: var(--sb-muted);
	font-size: var(--wp--preset--font-size--small);
}
.sb-blog .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	margin: 0;
}
.sb-blog .wp-block-post-excerpt__more-text {
	display: none;
}
.sb-blog .wp-block-query-pagination {
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}
.sb-blog .wp-block-query-pagination-numbers {
	display: flex;
	gap: 8px;
}
.sb-blog .wp-block-query-pagination :is(a, .page-numbers) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	box-sizing: border-box;
	padding: 0 12px 2px;
	border-radius: 10px;
	box-shadow: inset 0 0 0 1px var(--sb-card-line);
	font-size: var(--wp--preset--font-size--small);
	color: var(--sb-ink);
	text-decoration: none;
}
.sb-blog .wp-block-query-pagination .page-numbers.current {
	background-color: var(--sb-ink);
	box-shadow: inset 0 -2px 0 rgb(255 255 255 / 0.24);
	color: #fff;
}
.sb-blog__more {
	margin-top: 40px;
}
.sb-blog > .wp-block-query {
	margin-top: 0;
}
.sb-blog__empty {
	padding: clamp(2rem, 1.5rem + 2vw, 3rem);
	border-radius: var(--sb-radius-md);
	background-color: #fff;
	box-shadow:
		0 0 0 1px var(--sb-card-line),
		0 0 0 6px var(--sb-card-ring);
	color: var(--sb-muted);
	text-align: center;
}
.sb-blog__empty > * {
	margin: 0;
}
@media (max-width: 1023px) {
	.sb-blog .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 639px) {
	.sb-blog .wp-block-post-template {
		grid-template-columns: minmax(0, 1fr);
	}
}
/* === a post, after context.dev's: a head band over the faint grid with the title and one line (the
   writer's picture, name and the date), a hairline, then the text in one centred reading column. === */
.sb-post-head {
	position: relative;
	isolation: isolate;
	padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem) clamp(2rem, 1.5rem + 2vw, 3rem);
}
.sb-post-head::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(to right, rgb(12 14 40 / 0.05) 1px, transparent 1px),
		linear-gradient(to bottom, rgb(12 14 40 / 0.05) 1px, transparent 1px);
	background-size: 64px 64px;
	background-position: center top;
	-webkit-mask-image: radial-gradient(60% 100% at 50% 0%, #000 0%, transparent 72%);
	mask-image: radial-gradient(60% 100% at 50% 0%, #000 0%, transparent 72%);
	pointer-events: none;
}
.sb-post-head > *,
.sb-post > * {
	margin-block: 0 !important;
}
.sb-post__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: 44rem !important;
	margin-inline: auto !important;
}
.sb-post__inner > * {
	margin-block: 0;
}
.sb-post-head h1 {
	font-size: clamp(2rem, 1.3rem + 2.4vw, 2.75rem);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.035em;
}
.sb-post__by {
	align-items: center;
	gap: 12px;
	margin-top: 22px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--sb-muted);
}
.sb-post__by > * {
	margin: 0;
}
.sb-post__by .wp-block-avatar img {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}
.sb-post__by .wp-block-post-author-name {
	font-weight: 500;
	color: var(--sb-ink);
}
.sb-post {
	padding-block: clamp(2rem, 1.5rem + 2vw, 3rem) var(--sb-pad);
}
.sb-prose > * {
	max-width: none;
	margin-block: 0;
}
.sb-prose :is(p, li) {
	font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	line-height: 1.62;
	color: color-mix(in srgb, var(--sb-ink) 82%, transparent);
}
.sb-prose p + p,
.sb-prose :is(ul, ol, blockquote, pre, figure, .wp-block-code, .wp-block-image) + p,
.sb-prose p + :is(ul, ol, blockquote, pre, figure, .wp-block-code, .wp-block-image) {
	margin-top: 1.35em;
}
.sb-prose h2 {
	margin-top: 2.75rem;
	margin-bottom: 1rem;
	font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.03em;
}
.sb-prose h3 {
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	font-size: 1.375rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.02em;
}
.sb-prose a {
	color: var(--sb-blue);
	text-decoration: none;
}
.sb-prose a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.sb-prose :is(ul, ol) {
	padding-left: 1.3em;
}
.sb-prose li + li {
	margin-top: 0.55em;
}
.sb-prose li::marker {
	color: var(--sb-blue);
}
.sb-prose strong {
	font-weight: 500;
	color: var(--sb-ink);
}
/* A quoted line: a pale blue bar and larger ink words. */
.sb-prose blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 22px;
	border: 0;
	border-left: 7px solid var(--sb-tint);
	border-radius: 3px;
}
.sb-prose blockquote p {
	font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
	color: var(--sb-ink);
}
.sb-prose :not(pre) > code {
	padding: 2px 6px;
	border-radius: var(--sb-radius-xs);
	background-color: var(--sb-tint);
	font-size: 0.875em;
	color: var(--sb-blue);
}
/* A block of code: a white card in the pale ring. */
.sb-prose :is(pre, .wp-block-code) {
	overflow-x: auto;
	padding: 20px 22px;
	border-radius: var(--sb-radius-md);
	background-color: #fff;
	box-shadow:
		0 0 0 1px var(--sb-card-line),
		0 0 0 6px var(--sb-card-ring);
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--sb-ink);
}
.sb-prose :is(pre, .wp-block-code) code {
	padding: 0;
	background: none;
	color: inherit;
}
.sb-prose img {
	border-radius: var(--sb-radius-md);
}
.sb-post__more {
	margin-top: clamp(2.5rem, 2rem + 2vw, 4rem) !important;
}

/* === the About page, after plugpress.io's own: on the dotted field a small label, "The story." large,
   then the founder's words beside his picture in a window; under it two plain sections in the same
   narrow column, the second a timeline of years. === */
.sb-story > *,
.sb-story-more > * {
	margin-block: 0 !important;
}
.sb-story__band {
	padding: clamp(3.5rem, 2rem + 6vw, 7rem) var(--sb-inset);
}
.sb-story__band > * {
	margin-block: 0 !important;
}
.sb-story__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: 56rem !important;
	margin-inline: auto !important;
}
.sb-story__inner > * {
	margin-block: 0;
}
.sb-story h1 {
	margin-top: 14px;
	font-size: clamp(2.25rem, 1.1rem + 3.4vw, 3.5rem);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.035em;
}
.sb-story__cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 264px;
	gap: 40px clamp(40px, 6vw, 80px);
	align-items: start;
	margin-top: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}
.sb-story__cols > * {
	margin: 0 !important;
}
.sb-story__text > * {
	margin-block: 0;
}
.sb-story__text p {
	font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
	line-height: 1.62;
	color: var(--sb-ink);
}
.sb-story__text p + p {
	margin-top: 1.2em;
}
.sb-story__text a,
.sb-story-more a {
	color: var(--sb-blue);
	text-underline-offset: 3px;
}
.sb-story__side > * {
	margin-block: 0;
}
.sb-story__frame {
	width: 100%;
}
.sb-story__photo {
	margin: 0;
}
.sb-story__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
}
.sb-story__caption.sb-story__caption {
	margin-top: 14px;
	text-align: center;
}
/* A small note stuck under the picture, a little askew. */
.sb-story__note {
	width: fit-content;
	max-width: 11.5rem;
	margin: 28px auto 0 !important;
	padding: 14px 16px;
	border-radius: var(--sb-radius-in);
	background-color: #fff;
	box-shadow:
		0 0 0 1px var(--sb-card-line),
		0 10px 22px -12px rgb(15 15 120 / 0.3);
	font-size: var(--wp--preset--font-size--small);
	font-style: italic;
	line-height: 1.45;
	color: var(--sb-ink);
	transform: rotate(-3deg);
}
.sb-story-more .sb-story__inner > h2 {
	margin-bottom: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
}
.sb-story-more .sb-story__inner > p {
	max-width: 40rem;
	font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	line-height: 1.62;
	color: var(--sb-ink);
}
.sb-story-more .sb-story__inner > p + p {
	margin-top: 1.1em;
}
.sb-timeline > * {
	margin: 0 !important;
}
.sb-timeline__row {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 16px;
	align-items: baseline;
	padding-block: 20px;
	border-top: 1px solid var(--sb-line);
}
.sb-timeline__row:first-child {
	border-top: 0;
}
.sb-timeline__row > * {
	margin: 0 !important;
}
.sb-timeline__year {
	font-family: var(--sb-mono);
	font-size: var(--wp--preset--font-size--small);
	color: var(--sb-muted);
}
@media (max-width: 800px) {
	.sb-story__cols {
		grid-template-columns: minmax(0, 1fr);
	}
	.sb-story__side {
		max-width: 264px;
	}
}
.is-style-note {
	padding: 16px 20px;
	border-radius: var(--sb-radius-md);
	background-color: var(--sb-surface);
	font-size: var(--wp--preset--font-size--small);
	color: var(--sb-muted);
}
:not(pre) > code {
	padding: 2px 6px;
	border-radius: 6px;
	background-color: var(--sb-surface);
	font-family: var(--sb-mono);
	font-size: 0.875em;
}
.wp-block-search__inside-wrapper {
	gap: 8px;
}
.wp-block-search__input {
	min-height: 48px;
	padding: 10px 16px;
	border: 0;
	border-radius: var(--sb-radius);
	background-color: #fff;
	box-shadow: var(--sb-shadow-ring);
	font: inherit;
	color: var(--sb-ink);
}
.wp-block-search__input:focus-visible {
	outline: 2px solid var(--sb-blue);
	outline-offset: 2px;
}
/* The rails also run beside an inner page, from the header to the footer. */
main:has(> .sb-page-head) {
	position: relative;
}
main:has(> .sb-page-head)::before {
	content: "";
	position: absolute;
	inset-block: 0;
	left: var(--sb-rail);
	right: var(--sb-rail);
	border-inline: 1px solid var(--sb-line);
	border-top: 1px solid var(--sb-line);
	pointer-events: none;
}

/* === motion: only when the visitor has not asked for less === */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
	@media (hover: hover) and (pointer: fine) {
		.wp-block-button:not(.is-style-quiet) :is(a[href], button).wp-block-button__link:hover {
			transform: translateY(-1px);
		}
		/* A product picture rises a little under the pointer. */
		.is-style-shot img,
		.sb-window,
		.sb-phone {
			transition: transform var(--sb-slow) var(--sb-ease);
		}
		.sb-ui {
			transition: transform var(--sb-slow) var(--sb-ease);
		}
		:is(.sb-band__media, .sb-tile):hover :is(.is-style-shot img, .sb-window, .sb-phone, .sb-ui) {
			transform: translateY(-4px);
		}
		.sb-card:hover {
			box-shadow:
				0 0 0 1px color-mix(in srgb, var(--sb-blue) 34%, var(--sb-card-line)),
				0 0 0 6px color-mix(in srgb, var(--sb-blue) 9%, var(--sb-card-ring));
		}
	}
	/* Pressed: the key goes down onto its lip. */
	.wp-block-button:not(.is-style-quiet) :is(a[href], button).wp-block-button__link:active {
		--sb-btn-lip: 1px;
		transform: translateY(2px);
	}

	/* Scroll reveal. The page is fully visible without the script; site.js adds "sb-anim" to the pieces it
	   will bring in and "is-in" when each one reaches the window. */
	.sb-anim {
		opacity: 0;
		transform: translateY(18px);
		transition:
			opacity var(--sb-slow) var(--sb-ease) var(--sb-delay, 0ms),
			transform var(--sb-slow) var(--sb-ease) var(--sb-delay, 0ms);
	}
	.sb-anim.is-in {
		opacity: 1;
		transform: none;
	}
}
