/*
Theme Name: BittFlick
Description: BittFlick design on top of GeneratePress: video tools and guides for creators.
Template: generatepress
Version: 2.0.0
*/

/* Fonts are served from this theme (latin subset), not from Google. */
@font-face {  font-family: 'Bricolage Grotesque';  font-style: normal;  font-weight: 500 800;  font-stretch: 100%;  font-display: swap;  src: url(fonts/bricolage-grotesque.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: 'Instrument Sans';  font-style: normal;  font-weight: 400 700;  font-stretch: 100%;  font-display: swap;  src: url(fonts/instrument-sans.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: 'JetBrains Mono';  font-style: normal;  font-weight: 500;  font-display: swap;  src: url(fonts/jetbrains-mono-500.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; }

/* Paper, ink and one orange. The GeneratePress palette variables are re-pointed at the brand.
   Orange is for fills and marks; text on paper stays ink, because orange text is too faint to read. */
:root {
	color-scheme: light;
	--accent: #a8400f;        /* the few places text itself is coloured */
	--contrast: #18150f;      /* ink */
	--contrast-2: #5d564a;    /* secondary text */
	--contrast-3: #a39b8b;
	--base: #d6cebd;          /* thin rules */
	--base-2: #f3eee4;        /* paper */
	--base-3: #f3eee4;
	--bf-orange: #f2581b;
	--bf-ink: #18150f;        /* stays dark in both modes: text on orange, readouts */
	--bf-panel: #e9e2d3;      /* calculator panel */
	--bf-dot: rgba(24, 21, 15, .13);
	--bf-head: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
	--bf-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bf-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
html[data-theme="dark"] {
	color-scheme: dark;
	--accent: #ff8a52;
	--contrast: #f1eadc;
	--contrast-2: #b5ac9a;
	--contrast-3: #6e6657;
	--base: #3a342a;
	--base-2: #15120e;
	--base-3: #15120e;
	--bf-panel: #1f1b15;
	--bf-dot: rgba(241, 234, 220, .1);
}

body { background: var(--base-2); color: var(--contrast); font-family: var(--bf-body); font-size: 17px; line-height: 1.6; }
::selection { background: var(--bf-orange); color: var(--bf-ink); }
h1, h2, h3, h4 { font-family: var(--bf-head); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--contrast); text-decoration: underline; text-decoration-color: var(--bf-orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--bf-orange); outline-offset: 2px; }

button, input[type="submit"], a.button {
	background: var(--bf-orange); color: var(--bf-ink); border: 0; border-radius: 3px;
	font: 600 15px/1 var(--bf-body); padding: 15px 22px; text-decoration: none; display: inline-block; transition: background .15s, color .15s, transform .1s;
}
button:hover, input[type="submit"]:hover, a.button:hover, a.button:focus { background: var(--contrast); color: var(--base-2); }
button:active, a.button:active { transform: translateY(1px); }
.bf-label { font: 700 17px/1.3 var(--bf-head); letter-spacing: -0.01em; margin: 0; }
.bf-meta, .entry-meta { font: 500 12px var(--bf-mono); color: var(--contrast-2); margin: 0; }

/* ---------- Header ---------- */
.site-header { border-bottom: 2px solid var(--contrast); }
.inside-header { padding: 16px 40px; }
.main-title { margin: 0; }
.bf-wordmark { display: inline-flex; align-items: center; font: 800 22px/1 var(--bf-head); letter-spacing: -0.01em; text-transform: uppercase; color: var(--contrast); text-decoration: none; }
.bf-wordmark:hover { color: var(--contrast); }
.bf-wordmark b { font-weight: 800; background: var(--bf-orange); color: var(--bf-ink); padding: .16em .18em .14em; margin-left: .1em; }

.main-navigation, .main-navigation ul ul { background: transparent; }
.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items .menu-bar-item > a { font: 500 15px/44px var(--bf-body); color: var(--contrast); padding: 0 13px; text-decoration: none; }
.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a,
.main-navigation .menu-bar-items .menu-bar-item > a:hover { color: var(--accent); background: transparent; }
.main-navigation .main-nav ul li[class*="current-menu-"] > a { color: var(--contrast); background: transparent; box-shadow: inset 0 -3px 0 var(--bf-orange); }
.main-navigation .menu-bar-items .bf-theme { background: none; color: var(--contrast); border: 1.5px solid var(--contrast); border-radius: 3px; font: 500 13px/1 var(--bf-body); padding: 6px 10px; margin: 0 6px 0 10px; }
.main-navigation .menu-bar-items .bf-theme:hover { background: var(--contrast); color: var(--base-2); }
html:not([data-theme="dark"]) .bf-theme__to-light, html[data-theme="dark"] .bf-theme__to-dark { display: none; }
.navigation-search input[type="search"], .navigation-search input[type="search"]:focus { font: 500 16px var(--bf-body); background: var(--base-3); color: var(--contrast); opacity: 1; border: 0; border-bottom: 3px solid var(--bf-orange); }
a.generate-back-to-top { background: var(--contrast); color: var(--base-2); border-radius: 3px; right: 24px; bottom: 24px; }
a.generate-back-to-top:hover, a.generate-back-to-top:focus { background: var(--bf-orange); color: var(--bf-ink); }

/* ---------- Homepage ---------- */
.bf-hero { padding-top: 28px; }
.bf-hero__top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: end; }
.bf-hero h1 { font-size: clamp(40px, 5.9vw, 84px); font-weight: 800; letter-spacing: -0.035em; line-height: .98; margin: 0 0 28px; }
.bf-hero__art { margin: 0; padding: 22px; border: 2px solid var(--contrast); background: var(--bf-panel) radial-gradient(var(--bf-dot) 1px, transparent 1.5px) 0 0 / 16px 16px; }
.bf-hero__art svg { display: block; width: 100%; height: auto; overflow: visible; }
.bf-hero__art text { font: 500 12px var(--bf-mono); fill: currentColor; }
.bf-hero__art text:first-of-type { fill: var(--bf-ink); }
.bf-hero__art ul { list-style: none; margin: 4px 0 14px; border-top: 2px solid var(--contrast); }
.bf-hero__art li { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--base); font-size: 14px; margin: 0; }
.bf-hero__art li b { font: 500 13px var(--bf-mono); }
.bf-hero__art li span:first-of-type { font: 500 13px var(--bf-mono); }
.bf-hero__art li span:last-child { color: var(--contrast-2); }
.bf-hero__art figcaption a { font-size: 14px; font-weight: 600; }
.bf-hero__sub { font-size: 20px; color: var(--contrast-2); max-width: 56ch; margin: 0; }

/* The bitrate picker, written as a sentence */
.bf-say { margin-top: 48px; padding-top: 28px; border-top: 2px solid var(--contrast); }
.bf-say__q { font: 500 clamp(22px, 2.7vw, 34px)/1.5 var(--bf-head); letter-spacing: -0.02em; margin: 0 0 18px; }
.bf-say select {
	appearance: none; -webkit-appearance: none; font: inherit; font-weight: 700; color: var(--contrast); background-color: transparent; border: 0; border-bottom: 4px solid var(--bf-orange); border-radius: 0;
	padding: 0 26px 0 2px; margin: 0 2px; cursor: pointer; width: auto; height: auto;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: right 10px top 55%, right 4px top 55%; background-size: 6px 6px; background-repeat: no-repeat;
}
.bf-say__a { font: 800 clamp(40px, 7.4vw, 104px)/1 var(--bf-head); letter-spacing: -0.035em; margin: 0 0 22px; }
.bf-say__a strong { font: 500 .92em var(--bf-mono); letter-spacing: -0.06em; background: var(--bf-orange); color: var(--bf-ink); padding: 0 .16em; white-space: nowrap; }
.bf-say__note { font-size: 15px; color: var(--contrast-2); max-width: 70ch; margin: 0; }

.bf-sec { margin-top: 96px; }
.bf-sec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.bf-sec__head h2 { font-size: clamp(30px, 3.8vw, 46px); margin: 0; }
.bf-sec__head a, .bf-more a { font-weight: 600; font-size: 15px; }
.bf-more { margin: 32px 0 0; }

/* ---------- Tool index: a numbered list, not cards ---------- */
.bf-index, .entry-content .bf-index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--contrast); }
.bf-index li { border-bottom: 1px solid var(--base); margin: 0; }
.bf-index a { display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.5fr) 36px; gap: 24px; align-items: baseline; padding: 22px 14px; color: var(--contrast); text-decoration: none; transition: background .15s; }
.bf-index a:hover, .bf-index a:focus-visible { background: var(--bf-orange); color: var(--bf-ink); }
.bf-index__n { font: 500 14px var(--bf-mono); color: var(--contrast-2); }
.bf-index__title, .entry-content .bf-index__title { font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; margin: 0; }
.bf-index__blurb { font-size: 16px; line-height: 1.45; color: var(--contrast-2); }
.bf-index__go { font: 500 24px/1 var(--bf-head); text-align: right; transition: transform .15s; }
.bf-index a:hover .bf-index__n, .bf-index a:hover .bf-index__blurb, .bf-index a:focus-visible .bf-index__n, .bf-index a:focus-visible .bf-index__blurb { color: var(--bf-ink); }
.bf-index a:hover .bf-index__go { transform: translateX(6px); }

/* ---------- Guides: one lead story and a ruled list ---------- */
.bf-guides { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; border-top: 2px solid var(--contrast); padding-top: 24px; }
.bf-guides .bf-list { border-top: 0; }
.bf-list { border-top: 2px solid var(--contrast); }
.bf-card { margin: 0; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--base); min-width: 0; }
.bf-guides .bf-list .bf-card:first-child { padding-top: 0; }
.bf-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bf-panel); align-self: start; border: 1px solid var(--contrast); }
.bf-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-ph { display: flex; align-items: flex-end; width: 100%; height: 100%; padding: 14px; background: var(--bf-orange); color: var(--bf-ink); font: 700 16px var(--bf-head); }
.bf-kicker { font: 600 13px var(--bf-body); color: var(--contrast); text-decoration: none; }
.bf-kicker::before { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--bf-orange); margin-right: 8px; }
.bf-kicker:hover { text-decoration: underline; text-decoration-color: var(--bf-orange); }
.bf-card__title { font-size: 22px; font-weight: 600; line-height: 1.18; margin: 8px 0; }
.bf-card__title a { color: var(--contrast); text-decoration: none; }
.bf-card__title a:hover { text-decoration: underline; text-decoration-color: var(--bf-orange); text-decoration-thickness: 3px; }
.bf-card__excerpt { font-size: 15.5px; line-height: 1.5; color: var(--contrast-2); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bf-guides .bf-list .bf-card__excerpt, .bf-related .bf-card__excerpt { display: none; }
.bf-guides__lead .bf-card { display: block; padding: 0; border: 0; }
.bf-guides__lead .bf-card__media { margin-bottom: 20px; }
.bf-guides__lead .bf-card__title { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; line-height: 1.06; margin: 10px 0 12px; }
.bf-guides__lead .bf-card__excerpt { font-size: 17px; -webkit-line-clamp: 3; }

/* ---------- Calculators ---------- */
.bf-tool__title { font-size: 26px; margin: 40px 0 14px; }
.bf-tool { padding: 24px; border: 2px solid var(--contrast); background: var(--bf-panel) radial-gradient(var(--bf-dot) 1px, transparent 1.5px) 0 0 / 16px 16px; margin: 0 0 28px; }
.bf-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; }
.bf-fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
.bf-tool label, .bf-dur legend { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: var(--contrast); }
.bf-tool input, .bf-tool select { width: 100%; height: 48px; padding: 0 12px; font: 500 16px var(--bf-mono); color: var(--contrast); background: var(--base-2); border: 1.5px solid var(--contrast); border-radius: 2px; }
.bf-tool select { font-family: var(--bf-body); }
.bf-join { display: flex; gap: 6px; }
.bf-join select { width: auto; flex: none; }
.bf-unit { display: flex; align-items: center; padding: 0 12px; border: 1.5px solid var(--contrast); border-radius: 2px; background: var(--base-2); font: 500 14px var(--bf-mono); }
.bf-dur { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.bf-dur legend { padding: 0; margin-bottom: 7px; }
.bf-dur label { gap: 4px; }
.bf-dur label span { font-size: 11px; font-weight: 500; color: var(--contrast-2); }
/* The answer: a dark readout with orange figures, the same on every tool */
.bf-result { margin-top: 20px; padding: 20px 22px; background: var(--bf-ink); color: #f1eadc; display: grid; gap: 6px; }
html[data-theme="dark"] .bf-result { background: #0b0906; }
.bf-result__label { font-size: 13px; font-weight: 600; color: #b5ac9a; }
.bf-result strong { font: 500 clamp(30px, 5vw, 46px)/1.1 var(--bf-mono); letter-spacing: -0.04em; color: var(--bf-orange); overflow-wrap: anywhere; }
.bf-result__note { font-size: 14px; line-height: 1.5; color: #d0c8b7; }
.bf-hint { font-size: 14px; color: var(--contrast-2); margin: 14px 0 0; }
.entry-content .bf-table, .bf-table { margin: 20px 0 0; border: 0; font-size: 15px; background: var(--base-2); }
.bf-table caption { text-align: left; font-size: 13px; font-weight: 600; padding-bottom: 8px; }
.bf-table th, .bf-table td, .entry-content th, .entry-content td { border: 0; border-bottom: 1px solid var(--base); padding: 10px 12px; text-align: left; }
.bf-table th, .entry-content th { font-size: 13px; font-weight: 700; color: var(--contrast); background: transparent; border-bottom: 2px solid var(--contrast); }
.bf-table td:last-child { font-family: var(--bf-mono); font-size: 14px; }

/* ---------- Archives, search ---------- */
.archive .site-main, .search .site-main { max-width: 860px; }
.archive .site-main > .bf-card:first-of-type, .search .site-main > .bf-card:first-of-type { border-top: 2px solid var(--contrast); }
.archive .bf-card, .search .bf-card { grid-template-columns: 260px minmax(0, 1fr); }
.page-header { padding: 0; margin: 0 0 32px; }
.page-header .page-title { font-size: clamp(38px, 5.4vw, 68px); font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.taxonomy-description { max-width: 62ch; margin-top: 16px; font-size: 18px; color: var(--contrast-2); }
.taxonomy-description p:last-child { margin-bottom: 0; }
.nav-links, .paging-navigation { font-size: 15px; font-weight: 600; margin-top: 36px; }
.nav-links .page-numbers { padding: 8px 13px; color: var(--contrast); text-decoration: none; }
.nav-links .page-numbers.current { background: var(--contrast); color: var(--base-2); }

/* Breadcrumbs */
.rank-math-breadcrumb { font-size: 13px; color: var(--contrast-2); margin-bottom: 20px; }
.rank-math-breadcrumb p { margin: 0; }
.rank-math-breadcrumb a { color: var(--contrast-2); text-decoration-thickness: 1px; text-decoration-color: var(--contrast-3); }
.rank-math-breadcrumb a:hover { color: var(--contrast); }
.rank-math-breadcrumb .separator { margin: 0 6px; color: var(--contrast-3); }
.single-post .rank-math-breadcrumb .last, .single-post .rank-math-breadcrumb .separator:has(+ .last) { display: none; }

/* ---------- Articles and pages ---------- */
.single .site-main, .page .site-main { max-width: 760px; margin: 0 auto; }
.single .entry-title, .page .entry-title { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin: 12px 0 18px; }
.entry-meta a { color: var(--contrast); text-decoration: none; }
.bf-dot::before { content: "·"; margin: 0 8px; }
.featured-image { margin: 28px 0 0; }
.featured-image img { border: 1px solid var(--contrast); display: block; }
.entry-content { font-size: 18px; line-height: 1.7; }
.entry-content:not(:first-child) { margin-top: 28px; }
.entry-content h2 { font-size: 32px; margin: 1.8em 0 .5em; }
.entry-content h3 { font-size: 24px; margin: 1.6em 0 .4em; }
.entry-content h2[id] { scroll-margin-top: 24px; }
.entry-content blockquote { border-left: 4px solid var(--bf-orange); font: 500 22px/1.4 var(--bf-head); padding: 2px 0 2px 22px; margin: 1.6em 0; }
.entry-content table { font-size: 15.5px; border: 0; }
.entry-content code { font: 500 .88em var(--bf-mono); background: var(--bf-panel); padding: 2px 6px; }
.single footer.entry-meta { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--base); }

.bf-toc { border-left: 4px solid var(--bf-orange); padding: 4px 0 4px 20px; margin: 0 0 32px; font-size: 16.5px; line-height: 1.5; }
.bf-toc summary { font: 700 17px var(--bf-head); cursor: pointer; }
.bf-toc ol { margin: 12px 0 2px 1.3em; }
.bf-toc li { margin-bottom: 6px; }
.entry-content .bf-toc a { text-decoration-thickness: 1px; text-decoration-color: var(--contrast-3); }
.entry-content .bf-toc a:hover { text-decoration-color: var(--bf-orange); text-decoration-thickness: 2px; color: var(--contrast); }

.bf-share { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-top: 44px; padding-top: 18px; border-top: 2px solid var(--contrast); }
.bf-share a, .bf-share button { font: 500 15px/1.4 var(--bf-body); padding: 0; border: 0; border-radius: 0; background: none; color: var(--contrast); text-decoration: underline; text-decoration-color: var(--bf-orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bf-share a:hover, .bf-share button:hover { background: none; color: var(--accent); }
.bf-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 32px; padding: 22px; border: 2px solid var(--contrast); }
.bf-author__av { flex: none; width: 56px; height: 56px; display: grid; place-items: center; background: var(--bf-orange); color: var(--bf-ink); font: 800 21px var(--bf-head); letter-spacing: -0.03em; }
.bf-author p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--contrast-2); }
.bf-author p.bf-author__name { font: 700 19px var(--bf-head); color: var(--contrast); margin-bottom: 4px; }
.bf-author__name a { text-decoration-thickness: 2px; }
.bf-related { margin-top: 56px; }
.bf-related > .bf-label { margin-bottom: 14px; font-size: 22px; }
.bf-related .bf-card { grid-template-columns: 150px minmax(0, 1fr); }
.bf-related .bf-card__title { font-size: 19px; }

/* Article sidebar: ruled lists, no boxes */
.bf-side { display: flex; flex-direction: column; gap: 40px; }
.bf-side__box { border-top: 2px solid var(--contrast); padding-top: 14px; }
.bf-side ul { list-style: none; margin: 10px 0 0; }
.bf-side li { padding: 10px 0; border-bottom: 1px solid var(--base); font-size: 15.5px; line-height: 1.35; }
.bf-side li a { color: var(--contrast); text-decoration: none; }
.bf-side li a:hover { text-decoration: underline; text-decoration-color: var(--bf-orange); text-decoration-thickness: 2px; }
.bf-side__list a { font: 600 16.5px/1.25 var(--bf-head); letter-spacing: -0.01em; }
@media (min-width: 1025px) {
	.single-post .site-content { gap: 72px; }
	.single-post .site-content .content-area { flex: 1 1 0; width: auto; min-width: 0; }
	.single-post .site-main { margin: 0; }
	.bf-side { flex: 0 0 280px; }
	.bf-side__stick { position: sticky; top: 24px; }
}
@media (max-width: 1024px) {
	.single-post .site-content { flex-direction: column; }
	.bf-side { width: 100%; max-width: 760px; margin: 56px auto 0; }
}

/* Tools index page uses the full width */
.page.bf-wide .site-main { max-width: none; }
.page.bf-wide .entry-content > p { max-width: 60ch; }
.entry-content .bf-index { margin-top: 32px; }

/* 404 */
.bf-404 { max-width: 640px; }
.bf-404 p.bf-404__code { font: 800 clamp(110px, 20vw, 220px)/0.85 var(--bf-head); letter-spacing: -0.06em; margin: 0 0 24px; color: var(--contrast); }
.bf-404__code span { color: var(--bf-orange); }
.bf-404 h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 12px; }
.bf-404 p { color: var(--contrast-2); }
.bf-404 .search-form { display: flex; gap: 8px; margin: 24px 0 16px; }
.bf-404 .search-form label { flex: 1; }
.bf-404 .search-field { width: 100%; height: 48px; border: 1.5px solid var(--contrast); border-radius: 2px; background: var(--base-2); }
.bf-404 .search-submit { height: 48px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 2px solid var(--contrast); margin-top: 104px; }
.bf-foot { max-width: 1200px; margin: 0 auto; padding: 48px 40px 40px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; font-size: 15px; }
.bf-foot__brand p { max-width: 34ch; margin: 0 0 12px; color: var(--contrast-2); }
.bf-foot ul { list-style: none; margin: 0; }
.bf-foot li { margin-bottom: 9px; }
.bf-foot li a { color: var(--contrast); text-decoration: none; }
.bf-foot li a:hover { text-decoration: underline; text-decoration-color: var(--bf-orange); text-decoration-thickness: 2px; }
.site-footer .site-info { background: transparent; color: var(--contrast-2); border-top: 1px solid var(--base); font-size: 13px; }
.site-footer .inside-site-info { padding: 18px 40px; justify-content: flex-start; text-align: left; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1024px) {
	.bf-hero__top { grid-template-columns: 1fr; gap: 32px; }
	.bf-hero__art { max-width: 380px; }
	.bf-guides { grid-template-columns: 1fr; gap: 32px; }
	.bf-guides .bf-list { border-top: 2px solid var(--contrast); }
	.bf-guides .bf-list .bf-card:first-child { padding-top: 22px; }
	.bf-index a { grid-template-columns: 40px minmax(0, 1fr) 30px; row-gap: 6px; }
	.bf-index__n { grid-column: 1; grid-row: 1; }
	.bf-index__title { grid-column: 2; grid-row: 1; }
	.bf-index__blurb { grid-column: 2; grid-row: 2; }
	.bf-index__go { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
}
@media (max-width: 768px) {
	.inside-header { padding: 14px 20px; }
	.bf-sec { margin-top: 64px; }
	.bf-fields, .bf-fields--2 { grid-template-columns: 1fr; }
	.bf-foot { grid-template-columns: 1fr 1fr; padding: 40px 20px 28px; gap: 32px; }
	.bf-foot__brand { grid-column: 1 / -1; }
	.site-footer .inside-site-info { padding: 16px 20px; }
	.entry-content { font-size: 17.5px; }
	.archive .bf-card, .search .bf-card { grid-template-columns: 150px minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.bf-card, .archive .bf-card, .search .bf-card, .bf-related .bf-card { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
	.bf-card__title { font-size: 18px; }
	.bf-card__excerpt { display: none; }
	.bf-guides__lead .bf-card__excerpt { display: -webkit-box; }
	.bf-tool { padding: 18px; }
	.bf-index a { padding: 18px 6px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.bf-index a, .bf-index__go, button, a.button { transition: none; }
}
