/*
Theme Name: Heartbreakers Club
Theme URI: https://heartbreakersclub.co.uk
Author: Heartbreakers Club
Description: One-page theme for Heartbreakers Club. Full-bleed colour bands with photography as the dividers, everything centred, no cards. Upcoming dates are managed under Appearance -> Up Next.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: heartbreakers
*/

/* Heartbreakers Club: shared design system for the three layout prototypes.
   Direction A (Marquee). Layout lives in each vN.html; this file is tokens + shared parts. */

/* ---- The HBC display face -------------------------------------------------
   "Love Craft" is the brand face from the logo (docs/hbc.woff2).
   Covers ASCII upper + lower only: no accents, no em-dash, no curly quotes.
   Keep display headings to plain ASCII or those characters fall back to
   Georgia mid-word. Venue names dodge this. See .venue below.               */
@font-face {
  font-family: "HBC Display";
  src: url("assets/fonts/hbc-display.woff2") format("woff2"),
       url("assets/fonts/hbc-display.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blood:  #6E0C15;
  --red:    #C0202B;
  --bg:     #FCE3EC;
  --panel:  #FFF1F5;
  --light:  #FFE4EC;
  --cta:    #D01262;
  --body:   #8E1420;
  --muted:  #A33241;
  --line:   #F3AFC3;
  --hot:    #FF9FBE;

  --display: "HBC Display", Georgia, serif;
  --text: Archivo, "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(20px, 6vw, 120px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--red); }
a:hover { color: var(--cta); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.96;
  margin: 0;
  color: var(--red);
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lead { font-size: clamp(19px, 2.2vw, 26px); line-height: 1.42; }

.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cta);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 34px;
  border: 2px solid var(--cta);
  border-radius: 999px;
  background: var(--cta);
  color: #FFF;
  font-family: var(--text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--blood); border-color: var(--blood); color: #FFF; }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--light); }
.btn--ghost:hover { background: var(--light); border-color: var(--light); color: var(--blood); }
.btn--sm { min-height: 44px; padding: 0 24px; font-size: 13px; }

/* ---- sticky header ---- */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px var(--pad);
  background: var(--blood);
  color: var(--light);
}
.bar img { height: 42px; width: auto; }
.bar nav { display: flex; gap: 24px; margin-left: 8px; }
.bar a {
  color: var(--light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bar a:hover { color: var(--hot); }
.bar .spacer { flex: 1; }
.bar .when {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hot);
}

/* ---- ticker ---- */
.ticker {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 var(--pad);
  height: 58px;
  background: var(--red);
  color: var(--light);
  overflow: hidden;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.ticker span[aria-hidden] { color: var(--hot); }

/* ---- venue name ----
   Set in the BODY face, not the display face: "Love Craft" has no accented
   glyphs, so "Doña", "Café OTO" etc. would fall back to Georgia mid-word.
   Heavy uppercase Archivo keeps every venue name in one consistent face. */
.venue {
  font-family: var(--text);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--red);
}

/* ---- date block ---- */
.datebox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  flex: none;
  border-radius: 6px;
  background: var(--red);
  color: var(--light);
}
.datebox b { font-family: var(--display); font-size: 40px; font-weight: 400; line-height: 1; }
.datebox span { font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }

.meta { display: flex; flex-wrap: wrap; gap: 32px; }
.meta dt {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta dd { margin: 4px 0 0; font-size: 16px; color: var(--body); text-wrap: balance; }

/* ---- form ---- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.field input,
.field textarea,
.field select {
  min-height: 52px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--body);
  font-family: var(--text);
  font-size: 16px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus { outline: 2px solid var(--cta); outline-offset: 1px; }

/* ---- socials ---- */
.socials { display: flex; gap: 12px; }
.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

/* ---- footer ---- */
.foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 26px var(--pad);
  background: var(--blood);
  color: #E0879C;
  font-size: 13px;
}
.foot img { height: 34px; width: auto; }
.foot .spacer { flex: 1; }

.ph { color: #C87F91; }

@media (max-width: 860px) {
  .bar nav, .bar .when { display: none; }
}


/* V5: BANDED STACK. V1 + V3 only, run on ONE system so the page holds together:
     · V3 gives the architecture: full-bleed colour bands, photographs as the
       dividers between them, and no cards, panels or bordered boxes anywhere.
     · V1 gives the centred column and the three-up photo band.
   The rules, kept without exception (this is what V4 lacked):
     1. Everything is CENTRED. No section switches to a side-by-side split.
     2. Rhythm is always band -> photograph -> band. Colour alternates.
     3. No boxes. Hairline rules are the only separator; the only contained
        image is the poster, because a poster is a contained thing.
     4. Same vertical padding and same measure in every band.

   Centring is plain block flow + text-align. NOT `display:grid;
   justify-items:center`, which sizes children to max-content, so a long
   headline overflows its parent and shunts the whole stack sideways. */

.band { padding: clamp(64px, 8vw, 110px) var(--pad); }
.band > .inner {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}
.band--blood { background: var(--blood); color: var(--light); }
.band--red   { background: var(--red);   color: var(--light); }
.band--pale  { background: var(--panel); }
.band--blood h1, .band--blood h2, .band--red h2 { color: var(--light); }
.band--blood p, .band--red p { color: #FFD3E0; }
.band--blood .eyebrow, .band--red .eyebrow { color: var(--hot); }

/* "HEARTBREAKERS" is one unbreakable word ~10.5x the font size. Any larger
   than this and it overflows the measure to the right and reads off-centre,
   however perfectly the h1 box itself is centred. Sized to fit at every width. */
.band h1 { font-size: clamp(26px, 7.6vw, 76px); }
.band h2 { font-size: clamp(34px, 5.2vw, 62px); }
.band .eyebrow + h2 { margin-top: 14px; }
.band > .inner > * + * { margin-top: 26px; }
.band p { margin: 0; margin-inline: auto; max-width: 620px; }

/* the photographs that divide the bands, always full-bleed */
.strip { width: 100%; height: clamp(200px, 30vw, 420px); object-fit: cover; }
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.photo-row img { width: 100%; height: clamp(190px, 26vw, 340px); object-fit: cover; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.mark { width: clamp(100px, 13vw, 140px); margin-inline: auto; }

.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tags span {
  padding: 9px 18px; border: 1.5px solid #E4879D; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red);
}

/* Up Next: type, not a card */
.poster { max-width: 340px; margin-inline: auto; }
.date-line { font-family: var(--display); font-size: clamp(38px, 5.4vw, 64px); line-height: 1; color: var(--red); text-transform: uppercase; }
.hair { width: min(100%, 420px); height: 1px; border: 0; background: var(--line); margin: 0 auto; }
/* equal columns, so each label sits directly over its own value; content-sized
   flex columns let "LINE-UP" drift off the value beneath it. */
.meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(100%, 600px);
  margin-inline: auto;
}
@media (max-width: 520px) { .meta { grid-template-columns: 1fr; } }

/* Contact: fields sit straight on the band */
.form-block { max-width: 520px; margin-inline: auto; text-align: left; display: grid; gap: 18px; }
.band--blood .field label { color: var(--light); }
.socials { justify-content: center; }
.band--blood .socials, .band--blood .socials a { color: var(--hot); }

@media (max-width: 640px) { .photo-row { grid-template-columns: 1fr; } }

/* ==========================================================================
   WordPress + accessibility basics
   ========================================================================== */

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  width: auto; height: auto; clip: auto; clip-path: none;
  padding: 12px 20px; background: var(--light); color: var(--blood);
  font-weight: 800; border-radius: 4px;
}
:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }
.bar-logo { display: block; line-height: 0; }
.bar-logo img { height: 42px; width: auto; }

/* ==========================================================================
   Up Next: dynamic states
   ========================================================================== */

/* Poster now comes from the event, so it is an <img> WordPress sizes itself. */
.poster { height: auto; }
.venue-address { margin-top: 6px; }

/* the meta row only renders the fields that were filled in, so the column
   count varies, so match the grid to what is actually there. */
.meta--1 { grid-template-columns: minmax(0, 1fr); width: min(100%, 300px); }
.meta--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 440px); }
.meta--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 600px); }

/* "Also coming up": same centred, boxless language as the rest of the page. */
.later { margin-top: 12px; }
.later .eyebrow { margin-bottom: 18px; }
.later-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(100%, 620px);
  border-top: 1px solid var(--line);
}
/* fixed columns, so dates, venues and ticket links line up down the list.
   Centring each row's own content instead leaves every row a little different. */
.later-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.later-date {
  font-family: var(--display);
  font-size: 24px;
  white-space: nowrap;
  line-height: 1.1;
  color: var(--red);
  text-transform: uppercase;
}
.later-venue {
  font-weight: 600;
  color: var(--body);
}
.later-venue small {
  display: block;
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}
.later-action { justify-self: end; }
.later-action a {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cta);
  white-space: nowrap;
}
.later-action a:hover { color: var(--blood); text-decoration: underline; }
.later-note {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* dark bands, when Up Next has no date and the section sits on colour */
.band--blood .later-list, .band--red .later-list,
.band--blood .later-row,  .band--red .later-row { border-color: rgba(255, 228, 236, .25); }
.band--blood .later-date, .band--red .later-date,
.band--blood .later-venue, .band--red .later-venue { color: var(--light); }
.band--blood .later-venue small, .band--red .later-venue small { color: #E4A0B4; }
.band--blood .later-action a, .band--red .later-action a { color: var(--hot); }

@media (max-width: 520px) {
  .later-row { grid-template-columns: 108px minmax(0, 1fr); }
  .later-action { grid-column: 2; justify-self: start; }
}

/* ==========================================================================
   Contact form
   ========================================================================== */

/* Honeypot: off-screen rather than display:none, which some bots detect. */
.hbc-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Turnstile renders its own iframe; this only reserves the row so the Send
   button does not jump down when the widget finishes loading. */
.cf-turnstile {
  min-height: 65px;
}

.form-notice {
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 20px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  text-wrap: pretty;
}
/* `.band--blood p` is 0,1,1 and would otherwise win over a single class here,
   painting the message in the band's pale pink and making it unreadable. */
.band .form-notice--ok    { background: var(--light); color: var(--blood); }
.band .form-notice--error { background: #FFF1F5; color: #8E1420; border: 2px solid var(--cta); }

/* ==========================================================================
   Gutenberg block mapping
   The page content is core blocks now, so the design has to sit on core's
   markup: buttons wrap their link in a div, images come wrapped in <figure>,
   and groups add their own containers.
   ========================================================================== */

/* Core adds vertical margins to every block; the band owns that rhythm. */
.band > .inner > * { margin-block: 0; }
.band > .inner > * + * { margin-top: 26px; }

/* Groups used as bands must stay full-bleed regardless of layout settings. */
.band.wp-block-group { padding: clamp(64px, 8vw, 110px) var(--pad); }
.band > .inner.wp-block-group {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

/* --- buttons: core wraps the link, so the styling has to go on the link --- */
.wp-block-buttons.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 34px;
  border: 2px solid var(--cta);
  border-radius: 999px;
  background: var(--cta);
  color: #FFF;
  font-family: var(--text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.wp-block-button__link:hover {
  background: var(--blood);
  border-color: var(--blood);
  color: #FFF;
}
.wp-block-button.btn--ghost .wp-block-button__link {
  background: transparent;
  border-color: currentColor;
  color: var(--light);
}
.wp-block-button.btn--ghost .wp-block-button__link:hover {
  background: var(--light);
  border-color: var(--light);
  color: var(--blood);
}

/* --- images: core wraps every image in a <figure> --- */
.wp-block-image { margin: 0; }
.wp-block-image img { display: block; }

figure.strip { margin: 0; }
figure.strip img {
  width: 100%;
  height: clamp(200px, 30vw, 420px);
  object-fit: cover;
}

figure.mark { margin-inline: auto; }
figure.mark img { width: clamp(100px, 13vw, 140px); height: auto; margin-inline: auto; }

/* The photo band counts its own images: one, two, three or four across, all at
   the same height whatever the number. Add or delete an image in the editor and
   the columns follow, rather than leaving a hole where the third one was. */
.photo-row.wp-block-group {
  display: grid;
  /* Base for browsers without :has(), and a sane result for five or more. */
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 4px;
  padding: 0;
}

/* Exact counts. `:last-child:nth-child(n)` is true only when there are
   precisely n children, which makes this a real count rather than a guess. */
@media (min-width: 901px) {
  .photo-row.wp-block-group:has(> :last-child:nth-child(1)) { grid-template-columns: minmax(0, 1fr); }
  .photo-row.wp-block-group:has(> :last-child:nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-row.wp-block-group:has(> :last-child:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .photo-row.wp-block-group:has(> :last-child:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Two across at tablet width: four 300px crops are unreadable. */
@media (min-width: 641px) and (max-width: 900px) {
  .photo-row.wp-block-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .photo-row.wp-block-group { grid-template-columns: minmax(0, 1fr); }
}

.photo-row.wp-block-group > * { margin: 0; width: auto; max-width: none; }

/* !important earns its place here: dragging an image's resize handle in the
   editor writes width, height and aspect-ratio as an INLINE style on the <img>,
   and nothing but !important outranks an inline style. One stray drag would
   otherwise break the row for every visitor. */
.photo-row.wp-block-group img {
  display: block;
  width: 100% !important;
  height: clamp(190px, 26vw, 340px) !important;
  max-width: none !important;
  aspect-ratio: auto !important;
  object-fit: cover;
}

/* --- tags: three paragraphs behaving as chips --- */
.tags.wp-block-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.tags.wp-block-group > * {
  margin: 0;
  padding: 9px 18px;
  border: 1.5px solid #E4879D;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.band--blood .tags.wp-block-group > *,
.band--red .tags.wp-block-group > * {
  border-color: var(--hot);
  color: var(--light);
}

/* The dynamic blocks render their own band, so they need no wrapper. */
.wp-block-heartbreakers-up-next,
.wp-block-heartbreakers-contact-form { display: contents; }

/* --- editor-only --- */
.hbc-block-preview__note {
  margin: 0 0 8px;
  padding: 8px 12px;
  background: #FFF1F5;
  border-left: 4px solid var(--cta);
  color: var(--body);
  font-family: var(--text);
  font-size: 13px;
}
.editor-styles-wrapper .band { margin-block: 0; }

/* Band colours as block styles, so the sidebar can switch a section's colour. */
.wp-block-group.is-style-band-blood { background: var(--blood); color: var(--light); }
.wp-block-group.is-style-band-red   { background: var(--red);   color: var(--light); }
.wp-block-group.is-style-band-pale  { background: var(--panel); }
.is-style-band-blood h1, .is-style-band-blood h2,
.is-style-band-red h1,  .is-style-band-red h2  { color: var(--light); }
.is-style-band-blood p, .is-style-band-red p   { color: #FFD3E0; }
.is-style-band-blood .eyebrow, .is-style-band-red .eyebrow { color: var(--hot); }

/* ==========================================================================
   Editor only: everything below is scoped to .editor-styles-wrapper
   ========================================================================== */

/* Name each band in the editor so sections are identifiable at a glance. */
.editor-styles-wrapper .band { position: relative; }
.editor-styles-wrapper .band::before {
  content: attr(data-title);
  position: absolute;
  top: 6px;
  left: 8px;
  z-index: 5;
  padding: 3px 10px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.editor-styles-wrapper .band:hover::before { opacity: 1; }

/* Bands are full-bleed; the editor canvas needs them to behave. */
.editor-styles-wrapper .band { margin-block: 0; }
.editor-styles-wrapper .band > .inner { max-width: 860px; }

/* The server-rendered blocks: a clear "this comes from settings" strip. */
.hbc-block-preview__note {
  margin: 0 0 10px;
  padding: 10px 14px;
  background: #F0F0F1;
  border-left: 4px solid var(--cta);
  color: #1e1e1e;
  font-family: var(--text);
  font-size: 13px;
  line-height: 1.5;
  border-radius: 0 3px 3px 0;
}
.hbc-block-preview__note a { color: var(--cta); font-weight: 600; }

/* Ticker: the control repeated inside the block when selected. */
.hbc-ticker-edit {
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #F0F0F1;
  border-radius: 3px;
}
.hbc-ticker-edit textarea { font-family: var(--text); }

/* ==========================================================================
   Scrolling strip
   The track holds the word sequence twice and slides -50%, so the moment it
   loops, the second copy is exactly where the first started. One sequence is
   built wide enough to span the screen on its own, or a gap shows mid-loop.
   ========================================================================== */

.ticker {
  display: block;
  padding: 0;          /* edge to edge, padding would break the seam */
  overflow: hidden;
  position: relative;
}

/* Fade the words into the bar at each end. Without this the strip slices
   straight through a letter, which reads as broken text rather than movement.
   Done as an overlay rather than mask-image on .ticker, because a mask fades
   the red background out too and lets the photo behind show through. */
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 7vw, 110px);
  z-index: 2;
  pointer-events: none;
}
.ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--red) 15%, rgba(192, 32, 43, 0) 100%);
}
.ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--red) 15%, rgba(192, 32, 43, 0) 100%);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 52px;                /* roomy: this is signage, not a sentence */
  height: 58px;
  width: max-content;
  white-space: nowrap;
  /* Runs continuously. Deliberately no pause on hover: it is decoration,
     and stopping under the cursor reads as a glitch rather than a feature. */
  animation: hbc-ticker var(--ticker-duration, 40s) linear infinite;
}
.ticker__sep { color: var(--hot); opacity: 0.85; }

@keyframes hbc-ticker {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Motion is decoration here: never make someone seasick to read a word list. */
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* The editor canvas is for arranging, not for watching things slide past. */
.editor-styles-wrapper .ticker__track { animation: none; }

/* Footer credit: the name sits in light pink so it reads as a link against the
   muted footer text, rather than only revealing itself on hover. */
.foot-credit a {
  color: var(--light);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 228, 236, 0.45);
}
.foot-credit a:hover {
  color: #FFF;
  text-decoration-color: currentColor;
}

/* Official brand glyphs are solid fills, not outlines, so they need no stroke
   and sit slightly smaller than the outline icons they replaced. */
.social-icon { display: block; }

/* The .btn / .btn--ghost classes come from the static prototypes, where they
   sat on the <a> itself. In block markup the class lands on the wrapping div
   instead, so their hover background paints a hard-edged rectangle behind the
   rounded link. Keep the wrapper inert and let the link own all of it. */
.wp-block-buttons .wp-block-button.btn,
.wp-block-buttons .wp-block-button.btn:hover,
.wp-block-buttons .wp-block-button.btn--ghost,
.wp-block-buttons .wp-block-button.btn--ghost:hover {
  background: none;
  border: 0;
  padding: 0;
  min-height: 0;
  border-radius: 0;
  color: inherit;
}
