/* ── Blog and how-to guides (/blog/, /how-to-guides/) ──────────────────────
   Articles from the Sanity CMS in the site's own frame: one readable column
   (the legal pages' measure), the cover a step wider, cards for the indexes.
   Generated by scripts/landing/blog/pages.mjs; the article HTML comes from
   scripts/landing/blog/portable-text.mjs. Tokens from modules/modules.css. */

.bl-col {
	width: min(720px, calc(100% - 112px));
	margin-inline: auto;
}
/* ── Article head ── */
.bl-head {
	padding-top: 54px;
}
.bl-crumb {
	flex-wrap: wrap;
	margin-bottom: 22px;
}
.bl-crumb > span:last-child {
	color: var(--muted);
	font-weight: 500;
}
.bl-head h1 {
	font-size: clamp(36px, 4.2vw, 56px);
	font-weight: 500;
	line-height: 1.04;
	letter-spacing: -0.052em;
	text-wrap: balance;
}
.bl-lede {
	margin-top: 22px;
	color: var(--muted);
	font-size: 19px;
	line-height: 1.6;
}
.bl-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-top: 22px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
}
.bl-cover {
	width: min(1040px, calc(100% - 112px));
	margin: 44px auto 0;
}
.bl-cover img {
	width: 100%;
	height: auto;
	border-radius: 24px;
	background: var(--paper);
}

/* ── Article body ── */
.bl-body {
	padding-top: 56px;
	color: var(--ink-2);
	font-size: 18px;
	line-height: 1.72;
	overflow-wrap: break-word;
}
.bl-body > * + * {
	margin-top: 22px;
}
.bl-body h2,
.bl-body h3,
.bl-body h4 {
	color: var(--ink);
	text-wrap: balance;
}
.bl-body h2 {
	font-size: clamp(27px, 2.5vw, 34px);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.035em;
}
.bl-body > h2 {
	margin-top: 72px;
}
.bl-body h3 {
	font-size: 21px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.02em;
}
.bl-body > h3,
.bl-step-body > h3 {
	margin-top: 44px;
}
.bl-body h4 {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.01em;
}
.bl-body > h4 {
	margin-top: 32px;
}
.bl-body h2 + *,
.bl-body h3 + *,
.bl-body h4 + * {
	margin-top: 14px;
}
/* The site loads Inter upright only and turns synthesis off; the articles'
   italics are meaning (asides, series notes), so let the browser slant them. */
.bl-body em {
	font-synthesis: style;
}
.bl-body strong {
	color: var(--ink);
	font-weight: 600;
}
.bl-body a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.bl-body a:hover {
	text-decoration-thickness: 2px;
}
.bl-body code {
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--paper);
	color: var(--ink);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.86em;
}
.bl-body ul,
.bl-body ol {
	padding-left: 1.35em;
}
.bl-body ul {
	list-style: disc;
}
.bl-body ol {
	list-style: decimal;
}
.bl-body li {
	padding-left: 4px;
}
.bl-body li + li,
.bl-body li > ul,
.bl-body li > ol {
	margin-top: 8px;
}
.bl-body li::marker {
	color: var(--muted);
}
.bl-body blockquote {
	margin-inline: 0;
	padding: 20px 24px;
	border-radius: 16px;
	background: var(--paper);
	color: var(--ink);
	font-size: 16.5px;
	line-height: 1.65;
}
.bl-figure {
	margin-block: 40px;
}
.bl-body > .bl-figure {
	margin-top: 40px;
}
.bl-figure img {
	width: 100%;
	height: auto;
	border-radius: 16px;
	border: 1px solid var(--line-2);
	background: var(--paper);
}
.bl-figure figcaption {
	margin-top: 12px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}
.bl-code {
	margin-block: 32px;
	overflow: hidden;
	border-radius: 16px;
	background: var(--dark);
}
.bl-code figcaption {
	padding: 10px 18px;
	border-bottom: 1px solid #2a2a2e;
	color: #a8a8ae;
	font-size: 13px;
}
.bl-code pre {
	margin: 0;
	padding: 18px;
	overflow-x: auto;
}
.bl-body .bl-code code {
	padding: 0;
	background: none;
	color: #f5f5f7;
	font-size: 14px;
	line-height: 1.6;
	white-space: pre;
}

/* Tables: string cells; scroll sideways on a phone rather than squeeze. */
.bl-table {
	margin-block: 36px;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 16px;
}
.bl-table:focus-visible {
	outline: 3px solid #5289f6;
	outline-offset: 4px;
}
.bl-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}
.bl-table caption {
	padding: 14px 16px 0;
	color: var(--muted);
	font-size: 14px;
	text-align: left;
}
.bl-table th,
.bl-table td {
	min-width: 140px;
	padding: 13px 16px;
	text-align: left;
	vertical-align: top;
}
.bl-table th {
	background: var(--paper);
	color: var(--ink);
	font-weight: 600;
}
.bl-table tr + tr td,
.bl-table thead + tbody tr td {
	border-top: 1px solid var(--line);
}
.bl-table tbody tr:nth-child(even) td {
	background: var(--paper-2);
}

/* Table of contents: the article's H2s, numbered. */
.bl-toc {
	margin-block: 40px;
	padding: 26px 30px 14px;
	border-radius: 20px;
	background: var(--paper);
}
.bl-toc-title {
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.bl-body .bl-toc ol {
	margin-top: 12px;
	padding: 0;
	list-style: none;
}
.bl-body .bl-toc li {
	margin: 0;
	padding: 0;
}
.bl-body .bl-toc li + li {
	border-top: 1px solid var(--line);
}
.bl-body .bl-toc a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	padding: 11px 0;
	color: var(--ink-2);
	font-size: 16px;
	line-height: 1.45;
	text-decoration: none;
}
.bl-body .bl-toc a:hover {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.bl-toc-n {
	flex-shrink: 0;
	color: var(--faint);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

/* The guides' steps: each one opens on its own; the first starts open. */
.bl-steps {
	margin-block: 36px;
	border-top: 1px solid var(--line);
}
.bl-step {
	border-bottom: 1px solid var(--line);
}
.bl-step summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 0;
	color: var(--ink);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.02em;
	cursor: pointer;
	list-style: none;
}
.bl-step summary::-webkit-details-marker {
	display: none;
}
.bl-step summary::after {
	content: "";
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	background:
		linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
		linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
	transition: transform 0.3s var(--ease);
}
.bl-step[open] summary::after {
	transform: rotate(45deg);
}
.bl-step-body {
	padding-bottom: 28px;
}
.bl-step-body > * + * {
	margin-top: 18px;
}
.bl-step-body > .bl-figure {
	margin: 28px 0;
}

/* The CMS promo block: the site's sign-up, small and dark. */
.bl-promo {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 150px;
	gap: 28px;
	align-items: center;
	margin-block: 48px;
	padding: 32px 32px 32px 36px;
	overflow: hidden;
	border-radius: 24px;
	background: var(--dark);
	color: #fff;
}
.bl-body > .bl-promo {
	margin-top: 48px;
}
.bl-body .bl-promo h3 {
	color: #fff;
	font-size: 26px;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.04em;
}
.bl-promo p {
	margin-top: 10px;
	color: #b4b4ba;
	font-size: 15px;
	line-height: 1.55;
}
.bl-promo .bl-promo-tags {
	color: #8a8a90;
	font-size: 13px;
}
.bl-promo .button {
	margin-top: 22px;
	text-decoration: none;
}
.bl-promo-art img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 12px;
	transform: rotate(3deg);
	box-shadow: 0 24px 48px rgb(0 0 0 / 0.45);
}

/* ── Indexes ── */
.bl-hero {
	padding-top: 54px;
}
.bl-hero h1 {
	font-size: clamp(46px, 6vw, 88px);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.06em;
	text-wrap: balance;
}
.bl-nowrap {
	white-space: nowrap;
}
.bl-hero-lede {
	max-width: 620px;
	margin-top: 26px;
	color: var(--muted);
	font-size: 18px;
	line-height: 1.6;
}
.bl-lead {
	padding-top: 56px;
}
.bl-lead-card {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 32px 56px;
	align-items: center;
}
/* The covers are designed ~2:1 with words on them: show them whole. */
.bl-lead-media,
.bl-card-media {
	overflow: hidden;
	aspect-ratio: 2 / 1;
	background: var(--paper);
}
.bl-lead-media {
	border-radius: 24px;
}
.bl-lead-media img,
.bl-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}
.bl-lead-card:hover img,
.bl-card a:hover img {
	transform: scale(1.03);
}
.bl-lead-copy h2 {
	margin-top: 10px;
	font-size: clamp(30px, 3vw, 44px);
	font-weight: 500;
	line-height: 1.06;
	letter-spacing: -0.045em;
	text-wrap: balance;
}
.bl-lead-copy .bl-excerpt {
	margin-top: 16px;
	color: var(--muted);
	font-size: 17px;
	line-height: 1.6;
}
.bl-lead-card:hover h2,
.bl-card a:hover h3 {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}
.bl-cat {
	color: var(--muted);
	font-size: 13px;
	font-weight: 500;
}
.bl-list,
.bl-related {
	padding-top: 104px;
}
.bl-section-title {
	margin-bottom: 36px;
	font-size: clamp(30px, 3vw, 42px);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.05em;
}
.bl-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px 24px;
}
.bl-card a {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.bl-card-media {
	border-radius: 18px;
}
.bl-card-copy {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding-top: 18px;
}
.bl-card h3 {
	margin-top: 6px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.28;
	letter-spacing: -0.025em;
	text-wrap: balance;
}
.bl-card .bl-excerpt {
	display: -webkit-box;
	margin-top: 10px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.55;
}
.bl-card .bl-meta,
.bl-lead-copy .bl-meta {
	margin-top: 14px;
	font-size: 13px;
}
.bl-card .bl-meta {
	margin-top: auto;
	padding-top: 14px;
}
.bl-empty {
	color: var(--muted);
	font-size: 17px;
}

/* ── Smaller screens ── */
@media (max-width: 980px) {
	.bl-col,
	.bl-cover {
		width: calc(100% - 64px);
	}
	.bl-lead-card {
		grid-template-columns: minmax(0, 1fr);
	}
	.bl-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.bl-col,
	.bl-cover {
		width: calc(100% - 32px);
	}
	.bl-head,
	.bl-hero {
		padding-top: 34px;
	}
	.bl-head h1 {
		font-size: 34px;
		letter-spacing: -0.045em;
	}
	.bl-lede {
		font-size: 17px;
	}
	.bl-cover {
		margin-top: 32px;
	}
	.bl-cover img {
		border-radius: 18px;
	}
	.bl-body {
		padding-top: 40px;
		font-size: 17px;
	}
	.bl-body > h2 {
		margin-top: 56px;
	}
	.bl-body h3 {
		font-size: 19px;
	}
	.bl-toc {
		padding: 22px 20px 10px;
	}
	.bl-promo {
		grid-template-columns: minmax(0, 1fr);
		padding: 28px 24px;
	}
	.bl-promo-art {
		display: none;
	}
	.bl-promo .button {
		width: 100%;
	}
	.bl-hero h1 {
		font-size: 46px;
	}
	.bl-hero-lede {
		font-size: 16px;
	}
	.bl-lead {
		padding-top: 36px;
	}
	.bl-lead-media {
		border-radius: 18px;
	}
	.bl-list,
	.bl-related {
		padding-top: 72px;
	}
	.bl-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
}
