/* Jubilant Living Daily: warm, editorial, locally hosted and performance-first. */
@font-face {
	font-family: "JLD Bookman";
	src: url("../fonts/Bookman-Light.otf") format("opentype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "JLD Gothic";
	src: url("../fonts/Gothic-Book.otf") format("opentype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "JLD Gothic";
	src: url("../fonts/Gothic-Demi.otf") format("opentype");
	font-style: normal;
	font-weight: 600;
	font-display: swap;
}

:root {
	color-scheme: light dark;
	--bbp-font: "JLD Gothic", "Helvetica Neue", sans-serif;
	--bbp-mono: "JLD Gothic", "Helvetica Neue", sans-serif;
	--bb-heading-font: "JLD Bookman", "Iowan Old Style", serif;
	--jld-paper: #f6f0e7;
	--jld-paper-deep: #ece1d4;
	--jld-ink: #352431;
	--jld-muted: #71646d;
	--jld-aubergine: #7a2e4d;
	--jld-aubergine-dark: #582139;
	--jld-clay: #a54e3e;
	--jld-sage: #66745f;
	--jld-line: #d8cbbf;
	--bbp-outer: var(--jld-paper);
	--bbp-base: var(--jld-paper);
	--bbp-paper: var(--jld-paper);
	--bbp-base-2: #f0e7dc;
	--bbp-base-3: var(--jld-paper-deep);
	--bbp-card: #fbf7f1;
	--bbp-card-2: var(--jld-paper-deep);
	--bbp-card-3: #dfd1c3;
	--bbp-raised: #dfd1c3;
	--bbp-raised-2: #d2c1b1;
	--bbp-accent: var(--jld-aubergine);
	--bbp-accent-end: var(--jld-clay);
	--bbp-accent-alt: var(--jld-sage);
	--bbp-muted: var(--jld-muted);
	--bbp-muted-bright: #5f525b;
	--bbp-white: var(--jld-ink);
	--bbp-divider: var(--jld-line);
	--bbp-blue-gradient: var(--jld-aubergine);
	--bbp-purple-gradient: var(--jld-clay);
	--bbp-shadow-raised: 0 18px 44px rgb(72 42 50 / 10%);
	--bbp-shadow-soft: 0 7px 22px rgb(72 42 50 / 7%);
	--bbp-shadow-inset: inset 0 1px 2px rgb(72 42 50 / 10%);
	--bb-grad-a: var(--jld-aubergine);
	--bb-grad-b: var(--jld-clay);
	--bb-grad-c: var(--jld-sage);
	--bb-grad: var(--jld-aubergine);
	--bb-grad-h: var(--jld-aubergine);
	--bb-accent: var(--jld-aubergine);
	--bb-bg: var(--jld-paper);
	--bb-surface: #fbf7f1;
	--bb-glass: rgb(246 240 231 / 94%);
	--bb-soft: var(--jld-paper-deep);
	--bb-ink: var(--jld-ink);
	--bb-muted: var(--jld-muted);
	--bb-line: var(--jld-line);
	--bb-dark: var(--jld-ink);
	--bb-shadow-sm: var(--bbp-shadow-soft);
	--bb-shadow-md: var(--bbp-shadow-raised);
	--bb-shadow-lg: var(--bbp-shadow-raised);
	--bb-r-sm: 3px;
	--bb-r-md: 6px;
	--bb-r-lg: 12px;
	--bbp-radius-sm: 3px;
	--bbp-radius-md: 6px;
	--bbp-radius-lg: 12px;
}

[data-theme="dark"] {
	--jld-paper: #251e23;
	--jld-paper-deep: #30272e;
	--jld-ink: #f5ede7;
	--jld-muted: #c0b2b9;
	--jld-aubergine: #dfa0b7;
	--jld-aubergine-dark: #efbfd0;
	--jld-clay: #e5a08e;
	--jld-sage: #b1bea8;
	--jld-line: #4b3d46;
	--bbp-card: #2c242a;
	--bbp-card-2: #352b32;
	--bbp-card-3: #40343c;
	--bbp-raised: #463942;
	--bbp-raised-2: #51414a;
	--bbp-muted-bright: #d5c8ce;
	--bb-surface: #2c242a;
	--bb-glass: rgb(37 30 35 / 94%);
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body:not(.bb-portfolio-front),
body.bb-portfolio-front {
	color: var(--jld-ink);
	background: var(--jld-paper);
	font-family: var(--bbp-font);
	font-size: clamp(1rem, .97rem + .15vw, 1.075rem);
	line-height: 1.68;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body :is(h1,h2,h3,h4,h5,h6),
.bb-site-title,
.bb-media-title,
.bb-feature-content h2,
.bb-news-body h3,
.bb-single-header h1,
.bb-entry-content :is(h2,h3,h4),
.bb-module-title h2,
.bb-page-panel h1,
.bb-footer-brand,
.bb-footer-about h2 {
	font-family: var(--bb-heading-font);
	font-weight: 400;
	letter-spacing: -.035em;
	line-height: 1.18;
	text-wrap: balance;
}
a { color: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--jld-aubergine);
	outline-offset: 4px;
}
::selection { color: var(--jld-paper); background: var(--jld-aubergine); }

/* Header */
.bb-site-header,
.bb-nav-row,
.bb-brand-row,
.bb-site-main,
.bb-footer-main,
.bb-footer-widgets,
.bb-footer-bottom { background: var(--jld-paper); }
.bb-site-header { box-shadow: none; }
.bb-topbar {
	color: var(--jld-ink);
	background: var(--jld-aubergine);
	border-bottom: 0;
}
.bb-topbar p {
	color: #fff8f3;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .13em;
	text-transform: uppercase;
}
.bb-brand-row {
	min-height: 148px;
	justify-content: flex-start;
}
.bb-brand-row > div { text-align: left; }
.bb-brand-lockup {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	color: var(--jld-ink);
	text-decoration: none;
}
.bb-brand-mark {
	width: 58px;
	height: 58px;
	color: var(--jld-aubergine);
	flex: 0 0 auto;
}
.bb-site-title {
	color: var(--jld-ink);
	font-size: clamp(2rem, 4.4vw, 4.5rem);
	line-height: .95;
}
.bb-site-title a,
.bb-footer-brand a {
	color: inherit;
	background: none;
	-webkit-text-fill-color: currentColor;
}
.bb-site-description {
	color: var(--jld-muted);
	margin-top: 12px;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.bb-nav-row {
	position: sticky;
	top: 0;
	z-index: 30;
	border-block: 1px solid var(--jld-line);
	box-shadow: none;
}
.bb-nav-row::after { display: none; }
.bb-menu a {
	color: var(--jld-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
}
.bb-menu a:hover,
.bb-menu .current-menu-item > a { color: var(--jld-aubergine); }
.bb-header-search input,
.search-field,
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
	color: var(--jld-ink);
	background: transparent;
	border: 1px solid var(--jld-line);
	border-radius: 0;
}
.bb-header-search button,
.search-submit,
button,
input[type="submit"],
.bb-button {
	color: #fff8f3;
	background: var(--jld-aubergine);
	border-radius: 0;
}
.bb-header-search button:hover,
.search-submit:hover,
button:hover,
input[type="submit"]:hover,
.bb-button:hover { background: var(--jld-aubergine-dark); }
.bb-theme-toggle {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-left: 12px;
	padding: 0;
	color: var(--jld-ink);
	background: transparent;
	border: 1px solid var(--jld-line);
	border-radius: 50%;
}
.bb-theme-toggle:hover { color: #fff8f3; background: var(--jld-aubergine); }
.bb-menu-toggle { color: var(--jld-ink); background: var(--jld-paper-deep); }
.bb-menu-icon span { background: var(--jld-ink); }

/* Homepage */
.bb-home-main { background: var(--jld-paper); }
.bb-edition-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
	align-items: end;
	gap: clamp(32px, 8vw, 120px);
	padding-block: clamp(56px, 9vw, 128px) clamp(36px, 6vw, 72px);
}
.bb-edition-kicker {
	display: inline-block;
	color: var(--jld-aubergine);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
}
.bb-edition-intro h1 {
	max-width: 820px;
	margin: 14px 0 0;
	font-size: clamp(2.8rem, 6.8vw, 6.8rem);
	line-height: .98;
}
.bb-edition-intro > p {
	max-width: 34ch;
	margin: 0 0 8px;
	color: var(--jld-muted);
	font-size: 17px;
	line-height: 1.65;
}
.bb-feature-area { padding-top: 0; margin-top: 0; }
.bb-feature-grid { gap: 18px; }
.bb-feature-grid--grid-1-2 { grid-template-columns: 1.45fr .72fr; }
.bb-feature-card {
	background: var(--bbp-card);
	border: 0;
	border-radius: 0;
	box-shadow: none;
	overflow: hidden;
}
.bb-feature-main { min-height: 620px; }
.bb-feature-small { min-height: 301px; }
.bb-feature-card .bb-item-media img {
	object-fit: cover;
	filter: saturate(.88) contrast(.98);
	transition: transform 700ms cubic-bezier(.16,1,.3,1);
}
.bb-feature-card:hover .bb-item-media img { transform: scale(1.018); }
.bb-feature-card .bb-item-media::after {
	background: linear-gradient(180deg, transparent 20%, rgb(39 24 34 / 82%) 100%);
}
.bb-feature-card .bb-feature-content { padding: clamp(22px, 3vw, 42px); }
.bb-feature-content h2 {
	font-size: clamp(2rem, 3.4vw, 4.25rem);
	line-height: 1.04;
}
.bb-feature-small .bb-feature-content h2 {
	font-size: clamp(1.3rem, 1.8vw, 2rem);
	line-height: 1.15;
}
.bb-item-category,
.bb-feature-content .bb-item-category {
	padding: 0;
	color: #fff6ee;
	background: transparent;
	border: 0;
	box-shadow: none;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .14em;
}
.bb-category-tiles {
	display: flex;
	justify-content: flex-start;
	gap: 10px;
	padding-block: 28px 64px;
	flex-wrap: wrap;
}
.bb-category-tile {
	min-width: 0;
	min-height: 44px;
	padding: 10px 17px;
	color: var(--jld-aubergine);
	background: transparent;
	border: 1px solid var(--jld-line);
	border-radius: 999px;
	box-shadow: none;
}
.bb-category-tile::before,
.bb-category-tile::after { display: none; }
.bb-category-tile:hover {
	color: #fff8f3;
	background: var(--jld-aubergine);
	border-color: var(--jld-aubergine);
}
.bb-category-tile span {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: none;
}
.bb-home-note {
	margin-bottom: clamp(56px, 9vw, 112px);
	color: #fff8f3;
	background: var(--jld-aubergine);
}
.bb-home-note-grid {
	display: grid;
	grid-template-columns: 70px minmax(280px, 1.1fr) minmax(260px, .9fr);
	align-items: center;
	gap: clamp(24px, 5vw, 72px);
	padding-block: clamp(48px, 7vw, 88px);
}
.bb-home-note .bb-edition-kicker { color: #edc6d4; }
.bb-home-note h2 {
	max-width: 14ch;
	margin: 9px 0 0;
	font-size: clamp(2rem, 4vw, 4.1rem);
}
.bb-home-note p { margin: 0; color: #f9eaf0; }
.bb-home-note-number {
	align-self: start;
	font-family: var(--bb-heading-font);
	font-size: 34px;
}
.bb-home-layout { gap: clamp(40px, 6vw, 76px); }
.bb-home-content .bb-module {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	content-visibility: auto;
	contain-intrinsic-size: 800px;
}
.bb-module-title {
	justify-content: flex-start;
	margin-bottom: 28px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--jld-line);
}
.bb-module-title::before { display: none; }
.bb-module-title h2 { font-size: clamp(1.6rem, 2.5vw, 2.5rem); }
.bb-home-main .bb-mag-card,
.bb-news-item {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.bb-home-main .bb-mag-card > .bb-item-media,
.bb-news-item .bb-item-media {
	overflow: hidden;
	border-radius: 0;
	box-shadow: none;
}
.bb-home-main .bb-mag-card > .bb-item-media img { filter: saturate(.88); }
.bb-home-main .bb-mag-body,
.bb-news-body { padding: 18px 0 0; }
.bb-home-main .bb-mag-body h3,
.bb-news-body h3 {
	display: block;
	color: var(--jld-ink);
	font-size: 21px;
	font-weight: 400;
	line-height: 1.32;
	-webkit-line-clamp: unset;
	overflow: visible;
}
.bb-news-body p {
	color: var(--jld-muted);
	font-size: 15px;
	line-height: 1.7;
}
.bb-card-grid { row-gap: 44px; }
.bb-item-meta { color: var(--jld-muted); font-size: 11px; }
.bb-sidebar-widget {
	padding: 26px 0;
	background: transparent;
	border-width: 1px 0 0;
	border-color: var(--jld-line);
	border-radius: 0;
	box-shadow: none;
}
.bb-sidebar-widget h2 { font-size: 21px; }
.bb-popular-list > li > span {
	color: var(--jld-clay);
	background: transparent;
	font-family: var(--bb-heading-font);
	font-size: 25px;
}

/* Reading and footer */
.bb-page-panel,
.bb-single-panel,
.bb-post-card {
	background: var(--jld-paper);
	border: 0;
	box-shadow: none;
}
.page .bb-layout { max-width: 900px; }
.bb-entry-content {
	color: var(--jld-ink);
	font-size: clamp(1rem, .94rem + .3vw, 1.15rem);
	line-height: 1.85;
	overflow-wrap: anywhere;
}
.bb-entry-content p { max-width: 70ch; }
.bb-entry-content h2 {
	margin-top: 2em;
	font-size: clamp(1.65rem, 3vw, 2.6rem);
}
.bb-entry-content a {
	color: var(--jld-aubergine);
	text-decoration-color: color-mix(in srgb, var(--jld-aubergine), transparent 45%);
	text-underline-offset: 3px;
}
.bb-single-header h1 {
	font-size: clamp(2.2rem, 5vw, 5.4rem);
	line-height: 1.06;
}
.bb-author-initial {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	color: var(--jld-aubergine);
	background: var(--jld-paper-deep);
	border-radius: 50%;
	font-family: var(--bb-heading-font);
	font-size: 28px;
}
.bb-site-footer { border-top: 1px solid var(--jld-line); }
.bb-footer-main {
	padding-block: 56px;
	border-top: 0;
}
.bb-footer-main-grid {
	grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(190px, .7fr));
	gap: clamp(36px, 6vw, 80px);
}
.bb-footer-about h2 { font-size: 30px !important; text-transform: none; }
.bb-footer-menu-panel h2,
.bb-footer-important-links h2 { font-size: 19px; text-transform: none; }
.bb-footer-menu {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4px;
}
.bb-footer-nav a,
.bb-footer-important-links a { color: var(--jld-muted); font-size: 15px; }
.bb-footer-bottom {
	color: var(--jld-muted);
	border-top: 1px solid var(--jld-line);
}
.bb-footer-brand { font-size: 28px; }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--jld-paper: #251e23;
		--jld-paper-deep: #30272e;
		--jld-ink: #f5ede7;
		--jld-muted: #c0b2b9;
		--jld-aubergine: #dfa0b7;
		--jld-aubergine-dark: #efbfd0;
		--jld-clay: #e5a08e;
		--jld-sage: #b1bea8;
		--jld-line: #4b3d46;
		--bbp-card: #2c242a;
		--bbp-card-2: #352b32;
		--bbp-card-3: #40343c;
		--bbp-muted-bright: #d5c8ce;
		--bb-surface: #2c242a;
		--bb-glass: rgb(37 30 35 / 94%);
	}
}

@media (max-width: 980px) {
	.bb-feature-grid--grid-1-2 { grid-template-columns: 1fr; }
	.bb-feature-grid--grid-1-2 .bb-feature-side {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto;
	}
	.bb-feature-grid--grid-1-2 .bb-feature-small { min-height: 270px; }
	.bb-home-note-grid { grid-template-columns: 52px 1fr; }
	.bb-home-note-grid > p:last-child { grid-column: 2; }
	.bb-footer-main-grid { grid-template-columns: 1fr 1fr; }
	.bb-footer-about { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
	.bb-brand-row { min-height: 108px; }
	.bb-brand-lockup { gap: 12px; }
	.bb-brand-mark { width: 40px; height: 40px; }
	.bb-site-title { font-size: 29px; line-height: 1; }
	.bb-site-description { margin-top: 8px; }
	.bb-nav-row .is-open,
	.bb-primary-nav.is-open { background: var(--jld-paper); }
	.bb-header-search { display: none; }
	.bb-theme-toggle { margin-left: auto; }
	.bb-edition-intro {
		grid-template-columns: 1fr;
		gap: 22px;
		padding-block: 44px 32px;
	}
	.bb-edition-intro h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
	.bb-edition-intro > p { max-width: 38ch; }
	.bb-feature-main { min-height: 470px; }
	.bb-feature-grid--grid-1-2 .bb-feature-side { grid-template-columns: 1fr; }
	.bb-feature-grid--grid-1-2 .bb-feature-small { min-height: 250px; }
	.bb-feature-content h2 { font-size: 31px; }
	.bb-feature-small .bb-feature-content h2 { font-size: 23px; }
	.bb-category-tiles {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-block: 20px 44px;
		scrollbar-width: thin;
	}
	.bb-category-tile { flex: 0 0 auto; }
	.bb-home-note-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.bb-home-note-number { display: none; }
	.bb-home-note-grid > p:last-child { grid-column: auto; }
	.bb-footer-main-grid { grid-template-columns: 1fr; }
	.bb-footer-about { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation: none !important;
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
