/* ==========================================================================
   BSA typography — fills the gaps in Divi's Theme Customizer
   Source: the BSA design system type scale (tokens.json, README).
   Needs tokens.css loaded first.

   Why "body h1" and not just "h1": Divi prints its Customizer settings as
   inline CSS with plain "h1 { … }" selectors. One extra element of
   specificity makes these rules win no matter which loads last, while
   Divi module design settings and Global Presets (more specific) can
   still override them per module.

   Sizes use rem so a visitor's browser text-size setting still works.
   Headings scale fluidly between a ~375px phone and a 1200px desktop.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Base text
   -------------------------------------------------------------------------- */

body {
	font-family: var(--font-sans);
	font-size: 1.0625rem;        /* 17px body — never smaller for paragraphs */
	line-height: 1.65;           /* 28px */
	font-weight: 400;
	color: var(--ink);
}

/* Divi's default paragraph spacing is 1em below; keep it, just make sure
   form fields and buttons use the UI font too. */
body :is(input, textarea, select, button) {
	font-family: var(--font-sans);
}

body strong,
body b {
	font-weight: 700;
}

/* Nicer line breaks where browsers support it (ignored elsewhere). */
body p,
body li {
	text-wrap: pretty;
}


/* --------------------------------------------------------------------------
   2. Headings
   h1–h3: Libre Caslon Text (serif), regular weight.
   h4: Figtree 600 — the design system's h4 is SANS, not serif.
   h5, h6: not in the design system; suggested sans styles so they
   don't fall back to Divi's shrunken serif defaults.
   -------------------------------------------------------------------------- */

body :is(h1, h2, h3, h4, h5, h6) {
	color: var(--ink);
	letter-spacing: 0;
	padding-bottom: 0;           /* Divi adds 10px; use margin instead */
	margin: 0 0 0.5em;
	text-wrap: balance;
}

body :is(h1, h2, h3) {
	font-family: var(--font-serif);
	font-weight: 400;
}

/* h1 — page titles, artist names: 42/50 desktop → 32 phone */
body h1 {
	font-size: clamp(2rem, 1.716rem + 1.212vw, 2.625rem);
	line-height: 1.19;
}

/* h2 — section headings: 32/40 → 26 */
body h2 {
	font-size: clamp(1.625rem, 1.455rem + 0.727vw, 2rem);
	line-height: 1.25;
}

/* h3 — card titles, post titles in lists: 25/32 → 22 */
body h3 {
	font-size: clamp(1.375rem, 1.29rem + 0.364vw, 1.5625rem);
	line-height: 1.28;
}

/* h4 — small headings in cards, sidebars, forms: Figtree 600, 20/28 */
body h4 {
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.4;
}

/* h5, h6 — suggestions, not from the design system */
body h5 {
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 1.0625rem;        /* 17px, body size, bold */
	line-height: 1.5;
}

body h6 {
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 0.9375rem;        /* 15px */
	line-height: 1.5;
}

/* Space above a heading that follows running text */
body :is(p, ul, ol, blockquote) + :is(h2, h3, h4, h5, h6) {
	margin-top: 1.25em;
}


/* --------------------------------------------------------------------------
   3. Links
   Blue is only ~2.5:1 against ink body text, so links inside running
   text also need an underline (WCAG 1.4.1: not colour alone).
   Navigation, buttons and cards are exempt — they're clearly links.
   -------------------------------------------------------------------------- */

body a {
	color: var(--Blue);
	transition: color 0.15s ease;
}

body a:hover {
	color: var(--blue-700);
}

:is(.et_pb_text, .et_pb_post_content, .et_pb_blurb_description, .et_pb_toggle_content, .entry-content)
	a:not(.et_pb_button):not(.bsa-btn):not(.bsa-button) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

:is(.et_pb_text, .et_pb_post_content, .et_pb_blurb_description, .et_pb_toggle_content, .entry-content)
	a:not(.et_pb_button):not(.bsa-btn):not(.bsa-button):hover {
	text-decoration-thickness: 2px;
}


/* --------------------------------------------------------------------------
   4. Focus ring (design system: 3px solid Blue, 2px offset, everywhere)
   -------------------------------------------------------------------------- */

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}


/* --------------------------------------------------------------------------
   5. Blockquote — the design system's "quote" style
   Libre Caslon italic, 24/34 → 21 on phones.
   Replaces Divi's 5px accent-colour left border with a thin Green rule.
   -------------------------------------------------------------------------- */

body blockquote {
	font-family: var(--font-serif);
	font-style: italic;
	font-size: clamp(1.3125rem, 1.227rem + 0.364vw, 1.5rem);
	line-height: 1.42;
	color: var(--ink);
	border-left: 4px solid var(--Green);
	padding-left: var(--space-6);
	margin: var(--space-8) 0;
}

body blockquote p:last-child {
	padding-bottom: 0;
}

body blockquote cite {
	display: block;
	margin-top: var(--space-2);
	font-family: var(--font-sans);
	font-style: normal;
	font-size: 0.9375rem;        /* small */
	color: var(--ink-muted);
}


/* --------------------------------------------------------------------------
   6. Utility classes — the design system's named styles
   Put these in a Divi module's Advanced → CSS Class field.
   They work on the module wrapper (styling the text inside it) or
   directly on an element in a Code module.

   .bsa-h1 … .bsa-h4 let you keep the RIGHT heading level for structure
   (e.g. an h2 in a blurb) while it LOOKS like another level.
   -------------------------------------------------------------------------- */

/* display — home hero only, one per page: 56/62 → 36 */
.bsa-display,
.bsa-display :is(h1, h2, h3, h4, h5, h6) {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(2.25rem, 1.682rem + 2.424vw, 3.5rem);
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.bsa-h1,
.bsa-h1 :is(h1, h2, h3, h4, h5, h6) {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(2rem, 1.716rem + 1.212vw, 2.625rem);
	line-height: 1.19;
}

.bsa-h2,
.bsa-h2 :is(h1, h2, h3, h4, h5, h6) {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(1.625rem, 1.455rem + 0.727vw, 2rem);
	line-height: 1.25;
}

.bsa-h3,
.bsa-h3 :is(h1, h2, h3, h4, h5, h6) {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(1.375rem, 1.29rem + 0.364vw, 1.5625rem);
	line-height: 1.28;
}

.bsa-h4,
.bsa-h4 :is(h1, h2, h3, h4, h5, h6) {
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.4;
}

/* body-lg — intro paragraphs and ledes: 19/30 */
.bsa-lede,
.bsa-lede p {
	font-size: 1.1875rem;
	line-height: 1.58;
}

/* small — meta lines, helper text, footer links: 15/24 */
.bsa-small,
.bsa-small p {
	font-size: 0.9375rem;
	line-height: 1.6;
}

/* caption — artwork credits; the floor size for any text: 14/20 */
.bsa-caption,
.bsa-caption p,
body figcaption,
body .wp-caption-text {
	font-size: 0.875rem;
	line-height: 1.43;
	color: var(--ink-muted);
}

/* eyebrow — uppercase kicker above headings, tier labels: 13/16 */
.bsa-eyebrow,
.bsa-eyebrow p {
	font-family: var(--font-sans);
	font-size: 0.8125rem;
	line-height: 1.23;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--Blue);
}

.bsa-eyebrow p {
	padding-bottom: 0;
}

/* Eyebrow colour variants (text-safe shades only) */
.bsa-eyebrow.is-green,  .bsa-eyebrow.is-green p  { color: var(--green-700); }
.bsa-eyebrow.is-orange, .bsa-eyebrow.is-orange p { color: var(--orange-700); }

/* quote — pull quotes outside a <blockquote> */
.bsa-quote,
.bsa-quote p {
	font-family: var(--font-serif);
	font-style: italic;
	font-size: clamp(1.3125rem, 1.227rem + 0.364vw, 1.5rem);
	line-height: 1.42;
}

/* muted secondary text */
.bsa-muted,
.bsa-muted p {
	color: var(--ink-muted);
}

/* Reading width: 60–75 characters. Put on a Text module or Post Content
   module holding long-form copy (blog posts, bios, About pages). */
.bsa-measure {
	max-width: 68ch;
}

/* Centred version, for a measure inside a wider row */
.bsa-measure.is-centered {
	margin-left: auto;
	margin-right: auto;
}

/* Signature accent: short Green bar above a heading or card title.
   One per section at most. Add .is-orange for the spark version. */
.bsa-accent::before {
	content: "";
	display: block;
	width: 48px;
	height: 4px;
	margin-bottom: var(--space-4);
	background: var(--Green);
}

.bsa-accent.is-orange::before {
	background: var(--Orange);
}

/* Brand stripe: 8px Blue / Green / Orange (6:3:1) along the top edge.
   Put on the footer section (or any section) via its CSS Class field. */
.bsa-stripe {
	position: relative;
}

.bsa-stripe::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 8px;
	background: linear-gradient(to right,
		var(--Blue) 0 60%,
		var(--Green) 60% 90%,
		var(--Orange) 90% 100%);
}
/* Breadcrumbs: Yoast's [wpseo_breadcrumb], wrapped by the helper in nav[aria-label="Breadcrumb"] */
nav[aria-label="Breadcrumb"] {
	font-size: 0.9375rem;        /* small: 15px */
	line-height: 1.5;
	color: var(--ink-muted);
}

nav[aria-label="Breadcrumb"] a {
	color: var(--ink-muted);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

nav[aria-label="Breadcrumb"] a:hover {
	color: var(--Blue);
}

.bsa-breadcrumb-sep {
	margin: 0 var(--space-2);
}

.bp-intro{max-width:720px;margin:0 0 28px;font-size:1.05em;line-height:1.6}

/* --------------------------------------------------------------------------
   7. Custom post type pages (events, artist profiles, anything built
      with the Theme Builder on a CPT)

   On these pages Divi prints its Customizer settings again, from
   et-divi-customizer-cpt-global.css, as ".et-db #et-boc .et-l h1 { … }":
   one ID, two classes, one element. That beats every "body h1" rule
   above, so the type scale silently falls back to the Customizer's.

   Same trick as section 2, one level up: the selectors below are Divi's
   own plus one extra element ("body.et-db"), so they win the tie, while
   Divi module design settings and Global Presets on these pages
   (".et-db #et-boc .et-l .et_pb_text_0 h2", one more class) still
   override them per module.

   Keep these values in step with sections 2, 5 and 6.
   -------------------------------------------------------------------------- */

body.et-db #et-boc .et-l :is(h1, h2, h3, h4, h5, h6) {
	color: var(--ink);
	letter-spacing: 0;
	padding-bottom: 0;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

body.et-db #et-boc .et-l :is(h1, h2, h3) {
	font-family: var(--font-serif);
	font-weight: 400;
}

body.et-db #et-boc .et-l h1 {
	font-size: clamp(2rem, 1.716rem + 1.212vw, 2.625rem);
	line-height: 1.19;
}

body.et-db #et-boc .et-l h2 {
	font-size: clamp(1.625rem, 1.455rem + 0.727vw, 2rem);
	line-height: 1.25;
}

body.et-db #et-boc .et-l h3 {
	font-size: clamp(1.375rem, 1.29rem + 0.364vw, 1.5625rem);
	line-height: 1.28;
}

body.et-db #et-boc .et-l h4 {
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.4;
}

body.et-db #et-boc .et-l h5 {
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 1.0625rem;
	line-height: 1.5;
}

body.et-db #et-boc .et-l h6 {
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.5;
}

body.et-db #et-boc .et-l :is(p, ul, ol, blockquote) + :is(h2, h3, h4, h5, h6) {
	margin-top: 1.25em;
}

/* Blockquote (section 5) */
body.et-db #et-boc .et-l blockquote {
	font-family: var(--font-serif);
	font-style: italic;
	font-size: clamp(1.3125rem, 1.227rem + 0.364vw, 1.5rem);
	line-height: 1.42;
	color: var(--ink);
	border-left: 4px solid var(--Green);
	padding-left: var(--space-6);
	margin: var(--space-8) 0;
}

/* Heading utility classes (section 6), so .bsa-h2 on a CPT page still
   wins over the plain heading size. */
body.et-db #et-boc .et-l :is(.bsa-display, .bsa-display :is(h1, h2, h3, h4, h5, h6)) {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(2.25rem, 1.682rem + 2.424vw, 3.5rem);
	line-height: 1.1;
	letter-spacing: -0.01em;
}

body.et-db #et-boc .et-l :is(.bsa-h1, .bsa-h1 :is(h1, h2, h3, h4, h5, h6)) {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(2rem, 1.716rem + 1.212vw, 2.625rem);
	line-height: 1.19;
}

body.et-db #et-boc .et-l :is(.bsa-h2, .bsa-h2 :is(h1, h2, h3, h4, h5, h6)) {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(1.625rem, 1.455rem + 0.727vw, 2rem);
	line-height: 1.25;
}

body.et-db #et-boc .et-l :is(.bsa-h3, .bsa-h3 :is(h1, h2, h3, h4, h5, h6)) {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(1.375rem, 1.29rem + 0.364vw, 1.5625rem);
	line-height: 1.28;
}

body.et-db #et-boc .et-l :is(.bsa-h4, .bsa-h4 :is(h1, h2, h3, h4, h5, h6)) {
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.4;
}

/* Row width. On CPT pages Divi's CPT stylesheet brings back its 1080px
   default; restate the site's 1280px / 90%. A row with its own width
   set in Divi still wins (its rule carries one more class). */
body.et-db #et-boc .et-l .et_pb_row {
	width: 90%;
	max-width: 1280px;
}