/*
Theme Name: Flueed
Theme URI: https://flueed.com
Description: Child theme of Twenty Twenty-Five for the Flueed marketing site. Carries the full design system (color-as-rhetoric: violet = the system, crimson = the broken worlds, amber = evidence & payoff) in theme.json + section style variations; this file holds only what theme.json cannot express.
Author: Flueed
Template: twentytwentyfive
Version: 0.1.1
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: flueed
*/

/* ============================================================
   Everything visual that theme.json can't express lives here:
   rhetoric text devices, eyebrow chips, hover motion, focus,
   selection, diagram grammar. NO layout — layout is patterns'
   job; per-section color/type is the style variations' job.
   ============================================================ */

/* ---- page-canvas layout contract ----
   Global blockGap is useful inside sections, but the site shell and
   top-level full-width sections form one continuous canvas. */

.wp-site-blocks > *,
.flueed-page-content > * {
  margin-block-start: 0;
}

.flueed-eyebrow-row > :is(
  .is-style-eyebrow,
  .is-style-eyebrow-pain,
  .is-style-eyebrow-dark,
  .is-style-eyebrow-payoff
) {
  margin-block: 0;
}

/* ---- rhetoric devices (span-level, used inside rich text) ---- */

.strike-pain {
  text-decoration: line-through;
  text-decoration-color: var(--wp--preset--color--crimson);
  text-decoration-thickness: 0.11em;
  opacity: 0.62;
}

.mark-payoff {
  background: linear-gradient(180deg, transparent 62%, var(--wp--preset--color--amber-soft) 62%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding-inline: 0.06em;
}

/* on dark tones the devices brighten / switch to an underline stroke */
.is-style-tone-brand .strike-pain,
.is-style-tone-hero .strike-pain,
.is-style-tone-deep .strike-pain {
  text-decoration-color: #ff5f6b;
  opacity: 0.8;
}

.is-style-tone-brand .mark-payoff,
.is-style-tone-hero .mark-payoff,
.is-style-tone-deep .mark-payoff {
  background: linear-gradient(180deg, transparent 84%, var(--wp--preset--color--amber) 84%);
}

/* ---- eyebrow chips (paragraph block styles, registered in functions.php) ---- */

.is-style-eyebrow,
.is-style-eyebrow-pain,
.is-style-eyebrow-dark {
  display: inline-block;
  width: fit-content;
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--label);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.45em 0.8em;
  border-radius: 7px;
}

.is-style-eyebrow {
  color: var(--wp--preset--color--violet);
  background: #e6d9f8;
}

.is-style-eyebrow-pain {
  color: var(--wp--preset--color--crimson);
  background: var(--wp--preset--color--crimson-soft);
}

.is-style-eyebrow-dark {
  color: var(--wp--preset--color--lavender);
  background: rgba(210, 171, 255, 0.16);
}

/* ---- mono utility label (non-chip) ---- */

.is-style-mono-label {
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--label);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ---- buttons: ghost style + motion ---- */

.wp-block-button .wp-block-button__link {
  transition:
    background var(--wp--custom--motion--speed) var(--wp--custom--motion--ease),
    color var(--wp--custom--motion--speed) var(--wp--custom--motion--ease),
    transform var(--wp--custom--motion--speed) var(--wp--custom--motion--ease);
}

.wp-block-button .wp-block-button__link:active {
  transform: translateY(1px);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--violet);
  border: 1.5px solid var(--wp--preset--color--violet);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--violet-soft);
}

.is-style-tone-brand .wp-block-button.is-style-outline .wp-block-button__link,
.is-style-tone-hero .wp-block-button.is-style-outline .wp-block-button__link,
.is-style-tone-deep .wp-block-button.is-style-outline .wp-block-button__link {
  color: var(--wp--preset--color--dark-ink);
  border-color: var(--wp--custom--dark-line);
}

.is-style-tone-brand .wp-block-button.is-style-outline .wp-block-button__link:hover,
.is-style-tone-hero .wp-block-button.is-style-outline .wp-block-button__link:hover,
.is-style-tone-deep .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(210, 171, 255, 0.12);
}

/* ---- list rhetoric: pain / evidence bullets ---- */

ul.is-style-bullets-pain,
ul.is-style-bullets-amber {
  list-style: none;
  padding-left: 0;
}

ul.is-style-bullets-pain li,
ul.is-style-bullets-amber li {
  position: relative;
  padding-left: 1.5rem;
}

ul.is-style-bullets-pain li::before,
ul.is-style-bullets-amber li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

ul.is-style-bullets-pain li::before {
  border: 2px solid var(--wp--preset--color--crimson);
  opacity: 0.75;
}

ul.is-style-bullets-amber li::before {
  background: var(--wp--preset--color--amber);
}

/* ---- pattern support: numbered step chips ----
   Violet on light grounds; lavender inside dark tones. */

.flueed-step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.6px solid var(--wp--preset--color--violet);
  border-radius: var(--wp--custom--radius--node);
  color: var(--wp--preset--color--violet);
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--label);
  letter-spacing: 0.09em;
}

.is-style-tone-deep .flueed-step-num,
.is-style-tone-brand .flueed-step-num,
.is-style-tone-hero .flueed-step-num {
  border-color: var(--wp--preset--color--lavender);
  color: var(--wp--preset--color--lavender);
}

.flueed-step-num.is-amber {
  background: var(--wp--preset--color--amber);
  border-color: var(--wp--preset--color--amber);
  color: var(--wp--preset--color--violet-ink);
}

/* ---- pattern support: ownership ladder (position-coded numbers) ---- */

.flueed-ladder .wp-block-column:nth-child(1) .flueed-step-num {
  background: var(--wp--preset--color--lavender);
  border-color: var(--wp--preset--color--lavender);
  color: var(--wp--preset--color--violet-ink);
}

.flueed-ladder .wp-block-column:nth-child(2) .flueed-step-num {
  background: var(--wp--preset--color--violet);
  border-color: var(--wp--preset--color--violet);
  color: var(--wp--preset--color--surface);
}

.flueed-ladder .wp-block-column:nth-child(3) .flueed-step-num {
  background: var(--wp--preset--color--amber);
  border-color: var(--wp--preset--color--amber);
  color: var(--wp--preset--color--violet-ink);
}

.flueed-ladder-baseline {
  height: 3px;
  border-radius: 2px;
  background: var(--wp--preset--gradient--ladder-baseline);
}

/* ---- pattern support: honest comparison table ---- */

.wp-block-table:is(.is-style-compare, .is-style-worlds) {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--custom--line);
  border-radius: var(--wp--custom--radius--card);
  overflow-x: auto;
  padding: 0;
}

.wp-block-table:is(.is-style-compare, .is-style-worlds) table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: var(--wp--preset--font-size--small);
}

.wp-block-table:is(.is-style-compare, .is-style-worlds) th,
.wp-block-table:is(.is-style-compare, .is-style-worlds) td {
  border: none;
  padding: 1rem 1.3rem;
  text-align: left;
  vertical-align: top;
}

.wp-block-table:is(.is-style-compare, .is-style-worlds) thead th {
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--label);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink-soft);
  border-bottom: 2px solid var(--wp--preset--color--violet);
}

.wp-block-table:is(.is-style-compare, .is-style-worlds) thead th:last-child {
  color: var(--wp--preset--color--violet);
}

.wp-block-table:is(.is-style-compare, .is-style-worlds) tbody tr:not(:last-child) td {
  border-bottom: 1px solid var(--wp--custom--line);
}

.wp-block-table:is(.is-style-compare, .is-style-worlds) tbody td {
  color: var(--wp--preset--color--ink-soft);
}

.wp-block-table:is(.is-style-compare, .is-style-worlds) tbody td:first-child {
  font-weight: 600;
  color: var(--wp--preset--color--ink);
  width: 30%;
}

.wp-block-table:is(.is-style-compare, .is-style-worlds) tbody td:last-child {
  background: rgba(60, 21, 122, 0.045);
}

.wp-block-table:is(.is-style-compare, .is-style-worlds) tbody td strong {
  color: var(--wp--preset--color--ink);
}

.wp-block-table:is(.is-style-compare, .is-style-worlds) tbody td:last-child strong {
  color: var(--wp--preset--color--violet);
}

.wp-block-table:is(.is-style-compare, .is-style-worlds) tbody td strong::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  margin-right: 0.55rem;
  background: var(--wp--preset--color--ink-soft);
}

.wp-block-table:is(.is-style-compare, .is-style-worlds) tbody td:last-child strong::before {
  background: var(--wp--preset--color--amber);
}

/* worlds variant: two pain columns, no Flueed column — crimson headers, no tint */
.wp-block-table:is(.flueed-table-worlds, .is-style-worlds) thead th {
  color: var(--wp--preset--color--crimson);
  border-bottom-color: var(--wp--preset--color--crimson);
}

.wp-block-table:is(.flueed-table-worlds, .is-style-worlds) tbody td:last-child {
  background: transparent;
}

/* ============================================================
   Variation system — one-click axes
   Level 2: card-set context styles (on the grid/columns container)
   Level 3: element styles
   ============================================================ */

/* ---- card accent tokens: each coding declares its accent ---- */

.is-style-card-pain { --card-accent: var(--wp--preset--color--crimson); }
.is-style-card-honest { --card-accent: var(--wp--preset--color--violet); }
.is-style-card-soft { --card-accent: var(--wp--preset--color--violet); }
.is-style-card-amber { --card-accent: var(--wp--preset--color--amber); }
.is-style-card-feature { --card-accent: var(--wp--preset--color--lavender); }
.is-style-card-outline { --card-accent: var(--wp--preset--color--lavender); }
.is-style-panel-featured { --card-accent: var(--wp--preset--color--violet); }

/* ---- card-set switches: restyle every card inside with one click ---- */

:is(.is-style-cards-outlined, .is-style-cards-elevated, .is-style-cards-bare)
  :is([class*="is-style-card-"], .is-style-panel-featured) {
  transition: none;
}

.is-style-cards-outlined :is([class*="is-style-card-"], .is-style-panel-featured) {
  background: var(--wp--preset--color--surface);
  border: 1.5px solid var(--card-accent, var(--wp--custom--line));
  box-shadow: none;
  color: var(--wp--preset--color--ink-soft);
}

.is-style-cards-elevated :is([class*="is-style-card-"], .is-style-panel-featured) {
  background: var(--wp--preset--color--surface);
  border: none;
  border-top: var(--wp--custom--card--accent-width) solid var(--card-accent, var(--wp--preset--color--violet));
  box-shadow: var(--wp--custom--card--shadow);
  color: var(--wp--preset--color--ink-soft);
}

.is-style-cards-bare :is([class*="is-style-card-"], .is-style-panel-featured) {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--wp--preset--color--ink-soft);
}

/* card-set switches keep headings readable when overriding dark panels */
:is(.is-style-cards-outlined, .is-style-cards-elevated, .is-style-cards-bare)
  .is-style-panel-featured :is(h2, h3, h4) {
  color: var(--wp--preset--color--violet);
}

/* ---- statement (paragraph style; replaces 4 hand-set attributes) ---- */

.is-style-statement {
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--statement);
  font-weight: 650;
  line-height: 1.28;
  color: var(--wp--preset--color--violet);
  text-wrap: balance;
}

:is(.is-style-tone-deep, .is-style-tone-brand, .is-style-tone-hero, .is-style-tone-violet) .is-style-statement {
  color: var(--wp--preset--color--dark-ink);
}

/* ---- eyebrow: payoff (amber) joins the chip family ---- */

.is-style-eyebrow-payoff {
  display: inline-block;
  width: fit-content;
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--label);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.45em 0.8em;
  border-radius: 7px;
  color: #a35f00;
  background: var(--wp--preset--color--amber-soft);
}

/* ---- heading accents ---- */

.is-style-heading-underline {
  width: fit-content;
  border-bottom: 0.14em solid var(--wp--preset--color--amber);
  padding-bottom: 0.08em;
}

.is-style-heading-underline.has-text-align-center {
  margin-inline: auto;
}

.is-style-heading-eyebrowed::before {
  content: '';
  display: block;
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: var(--wp--preset--color--amber);
  margin-bottom: 0.55em;
}

.is-style-heading-eyebrowed.has-text-align-center::before {
  margin-inline: auto;
}

/* ---- button emphasis levels ---- */

.wp-block-button.is-style-btn-amber .wp-block-button__link {
  background: var(--wp--preset--color--amber);
  color: var(--wp--preset--color--violet-ink);
}

.wp-block-button.is-style-btn-amber .wp-block-button__link:hover {
  background: #d97f00;
}

.wp-block-button.is-style-btn-quiet .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--violet);
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}

.wp-block-button.is-style-btn-quiet .wp-block-button__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

:is(.is-style-tone-deep, .is-style-tone-brand, .is-style-tone-hero, .is-style-tone-violet)
  .wp-block-button.is-style-btn-quiet .wp-block-button__link {
  color: var(--wp--preset--color--lavender);
}

/* ---- list styles: checks + numbered chips ---- */

ul.is-style-bullets-check {
  list-style: none;
  padding-left: 0;
}

ul.is-style-bullets-check li {
  position: relative;
  padding-left: 1.6rem;
}

ul.is-style-bullets-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--wp--preset--color--violet);
}

ol.is-style-bullets-numbered-chips {
  list-style: none;
  padding-left: 0;
  counter-reset: flueed-chip;
  display: grid;
  gap: 1.1rem;
}

ol.is-style-bullets-numbered-chips li {
  position: relative;
  padding-left: 3.2rem;
  counter-increment: flueed-chip;
  min-height: 36px;
}

ol.is-style-bullets-numbered-chips li::before {
  content: counter(flueed-chip, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.6px solid var(--wp--preset--color--violet);
  border-radius: var(--wp--custom--radius--node);
  color: var(--wp--preset--color--violet);
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--label);
  letter-spacing: 0.06em;
}

:is(.is-style-tone-deep, .is-style-tone-brand, .is-style-tone-hero, .is-style-tone-violet)
  ol.is-style-bullets-numbered-chips li::before {
  border-color: var(--wp--preset--color--lavender);
  color: var(--wp--preset--color--lavender);
}

/* ---- image frames (diagram-grammar chrome for screenshots) ---- */

.wp-block-image.is-style-img-frame-browser {
  position: relative;
  border: 2px solid var(--wp--preset--color--violet);
  border-radius: var(--wp--custom--radius--card);
  padding-top: 32px;
  background:
    radial-gradient(circle 4px at 16px 16px, var(--wp--preset--color--lavender) 4px, transparent 5px),
    radial-gradient(circle 4px at 30px 16px, var(--wp--preset--color--lavender) 4px, transparent 5px),
    radial-gradient(circle 4px at 44px 16px, var(--wp--preset--color--lavender) 4px, transparent 5px),
    var(--wp--preset--color--violet);
  overflow: hidden;
}

.wp-block-image.is-style-img-frame-browser img {
  border-radius: 0;
  display: block;
}

.wp-block-image.is-style-img-frame-node img {
  border: 2px solid var(--wp--preset--color--violet);
  border-radius: var(--wp--custom--radius--node);
  background: var(--wp--preset--color--surface);
}

.wp-block-image.is-style-img-glow img {
  border-radius: var(--wp--custom--radius--card);
  box-shadow: 0 24px 60px rgba(60, 21, 122, 0.25);
}

/* ---- quote styles: pull quote + testimonial voice ---- */

.wp-block-quote.is-style-quote-pull {
  border: none;
  position: relative;
  padding-left: 3.2rem;
  margin-block: 1.5rem;
}

.wp-block-quote.is-style-quote-pull::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -0.18em;
  font-family: var(--wp--preset--font-family--display);
  font-size: 4.5rem;
  font-weight: 750;
  line-height: 1;
  color: var(--wp--preset--color--amber);
}

.wp-block-quote.is-style-quote-pull p {
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--statement);
  font-weight: 650;
  line-height: 1.28;
  color: var(--wp--preset--color--violet);
  text-wrap: balance;
}

.wp-block-quote.is-style-quote-pull cite {
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--label);
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--wp--preset--color--ink-soft);
}

.wp-block-quote.is-style-quote-voice {
  border: none;
  background: var(--wp--preset--color--violet-soft);
  border-radius: var(--wp--custom--radius--card);
  padding: var(--wp--custom--card--padding);
}

.wp-block-quote.is-style-quote-voice p {
  color: var(--wp--preset--color--ink);
  font-size: var(--wp--preset--font-size--lead);
  line-height: 1.55;
}

.wp-block-quote.is-style-quote-voice cite {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--label);
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--wp--preset--color--violet);
}

/* ---- separators ---- */

hr.wp-block-separator.is-style-sep-gradient {
  border: none;
  height: 4px;
  border-radius: 2px;
  background: var(--wp--preset--gradient--ladder-baseline);
  opacity: 1;
}

hr.wp-block-separator.is-style-sep-signal {
  border: none;
  border-top: 2px dashed var(--wp--preset--color--amber);
  background: transparent;
  opacity: 0.9;
}

/* ---- FAQ details/summary ---- */

.wp-block-details summary {
  font-weight: 600;
  color: var(--wp--preset--color--ink);
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  cursor: pointer;
  list-style: none;
}

.wp-block-details summary::-webkit-details-marker {
  display: none;
}

.wp-block-details summary::before {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--wp--preset--color--amber);
  transition: transform var(--wp--custom--motion--speed) var(--wp--custom--motion--ease);
}

.wp-block-details[open] summary::before {
  transform: rotate(45deg);
}

.wp-block-details[open] summary {
  margin-bottom: 0.6rem;
}

/* ---- pattern support: evidence stat figures ---- */

.flueed-stat {
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--hero);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--amber);
}

/* ---- global niceties ---- */

::selection {
  background: var(--wp--preset--color--lavender);
  color: var(--wp--preset--color--violet-ink);
}

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

h1, h2, h3, h4 {
  text-wrap: balance;
}

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