/* ==========================================================================
   Brand Journal — site.css
   Global design system: tokens, reset, typography, buttons, containers,
   header, footer, and shared utilities. Always loaded on every page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Font face — Lexend variable (single file, weights 100–900)
   File expected at /assets/fonts/lexend-variable.woff2
   -------------------------------------------------------------------------- */
@font-face {
	font-family: "Lexend";
	src: url("../fonts/lexend-variable.woff2") format("woff2-variations"),
	     url("../fonts/lexend-variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* --------------------------------------------------------------------------
   Design tokens
   Palette: #FFCD58 (yellow), #434446 (ink), #FFFFFF (white) + neutrals.
   -------------------------------------------------------------------------- */
:root {
	/* Color */
	--bj-yellow:        #FFCD58;
	--bj-yellow-hover:  #ffc138;
	--bj-yellow-soft:   #fff2d1;
	--bj-yellow-ink:    #2a2214;

	--bj-ink:           #434446;
	--bj-ink-soft:      #6a6b6d;
	--bj-ink-muted:     #8b8c8e;
	--bj-hairline:      #e7e7e8;
	--bj-hairline-soft: #f2f2f2;

	--bj-surface:       #ffffff;
	--bj-surface-alt:   #faf8f3;
	--bj-surface-warm:  #fdf8ec;

	--bj-focus:         #434446;
	--bj-danger:        #b3261e;
	--bj-success:       #1f7a3c;

	/* Typography */
	--bj-font-sans: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--bj-fs-100: 0.8125rem;   /* 13px */
	--bj-fs-200: 0.9375rem;   /* 15px */
	--bj-fs-300: 1rem;        /* 16px */
	--bj-fs-400: 1.125rem;    /* 18px */
	--bj-fs-500: 1.375rem;    /* 22px */
	--bj-fs-600: 1.75rem;     /* 28px */
	--bj-fs-700: 2.25rem;     /* 36px */
	--bj-fs-800: 3rem;        /* 48px */
	--bj-fs-900: clamp(2.5rem, 5vw + 1rem, 4rem);

	--bj-lh-tight: 1.15;
	--bj-lh-snug: 1.3;
	--bj-lh-normal: 1.55;
	--bj-lh-relaxed: 1.7;

	/* Spacing (8px-ish scale) */
	--bj-s-0: 0;
	--bj-s-1: 0.5rem;
	--bj-s-2: 1rem;
	--bj-s-3: 1.5rem;
	--bj-s-4: 2rem;
	--bj-s-5: 3rem;
	--bj-s-6: 4rem;
	--bj-s-7: 6rem;
	--bj-s-8: 8rem;

	/* Radius */
	--bj-radius-sm: 8px;
	--bj-radius:    14px;
	--bj-radius-lg: 24px;
	--bj-radius-pill: 999px;

	/* Shadow */
	--bj-shadow-sm: 0 1px 2px rgba(67, 68, 70, 0.06);
	--bj-shadow-md: 0 10px 30px rgba(67, 68, 70, 0.08);
	--bj-shadow-lg: 0 24px 60px rgba(67, 68, 70, 0.12);

	/* Layout */
	--bj-container: 72rem;    /* 1152px */
	--bj-container-wide: 84rem;
	--bj-reading:   42rem;    /* 672px */
	--bj-gutter:    clamp(1rem, 3vw, 2rem);
	--bj-header-h:  72px;
	--bj-header-h-scrolled: 60px;

	/* Motion */
	--bj-ease:      cubic-bezier(0.2, 0.7, 0.2, 1);
	--bj-dur-fast:  150ms;
	--bj-dur-med:   240ms;
	--bj-dur-slow:  420ms;

	/* Z-index */
	--bj-z-header: 40;
	--bj-z-drawer: 60;
	--bj-z-modal:  80;
	--bj-z-toast:  100;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

body {
	margin: 0;
	font-family: var(--bj-font-sans);
	font-size: var(--bj-fs-300);
	line-height: var(--bj-lh-normal);
	color: var(--bj-ink);
	background: var(--bj-surface);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { border-style: none; }

a {
	color: var(--bj-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color var(--bj-dur-fast) var(--bj-ease);
}
a:hover { color: var(--bj-yellow-ink); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--bj-font-sans);
	font-weight: 600;
	line-height: var(--bj-lh-tight);
	color: var(--bj-ink);
	margin: 0 0 var(--bj-s-2);
	letter-spacing: -0.015em;
}

p { margin: 0 0 var(--bj-s-2); }

ul, ol { padding-left: 1.25rem; margin: 0 0 var(--bj-s-2); }

hr {
	border: 0;
	border-top: 1px solid var(--bj-hairline);
	margin: var(--bj-s-4) 0;
}

button, input, select, textarea {
	font: inherit;
	color: inherit;
}
button { cursor: pointer; background: none; border: 0; padding: 0; }

/* Focus ring (keyboard only) */
:focus { outline: none; }
:focus-visible {
	outline: 2px solid var(--bj-focus);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Selection */
::selection {
	background: var(--bj-yellow);
	color: var(--bj-yellow-ink);
}

/* Skip link */
.bj-skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.bj-skip-link:focus,
.bj-skip-link:focus-visible {
	position: fixed;
	left: 1rem;
	top: 1rem;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	background: var(--bj-ink);
	color: #fff;
	z-index: var(--bj-z-toast);
	border-radius: var(--bj-radius-sm);
	text-decoration: none;
}

/* Screen-reader only */
.bj-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.bj-container {
	width: 100%;
	max-width: var(--bj-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--bj-gutter);
	padding-right: var(--bj-gutter);
}
.bj-container--wide { max-width: var(--bj-container-wide); }
.bj-container--reading { max-width: var(--bj-reading); }

.bj-section {
	padding-top: clamp(var(--bj-s-5), 8vw, var(--bj-s-7));
	padding-bottom: clamp(var(--bj-s-5), 8vw, var(--bj-s-7));
}
.bj-section--tight { padding-top: var(--bj-s-5); padding-bottom: var(--bj-s-5); }

.bj-stack > * + * { margin-top: var(--bj-s-2); }
.bj-stack-lg > * + * { margin-top: var(--bj-s-4); }

/* --------------------------------------------------------------------------
   Typography scale utilities
   -------------------------------------------------------------------------- */
.bj-eyebrow {
	font-size: var(--bj-fs-100);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--bj-ink-soft);
}
.bj-display {
	font-size: var(--bj-fs-900);
	font-weight: 600;
	line-height: var(--bj-lh-tight);
	letter-spacing: -0.02em;
}
.bj-h1 { font-size: var(--bj-fs-800); font-weight: 600; }
.bj-h2 { font-size: var(--bj-fs-700); font-weight: 600; }
.bj-h3 { font-size: var(--bj-fs-600); font-weight: 600; }
.bj-h4 { font-size: var(--bj-fs-500); font-weight: 600; }
.bj-lede { font-size: var(--bj-fs-400); color: var(--bj-ink-soft); line-height: var(--bj-lh-relaxed); }
.bj-muted { color: var(--bj-ink-soft); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.bj-btn {
	--btn-bg: var(--bj-ink);
	--btn-fg: #fff;
	--btn-border: var(--bj-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.9rem 1.5rem;
	min-height: 48px;
	border-radius: var(--bj-radius-pill);
	background: var(--btn-bg);
	color: var(--btn-fg);
	border: 1px solid var(--btn-border);
	font-weight: 600;
	font-size: var(--bj-fs-200);
	text-decoration: none;
	letter-spacing: 0.005em;
	transition: background var(--bj-dur-fast) var(--bj-ease),
	            color var(--bj-dur-fast) var(--bj-ease),
	            transform var(--bj-dur-fast) var(--bj-ease),
	            box-shadow var(--bj-dur-fast) var(--bj-ease);
}
.bj-btn:hover { transform: translateY(-1px); box-shadow: var(--bj-shadow-sm); }
.bj-btn:active { transform: translateY(0); }

.bj-btn--primary {
	--btn-bg: var(--bj-yellow);
	--btn-fg: var(--bj-yellow-ink);
	--btn-border: var(--bj-yellow);
}
.bj-btn--primary:hover { --btn-bg: var(--bj-yellow-hover); --btn-border: var(--bj-yellow-hover); color: var(--bj-yellow-ink); }

.bj-btn--ghost {
	--btn-bg: transparent;
	--btn-fg: var(--bj-ink);
	--btn-border: var(--bj-ink);
}
.bj-btn--ghost:hover { --btn-bg: var(--bj-ink); --btn-fg: #fff; }

.bj-btn--link {
	--btn-bg: transparent;
	--btn-fg: var(--bj-ink);
	--btn-border: transparent;
	padding: 0.5rem 0;
	min-height: 0;
	border-radius: 0;
	text-decoration: underline;
	text-underline-offset: 4px;
}
.bj-btn--link:hover { transform: none; box-shadow: none; color: var(--bj-yellow-ink); }

.bj-btn--sm { padding: 0.6rem 1.1rem; min-height: 40px; font-size: var(--bj-fs-100); }
.bj-btn--lg { padding: 1.05rem 1.9rem; min-height: 56px; font-size: var(--bj-fs-300); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.bj-field {
	display: grid;
	gap: 0.35rem;
	margin-bottom: var(--bj-s-2);
}
.bj-field > label {
	font-size: var(--bj-fs-200);
	font-weight: 500;
	color: var(--bj-ink);
}
.bj-input,
.bj-textarea,
.bj-select {
	width: 100%;
	padding: 0.85rem 1rem;
	border-radius: var(--bj-radius-sm);
	border: 1px solid var(--bj-hairline);
	background: var(--bj-surface);
	color: var(--bj-ink);
	font-size: var(--bj-fs-300);
	transition: border-color var(--bj-dur-fast) var(--bj-ease),
	            box-shadow var(--bj-dur-fast) var(--bj-ease);
}
.bj-input:focus,
.bj-textarea:focus,
.bj-select:focus {
	outline: none;
	border-color: var(--bj-ink);
	box-shadow: 0 0 0 3px rgba(67, 68, 70, 0.12);
}
.bj-textarea { min-height: 140px; resize: vertical; }

.bj-hp { /* honeypot — never shown, never required */
	position: absolute !important;
	left: -9999px;
	width: 1px; height: 1px; overflow: hidden;
}

.bj-notice {
	padding: 0.9rem 1.1rem;
	border-radius: var(--bj-radius-sm);
	font-size: var(--bj-fs-200);
	margin-bottom: var(--bj-s-2);
}
.bj-notice--success { background: #eafaf0; color: var(--bj-success); }
.bj-notice--error   { background: #fdecea; color: var(--bj-danger); }

/* --------------------------------------------------------------------------
   Pill / chip
   -------------------------------------------------------------------------- */
.bj-pill {
	display: inline-block;
	padding: 0.3rem 0.75rem;
	border-radius: var(--bj-radius-pill);
	background: var(--bj-surface-warm);
	color: var(--bj-ink);
	font-size: var(--bj-fs-100);
	font-weight: 500;
	text-decoration: none;
	letter-spacing: 0.01em;
	line-height: 1.4;
}
.bj-pill:hover { background: var(--bj-yellow-soft); }
.bj-pill--active { background: var(--bj-yellow); color: var(--bj-yellow-ink); }

/* --------------------------------------------------------------------------
   Site header
   -------------------------------------------------------------------------- */
.bj-header {
	position: sticky;
	top: 0;
	z-index: var(--bj-z-header);
	background: var(--bj-surface);
	border-bottom: 1px solid transparent;
	transition: background var(--bj-dur-med) var(--bj-ease),
	            border-color var(--bj-dur-med) var(--bj-ease),
	            box-shadow var(--bj-dur-med) var(--bj-ease);
}
.bj-header.is-scrolled {
	border-bottom-color: var(--bj-hairline);
	box-shadow: var(--bj-shadow-sm);
}
.bj-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--bj-s-3);
	min-height: var(--bj-header-h);
}
/* Keep header height stable to avoid scroll-position oscillation. */
.bj-header.is-scrolled .bj-header__inner { min-height: var(--bj-header-h); }

.bj-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: var(--bj-ink);
	font-weight: 700;
	font-size: var(--bj-fs-500);
	letter-spacing: -0.01em;
}
.bj-logo__mark {
	width: 34px; height: 34px;
	border-radius: 50%;
	background: var(--bj-yellow);
	display: inline-grid;
	place-items: center;
	color: var(--bj-yellow-ink);
	font-weight: 700;
}
.bj-logo img { max-height: 40px; width: auto; }

/* WordPress custom logo */
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}
.custom-logo-link:focus-visible { outline-offset: 4px; }
.custom-logo {
	max-height: 44px;
	width: auto;
}

.bj-nav { display: flex; align-items: center; }
.bj-nav__list {
	display: flex;
	gap: var(--bj-s-3);
	list-style: none;
	margin: 0;
	padding: 0;
}
.bj-nav__list a {
	text-decoration: none;
	color: var(--bj-ink);
	font-weight: 500;
	font-size: var(--bj-fs-200);
	padding: 0.5rem 0;
	position: relative;
}
.bj-nav__list a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -2px;
	height: 2px;
	background: var(--bj-yellow);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--bj-dur-fast) var(--bj-ease);
}
.bj-nav__list a:hover::after,
.bj-nav__list .current-menu-item > a::after,
.bj-nav__list .current-menu-ancestor > a::after { transform: scaleX(1); }

.bj-header__cta { display: inline-flex; align-items: center; gap: 0.75rem; }

/* Mobile nav toggle */
.bj-nav-toggle {
	display: none;
	width: 44px; height: 44px;
	border-radius: var(--bj-radius-sm);
	align-items: center;
	justify-content: center;
	position: relative;
}
.bj-nav-toggle__bar,
.bj-nav-toggle__bar::before,
.bj-nav-toggle__bar::after {
	content: "";
	display: block;
	width: 22px; height: 2px;
	background: var(--bj-ink);
	border-radius: 2px;
	transition: transform var(--bj-dur-med) var(--bj-ease), opacity var(--bj-dur-fast) var(--bj-ease);
}
.bj-nav-toggle__bar { position: relative; }
.bj-nav-toggle__bar::before { position: absolute; left: 0; top: -7px; }
.bj-nav-toggle__bar::after  { position: absolute; left: 0; top:  7px; }

body.bj-drawer-open .bj-nav-toggle__bar { background: transparent; }
body.bj-drawer-open .bj-nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
body.bj-drawer-open .bj-nav-toggle__bar::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
	.bj-nav { display: none; }
	.bj-header__cta .bj-btn { display: none; }
	.bj-nav-toggle { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   Mobile drawer
   -------------------------------------------------------------------------- */
.bj-drawer {
	position: fixed;
	inset: 0;
	z-index: var(--bj-z-drawer);
	background: var(--bj-surface);
	transform: translateX(100%);
	transition: transform var(--bj-dur-med) var(--bj-ease);
	display: flex;
	flex-direction: column;
	padding: calc(var(--bj-header-h) + var(--bj-s-3)) var(--bj-gutter) var(--bj-s-5);
	overflow-y: auto;
	visibility: hidden;
}
body.bj-drawer-open .bj-drawer {
	transform: translateX(0);
	visibility: visible;
}
.bj-drawer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--bj-s-2);
}
.bj-drawer__nav a {
	display: block;
	padding: 0.75rem 0;
	font-size: var(--bj-fs-500);
	font-weight: 500;
	text-decoration: none;
	color: var(--bj-ink);
	border-bottom: 1px solid var(--bj-hairline-soft);
}
.bj-drawer__cta { margin-top: var(--bj-s-4); }

body.bj-drawer-open { overflow: hidden; }

@media (min-width: 901px) {
	.bj-drawer { display: none; }
}

/* --------------------------------------------------------------------------
   Site footer
   -------------------------------------------------------------------------- */
.bj-footer {
	background: var(--bj-ink);
	color: #d8d8d8;
	margin-top: var(--bj-s-7);
}
.bj-footer a { color: #fff; text-decoration: none; }
.bj-footer a:hover { color: var(--bj-yellow); text-decoration: underline; }

.bj-footer__top {
	padding-top: var(--bj-s-6);
	padding-bottom: var(--bj-s-5);
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
	gap: var(--bj-s-4);
}
.bj-footer__brand h2 { color: #fff; font-size: var(--bj-fs-500); margin-bottom: var(--bj-s-1); }
.bj-footer__brand p  { color: #cfcfd0; max-width: 26rem; }

.bj-footer__col h3 {
	color: #fff;
	font-size: var(--bj-fs-200);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin-bottom: var(--bj-s-2);
}
.bj-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }

.bj-footer__social { display: flex; gap: 0.75rem; margin-top: var(--bj-s-2); }
.bj-footer__social a {
	width: 40px; height: 40px;
	border-radius: 50%;
	display: inline-grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}
.bj-footer__social a:hover { background: var(--bj-yellow); color: var(--bj-yellow-ink); }

.bj-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: var(--bj-s-3) 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--bj-s-2);
	flex-wrap: wrap;
	font-size: var(--bj-fs-100);
	color: #a8a8aa;
}
.bj-footer__bottom ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: var(--bj-s-2);
	flex-wrap: wrap;
}

@media (max-width: 900px) {
	.bj-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.bj-footer__top { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Newsletter inline
   -------------------------------------------------------------------------- */
.bj-newsletter-inline form {
	display: flex;
	gap: 0.5rem;
	background: rgba(255, 255, 255, 0.08);
	padding: 0.35rem;
	border-radius: var(--bj-radius-pill);
}
.bj-newsletter-inline input[type="email"] {
	flex: 1;
	background: transparent;
	border: 0;
	color: #fff;
	padding: 0.75rem 1rem;
	font-size: var(--bj-fs-200);
}
.bj-newsletter-inline input[type="email"]::placeholder { color: #bdbdbe; }
.bj-newsletter-inline input[type="email"]:focus { outline: none; }
.bj-newsletter-inline button {
	border-radius: var(--bj-radius-pill);
	background: var(--bj-yellow);
	color: var(--bj-yellow-ink);
	font-weight: 600;
	padding: 0.7rem 1.1rem;
	font-size: var(--bj-fs-200);
}
.bj-newsletter-inline button:hover { background: var(--bj-yellow-hover); }

/* --------------------------------------------------------------------------
   Utility: avoid CLS on known media
   -------------------------------------------------------------------------- */
img[loading="lazy"] { content-visibility: auto; }
