/* Stepped heading: the locked logo's lettering, for short page titles.
   The first letter is big; each letter after it steps down a little, on one shared baseline, so the word has motion.
   Built from the site font (Bricolage Grotesque 800). Body text stays plain DM Sans.

   WHEN TO STEP: page titles of 1 to 3 words ("Money", "Your clients", "This week").
   WHEN NOT: anything longer, sentences, labels, buttons, numbers, table heads, form fields, emails.

   HOW: <h1 class="step" data-step>Money</h1> and load stepped-heading.js once; it wraps the letters and keeps
   the plain word for screen readers. Without the script the heading shows as a plain bold title (safe fallback).
   The ramp runs across the FIRST word; any later words sit at the ramp's floor size, so short titles stay readable.

   Fonts: the page must load Bricolage Grotesque (addason-audits-site/fonts/bricolage-grotesque-var.woff2). */

.step {
  font-family: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  font-size: var(--step-size, clamp(40px, 7vw, 72px));
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--step-ink, currentColor);
  margin: 0;
  text-wrap: balance;
}
.step--caps { text-transform: uppercase; letter-spacing: 0; }

/* the letters (written by stepped-heading.js) */
.step .sl { display: inline-block; font-size: 0.62em; }     /* floor: every letter past the ramp, and later words */
.step .sw { white-space: nowrap; }                           /* a word never breaks inside its ramp */
.step .sw:first-child .sl:nth-child(1) { font-size: 1em; }
.step .sw:first-child .sl:nth-child(2) { font-size: 0.80em; }
.step .sw:first-child .sl:nth-child(3) { font-size: 0.76em; }
.step .sw:first-child .sl:nth-child(4) { font-size: 0.72em; }
.step .sw:first-child .sl:nth-child(5) { font-size: 0.685em; }
.step .sw:first-child .sl:nth-child(6) { font-size: 0.65em; }
/* the big first letter tucks in a little toward the second */
.step .sw:first-child .sl:nth-child(1) { margin-right: 0.01em; }
/* optional moss first letter, used once per page at most */
.step--accent .sw:first-child .sl:nth-child(1) { color: var(--step-accent, #3F5E36); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step--accent { --step-accent: #6E8F5E; } }
:root[data-theme="dark"] .step--accent { --step-accent: #6E8F5E; }

/* smaller title (section top on a phone) */
.step--sm { --step-size: clamp(28px, 5vw, 40px); }
