/* The Finance Lead blog: "ink and brass ledger" (mirrors thefinancelead.com tokens). */
:root {
	--tfl-paper: 247 248 250;
	--tfl-surface: 255 255 255;
	--tfl-raised: 241 243 247;
	--tfl-ink: 20 28 46;
	--tfl-muted: 86 96 116;
	--tfl-line: 221 225 233;
	--tfl-rule: 196 203 216;
	--tfl-navy: 28 43 74;
	--tfl-navy-600: 40 58 96;
	--tfl-navy-50: 237 240 246;
	--tfl-brass: 168 122 42;
	--tfl-brass-bright: 201 151 63;
	--tfl-brass-700: 122 87 26;
	--tfl-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--tfl-sans: "Inter Tight", "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--tfl-radius: 6px;
	--tfl-radius-lg: 8px;
	--tfl-gutter: 16px;
}
@media (min-width: 640px) {
	:root { --tfl-gutter: 24px; }
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
	background: rgb(var(--tfl-paper));
	color: rgb(var(--tfl-ink));
	font-family: var(--tfl-sans);
	font-variant-numeric: tabular-nums lining-nums;
	overflow-x: hidden;
}
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0 !important; }
.tfl-header-part, .tfl-footer-part { margin: 0 !important; }
:where(a):focus-visible, .tfl-btn:focus-visible, button:focus-visible, input:focus-visible {
	outline: 2px solid rgb(var(--tfl-brass));
	outline-offset: 2px;
	border-radius: 4px;
}

.tfl-i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Buttons */
.tfl-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 36px; padding: 0 14px; border-radius: var(--tfl-radius);
	font: 500 14px/1 var(--tfl-sans); text-decoration: none !important; white-space: nowrap;
	border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.tfl-btn--primary { background: rgb(var(--tfl-navy)); color: #fff !important; }
.tfl-btn--primary:hover { background: rgb(var(--tfl-navy-600)); }
.tfl-btn--secondary { background: rgb(var(--tfl-surface)); color: rgb(var(--tfl-ink)) !important; border-color: rgb(var(--tfl-line)); }
.tfl-btn--secondary:hover { border-color: rgb(var(--tfl-rule)); background: rgb(var(--tfl-raised)); }
.tfl-btn--brass { background: #fff; color: rgb(var(--tfl-navy)) !important; height: 44px; padding: 0 18px; font-size: 15px; }
.tfl-btn--brass:hover { background: rgb(var(--tfl-navy-50)); }
.tfl-btn--ghost-inverse { color: #fff !important; border-color: rgb(255 255 255 / .3); height: 44px; padding: 0 18px; font-size: 15px; }
.tfl-btn--ghost-inverse:hover { border-color: rgb(255 255 255 / .6); }

/* Header */
.tfl-header {
	position: sticky; top: 0; z-index: 30;
	background: rgb(var(--tfl-surface) / .92);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid rgb(var(--tfl-line));
}
.admin-bar .tfl-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tfl-header { top: 46px; } }
.tfl-header__inner {
	max-width: 1152px; margin: 0 auto; padding: 0 var(--tfl-gutter);
	height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.tfl-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; color: rgb(var(--tfl-ink)) !important; min-width: 0; }
.tfl-brand__name { font: 600 17px/1 var(--tfl-serif); letter-spacing: -0.01em; white-space: nowrap; }
.tfl-brand--sm .tfl-brand__name { font-size: 15px; }
.tfl-mark { flex-shrink: 0; display: block; }
.tfl-nav { display: flex; align-items: center; gap: 24px; }
.tfl-nav__link { font-size: 14px; color: rgb(var(--tfl-muted)) !important; text-decoration: none !important; }
.tfl-nav__link:hover { color: rgb(var(--tfl-ink)) !important; }
.tfl-nav__link.is-active { color: rgb(var(--tfl-ink)) !important; font-weight: 600; box-shadow: inset 0 -2px 0 rgb(var(--tfl-brass)); padding: 22px 0; }
@media (max-width: 767px) {
	.tfl-hide-sm { display: none; }
	.tfl-nav { gap: 16px; }
}
@media (max-width: 400px) {
	.tfl-hide-xs { display: none; }
	.tfl-brand__name { font-size: 15px; }
	.tfl-header .tfl-mark { width: 24px; height: 24px; }
}

/* Layout */
.tfl-main { margin: 0 !important; }
.tfl-container { max-width: 1152px; margin: 0 auto !important; padding: 0 var(--tfl-gutter); box-sizing: content-box; }
.tfl-section { padding-top: 40px; padding-bottom: 72px; }

/* Hero (index, archive, search, 404) */
.tfl-hero {
	margin: 0 !important;
	border-bottom: 1px solid rgb(var(--tfl-line));
	background-color: rgb(var(--tfl-paper));
	background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgb(var(--tfl-line) / .7) 31px, rgb(var(--tfl-line) / .7) 32px);
	padding: 56px 0 48px;
}
@media (min-width: 768px) { .tfl-hero { padding: 80px 0 64px; } }
.tfl-kicker, .tfl-kicker a {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0 !important;
	font: 600 12px/1.4 var(--tfl-sans); text-transform: uppercase; letter-spacing: .1em;
	color: rgb(var(--tfl-brass-700)) !important; text-decoration: none !important;
}
.tfl-hero .tfl-kicker::before { content: ""; width: 24px; height: 1px; background: rgb(var(--tfl-brass)); }
.tfl-hero__title { margin: 14px 0 0 !important; max-width: 820px; font-family: var(--tfl-serif); }
.tfl-hero__lead { margin: 16px 0 0 !important; max-width: 640px; font-size: 18px; line-height: 1.6; color: rgb(var(--tfl-muted)); }
.tfl-404-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px !important; }

/* Search */
.tfl-search { margin-top: 24px !important; max-width: 520px; }
.tfl-search .wp-block-search__inside-wrapper { gap: 8px; }
.tfl-search .wp-block-search__input {
	height: 42px; border: 1px solid rgb(var(--tfl-line)); border-radius: var(--tfl-radius);
	padding: 0 12px; background: #fff; font: 15px var(--tfl-sans); color: rgb(var(--tfl-ink));
}
.tfl-search .wp-block-search__button { height: 42px; margin: 0; border-radius: var(--tfl-radius); }

/* Post grid */
.tfl-posts { margin: 0 !important; }
.tfl-grid { gap: 24px !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)) !important; }
.tfl-card {
	height: 100%; box-sizing: border-box; margin: 0 !important;
	display: flex; flex-direction: column;
	background: rgb(var(--tfl-surface));
	border: 1px solid rgb(var(--tfl-line)); border-radius: var(--tfl-radius-lg);
	overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.tfl-card:hover { border-color: rgb(var(--tfl-rule)); box-shadow: 0 1px 2px rgb(20 28 46 / .05), 0 10px 24px -14px rgb(20 28 46 / .25); }
.tfl-card__media { margin: 0 !important; border-bottom: 1px solid rgb(var(--tfl-line)); }
.tfl-card__media img { display: block; width: 100%; object-fit: cover; }
.tfl-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 0; flex: 1; }
.tfl-card__body > * { margin: 0 !important; }
.tfl-card__date { font-size: 12px; color: rgb(var(--tfl-muted)); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; padding-bottom: 10px; border-bottom: 3px double rgb(var(--tfl-rule)); }
.tfl-card__title { margin-top: 14px !important; font: 600 21px/1.25 var(--tfl-serif) !important; letter-spacing: -0.01em; }
.tfl-card__title a { text-decoration: none !important; color: rgb(var(--tfl-ink)) !important; }
.tfl-card__title a:hover { color: rgb(var(--tfl-navy-600)) !important; text-decoration: underline !important; text-decoration-thickness: 1px !important; text-underline-offset: 3px; }
.tfl-card__excerpt { margin-top: 10px !important; font-size: 15px; line-height: 1.6; color: rgb(var(--tfl-muted)); }
.tfl-card__excerpt p { margin: 0; }
.tfl-card__more { margin-top: auto !important; padding-top: 16px; font-size: 14px; font-weight: 600; color: rgb(var(--tfl-navy)) !important; text-decoration: none !important; }
.tfl-card__more::after { content: " \2192"; color: rgb(var(--tfl-brass)); }
.tfl-pagination { margin-top: 40px !important; font-size: 14px; }
.tfl-pagination a, .tfl-pagination .page-numbers { text-decoration: none; color: rgb(var(--tfl-ink)); }
.tfl-empty { color: rgb(var(--tfl-muted)); }

/* Single article */
.tfl-article { max-width: 680px; margin: 0 auto !important; padding: 48px var(--tfl-gutter) 24px; box-sizing: content-box; }
@media (min-width: 768px) { .tfl-article { padding-top: 64px; } }
.tfl-article__head { padding-bottom: 24px; margin-bottom: 32px !important; border-bottom: 3px double rgb(var(--tfl-rule)); }
.tfl-article__head > * { margin: 0 !important; }
.tfl-back { display: flex; width: fit-content; align-items: center; gap: 6px; font-size: 14px; color: rgb(var(--tfl-muted)) !important; text-decoration: none !important; margin-bottom: 24px !important; }
.tfl-back:hover { color: rgb(var(--tfl-ink)) !important; }
.tfl-article__head .tfl-kicker { margin-bottom: 12px !important; }
.tfl-article__title { font-family: var(--tfl-serif); margin: 0 !important; }
.tfl-meta { margin-top: 16px !important; gap: 6px 18px !important; font-size: 14px; color: rgb(var(--tfl-muted)); }
.tfl-meta > * { margin: 0 !important; }
.tfl-meta > * + *::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: rgb(var(--tfl-rule)); margin: 0 12px 2px -10px; vertical-align: middle; }
.tfl-article__media { margin: 0 0 32px !important; }
.tfl-article__media img { border-radius: var(--tfl-radius-lg); border: 1px solid rgb(var(--tfl-line)); }

.tfl-prose { font-size: 18px; line-height: 1.72; color: rgb(var(--tfl-ink)); }
.tfl-prose > * { margin-top: 0 !important; margin-bottom: 1.15em !important; }
.tfl-prose h2 { margin-top: 1.9em !important; margin-bottom: .55em !important; padding-top: .6em; border-top: 1px solid rgb(var(--tfl-line)); }
.tfl-prose h3 { margin-top: 1.6em !important; margin-bottom: .45em !important; }
.tfl-prose a { color: rgb(var(--tfl-navy)); text-decoration-color: rgb(var(--tfl-brass)); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.tfl-prose a:hover { color: rgb(var(--tfl-navy-600)); }
.tfl-prose ul, .tfl-prose ol { padding-left: 1.3em; }
.tfl-prose li + li { margin-top: .35em; }
.tfl-prose li::marker { color: rgb(var(--tfl-brass)); }
.tfl-prose blockquote {
	margin-left: 0; margin-right: 0; padding: 4px 0 4px 20px;
	border-left: 3px solid rgb(var(--tfl-brass));
	font-family: var(--tfl-serif); font-size: 20px; color: rgb(var(--tfl-ink));
}
.tfl-prose img { max-width: 100%; height: auto; border-radius: var(--tfl-radius); }
.tfl-prose figcaption { font-size: 13px; color: rgb(var(--tfl-muted)); }
.tfl-prose code { font-size: .88em; background: rgb(var(--tfl-raised)); border: 1px solid rgb(var(--tfl-line)); border-radius: 4px; padding: .1em .35em; }
.tfl-prose pre code { background: none; border: 0; padding: 0; }
.tfl-prose hr { border: 0; border-top: 3px double rgb(var(--tfl-rule)); }
.tfl-prose table, .tfl-prose .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.tfl-prose .wp-block-table { overflow-x: auto; }
.tfl-prose th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: rgb(var(--tfl-muted)); border-bottom: 3px double rgb(var(--tfl-rule)); padding: 8px 10px; }
.tfl-prose td { border: 0; border-bottom: 1px solid rgb(var(--tfl-line)); padding: 9px 10px; }
.tfl-prose .wp-block-table thead { border-bottom: 0; }
.tfl-prose .wp-block-table td, .tfl-prose .wp-block-table th { border-left: 0; border-right: 0; border-top: 0; }

.tfl-tags { margin-top: 32px !important; font-size: 13px; }
.tfl-tags a { display: inline-block; padding: 3px 9px; border: 1px solid rgb(var(--tfl-line)); border-radius: 4px; color: rgb(var(--tfl-muted)); text-decoration: none; background: #fff; }
.tfl-tags .wp-block-post-terms__separator { display: none; }
.tfl-tags a + a, .tfl-tags a ~ a { margin-left: 6px; }

.tfl-postnav { max-width: 680px; margin: 8px auto 0 !important; padding: 24px var(--tfl-gutter) 0; box-sizing: content-box; border-top: 1px solid rgb(var(--tfl-line)); font-size: 15px; gap: 16px; }
.tfl-postnav a { color: rgb(var(--tfl-navy)); text-decoration: none; font-weight: 500; }
.tfl-postnav a:hover { text-decoration: underline; }

/* CTA */
.tfl-cta { max-width: 1152px; margin: 56px auto 72px !important; padding: 0 var(--tfl-gutter); box-sizing: content-box; }
.tfl-cta__inner {
	position: relative; overflow: hidden;
	background: rgb(var(--tfl-navy)); color: #fff; border-radius: var(--tfl-radius-lg);
	padding: 40px 28px 40px 34px;
}
.tfl-cta__inner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: rgb(var(--tfl-brass)); }
@media (min-width: 768px) { .tfl-cta__inner { padding: 48px 56px; } }
.tfl-cta__kicker { margin: 0; font: 600 12px/1.4 var(--tfl-sans); letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--tfl-brass-bright)); }
.tfl-cta__title { margin: 10px 0 0; color: #fff !important; font-family: var(--tfl-serif); font-size: clamp(24px, 3vw, 32px); max-width: 720px; }
.tfl-cta__body { margin: 12px 0 0; max-width: 640px; color: rgb(255 255 255 / .82); font-size: 16px; line-height: 1.6; }
.tfl-cta__actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.tfl-footer { background: rgb(var(--tfl-surface)); border-top: 1px solid rgb(var(--tfl-line)); }
.tfl-footer__inner { max-width: 1152px; margin: 0 auto; padding: 40px var(--tfl-gutter) 32px; }
.tfl-footer__top { display: flex; flex-direction: column; gap: 28px; padding-bottom: 28px; border-bottom: 3px double rgb(var(--tfl-rule)); }
@media (min-width: 768px) { .tfl-footer__top { flex-direction: row; justify-content: space-between; } }
.tfl-footer__about { max-width: 380px; }
.tfl-footer__about p { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: rgb(var(--tfl-muted)); }
.tfl-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 48px; font-size: 14px; align-content: start; }
@media (min-width: 640px) { .tfl-footer__links { grid-template-columns: repeat(3, minmax(0, max-content)); } }
.tfl-footer__links a { color: rgb(var(--tfl-muted)); text-decoration: none; }
.tfl-footer__links a:hover { color: rgb(var(--tfl-ink)); }
.tfl-footer__copy { margin: 20px 0 0; font-size: 12px; color: rgb(var(--tfl-muted)); }
