/* ==========================================================================
   Beautically – paleta „Szałwia i glinka”
   ========================================================================== */

:root {
	--bg: #F6F5F0;
	--surface: #E7EBE3;
	--surface-2: #EEF1EA;
	--white: #FFFFFF;
	--text: #1E2A24;
	--muted: #55625A;
	--line: #E2E6DE;
	--line-strong: #C5CEC2;
	--primary: #3E5E4F;
	--primary-dark: #1E2A24;
	--accent: #C9896A;
	--accent-soft: #E9C3AE;
	--accent-text: #A35F3F;
	--plum: #2F2536;
	--cat: #3E5E4F;

	--serif: "DM Serif Display", Georgia, "Times New Roman", serif;
	--sans: Karla, "Helvetica Neue", Arial, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 24px);
	--gap: clamp(20px, 3vw, 32px);
	--section: clamp(48px, 7vw, 80px);
	--r: 4px;
	--r-big: clamp(60px, 10vw, 160px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { text-wrap: balance; }
button, input, textarea, select { font: inherit; color: inherit; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.bt-skip:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 100;
	top: 8px; left: 8px; padding: 10px 16px; background: var(--white); color: var(--text);
}

.bt-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.bt-main { display: block; }

/* ---------- Typography helpers ---------- */
.bt-h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 52px); line-height: 1.06; margin: 0; }
.bt-h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.08; margin: 0; }
.bt-h1 em, .bt-h2 em { color: var(--cat); }
.bt-eyebrow {
	display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
	text-transform: uppercase; color: var(--cat);
}
.bt-muted { color: var(--muted); }
.bt-more { font-weight: 700; font-size: 15px; color: var(--cat); text-decoration: none; }
.bt-more:hover { text-decoration: underline; color: var(--cat); }
.bt-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--cat); flex: none; display: inline-block; }

.bt-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
	padding: 10px 24px; border-radius: 999px; border: 1px solid var(--primary);
	background: var(--primary); color: var(--white); font-weight: 700; font-size: 15px;
	text-decoration: none; cursor: pointer;
}
.bt-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.bt-btn--ghost { background: transparent; color: var(--primary); }
.bt-btn--ghost:hover { background: var(--primary); color: var(--white); }
.bt-btn--light { background: var(--bg); border-color: var(--bg); color: var(--primary); }
.bt-btn--light:hover { background: var(--white); color: var(--primary-dark); }
.bt-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Logo ---------- */
.bt-logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--primary); line-height: 1; }
.bt-logo:hover { color: var(--primary); }
.bt-logo__word { font-family: var(--serif); font-size: clamp(28px, 3vw, 36px); letter-spacing: -.01em; white-space: nowrap; }
.bt-logo__i { position: relative; display: inline-block; }
.bt-logo .bt-leaf {
	position: absolute; left: 50%; top: 0; width: .38em; height: .38em;
	transform: translateX(-22%); fill: var(--accent);
}
.bt-leaf__vein { fill: none; stroke: var(--white); stroke-width: 1.2; }
.bt-footer .bt-logo { color: var(--bg); }
.bt-footer .bt-logo .bt-leaf { fill: var(--accent-soft); }
.bt-footer .bt-leaf__vein { stroke: var(--primary-dark); }

/* ---------- Top bar & header ---------- */
.bt-topbar { background: var(--primary); color: var(--surface); font-size: 14px; }
.bt-topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-block: 8px; }
.bt-topbar__links { display: flex; gap: 18px; }
.bt-topbar a { color: var(--surface); }
.bt-topbar a:hover { color: var(--white); }

.bt-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.bt-header__inner { display: flex; align-items: center; gap: 16px 28px; padding-block: 20px; }
.bt-header .bt-logo { margin-right: auto; }

.bt-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; font-weight: 600; }
.bt-nav__list > li { position: relative; }
.bt-nav__list a, .bt-nav__more summary {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
	color: var(--text); text-decoration: none; cursor: pointer;
}
.bt-nav__list > li > a { border-bottom: 2px solid transparent; }
.bt-nav__list > li > a:hover,
.bt-nav__list > .current-menu-item > a,
.bt-nav__list > .current-category-ancestor > a { color: var(--cat); border-bottom-color: var(--cat); }
.bt-nav__more summary { color: var(--muted); list-style: none; }
.bt-nav__more summary::-webkit-details-marker { display: none; }
.bt-nav__more summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.bt-nav__more ul, .bt-nav__list .sub-menu {
	list-style: none; margin: 0; padding: 10px; position: absolute; right: 0; top: 100%; z-index: 20;
	min-width: 230px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
	box-shadow: 0 12px 32px rgb(30 42 36 / .12);
}
.bt-nav__list .sub-menu { display: none; left: 0; right: auto; }
.bt-nav__list li:hover > .sub-menu, .bt-nav__list li:focus-within > .sub-menu { display: block; }
.bt-nav__more ul a, .bt-nav__list .sub-menu a { width: 100%; padding: 4px 10px; border-radius: var(--r); }
.bt-nav__more ul a:hover, .bt-nav__list .sub-menu a:hover { background: var(--surface-2); }

.bt-search { position: relative; }
.bt-search summary { list-style: none; }
.bt-search summary::-webkit-details-marker { display: none; }
.bt-icon-btn {
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
	display: flex; align-items: center; justify-content: center; color: var(--primary); cursor: pointer; background: transparent;
}
.bt-icon-btn:hover { background: var(--surface); }
.bt-search__panel {
	position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: min(420px, calc(100vw - 32px));
	background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px;
	box-shadow: 0 12px 32px rgb(30 42 36 / .12);
}
.bt-searchform { display: flex; gap: 8px; }
.bt-searchform input {
	flex: 1; min-width: 0; min-height: 44px; padding: 8px 16px; border-radius: 999px;
	border: 1px solid var(--line-strong); background: var(--white);
}

@media (max-width: 860px) {
	.bt-header__inner { flex-wrap: wrap; padding-block: 14px 0; }
	.bt-nav { order: 3; width: 100%; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; width: calc(100% + 2 * var(--gutter)); }
	.bt-nav::-webkit-scrollbar { display: none; }
	.bt-nav__list { flex-wrap: nowrap; white-space: nowrap; gap: 18px; padding-bottom: 4px; }
	.bt-nav__more { position: static; }
	.bt-nav__more ul { left: var(--gutter); right: var(--gutter); top: auto; }
}

/* ---------- Media ---------- */
.bt-media {
	position: relative; display: block; overflow: hidden; border-radius: var(--r);
	aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--cat) 16%, var(--bg));
}
.bt-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bt-media__leaf { position: absolute; width: 28%; max-width: 80px; left: 50%; top: 50%; transform: translate(-50%, -50%); fill: color-mix(in srgb, var(--cat) 35%, transparent); }
.bt-media__leaf .bt-leaf__vein { stroke: color-mix(in srgb, var(--cat) 16%, var(--bg)); }
@media (prefers-reduced-motion: no-preference) {
	a:hover .bt-media img { transform: scale(1.04); }
}
.bt-media--wide { aspect-ratio: 16 / 10; }
.bt-media--tall { aspect-ratio: 4 / 5; }
.bt-media--square { aspect-ratio: 1 / 1; }
.bt-media--round { aspect-ratio: 1 / 1; border-radius: 50%; }
.bt-media--circle { border-radius: 50%; }
.bt-media--cut { border-radius: var(--r) var(--r) clamp(40px, 6vw, 80px) var(--r); }
.bt-media--arch { border-radius: 999px 999px var(--r) var(--r); }
.bt-media--dome { border-radius: 50% 50% var(--r) var(--r); }
.bt-media--on-dark { background: rgb(255 255 255 / .14); }
.bt-media--fill { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }

/* ---------- Labels & meta ---------- */
.bt-cat { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cat); text-decoration: none; }
.bt-cat--pill {
	position: absolute; left: 14px; top: 14px; z-index: 1; background: var(--cat); color: var(--white);
	font-size: 12px; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px;
}
.bt-meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.bt-meta__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--accent); }

.bt-chip {
	display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
	border-radius: 999px; background: color-mix(in srgb, var(--cat) 12%, var(--bg));
	color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px;
}
.bt-chip:hover { background: var(--cat); color: var(--white); }
.bt-chip:hover .bt-dot { background: var(--white); }
.bt-catbar { border-block: 1px solid var(--line); }
.bt-catbar__inner { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 18px; }

/* ---------- Cards ---------- */
.bt-card__link { display: flex; flex-direction: column; gap: 12px; color: var(--text); text-decoration: none; height: 100%; }
.bt-card__link:hover { color: var(--text); }
.bt-card__link:hover .bt-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.bt-card__title { font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 2vw, 24px); line-height: 1.18; margin: 0; }
.bt-card__media-wrap { position: relative; display: block; }
.bt-card__excerpt { color: var(--muted); max-width: 60ch; }

.bt-card--feature .bt-card__title { font-size: clamp(28px, 3vw, 36px); line-height: 1.1; }
.bt-card--list .bt-card__link { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 18px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.bt-card--list .bt-card__body { display: flex; flex-direction: column; gap: 4px; }
.bt-card--list .bt-card__title { font-size: 20px; line-height: 1.2; }
.bt-card--band .bt-card__link { background: var(--bg); border-radius: var(--r); padding: 14px 14px 20px; }
.bt-card--mini .bt-card__link { padding-top: 14px; border-top: 1px solid var(--line); }
.bt-card--mini .bt-card__title { font-size: 20px; }

/* ---------- Layout ---------- */
.bt-section { padding-block: var(--section); display: flex; flex-direction: column; gap: 28px; }
.bt-section + .bt-section { padding-top: 0; }
.bt-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.bt-section-head--rule { border-bottom: 2px solid var(--cat); padding-bottom: 14px; }
.bt-section-head--rule .bt-h2 { color: var(--cat); }
.bt-section-head__titles { display: flex; flex-direction: column; gap: 6px; }

.bt-stack { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.bt-split { display: flex; flex-wrap: wrap; gap: 40px; }
.bt-split__main { flex: 3 1 440px; min-width: 0; }
.bt-split__side { flex: 2 1 300px; min-width: 0; gap: 0; }
.bt-split__side .bt-card--grid { margin-bottom: 24px; }
.bt-grid { display: grid; gap: 40px 28px; }
.bt-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.bt-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.bt-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.bt-grid--mosaic { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 28px; align-items: start; }
.bt-grid--varied > :nth-child(6n+2) .bt-media { border-radius: var(--r) 60px var(--r) var(--r); }
.bt-grid--varied > :nth-child(6n+3) .bt-media { border-radius: 50% 50% var(--r) var(--r) / 40% 40% var(--r) var(--r); }
.bt-grid--varied > :nth-child(6n+4) .bt-media { border-radius: var(--r) var(--r) 60px var(--r); }
.bt-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; }
.bt-duo .bt-card--grid .bt-card__title { font-size: clamp(24px, 2.4vw, 28px); }
.bt-duo .bt-grid--2 .bt-card__title { font-size: 19px; }
.bt-duo .bt-grid--2 .bt-meta { display: none; }

.bt-band { background: var(--surface); }
.bt-band--cat { background: color-mix(in srgb, var(--cat) 9%, var(--bg)); }
.bt-band--plum { background: var(--plum); color: #F1ECF3; --cat: #D9C3E6; }
.bt-band--plum .bt-card__link, .bt-band--plum .bt-card__link:hover { color: #F1ECF3; }
.bt-band--plum .bt-media { background: #6B4F7A; }
.bt-band--plum .bt-media__leaf { fill: rgb(255 255 255 / .3); }
.bt-band--plum .bt-media__leaf .bt-leaf__vein { stroke: #6B4F7A; }
.bt-band--plum .bt-muted { color: #CFC4D6; }
.bt-band--plum .bt-more { color: #F1ECF3; }
.bt-dark-split { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 48px; }
.bt-dark-split__intro { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.bt-dark-split > .bt-grid { flex: 2 1 520px; min-width: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }

/* ---------- Home hero ---------- */
.bt-hero { display: flex; flex-wrap: wrap; gap: 24px; padding-block: 40px 48px; }
.bt-hero__main {
	flex: 999 1 560px; min-width: 0; min-height: clamp(420px, 48vw, 580px); position: relative; overflow: hidden;
	display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; color: var(--text);
	border-radius: var(--r) var(--r-big) var(--r) var(--r);
}
.bt-hero__main:hover { color: var(--text); }
.bt-hero__panel {
	position: relative; z-index: 1; background: var(--bg); max-width: 580px; margin-right: 24px;
	padding: 28px 32px 24px; border-radius: 0 40px 0 0; display: flex; flex-direction: column; gap: 10px;
}
.bt-hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; margin: 0; }
.bt-hero__main:hover .bt-hero__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.bt-hero__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.bt-hero__tile {
	flex: 1; min-height: 240px; position: relative; overflow: hidden; border-radius: var(--r);
	padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none;
}
.bt-hero__tile--solid { background: var(--cat); color: var(--white); }
.bt-hero__tile--solid .bt-eyebrow { color: rgb(255 255 255 / .85); }
.bt-hero__tile--tint { background: color-mix(in srgb, var(--cat) 14%, var(--bg)); color: var(--text); border-radius: var(--r) var(--r) var(--r) 100px; padding-left: 56px; }
.bt-hero__tile:hover { color: inherit; }
.bt-hero__tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bt-hero__tile--solid .bt-hero__tile-img { opacity: .28; mix-blend-mode: luminosity; }
.bt-hero__tile--tint .bt-hero__tile-img { opacity: .18; }
.bt-hero__tile-text { position: relative; display: flex; flex-direction: column; gap: 10px; }
.bt-hero__tile-title { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 28px); line-height: 1.12; }
.bt-hero__tile:hover .bt-hero__tile-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (max-width: 600px) {
	.bt-hero__panel { margin-right: 0; padding: 22px 20px 18px; border-radius: 0 28px 0 0; }
	.bt-hero__main { min-height: 460px; }
}

/* ---------- Author ---------- */
.bt-author__frame { overflow: hidden; background: var(--accent); }
.bt-author__photo { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Photo cut into a circle on white: zoom so the arch frame shows only the inside of the circle. */
.bt-author__photo--circle { transform: scale(1.34); transform-origin: 50% 46%; }
.bt-author--section { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 6vw, 64px); padding-block: var(--section); }
.bt-author--section .bt-author__frame { flex: 1 1 260px; max-width: 380px; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r) var(--r); }
.bt-author--section .bt-author__text { flex: 2 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.bt-author--section .bt-h1 em { color: var(--accent-text); }
.bt-author--section .bt-eyebrow { color: var(--primary); }
.bt-author__bio { font-size: 19px; max-width: 60ch; }
.bt-author__bio p { margin: 0 0 12px; }
.bt-author--end {
	display: flex; flex-wrap: wrap; gap: 28px; align-items: center; background: var(--surface);
	border-radius: var(--r) var(--r) 100px var(--r); padding: clamp(24px, 4vw, 36px); margin-top: 40px; scroll-margin-top: 24px;
}
.bt-author--end .bt-author__frame { width: 140px; height: 172px; flex: none; border-radius: 70px 70px var(--r) var(--r); }
.bt-author--end .bt-author__text { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bt-author--end .bt-eyebrow { color: var(--primary); }
.bt-author--end .bt-author__bio { font-size: 17px; }
.bt-author__name { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); line-height: 1.05; margin: 0; }
.bt-side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; }
.bt-author--side { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.bt-author--side .bt-author__frame { width: 112px; height: 136px; border-radius: 56px 56px var(--r) var(--r); }
.bt-author--side .bt-author__name { font-size: 26px; }
.bt-author--side .bt-more, .bt-author--quote .bt-more { color: var(--primary); }
.bt-author__short { font-size: 15px; color: var(--muted); margin: 0; }
.bt-author--quote { display: flex; flex-direction: column; gap: 12px; }
.bt-author--quote .bt-author__frame { width: 96px; height: 116px; border-radius: 48px 48px var(--r) var(--r); }
.bt-author--quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.25; color: var(--primary); }
.bt-author__sign { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Trends & banner ---------- */
.bt-trends {
	background: var(--cat); color: var(--white); border-radius: var(--r) 100px var(--r) var(--r);
	padding: 32px; display: flex; flex-direction: column; gap: 14px;
}
.bt-trends .bt-eyebrow { color: rgb(255 255 255 / .85); }
.bt-trends__title { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; margin: 0; }
.bt-trends ul { list-style: none; margin: 0; padding: 0; }
.bt-trends li a { display: block; padding-block: 12px; border-top: 1px solid rgb(255 255 255 / .3); color: var(--white); text-decoration: none; font-weight: 600; }
.bt-trends li a:hover { text-decoration: underline; }
.bt-trends__all { color: var(--white); font-weight: 700; font-size: 15px; }
.bt-trends__all:hover { color: var(--white); }

.bt-banner {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; align-items: center;
	background: var(--primary); color: var(--bg); border-radius: var(--r) var(--r) var(--r-big) var(--r); padding: clamp(28px, 5vw, 48px);
}
.bt-banner__text { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.bt-banner .bt-eyebrow { color: var(--accent-soft); }
.bt-banner p { margin: 0; color: #DDE5DA; max-width: 50ch; }
.bt-banner__posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bt-banner__posts a { display: flex; flex-direction: column; gap: 8px; color: var(--bg); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.3; }
.bt-banner__posts a:hover { color: var(--white); text-decoration: underline; }
.bt-banner .bt-media__leaf { fill: rgb(255 255 255 / .35); }

/* ---------- Empty states ---------- */
.bt-empty { padding-block: var(--section); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.bt-empty p { margin: 0; max-width: 60ch; color: var(--muted); }
.bt-empty .bt-eyebrow { color: var(--primary); }
.bt-404__code { font-family: var(--serif); font-size: clamp(80px, 14vw, 160px); line-height: .9; color: var(--accent); }
.bt-archive-head { padding-block: 56px 8px; display: flex; flex-direction: column; gap: 12px; }
.bt-archive-head .bt-eyebrow { color: var(--primary); }
.bt-archive-head__search { width: min(560px, 100%); }

/* ---------- Single post ---------- */
.bt-single__head { max-width: 900px; padding-block: 48px 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.bt-crumbs { font-size: 14px; color: var(--muted); }
.bt-crumbs a { color: var(--muted); }
.bt-single__title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.4vw, 56px); line-height: 1.06; margin: 0; }
.bt-byline {
	display: flex; align-items: center; gap: 14px; text-align: left; text-decoration: none; color: var(--text);
	background: var(--surface); border-radius: 999px; padding: 8px 22px 8px 8px; font-size: 15px; line-height: 1.35;
}
.bt-byline:hover { color: var(--text); background: var(--surface-2); }
.bt-byline img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--accent); flex: none; }
.bt-single__image { margin: 0; border-radius: var(--r) var(--r) var(--r) clamp(60px, 10vw, 140px); overflow: hidden; }
.bt-single__image img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.bt-single__layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-block: 56px 72px; }
.bt-single__main { flex: 999 1 560px; min-width: 0; max-width: 740px; }
.bt-single__side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 1000px) {
	.bt-side-toc--sticky, .bt-single__side .bt-side-toc { position: sticky; top: 24px; }
}

.bt-side-toc { background: var(--primary); color: var(--bg); border-radius: var(--r); padding: 24px; }
.bt-side-toc .bt-eyebrow { color: var(--accent-soft); margin: 0 0 8px; }
.bt-side-toc ul, .bt-side-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bt-side-toc a { display: block; padding: 7px 0 7px 12px; border-left: 3px solid #5C7A6B; color: var(--bg); text-decoration: none; font-size: 15px; line-height: 1.4; }
.bt-side-toc a:hover { border-left-color: var(--accent-soft); color: var(--white); }
.bt-side-toc a[aria-current] { border-left-color: var(--accent); color: var(--white); font-weight: 700; }
.bt-ranked ol { counter-reset: rank; }
.bt-ranked li { counter-increment: rank; }
.bt-ranked a { border-left: 0; padding-left: 0; display: grid; grid-template-columns: 32px minmax(0, 1fr); border-bottom: 1px solid rgb(255 255 255 / .15); padding-block: 10px; }
.bt-ranked a::before { content: counter(rank); font-family: var(--serif); font-size: 24px; line-height: 1; color: var(--accent-soft); }

.bt-side-cats { background: var(--surface); border: 0; }
.bt-side-cats__title { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--primary); margin: 0 0 10px; }
.bt-side-cats ul { list-style: none; margin: 0; padding: 0; }
.bt-side-cats a { display: flex; align-items: center; gap: 10px; min-height: 36px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px; }
.bt-side-cats a:hover { color: var(--cat); }
.bt-side-cats .bt-dot { width: 10px; height: 10px; }

/* Inline TOC */
.bt-toc {
	margin: 28px 0 32px; padding: 26px 30px; background: var(--white);
	border: 1px solid var(--line-strong); border-radius: var(--r) 40px var(--r) var(--r);
}
.bt-toc__title { font-family: var(--serif); font-size: 26px; color: var(--primary); margin: 0 0 8px; }
.bt-toc__list { list-style: none; margin: 0; padding: 0; }
.bt-toc__list a { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: baseline; gap: 8px; padding-block: 8px; border-bottom: 1px solid var(--surface-2); color: var(--text); text-decoration: none; font-size: 17px; }
.bt-toc__list li:last-child a { border-bottom: 0; }
.bt-toc__list a:hover { color: var(--primary); text-decoration: underline; }
.bt-toc__n { font-family: var(--serif); font-size: 22px; color: var(--accent-text); }

/* Post content */
.bt-entry { font-size: 18px; line-height: 1.75; }
.bt-entry > *:first-child { margin-top: 0; }
.bt-entry > p:first-child { font-size: 21px; line-height: 1.6; }
.bt-entry p, .bt-entry ul, .bt-entry ol, .bt-entry figure, .bt-entry table, .bt-entry blockquote { margin: 0 0 22px; }
.bt-entry h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 34px); line-height: 1.15; margin: 44px 0 16px; scroll-margin-top: 24px; }
.bt-entry h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.2; margin: 32px 0 12px; }
.bt-entry h4 { font-size: 19px; margin: 24px 0 8px; }
.bt-entry ul, .bt-entry ol { padding-left: 24px; }
.bt-entry li { margin-bottom: 6px; }
.bt-entry ul li::marker { color: var(--accent); }
.bt-entry ol li::marker { color: var(--accent-text); font-weight: 700; }
.bt-entry strong { font-weight: 700; }
.bt-entry a { color: var(--primary); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.bt-entry img { border-radius: var(--r); display: block; }
.bt-entry figure { max-width: 100%; }
.bt-entry figcaption, .bt-entry .wp-caption-text { font-size: 14px; color: var(--muted); margin-top: 8px; }
.bt-entry .wp-caption { max-width: 100%; }
.bt-entry blockquote {
	padding: 22px 26px; background: #F3E4DB; border-radius: var(--r) 40px var(--r) var(--r);
	font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--text);
}
.bt-entry blockquote p:last-child { margin-bottom: 0; }
.bt-entry hr { border: 0; height: 1px; background: var(--line-strong); margin: 40px 0; }
.bt-entry iframe, .bt-entry video { max-width: 100%; }
.bt-entry table { display: table; border-collapse: collapse; width: 100% !important; font-size: 16px; line-height: 1.5; }
.bt-entry table th, .bt-entry table td { padding: 12px 16px !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; text-align: left; vertical-align: top; }
.bt-entry table thead th, .bt-entry table thead td, .bt-entry table tr:first-child th { background: var(--primary) !important; color: var(--white) !important; font-weight: 600; }
.bt-entry table tbody tr:nth-child(even) td { background: var(--surface-2) !important; }
.alignleft { float: left; margin: 6px 24px 16px 0; }
.alignright { float: right; margin: 6px 0 16px 24px; }
.aligncenter { margin-inline: auto; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 0 0 22px; } .bt-entry table { display: block; overflow-x: auto; } }

/* The theme renders these itself. */
.bt-entry #ez-toc-container, .bt-entry .ez-toc-container,
.bt-entry .saboxplugin-wrap, .bt-entry .yarpp, .bt-entry .yarpp-related, .bt-entry .yarpp-related-website { display: none !important; }

.bt-tags { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bt-tags a { display: inline-flex; min-height: 36px; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; }
.bt-tags a:hover { background: var(--primary); color: var(--white); }

/* ---------- Category page ---------- */
.bt-cat-hero { background: var(--cat); color: var(--white); }
.bt-cat-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: clamp(44px, 7vw, 72px); }
.bt-cat-hero__text { flex: 3 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.bt-cat-hero .bt-crumbs, .bt-cat-hero .bt-crumbs a { color: rgb(255 255 255 / .85); }
.bt-cat-hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 9vw, 104px); line-height: .95; margin: 0; }
.bt-cat-hero__desc { font-size: 20px; max-width: 54ch; color: rgb(255 255 255 / .92); }
.bt-cat-hero__desc p { margin: 0; }
.bt-cat-hero__topics { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bt-cat-hero__topics .bt-eyebrow { color: rgb(255 255 255 / .85); margin-right: 6px; }
.bt-cat-hero__topics a {
	min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px;
	border: 1px solid rgb(255 255 255 / .5); color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px;
}
.bt-cat-hero__topics a:hover { background: var(--white); color: var(--cat); }
.bt-cat-hero__art {
	flex: 2 1 280px; max-width: 400px; aspect-ratio: 1 / 1; border-radius: 999px 999px var(--r) var(--r);
	overflow: hidden; background: rgb(255 255 255 / .16); display: flex; align-items: center; justify-content: center;
}
.bt-cat-hero__art img { width: 100%; height: 100%; object-fit: cover; }
.bt-cat-hero__art > .bt-leaf { width: 40%; fill: rgb(255 255 255 / .45); }
.bt-cat-hero__art .bt-leaf__vein { stroke: var(--cat); stroke-width: .8; }

.bt-guide {
	display: flex; flex-direction: column; gap: 14px; background: var(--bg); border-radius: var(--r) var(--r) 60px var(--r);
	padding: 28px; color: var(--text); text-decoration: none; height: 100%;
}
.bt-guide:hover { color: var(--text); box-shadow: 0 10px 28px rgb(30 42 36 / .1); }
.bt-guide__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--cat); color: var(--white); display: flex; align-items: center; justify-content: center; }
.bt-guide__title { font-family: var(--serif); font-size: 26px; line-height: 1.12; }
.bt-guide .bt-more { color: var(--primary); }

.bt-with-side { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 48px; }
.bt-with-side__main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.bt-with-side__side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.bt-with-side .bt-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

.bt-others .bt-h2 { font-size: 32px; }
.bt-cat-tile {
	min-height: 160px; border-radius: var(--r) var(--r) 60px var(--r); background: var(--cat); color: var(--white);
	text-decoration: none; padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
}
.bt-cat-tile:hover { color: var(--white); filter: brightness(1.08); }
.bt-cat-tile .bt-eyebrow { color: rgb(255 255 255 / .85); }
.bt-cat-tile__name { font-family: var(--serif); font-size: 28px; line-height: 1.05; }

/* ---------- Pagination ---------- */
.bt-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.bt-pagination .page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong);
	display: inline-flex; align-items: center; justify-content: center; color: var(--text); text-decoration: none; font-weight: 600;
}
.bt-pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: var(--white); }
.bt-pagination a.page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.bt-pagination .dots { border: 0; }

/* ---------- Comments ---------- */
.bt-comments { margin-top: 56px; display: flex; flex-direction: column; gap: 20px; }
.bt-comments__list, .bt-comments__list .children { list-style: none; margin: 0; padding: 0; }
.bt-comments__list .children { padding-left: clamp(16px, 4vw, 48px); }
.bt-comments__list .comment-body { padding: 20px 0; border-bottom: 1px solid var(--line); }
.bt-comments__list .comment-author { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.bt-comments__list .avatar { border-radius: 50%; }
.bt-comments__list .says { display: none; }
.bt-comments__list .comment-metadata { font-size: 14px; }
.bt-comments__list .comment-metadata a { color: var(--muted); }
.comment-respond { background: var(--surface); border-radius: var(--r) 40px var(--r) var(--r); padding: clamp(20px, 4vw, 32px); }
.comment-form { display: flex; flex-direction: column; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--white);
}
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ---------- Page ---------- */
.bt-page__body { max-width: 780px; padding-block: 24px 72px; }

/* ---------- Footer ---------- */
.bt-footer { background: var(--primary-dark); color: #C5CEC2; font-size: 15px; }
.bt-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-block: 56px 40px; }
.bt-footer__about { flex: 1 1 280px; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.bt-footer__about p { margin: 0; }
.bt-footer__title { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-soft); margin: 0 0 10px; }
.bt-footer ul { list-style: none; margin: 0; padding: 0; }
.bt-footer__cats ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 40px; }
.bt-footer__links ul { display: flex; flex-direction: column; gap: 6px; }
.bt-footer a { color: var(--surface); text-decoration: none; }
.bt-footer a:hover { color: var(--white); text-decoration: underline; }
.bt-footer__bottom { border-top: 1px solid rgb(255 255 255 / .12); padding-block: 18px; font-size: 14px; }

/* ---------- Mega menu ---------- */
.bt-header { position: relative; z-index: 40; }
.bt-mega > li { position: static; }
.bt-mega__trigger {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none;
	font-weight: 600; font-size: 15px; color: var(--text); cursor: pointer; border-bottom: 2px solid transparent;
}
.bt-mega__trigger::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.bt-mega__item:hover > .bt-mega__trigger, .bt-mega__item.is-open > .bt-mega__trigger,
.bt-mega__item.current-menu-item > .bt-mega__trigger { color: var(--primary); border-bottom-color: var(--accent); }
.bt-mega__panel {
	position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line);
	box-shadow: 0 24px 48px rgb(30 42 36 / .12); visibility: hidden; opacity: 0; transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s .18s; font-weight: 400;
}
.bt-mega__item--has-panel:hover > .bt-mega__panel, .bt-mega__item--has-panel:focus-within > .bt-mega__panel, .bt-mega__item.is-open > .bt-mega__panel {
	visibility: visible; opacity: 1; transform: none; transition-delay: .08s, .08s, 0s;
}
@media (prefers-reduced-motion: reduce) { .bt-mega__panel { transition: none; } }
.bt-mega__inner { display: flex; gap: 48px; padding-block: 36px 40px; white-space: normal; }
.bt-mega__cols { flex: 1 1 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.bt-mega__col { display: flex; flex-direction: column; gap: 10px; }
.bt-mega__cat { font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--text) !important; min-height: 0 !important; gap: 10px; }
.bt-mega__cat:hover { color: var(--cat) !important; }
.bt-mega__desc { margin: 0; font-size: 14px; color: var(--muted); }
.bt-mega__posts { list-style: none; margin: 4px 0; padding: 0; border-top: 2px solid var(--cat); }
.bt-mega__posts a { display: block !important; min-height: 0 !important; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; line-height: 1.35; }
.bt-mega__posts a:hover { color: var(--cat) !important; }
.bt-mega__col .bt-more { min-height: 0 !important; display: inline !important; }
.bt-mega__feature {
	flex: 0 0 300px; display: flex !important; flex-direction: column; align-items: stretch !important; gap: 10px !important;
	background: var(--bg); border-radius: var(--r) 40px var(--r) var(--r); padding: 20px; color: var(--text) !important;
}
.bt-mega__feature .bt-eyebrow { color: var(--accent-text); }
.bt-mega__feature-title { font-family: var(--serif); font-size: 22px; line-height: 1.18; }
.bt-mega__feature:hover .bt-mega__feature-title { text-decoration: underline; }
.bt-nav__mobile { display: none; }
@media (max-width: 860px) {
	.bt-mega { display: none; }
	.bt-nav__mobile { display: flex; }
}

.bt-h2__link { color: inherit; text-decoration: none; }
.bt-h2__link:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* ---------- Sticky header ---------- */
:root { --header-h: 85px; --adminbar: 0px; }
body.admin-bar { --adminbar: 32px; }
@media (max-width: 782px) { body.admin-bar { --adminbar: 0px; } }
.bt-header { position: sticky; top: var(--adminbar); transition: box-shadow .2s ease, background-color .2s ease; }
.bt-header__inner { transition: padding .2s ease; }
.bt-logo__word { transition: font-size .2s ease; }
.bt-header.is-scrolled { background: rgb(246 245 240 / .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgb(30 42 36 / .08); }
.bt-header.is-scrolled .bt-header__inner { padding-block: 10px; }
.bt-header.is-scrolled .bt-logo__word { font-size: 28px; }
@media (max-width: 860px) {
	.bt-header.is-scrolled .bt-header__inner { padding-block: 8px 0; }
	.bt-header.is-scrolled .bt-logo__word { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .bt-header, .bt-header__inner, .bt-logo__word { transition: none; } }
html { scroll-padding-top: calc(var(--header-h) + var(--adminbar) + 16px); }
@media (min-width: 1000px) {
	.bt-single__side .bt-side-toc { top: calc(var(--header-h) + var(--adminbar) + 20px); }
}
