/* =====================================================================
   BlaskAttacks design pass — Sept 2026
   Loads after the theme + the July "ember accent" Additional CSS.
   Everything is scoped to existing Inspiro / core-block classes, so
   removing this file returns the site to exactly how it was.
   ===================================================================== */

/* ---------- 1. Tokens: one palette instead of Inspiro's slate default --- */
:root {
  --ba-ember: #ff5c33;        /* existing accent — 5.5:1 on cards */
  --ba-ember-hi: #ff7a57;
  --ba-ember-lo: #c73a1d;
  --ba-red: #f01020;          /* sampled from the logo */
  --ba-ink: #161311;          /* text on ember — 6.0:1 */
  --ba-bg: #161616;
  --ba-card: #1c1c1c;
  --ba-line: rgba(255, 255, 255, .08);
  --ba-text: #ededed;         /* 15.5:1 */
  --ba-muted: #a3a3a3;        /* 6.8:1 */
  --ba-radius: 10px;
  --ba-ease: cubic-bezier(.2, .7, .2, 1);

  /* Retint the Inspiro palette (was #546e7a slate / #37474f navbar) */
  --inspiro-primary-color: var(--ba-ember);
  --inspiro-secondary-color: var(--ba-muted);
  --inspiro-tertiary-color: #111;
  --inspiro-accent-color: var(--ba-ember-hi);
}
body { --wp--preset--color--secondary: var(--ba-ember); background: var(--ba-bg); }

:focus-visible { outline: 3px solid var(--ba-ember); outline-offset: 3px; border-radius: 4px; }

/* ---------- 2. Header: clear the Twitch status bar, charcoal glass ------ */
body.swsb-position--top #masthead { transition: top .25s var(--ba-ease); }
body.swsb-position--top #masthead.headroom--top { top: 44px; }

.navbar,
.headroom--not-top .navbar,
.has-header-image.inspiro-front-page .headroom--not-top .navbar {
  background-color: rgba(14, 14, 14, .82) !important;
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--ba-line);
}
.headroom--top .navbar { background-color: transparent !important; border-bottom-color: transparent; backdrop-filter: none; }

.navbar-nav > li > a,
#site-navigation .menu > li > a { position: relative; }
.navbar-nav > li > a::after,
#site-navigation .menu > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--ba-ember); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ba-ease);
}
.navbar-nav > li > a:hover::after,
#site-navigation .menu > li > a:hover::after,
.navbar-nav > .current-menu-item > a::after { transform: scaleX(1); }

/* Logo: the current file has black "Blask" lettering built for light
   backgrounds. Set assets/blask-logo-dark-600.webp as the Site Logo
   (Customizer → Site Identity) — no CSS needed. */

/* ---------- 3. Hero ----------------------------------------------------- */
.inspiro-front-page .custom-header { min-height: 86svh; height: 86svh !important; overflow: hidden; }
.has-header-image .custom-header-media::before {
  background-image:
    radial-gradient(120% 80% at 50% 45%, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 70%),
    linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(22,22,22,1) 100%) !important;
}
/* lightning-flash layer — driven by blask-enhance.js */
.ba-flash {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0;
  background: radial-gradient(60% 50% at 68% 30%, rgba(220,205,255,.55), rgba(160,140,255,.12) 45%, transparent 70%);
  mix-blend-mode: screen;
  z-index: 3;             /* above the theme's ::before overlay (z 2) */
}

/* the theme's media overlay is z-index 2 and later in the DOM — lift the type above it */
.inspiro-front-page .site-branding { z-index: 4; }
.inspiro-front-page .site-title {
  font-family: 'Onest', sans-serif; font-weight: 800;
  font-size: clamp(3rem, 1.6rem + 6vw, 7.5rem) !important;
  line-height: .95 !important; letter-spacing: -.035em; color: #fff;
  text-shadow: 0 6px 40px rgba(0,0,0,.55);
}
.inspiro-front-page .site-title a { color: #fff; }
.inspiro-front-page .site-description {
  font-size: clamp(.8rem, .72rem + .3vw, 1rem) !important;
  text-transform: uppercase; letter-spacing: .32em; font-weight: 600;
  color: var(--ba-ember) !important; margin-top: 1.1rem;
}
.inspiro-front-page .site-description::before,
.inspiro-front-page .site-description::after {
  content: ""; display: inline-block; width: 2.2em; height: 1px; vertical-align: middle;
  background: currentColor; opacity: .6; margin: 0 .9em;
}
/* the theme's divider line under the title — replaced by the kicker rules */
.inspiro-front-page .site-branding-text::after,
.inspiro-front-page .site-title::after { display: none !important; }

.custom-header-button-wrapper { margin-top: 2.2rem; display: flex; gap: .75rem; justify-content: center; align-items: center; flex-wrap: wrap; padding: 0 16px; }
.custom-header-button-wrapper > a { margin: 0 !important; line-height: 1.2 !important; }
.custom-header-button.button,
.ba-btn-ghost {
  display: inline-flex !important; align-items: center; gap: .6em;
  max-width: 100%; white-space: normal; text-align: center;
  font-family: 'Onest', sans-serif; font-weight: 700; font-size: .95rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .95em 1.6em; border-radius: 999px;
  transition: transform .2s var(--ba-ease), background-color .2s, box-shadow .2s;
}
.custom-header-button.button {
  background: var(--ba-ember) !important; color: var(--ba-ink) !important; border: 0 !important;
  box-shadow: 0 10px 30px -10px rgba(255, 92, 51, .7);
}
.custom-header-button.button::before {
  content: ""; flex: none; width: .55em; height: .55em; border-radius: 50%; background: var(--ba-ink);
}
.custom-header-button.button:hover { background: var(--ba-ember-hi) !important; transform: translateY(-2px); }
.custom-header-button.button:active { transform: translateY(0) scale(.97); }
.ba-btn-ghost {
  color: #fff; border: 1.5px solid rgba(255,255,255,.55); background: rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-decoration: none;
}
.ba-btn-ghost:hover { border-color: #fff; color: #fff; transform: translateY(-2px); }

/* ---------- 4. Front page body ----------------------------------------- */
.inspiro-front-page .entry-header,
.inspiro-front-page .page .entry-title,
.home.page .entry-header .entry-title { display: none; }  /* "FrontPage" */

.inspiro-front-page .entry-content > .wp-block-columns { gap: clamp(1.5rem, 3vw, 3.5rem); align-items: flex-start; }

/* section heading: "Following the Money in Local Government" */
.inspiro-front-page .entry-content h1.wp-block-heading {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem) !important; line-height: 1.08 !important;
  letter-spacing: -.02em; font-weight: 800; margin: 0 0 1.6rem;
}
.inspiro-front-page .entry-content h1.wp-block-heading a { color: #fff !important; text-decoration: none; }
.inspiro-front-page .entry-content h1.wp-block-heading a:hover { color: var(--ba-ember) !important; }
.inspiro-front-page .entry-content h1.wp-block-heading::before {
  content: "Investigations"; display: block; margin-bottom: .8rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--ba-ember);
}

/* latest posts → cards */
.wp-block-latest-posts__list.wp-block-latest-posts { display: grid; gap: 1rem; padding: 0; margin: 0; }
.wp-block-latest-posts__list > li {
  position: relative; list-style: none; margin: 0 !important;
  background: var(--ba-card); border: 1px solid var(--ba-line); border-radius: var(--ba-radius);
  padding: 1.4rem 1.5rem 1.5rem 1.6rem; overflow: hidden;
  transition: transform .25s var(--ba-ease), border-color .25s, box-shadow .25s;
}
.wp-block-latest-posts__list > li::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--ba-ember); transform: scaleY(.25); transform-origin: top; transition: transform .35s var(--ba-ease);
}
.wp-block-latest-posts__list > li:hover { transform: translateY(-3px); border-color: rgba(255, 92, 51, .35); box-shadow: 0 18px 40px -24px rgba(0,0,0,.9); }
.wp-block-latest-posts__list > li:hover::before { transform: scaleY(1); }

/* featured image bleeds to the card edges */
.wp-block-latest-posts__list .wp-block-latest-posts__featured-image {
  margin: -1.4rem -1.5rem 1.1rem -1.6rem !important; float: none !important; max-width: none !important;
  aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--ba-line);
}
.wp-block-latest-posts__list .wp-block-latest-posts__featured-image img {
  width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover;
  transition: transform .5s var(--ba-ease);
}
.wp-block-latest-posts__list > li:hover .wp-block-latest-posts__featured-image img { transform: scale(1.04); }

.wp-block-latest-posts__post-title {
  display: block; font-family: 'Onest', sans-serif !important; font-weight: 700;
  font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem) !important; line-height: 1.25 !important;
  color: #fff !important; text-decoration: none; margin-bottom: .45rem;
}
.wp-block-latest-posts__list > li:hover .wp-block-latest-posts__post-title { color: var(--ba-ember) !important; }
/* stretch the title link over the whole card */
.wp-block-latest-posts__post-title::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.wp-block-latest-posts__list .more-link { position: relative; z-index: 2; }

.wp-block-latest-posts__post-author,
.wp-block-latest-posts__post-date {
  display: inline !important; font-size: .78rem !important; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ba-muted) !important;
}
.wp-block-latest-posts__post-author + .wp-block-latest-posts__post-date::before { content: " · "; }
.wp-block-latest-posts__post-author,
.wp-block-latest-posts__post-date { white-space: nowrap; }
.wp-block-latest-posts__post-excerpt { margin-top: .7rem !important; color: #d6d6d6; line-height: 1.7 !important; }
.wp-block-latest-posts__list .link-more { text-align: left !important; margin: .8rem 0 0 !important; }
.wp-block-latest-posts__list .more-link {
  margin: 0 !important;   /* theme centres it as display:table + auto margins */
  border: 0 !important; padding: 0 !important; background: none !important;
  color: var(--ba-ember) !important; font-size: .78rem !important; letter-spacing: .14em;
}
.wp-block-latest-posts__list .more-link::after { content: " →"; display: inline-block; transition: transform .2s var(--ba-ease); }
.wp-block-latest-posts__list .more-link:hover::after { transform: translateX(4px); }

/* right column: stream box, clips, short */
.inspiro-front-page .entry-content .wp-block-column:last-child > div[style*="aspect-ratio"] {
  border-radius: var(--ba-radius); overflow: hidden; border: 1px solid var(--ba-line); background: #0e0e0e;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.9);
}
.inspiro-front-page .entry-content .wp-block-column:last-child > div[style*="aspect-ratio"]::before {
  content: "● On Twitch"; display: block; padding: .55rem .9rem; font: 700 .72rem/1 'Onest', sans-serif;
  letter-spacing: .2em; text-transform: uppercase; color: #bf94ff; border-bottom: 1px solid var(--ba-line);
}
.cp-streamweasels { margin-top: 1.25rem; }
.cp-streamweasels__streams { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .75rem !important; }
.cp-streamweasels__streams > * { width: auto !important; margin: 0 !important; border-radius: 8px; overflow: hidden; background: var(--ba-card); border: 1px solid var(--ba-line); transition: transform .2s var(--ba-ease), border-color .2s; }
.cp-streamweasels__streams > *:hover { transform: translateY(-2px); border-color: rgba(191, 148, 255, .45); }
.inspiro-front-page .wp-block-embed-youtube { max-width: 360px; margin: 1.5rem auto 0; border-radius: var(--ba-radius); overflow: hidden; }

/* ---------- 5. Articles: readable measure ------------------------------- */
.single-post .entry-content,
.single-post .entry-header .inner-wrap { max-width: 46rem; margin-inline: auto; }
.single-post .entry-content { font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem); line-height: 1.75; }
.single-post .entry-content > p { margin-bottom: 1.35em; }
.single-post .entry-content > h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-top: 2.4em; }
.single-post .entry-content > figure.alignwide,
.single-post .entry-content > .alignwide { max-width: 64rem; width: calc(100vw - 32px); margin-inline: 50%; transform: translateX(-50%); }
.single-post .entry-content figcaption { font-size: .8rem; color: var(--ba-muted); }

/* ---------- 6. Footer --------------------------------------------------- */
#colophon.site-footer { background-color: #0f0f0f !important; border-top: 1px solid var(--ba-line); }  /* theme mod paints #1f2a2e slate */
.site-footer .widget_nav_menu a { color: #c9c9c9 !important; }
.site-footer .widget_nav_menu a:hover { color: var(--ba-ember) !important; }
.site-footer .bkbg-sl-link { background: #232323 !important; border-color: transparent !important; transition: background-color .2s, transform .2s var(--ba-ease); }
.site-footer .bkbg-sl-link:hover { background: var(--ba-ember) !important; color: var(--ba-ink) !important; transform: translateY(-2px); }
.site-footer .ifb-component-custom-html.site-info { display: none; }   /* "Inspiro Theme by WPZOOM" */

/* ---------- 7. Phones --------------------------------------------------- */
@media (max-width: 640px) {
  .inspiro-front-page .site-description::before,
  .inspiro-front-page .site-description::after { display: none; }
  .inspiro-front-page .site-description { letter-spacing: .22em; }
  .inspiro-front-page .entry-content h1.wp-block-heading br { display: none; }
  .wp-block-latest-posts__list > li { padding: 1.1rem 1.1rem 1.2rem 1.25rem; }
  .wp-block-latest-posts__list .wp-block-latest-posts__featured-image { margin: -1.1rem -1.1rem 1rem -1.25rem !important; }
  .wp-block-latest-posts__post-author,
  .wp-block-latest-posts__post-date { line-height: 1.6 !important; }
  .cp-streamweasels__streams { grid-template-columns: 1fr !important; }
}

/* ---------- 8. Motion safety ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .ba-flash { display: none; }
}
