/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* ============================================================
   Fonts — self-hosted, latin-subset WOFF2, font-display: swap.
   Source Serif 4 = headlines & editorial verdicts. Inter = body & UI.
   ============================================================ */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/inter-400.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/inter-500.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/inter-600.woff2") format("woff2");
}

@font-face {
	font-family: "Source Serif 4";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/source-serif-4-400.woff2") format("woff2");
}

@font-face {
	font-family: "Source Serif 4";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/source-serif-4-400-italic.woff2") format("woff2");
}

@font-face {
	font-family: "Source Serif 4";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/source-serif-4-600.woff2") format("woff2");
}

@font-face {
	font-family: "Source Serif 4";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/source-serif-4-700.woff2") format("woff2");
}

/* ============================================================
   Design tokens — palette, type, spacing.
   Single source of truth; every component reads from these.
   ============================================================ */

:root {
	/* Powder blue — the signature identity color. */
	--bo-blue:        #1FA0DC;
	--bo-blue-bright: #5BC2E7;
	--bo-blue-link:   #1683BC;

	/* Navy — structural base / dark ground. */
	--bo-navy:        #08121F;
	--bo-navy-deep:   #04101F;
	--bo-navy-soft:   #0C1B2E;

	/* Gold — prestige accent (seals, "Best" mark, stars). */
	--bo-gold:        #FFC20E;
	--bo-gold-hover:  #FFD24E;

	/* Surfaces & text. */
	--bo-white:       #FFFFFF;
	--bo-surface:     #F4F7FB;
	--bo-tint:        #E8F3FB;
	--bo-hairline:    #E4EAF1;
	--bo-hairline-2:  #D3DCE7;
	--bo-ink:         #08121F; /* primary body text = navy */
	--bo-muted:       #5A6B7E;

	/* Type families. */
	--bo-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--bo-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	/* Fluid type scale (mobile-first; scales with viewport, no layout shift). */
	--bo-fs-base: 1.125rem;                              /* 18px body */
	--bo-fs-sm:   0.9375rem;                             /* 15px UI/meta */
	--bo-fs-xs:   0.8125rem;                             /* 13px labels */
	--bo-fs-h6:   1.125rem;
	--bo-fs-h5:   1.25rem;
	--bo-fs-h4:   clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);
	--bo-fs-h3:   clamp(1.6rem, 1.4rem + 0.9vw, 2rem);
	--bo-fs-h2:   clamp(2rem, 1.7rem + 1.4vw, 2.75rem);
	--bo-fs-h1:   clamp(2.6rem, 2.1rem + 2.6vw, 4rem);

	/* Line heights. */
	--bo-lh-tight: 1.15;
	--bo-lh-snug:  1.3;
	--bo-lh-body:  1.65;

	/* Comfortable editorial measure (~65–75 characters). */
	--bo-measure: 68ch;

	/* Spacing scale. */
	--bo-space-1: 0.25rem;
	--bo-space-2: 0.5rem;
	--bo-space-3: 0.75rem;
	--bo-space-4: 1rem;
	--bo-space-5: 1.5rem;
	--bo-space-6: 2rem;
	--bo-space-7: 3rem;
	--bo-space-8: 4rem;
	--bo-space-9: 6rem;

	/* Radius & rules. */
	--bo-radius:   4px;
	--bo-radius-lg: 8px;
	--bo-rule: 1px solid var(--bo-hairline);
}

/* ============================================================
   Base elements — layered over GeneratePress (loads after it).
   ============================================================ */

body {
	font-family: var(--bo-sans);
	font-size: var(--bo-fs-base);
	line-height: var(--bo-lh-body);
	color: var(--bo-ink);
	background-color: var(--bo-white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--bo-serif);
	color: var(--bo-ink);
	line-height: var(--bo-lh-tight);
	font-weight: 600;
	letter-spacing: -0.01em;
}

h1 { font-size: var(--bo-fs-h1); font-weight: 700; }
h2 { font-size: var(--bo-fs-h2); }
h3 { font-size: var(--bo-fs-h3); line-height: var(--bo-lh-snug); }
h4 { font-size: var(--bo-fs-h4); line-height: var(--bo-lh-snug); }
h5 { font-size: var(--bo-fs-h5); }
h6 { font-size: var(--bo-fs-h6); }

p {
	max-width: var(--bo-measure);
	margin: 0 0 var(--bo-space-5);
}

a {
	color: var(--bo-blue-link);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
	transition: color 0.15s ease;
}

a:hover,
a:focus { color: var(--bo-navy); }

strong, b { font-weight: 600; }

hr {
	border: 0;
	border-top: var(--bo-rule);
	margin: var(--bo-space-7) 0;
}

::selection {
	background: var(--bo-tint);
	color: var(--bo-navy);
}

/* Keyboard focus — visible, AA, never removed. */
:focus-visible {
	outline: 2px solid var(--bo-blue-link);
	outline-offset: 2px;
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
	* { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   Header — sticky navy masthead. Two zones: wordmark · navigation.
   ============================================================ */

.site-header {
	background: linear-gradient(180deg, var(--bo-navy-soft), var(--bo-navy));
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.site-header .inside-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--bo-space-5);
	min-height: 72px;
	padding-top: 0;
	padding-bottom: 0;
}

/* Brand — GeneratePress renders the uploaded logo as
   .site-logo > a > img.header-image (alt = site name, so the name is still
   announced). The logo is the sole wordmark, so GP's text site title and
   tagline are suppressed. */
.site-header .site-logo {
	flex: 0 0 auto;
}

.site-header .site-logo img,
.site-header .header-image {
	display: block;
	max-height: 44px;
	width: auto;
}

.site-header .main-title,
.site-header .site-description {
	display: none;
}

/* Navigation — right zone, animated underline */
.site-header .main-navigation {
	flex: 0 0 auto;
	background: transparent;
}

/* Primary menu — no font-family set, so it inherits the body font. */
.site-header .main-navigation .main-nav > ul {
	display: flex;
	align-items: center;
	gap: 4px;
}

.site-header .main-navigation .main-nav > ul > li > a {
	position: relative;
	/* GeneratePress forces line-height:60px on nav links, inflating the box to
	   80px so the bottom:4px underline lands far below the text. inline-block +
	   a normal line-height collapse the link to a ~36px content-height box, so
	   the underline sits directly under the text. */
	display: inline-block;
	line-height: 1.2;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
	padding: 10px 12px;
}

.site-header .main-navigation .main-nav > ul > li > a::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 4px;
	height: 3px;
	border-radius: 2px;
	background: var(--bo-blue);
	transform: scaleX(0);
	transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.site-header .main-navigation .main-nav > ul > li > a:hover {
	color: #fff;
}

.site-header .main-navigation .main-nav > ul > li > a:hover::after {
	transform: scaleX(1);
}

.site-header .main-navigation ul ul {
	background: var(--bo-navy-soft);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header .main-navigation ul ul a {
	color: #D7E1EC;
}

.site-header .main-navigation ul ul a:hover {
	color: var(--bo-blue-bright);
}

.site-header .menu-toggle {
	color: var(--bo-white);
}

/* Mobile — wordmark left, menu toggle right */
@media (max-width: 768px) {
	.site-header .main-navigation {
		margin-left: auto;
	}
}

/* ============================================================
   Footer — navy, trust-rich columns + independence statement.
   ============================================================ */

.bo-footer {
	background: var(--bo-navy);
	color: #B7C4D2;
}

.bo-footer__inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: var(--bo-space-8) var(--bo-space-5) var(--bo-space-7);
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: var(--bo-space-6);
}

.bo-footer__brand {
	max-width: 36ch;
}

.bo-footer__logo {
	display: block;
	height: 40px;
	width: auto;
	margin: 0 0 var(--bo-space-4);
}

/* Text fallback shown only if no logo is set in the Customizer. */
.bo-footer__wordmark {
	font-family: var(--bo-serif);
	font-weight: 700;
	font-size: 1.5rem;
	letter-spacing: -0.02em;
	color: var(--bo-white);
	margin: 0 0 var(--bo-space-3);
}

/* Footer brand — dictionary entry beneath the logo (logo is the headword). */
.bo-footer__lex {
	font-family: var(--bo-sans);
	font-size: var(--bo-fs-xs);
	color: var(--bo-blue-bright);
	margin: 0 0 var(--bo-space-2);
	max-width: none;
}

.bo-footer__lex em {
	font-style: italic;
}

.bo-footer__pron {
	color: #8EA0B4;
}

.bo-footer__def {
	font-family: var(--bo-serif);
	font-size: var(--bo-fs-sm);
	line-height: 1.6;
	color: #B7C4D2;
	margin: 0;
	max-width: 38ch;
}

.bo-footer__heading {
	font-family: var(--bo-sans);
	font-size: var(--bo-fs-xs);
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--bo-blue-bright);
	margin: 0 0 var(--bo-space-4);
}

.bo-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bo-footer__links li {
	margin: 0 0 var(--bo-space-3);
}

.bo-footer__links a {
	color: #D7E1EC;
	font-size: var(--bo-fs-sm);
	text-decoration: none;
}

.bo-footer__links a:hover,
.bo-footer__links a:focus {
	color: var(--bo-blue-bright);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* Bottom bar — GeneratePress .site-info, restyled as the transparency strip */
.site-info {
	background: var(--bo-navy-deep);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	color: #7C8DA0;
}

.site-info .inside-site-info {
	max-width: 1400px;
	margin: 0 auto;
	padding: var(--bo-space-4) var(--bo-space-5);
}

.site-info .copyright-bar {
	font-size: var(--bo-fs-xs);
	line-height: 1.6;
	color: #7C8DA0;
}

.site-info .copyright {
	color: #A9B7C6;
}

@media (max-width: 900px) {
	.bo-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: var(--bo-space-6) var(--bo-space-5);
	}

	.bo-footer__brand {
		grid-column: 1 / -1;
		max-width: 52ch;
	}
}

@media (max-width: 540px) {
	.bo-footer__inner {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
   Homepage — full-bleed editorial sections.
   ============================================================ */

.bo-wrap {
	max-width: 1400px;
	margin: 0 auto;
	padding-left: var(--bo-space-5);
	padding-right: var(--bo-space-5);
}

.bo-section-title {
	font-size: var(--bo-fs-h2);
	margin: 0 0 var(--bo-space-3);
}

/* Hero */
.bo-hero {
	background:
		radial-gradient(120% 90% at 50% 0%, rgba(31, 160, 220, 0.18), transparent 62%),
		var(--bo-navy);
	color: var(--bo-white);
}

.bo-hero__inner {
	max-width: 880px;
	margin: 0 auto;
	padding: var(--bo-space-9) var(--bo-space-5);
	text-align: center;
}

.bo-hero__eyebrow {
	font-family: var(--bo-sans);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: var(--bo-fs-xs);
	font-weight: 600;
	color: var(--bo-gold);
	margin: 0 0 var(--bo-space-4);
	max-width: none;
}

/* Hero — dictionary-entry treatment (headword, pronunciation, definition). */
.bo-hero__entry {
	margin: 0 0 var(--bo-space-5);
}

.bo-hero__word {
	font-family: var(--bo-serif);
	font-weight: 700;
	font-size: var(--bo-fs-h1);
	letter-spacing: -0.02em;
	color: var(--bo-white);
	margin: 0;
	max-width: none;
}

.bo-hero__lex {
	font-family: var(--bo-sans);
	font-size: var(--bo-fs-sm);
	color: var(--bo-blue-bright);
	margin: var(--bo-space-3) 0 0;
	max-width: none;
}

.bo-hero__lex em {
	font-style: italic;
}

.bo-hero__pron {
	color: #C4D2E0;
}

.bo-hero__def {
	font-family: var(--bo-serif);
	font-size: 1.35rem;
	line-height: 1.5;
	color: #C4D2E0;
	margin: var(--bo-space-4) auto 0;
	max-width: 40ch;
}

.bo-lex-sep {
	color: var(--bo-gold);
	padding: 0 0.35em;
}

.bo-hero__lede {
	color: #C4D2E0;
	font-size: 1.2rem;
	line-height: 1.6;
	max-width: 60ch;
	margin: 0 auto;
}

.bo-hero-search {
	display: flex;
	max-width: 560px;
	margin: var(--bo-space-7) auto 0;
	background: var(--bo-white);
	border-radius: var(--bo-radius-lg);
	box-shadow: 0 12px 44px rgba(0, 0, 0, 0.28);
	overflow: hidden;
}

.bo-hero-search__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--bo-ink);
	font-family: var(--bo-sans);
	font-size: 1.05rem;
	padding: 1em 1.25em;
}

.bo-hero-search__input:focus {
	outline: none;
}

.bo-hero-search__submit {
	display: flex;
	align-items: center;
	gap: 0.5em;
	flex: 0 0 auto;
	border: 0;
	background: var(--bo-blue);
	color: var(--bo-white);
	font-family: var(--bo-sans);
	font-weight: 600;
	padding: 0 1.4em;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.bo-hero-search__submit:hover,
.bo-hero-search__submit:focus {
	background: var(--bo-blue-link);
}

/* Trust band */
.bo-trust-band {
	padding: var(--bo-space-9) 0;
}

.bo-trust-grid {
	list-style: none;
	margin: var(--bo-space-6) 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--bo-space-6);
}

.bo-trust-grid li {
	border-top: 2px solid var(--bo-blue);
	padding-top: var(--bo-space-4);
}

.bo-trust-grid h3 {
	font-size: var(--bo-fs-h4);
	margin: 0 0 var(--bo-space-2);
}

.bo-trust-grid p {
	color: var(--bo-muted);
	font-size: var(--bo-fs-sm);
	margin: 0;
	max-width: none;
}

.bo-trust-band__cta {
	margin: var(--bo-space-6) 0 0;
}

.bo-trust-band__cta a {
	font-weight: 600;
}

/* Categories */
.bo-categories {
	background: var(--bo-surface);
	padding: var(--bo-space-9) 0;
}

.bo-section-intro {
	color: var(--bo-muted);
	max-width: 62ch;
	margin: 0 0 var(--bo-space-6);
}

.bo-category-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--bo-space-5);
}

.bo-category-card a {
	display: block;
	height: 100%;
	background: var(--bo-white);
	border: var(--bo-rule);
	border-radius: var(--bo-radius-lg);
	padding: var(--bo-space-6);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bo-category-card a:hover,
.bo-category-card a:focus {
	border-color: var(--bo-blue);
	box-shadow: 0 8px 30px rgba(8, 18, 31, 0.08);
}

.bo-category-card h3 {
	margin: 0 0 var(--bo-space-2);
	font-size: var(--bo-fs-h4);
}

.bo-category-card p {
	color: var(--bo-muted);
	font-size: var(--bo-fs-sm);
	margin: 0 0 var(--bo-space-4);
	max-width: none;
}

.bo-category-card__go {
	color: var(--bo-blue-link);
	font-family: var(--bo-sans);
	font-weight: 600;
	font-size: var(--bo-fs-sm);
}

.bo-section-note {
	color: var(--bo-muted);
	font-size: var(--bo-fs-sm);
	margin: var(--bo-space-6) 0 0;
	max-width: 70ch;
}

/* Mission band */
.bo-mission {
	background: var(--bo-navy-soft);
	color: var(--bo-white);
	padding: var(--bo-space-9) 0;
}

.bo-mission .bo-wrap {
	max-width: 820px;
	text-align: center;
}

.bo-mission__title {
	color: var(--bo-white);
	font-size: var(--bo-fs-h2);
	margin: 0 0 var(--bo-space-4);
}

.bo-mission__text {
	color: #B7C4D2;
	margin: 0 auto var(--bo-space-6);
	max-width: 58ch;
}

.bo-button {
	display: inline-block;
	background: var(--bo-blue);
	color: var(--bo-white);
	font-family: var(--bo-sans);
	font-weight: 600;
	font-size: var(--bo-fs-sm);
	padding: 0.8em 1.6em;
	border-radius: var(--bo-radius);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.bo-button:hover,
.bo-button:focus {
	background: var(--bo-blue-bright);
	color: var(--bo-navy);
}

@media (max-width: 768px) {
	.bo-trust-grid,
	.bo-category-grid {
		grid-template-columns: 1fr;
	}

	.bo-hero__inner {
		padding-top: var(--bo-space-7);
		padding-bottom: var(--bo-space-7);
	}
}

