/* BeargrassPublishing v2 — publication.css.

   Owns editorial ornaments and mode-aware H1/H2 typography. Single
   source of truth for: drop caps, fx-eyebrow, sec-heading,
   sheen-swell, sec-break, pullquote, related-reading, body-open,
   CTA buttons, hero typography per mode (Paper / Night / Open).

   No !important. Specificity wins via root[data-mode="..."] qualifiers.
*/

/* ============================================================
   Keyframes
   ============================================================ */

@keyframes sheenPan {
  0%, 100% { background-position: 100% 0; }
  50%      { background-position: 0%   0; }
}
@keyframes heroBounce {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50%      { transform: translateY(4px); opacity: 1; }
}

/* ============================================================
   Body baseline
   ============================================================ */

body {
  font-family: var(--type-body);
  color: var(--ink);
  background: var(--paper);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--indigo); text-decoration-color: rgba(43, 69, 99, 0.4); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }

/* ============================================================
   Eyebrow / fx-eyebrow
   ============================================================ */

/* Eyebrow — small caps register WITHOUT screaming all-caps. Mark
   2026-05-05: ALL-CAPS reads as yelling. Use small font size and a
   modest letter-spacing instead; case is preserved so labels read
   like "About the library" rather than "ABOUT THE LIBRARY". */
.eyebrow,
span.fx-eyebrow,
p.fx-eyebrow {
  font-family: var(--type-ui);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--barn);
  font-weight: 600;
  display: block;
  margin-bottom: 0.35rem;
}

/* Eyebrow header always stacks: eyebrow on its own line, then H2.
   Mark 2026-05-05: 'First call' was rendering inline with 'What the
   first call looks like.' on the contact page. Lock the column flow
   in every mode so an eyebrow never shares a line with its heading. */
.fx-eyebrow,
header.fx-eyebrow {
  margin: 2.25rem 0 0.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}
.fx-eyebrow > .eyebrow,
header.fx-eyebrow > .eyebrow { display: inline-block; }

/* Eyebrow color follows the heading's arc class. Barn opens, indigo
   thinks, olive closes — the editorial chord across a banded page. */
header.fx-eyebrow:has(.fx-build)  .eyebrow { color: var(--barn); }
header.fx-eyebrow:has(.fx-pivot)  .eyebrow { color: var(--indigo); }
header.fx-eyebrow:has(.fx-settle) .eyebrow { color: var(--olive); }

/* Open mode — frosted pill eyebrow on every fragment shape:
     <header class="fx-eyebrow"><span class="eyebrow">...</span></header>
     <span class="fx-eyebrow">...</span>     (Learn / pricing / contact / faq fragments)
     <p class="fx-eyebrow">...</p>           (pricing tier sub-cards)
   Mark 2026-05-05: pill must be on its OWN line above the H2 in
   every mode and every band layout. Using display: block with
   width: fit-content so the pill sizes to text but always breaks to
   its own row — inline-block let the H2 catch up to the eyebrow on
   the same row in some band layouts. */
:root[data-mode="open"] .band__content .eyebrow,
:root[data-mode="open"] .band__content span.fx-eyebrow,
:root[data-mode="open"] .band__content p.fx-eyebrow,
:root[data-mode="open"] .article-body .eyebrow,
:root[data-mode="open"] .article-body span.fx-eyebrow,
:root[data-mode="open"] .article-body p.fx-eyebrow,
:root[data-mode="open"] body.bgai-learn .article-head .eyebrow,
:root[data-mode="open"] body.bgai-learn .library-start-here .eyebrow,
:root[data-mode="open"] body.bgai-learn .library-toc .eyebrow,
:root[data-mode="open"] body.bgai-learn .library-editorial .eyebrow {
  display: block;
  width: fit-content;
  max-width: 100%;
  background: rgba(10, 16, 36, 0.62);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: var(--warm-bright, #f4c45a);
  padding: 0.32em 0.7em;
  border-radius: var(--r-pill);
  border: 1px solid rgba(240, 230, 207, 0.22);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: none;
  text-shadow: 0 1px 4px rgba(10, 16, 36, 0.85);
  margin-bottom: 0.85rem;
}
:root[data-mode="open"] .band__content header.fx-eyebrow,
:root[data-mode="open"] .article-body header.fx-eyebrow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

/* ============================================================
   Section heading (.sec-heading, .sheen-swell)
   ============================================================ */

.sec-heading {
  font-family: var(--type-italic);
  font-variation-settings: "opsz" 72, "wght" 500, "SOFT" 40, "WONK" 1;
  font-size: var(--fs-3xl);
  line-height: var(--lh-snug);
  margin: 0 0 var(--sp-md);
  max-width: 32ch;
  color: var(--indigo);
  overflow-wrap: break-word;
  hyphens: auto;
}
/* Phone: scale the heading down so long single words like "Structured"
   or "Backlinks" do not overflow the article column. Chrome mobile
   review 2026-05-07 measured a 20px overflow on /learn/how-chatgpt-decides
   sections II and III at 391px viewport. */
@media (max-width: 480px) {
  .sec-heading {
    font-size: var(--fs-2xl);
    word-break: break-word;
  }
}

/* Sheen — letter-pan via background-clip:text. Mode-aware hot-spot:
   Paper uses --barn (the studio voice color, dominant Paper accent),
   Night and Open use --warm-bright (the chrome wordmark accent gold,
   dominant accent on dark surfaces). Color-only animation; nothing
   in the type metrics changes. Applied to every .sec-heading and
   .headline automatically — no opt-in class required, mirroring the
   .band__hero-headline pattern. The legacy .sheen-swell class is
   harmless if present on a fragment; it is no longer required. */
.sec-heading,
.headline {
  font-family: var(--type-italic);
  background-image: linear-gradient(100deg,
    var(--ink) 0%, var(--ink) 40%,
    var(--barn) 50%,
    var(--ink) 60%, var(--ink) 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: sheenPan var(--sheen-duration) ease-in-out infinite;
}

/* Night and Open — cream → warm-bright → cream. Same gradient because
   both modes carry cream-fixed type on a dark plate. */
:root[data-mode="night"] .sec-heading,
:root[data-mode="night"] .headline,
:root[data-mode="open"]  .sec-heading,
:root[data-mode="open"]  .headline {
  background-image: linear-gradient(100deg,
    var(--cream-fixed) 0%, var(--cream-fixed) 40%,
    var(--warm-bright) 50%,
    var(--cream-fixed) 60%, var(--cream-fixed) 100%);
}

/* ============================================================
   Headline (legacy + hero band shared base)
   ============================================================ */

.headline {
  font-family: var(--type-display);
  font-size: var(--fs-disp-lg);
  line-height: 1.04;
  letter-spacing: var(--ls-tight);
  max-width: 22ch;
  color: var(--ink);
  margin: 0;
}

.deck {
  font-family: var(--type-italic);
  font-variation-settings: "opsz" 36, "wght" 400, "SOFT" 40;
  font-style: italic;
  font-size: var(--fs-lg);
  line-height: var(--lh-normal);
  margin: 0.9rem 0 0;
  max-width: 52ch;
  color: var(--ink-sec);
}

/* ============================================================
   Drop cap
   ============================================================ */

.drop-cap::first-letter {
  font-family: var(--type-display);
  font-size: 3.2em;
  line-height: 0.9;
  float: left;
  color: var(--barn);
  margin: 0.05em 0.12em -0.1em 0;
}
:root[data-mode="night"] .drop-cap::first-letter,
:root[data-mode="open"]  .drop-cap::first-letter {
  color: var(--warm);
}
:root[data-mode="open"]  .drop-cap::first-letter {
  text-shadow: 0 1px 6px rgba(10, 16, 36, 0.7);
}

/* ============================================================
   Body prose (band__content paragraphs)
   ============================================================ */

.band__content p,
.band__content li {
  font-family: var(--type-body);
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
  color: var(--ink);
  margin: 0 0 0.9rem;
}
.band__content .body-open {
  font-family: var(--type-italic);
  font-style: italic;
  font-size: var(--fs-md);
  color: var(--ink-sec);
  margin: 0 0 var(--sp-md);
  max-width: 56ch;
}
.band__content a { color: var(--indigo); }
.band__content b,
.band__content strong { color: var(--ink); font-weight: 700; }

/* Open mode body type rides the scene with a text-shadow stack for
   contrast. Mark 2026-05-05: thickened from a single 4px shadow to a
   double-stack (sharp drop + ambient halo) for better contrast against
   the warm sunrise scene peaks. ADA: cream-fixed on the dark frosted
   plate clears AA at 7:1+; the shadow stack prevents the type from
   ghosting if a band__content plate is more transparent. */
:root[data-mode="open"] .band__content p,
:root[data-mode="open"] .band__content li {
  color: var(--cream-fixed);
  text-shadow: 0 1px 3px rgba(10, 16, 36, 0.95),
               0 0 16px rgba(10, 16, 36, 0.8);
}
:root[data-mode="open"] .band__content .body-open {
  color: rgba(240, 230, 207, 0.94);
}
:root[data-mode="open"] .band__content a {
  color: var(--warm);
  text-shadow: 0 1px 4px rgba(10, 16, 36, 0.75);
}
:root[data-mode="open"] .band__content b,
:root[data-mode="open"] .band__content strong {
  color: var(--cream-fixed);
}

/* ============================================================
   Section break (sec-break sprig)
   ============================================================ */

.sec-break {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: var(--sp-xl) auto;
  color: var(--barn);
  opacity: 0.9;
  max-width: 540px;
}
.sec-break .rule-line { flex: 1; max-width: 160px; height: 1px; background: currentColor; opacity: 0.55; }
.sec-break svg { width: 110px; height: 28px; color: currentColor; }
:root[data-mode="night"] .sec-break,
:root[data-mode="open"]  .sec-break { color: var(--warm); }

/* ============================================================
   Pullquote
   ============================================================ */

.pull,
.pullquote {
  font-family: var(--type-italic);
  font-style: italic;
  font-size: var(--fs-xl);
  line-height: 1.4;
  color: var(--ink-sec);
  margin: var(--sp-lg) 0;
  padding: 0.4rem 0 0.4rem 1.2rem;
  border-left: 2px solid var(--barn);
}
:root[data-mode="night"] .pull,
:root[data-mode="night"] .pullquote { border-left-color: var(--warm); }
:root[data-mode="open"]  .pull,
:root[data-mode="open"]  .pullquote {
  color: var(--cream-fixed);
  border-left-color: var(--warm);
  text-shadow: 0 1px 4px rgba(10, 16, 36, 0.75);
}

/* ============================================================
   Related reading list (V band on banded pages)
   ============================================================ */

/* Related reading — 3-up sub-card grid. Mark 2026-05-05: the prior
   list-with-rules layout sat half-way across the page and read as
   stacked links, not articles. Each item is now a contained card
   with its own padding, hairline border, and hover lift. The grid
   collapses to a single column under 720px. */
.related-reading__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap-lg);
  margin: var(--sp-md) 0 0;
}
.related-reading__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: var(--sp-md) var(--sp-md);
  background: var(--paper-elev);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.related-reading__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: var(--barn);
}
.related-reading__item h3 {
  font-family: var(--type-italic);
  font-variation-settings: "opsz" 36, "wght" 600, "SOFT" 30;
  font-size: var(--fs-xl);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
  color: var(--indigo);
}
.related-reading__item p {
  font-family: var(--type-body);
  font-size: var(--fs-xs);
  color: var(--ink-sec);
  margin: 0 0 0.4rem;
  line-height: var(--lh-normal);
  flex: 1 1 auto;
}
.related-reading__item .related-reading__time {
  font-family: var(--type-ui);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  color: var(--ink-ter);
  margin-top: auto;
}
:root[data-mode="night"] .related-reading__item {
  background: rgba(22, 33, 46, 0.78);
  border-color: rgba(240, 230, 207, 0.18);
  color: var(--cream-fixed);
}
:root[data-mode="night"] .related-reading__item h3 { color: var(--warm-bright, #f4c45a); }
:root[data-mode="night"] .related-reading__item p { color: rgba(240, 230, 207, 0.85); }
:root[data-mode="open"] .related-reading__item {
  background: rgba(10, 16, 36, 0.55);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border-color: rgba(240, 230, 207, 0.22);
  color: var(--cream-fixed);
}
:root[data-mode="open"] .related-reading__item h3 { color: var(--warm-bright, #f4c45a); }
:root[data-mode="open"] .related-reading__item p { color: rgba(240, 230, 207, 0.94); }

/* ============================================================
   About-page photo figure
   ============================================================ */

.about-photo { margin: var(--sp-lg) 0; max-width: 520px; }
.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.about-photo figcaption {
  font-family: var(--type-italic);
  font-style: italic;
  font-size: var(--fs-sm);
  color: var(--ink-ter);
  margin-top: 0.5rem;
  line-height: var(--lh-normal);
}
:root[data-mode="open"] .about-photo figcaption { color: rgba(240, 230, 207, 0.85); }

/* ============================================================
   Buttons — .btn-cta + ghost variant. Used by every CTA row
   in the new banded fragment library (pricing, contact, faq,
   bloom-test, 404, learn). The class was referenced in markup
   without being defined; this is the canonical rule.
   ============================================================ */

/* Locked CTA — barn-red background + cream label, fixed across every
   mode and every page. Mark 2026-05-05 / brand guide 4.6: keying off
   var(--barn) made the button shift to coral in Night and invert
   cream-on-cream on hover. The chrome Contact button (.heritage-cta
   a.cta) is already locked to these literal hex values; .btn-cta now
   matches so every CTA on the site reads the same in every mode. */
.btn-cta,
a.btn-cta,
button.btn-cta,
:root[data-mode="paper"] .btn-cta,
:root[data-mode="night"] .btn-cta,
:root[data-mode="open"]  .btn-cta,
:root[data-mode="paper"] a.btn-cta,
:root[data-mode="night"] a.btn-cta,
:root[data-mode="open"]  a.btn-cta,
:root[data-mode="paper"] button.btn-cta,
:root[data-mode="night"] button.btn-cta,
:root[data-mode="open"]  button.btn-cta {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  background: #a64b3b;
  color: #f0e6cf;
  font-family: var(--type-ui);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid #a64b3b;
  border-radius: var(--r-pill);
  transition: filter 0.2s ease, transform 0.18s ease;
  cursor: pointer;
  line-height: 1.2;
  /* Cycle 1 fix (Mark 2026-05-08): when the button gets width:100% in
     contact-form mobile layout, content-box plus padding+border pushed
     it past the parent. Border-box makes width:100% size-correct. */
  box-sizing: border-box;
}
.btn-cta:hover,
.btn-cta:focus-visible,
:root[data-mode="paper"] .btn-cta:hover,
:root[data-mode="night"] .btn-cta:hover,
:root[data-mode="open"]  .btn-cta:hover,
:root[data-mode="paper"] .btn-cta:focus-visible,
:root[data-mode="night"] .btn-cta:focus-visible,
:root[data-mode="open"]  .btn-cta:focus-visible {
  background: #a64b3b;
  border-color: #a64b3b;
  color: #f0e6cf;
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-cta--ghost,
a.btn-cta--ghost,
:root[data-mode="paper"] .btn-cta--ghost,
:root[data-mode="paper"] a.btn-cta--ghost {
  background: transparent;
  color: #a64b3b;
  border-color: #a64b3b;
}
:root[data-mode="night"] .btn-cta--ghost,
:root[data-mode="night"] a.btn-cta--ghost,
:root[data-mode="open"]  .btn-cta--ghost,
:root[data-mode="open"]  a.btn-cta--ghost {
  background: transparent;
  color: #f0e6cf;
  border-color: #f0e6cf;
}
.btn-cta--ghost:hover,
.btn-cta--ghost:focus-visible {
  background: #a64b3b;
  color: #f0e6cf;
  border-color: #a64b3b;
}

/* CTA spacing — every CTA inside band__content or article-body gets
   breathing room above the prev sibling. Covers both .cta-row
   (paragraph wrapper around multiple buttons) and bare .btn-cta /
   button.btn-cta as a direct sibling. Mark 2026-05-05: the
   .band__content p { margin: 0 0 0.9rem } rule was overriding the
   default .cta-row top margin; explicit .band__content / .article-body
   selectors restore the gap consistently across every banded page,
   pricing tiers, contact, bloom-test, 404, learn, and Learn essays. */
.cta-row,
.band__content .cta-row,
.article-body .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin: var(--sp-lg) 0 var(--sp-sm);
}
.band__content > .band__copy > a.btn-cta,
.band__content > .band__copy > button.btn-cta,
.band__content .band__copy > a.btn-cta,
.band__content .band__copy > button.btn-cta,
.article-body > a.btn-cta,
.article-body > button.btn-cta {
  margin-top: var(--sp-lg);
}

/* Mode overrides for .btn-cta--ghost — only the OUTLINE color shifts
   per mode (cream on dark surfaces, barn on cream paper). The hover
   state is locked above to barn fill + cream label so every CTA on
   the site converges to the same hovered appearance. */

/* ============================================================
   Library list — 2-3 column card grid for Learn library bands
   (Foundations / Fix it / Voice / About) and any other band that
   uses .library-list to stack toc-items. Mark 2026-05-05: the
   plain stacked-paragraph layout was too dense; this matches the
   homepage Read-On 3-up grid rhythm so every Learn section reads
   as a modular card set.

   Each .toc-item becomes a contained card with padding, hairline,
   and hover lift. Three modes carry their own surface treatments
   (cream paper / dark elevated / open frosted), all locked at
   :root[data-mode] specificity so cascading rules cannot strip
   them.
   ============================================================ */

.library-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap-lg);
  margin: var(--sp-md) 0 0;
}
@media (max-width: 480px) {
  .library-list { grid-template-columns: 1fr; }
}

.library-list .toc-item,
:root[data-mode="paper"] .library-list .toc-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: var(--sp-md) var(--sp-md);
  background: var(--paper-elev);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.library-list .toc-item:hover,
.library-list .toc-item:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: var(--barn);
}
.library-list .toc-item h3 {
  font-family: var(--type-italic);
  font-variation-settings: "opsz" 36, "wght" 600, "SOFT" 30;
  font-size: var(--fs-xl);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.3rem;
  color: var(--indigo);
}
.library-list .toc-item h3 a {
  color: inherit;
  text-decoration: none;
}
.library-list .toc-item h3 a:hover { color: var(--barn); }
.library-list .toc-item p {
  font-family: var(--type-body);
  font-size: var(--fs-xs);
  color: var(--ink-sec);
  line-height: var(--lh-normal);
  margin: 0 0 0.3rem;
  flex: 1 1 auto;
}
.library-list .toc-item .byline,
.library-list .toc-item p:last-child {
  font-family: var(--type-ui);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  color: var(--ink-ter);
  margin-top: auto;
}

/* Night card */
:root[data-mode="night"] .library-list .toc-item {
  background: rgba(22, 33, 46, 0.78);
  border-color: rgba(240, 230, 207, 0.18);
  color: var(--cream-fixed);
}
:root[data-mode="night"] .library-list .toc-item h3 { color: var(--warm-bright, #f4c45a); }
:root[data-mode="night"] .library-list .toc-item p { color: rgba(240, 230, 207, 0.85); }
:root[data-mode="night"] .library-list .toc-item .byline,
:root[data-mode="night"] .library-list .toc-item p:last-child { color: rgba(240, 230, 207, 0.6); }

/* Open frosted card */
:root[data-mode="open"] .library-list .toc-item {
  background: rgba(10, 16, 36, 0.55);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border-color: rgba(240, 230, 207, 0.22);
  color: var(--cream-fixed);
}
:root[data-mode="open"] .library-list .toc-item h3 { color: var(--warm-bright, #f4c45a); }
:root[data-mode="open"] .library-list .toc-item p { color: rgba(240, 230, 207, 0.94); }
:root[data-mode="open"] .library-list .toc-item .byline,
:root[data-mode="open"] .library-list .toc-item p:last-child { color: rgba(240, 230, 207, 0.7); }

/* ============================================================
   Start-here list — Learn band I "Three articles in order".
   Three numbered cards in a row, Roman numeral as a chapter mark
   inside each card.
   ============================================================ */

.start-here-list {
  list-style: none;
  margin: var(--sp-md) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap-lg);
  counter-reset: start-here;
}
@media (max-width: 480px) {
  .start-here-list { grid-template-columns: 1fr; }
}
.start-here-list > li {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: var(--sp-md);
  background: var(--paper-elev);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.start-here-list > li:hover,
.start-here-list > li:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: var(--barn);
}
.start-here-list .num {
  font-family: var(--type-italic);
  font-variation-settings: "opsz" 96, "wght" 700, "SOFT" 30;
  font-size: var(--fs-3xl);
  color: var(--barn);
  line-height: 1;
  margin: 0;
}
.start-here-list h3 {
  font-family: var(--type-italic);
  font-variation-settings: "opsz" 36, "wght" 600, "SOFT" 30;
  font-size: var(--fs-xl);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--indigo);
}
.start-here-list h3 a { color: inherit; text-decoration: none; }
.start-here-list h3 a:hover { color: var(--barn); }
.start-here-list p {
  font-family: var(--type-body);
  font-size: var(--fs-xs);
  color: var(--ink-sec);
  line-height: var(--lh-normal);
  margin: 0;
  flex: 1 1 auto;
}
.start-here-list .reading-time {
  font-family: var(--type-ui);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  color: var(--ink-ter);
  margin-top: auto;
}
:root[data-mode="night"] .start-here-list > li {
  background: rgba(22, 33, 46, 0.78);
  border-color: rgba(240, 230, 207, 0.18);
  color: var(--cream-fixed);
}
:root[data-mode="night"] .start-here-list .num { color: var(--warm-bright, #f4c45a); }
:root[data-mode="night"] .start-here-list h3 { color: var(--warm-bright, #f4c45a); }
:root[data-mode="night"] .start-here-list p { color: rgba(240, 230, 207, 0.85); }
:root[data-mode="night"] .start-here-list .reading-time { color: rgba(240, 230, 207, 0.6); }

:root[data-mode="open"] .start-here-list > li {
  background: rgba(10, 16, 36, 0.55);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border-color: rgba(240, 230, 207, 0.22);
  color: var(--cream-fixed);
}
:root[data-mode="open"] .start-here-list .num { color: var(--warm-bright, #f4c45a); }
:root[data-mode="open"] .start-here-list h3 { color: var(--warm-bright, #f4c45a); }
:root[data-mode="open"] .start-here-list p { color: rgba(240, 230, 207, 0.94); }
:root[data-mode="open"] .start-here-list .reading-time { color: rgba(240, 230, 207, 0.7); }

/* ============================================================
   Open / Night mode link color — warm-bright gold across body
   prose, article body, and Learn essay surfaces. Mark 2026-05-05:
   indigo blue links on a dark scene read poorly; switch to gold
   so links match the chord on dark plates.
   ============================================================ */
:root[data-mode="open"] .band__content a,
:root[data-mode="open"] .article-body a,
:root[data-mode="open"] body.bgai-learn a,
:root[data-mode="night"] .band__content a,
:root[data-mode="night"] .article-body a,
:root[data-mode="night"] body.bgai-learn a {
  color: var(--warm-bright, #f4c45a);
  text-decoration-color: rgba(244, 196, 90, 0.45);
  text-underline-offset: 0.18em;
}
:root[data-mode="open"] .band__content a:hover,
:root[data-mode="open"] .article-body a:hover,
:root[data-mode="open"] body.bgai-learn a:hover,
:root[data-mode="night"] .band__content a:hover,
:root[data-mode="night"] .article-body a:hover,
:root[data-mode="night"] body.bgai-learn a:hover {
  color: var(--cream-fixed);
  text-decoration-color: var(--cream-fixed);
}

/* ============================================================
   Bloom Test — input form + results display.
   Mark 2026-05-09: prior to this section the bloom-test surface
   had no CSS for the input box (rendered as a default browser
   field) or the results card (default-styled lists, no visual
   pass/fail differentiation). Cycle 4 fix.
   ============================================================ */

/* Input form. Sits inside the post-hero band on /bloom-test. */
.bloom-input {
  width: 100%;
  max-width: 640px;
  margin: var(--sp-lg) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  padding: var(--sp-lg) var(--sp-md);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-sizing: border-box;
}
.bloom-input__label {
  font-family: var(--type-ui);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
}
.bloom-input__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  align-items: stretch;
}
.bloom-input__prefix {
  font-family: var(--type-ui);
  font-size: var(--fs-sm);
  color: var(--ink-ter);
  display: inline-flex;
  align-items: center;
  padding: 0 0.3em;
  user-select: none;
}
.bloom-input__field {
  flex: 1 1 240px;
  min-width: 0;
  font-family: var(--type-body);
  font-size: var(--fs-md);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 0.6em 0.8em;
  color: var(--ink);
  box-sizing: border-box;
}
.bloom-input__field:focus {
  outline: none;
  border-color: var(--barn);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(166, 75, 59, 0.2);
}
.bloom-input__field::placeholder { color: var(--ink-ter); }
.bloom-input__submit {
  flex: 0 0 auto;
  font-family: var(--type-ui);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--barn);
  color: var(--cream-fixed);
  border: 1px solid var(--barn);
  border-radius: var(--r-pill);
  padding: 0.65em 1.4em;
  cursor: pointer;
  box-sizing: border-box;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.bloom-input__submit:hover,
.bloom-input__submit:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Mode-aware: dark surfaces in night/open. */
:root[data-mode="night"] .bloom-input,
:root[data-mode="open"]  .bloom-input {
  background: rgba(10, 16, 36, 0.55);
  border-color: rgba(244, 235, 215, 0.18);
}
:root[data-mode="night"] .bloom-input__label,
:root[data-mode="open"]  .bloom-input__label { color: var(--cream-fixed); }
:root[data-mode="night"] .bloom-input__prefix,
:root[data-mode="open"]  .bloom-input__prefix { color: rgba(240, 230, 207, 0.7); }
:root[data-mode="night"] .bloom-input__field,
:root[data-mode="open"]  .bloom-input__field {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(240, 230, 207, 0.22);
  color: var(--cream-fixed);
}
:root[data-mode="night"] .bloom-input__field:focus,
:root[data-mode="open"]  .bloom-input__field:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--warm-bright, #f4c45a);
  box-shadow: 0 0 0 2px rgba(244, 196, 90, 0.25);
}
:root[data-mode="night"] .bloom-input__field::placeholder,
:root[data-mode="open"]  .bloom-input__field::placeholder { color: rgba(240, 230, 207, 0.45); }

/* Mobile: stack vertically, full-width submit. */
@media (max-width: 720px) {
  .bloom-input { padding: var(--sp-md) var(--sp-md); }
  .bloom-input__row { flex-direction: column; }
  .bloom-input__prefix { padding: 0; align-self: flex-start; font-size: var(--fs-xs); }
  /* Mark 2026-05-09: in row flex, flex-basis 240px = width 240px
     (intended). When the row flips to column flex on mobile, the
     same flex-basis becomes height 240px so the field renders ~240px
     tall. Override to content-height on mobile. */
  .bloom-input__field { flex: 0 1 auto; width: 100%; }
  .bloom-input__submit { width: 100%; }
}

/* ============================================================
   Bloom Test results card.

   Anatomy (per bloom-client.js):
     .bloom-result (band: --bloom / --bud / --stem / --seed / --error / --loading)
       .bloom-result__head (eyebrow + h2 band label + score line)
       .bloom-speed (PageSpeed score block)
       .bloom-tiers (Foundation / Social / Structured / Advanced bars)
       .bloom-actions (top-priority numbered list)
       .bloom-check-list--missing (Miss items, prominent)
       .bloom-check-list-wrap (details/summary; Pass items, collapsed)
       .bloom-result__foot (CTA paragraph)

   Visual goal: the missing items (action items) are the loud
   thing on the page. The passes are present but tucked inside a
   collapsed details. Pass and Miss markers are visually distinct
   (color + glyph), not just text labels.
   ============================================================ */

.bloom-result {
  width: 100%;
  max-width: 720px;
  margin: var(--sp-lg) auto;
  padding: var(--sp-xl) var(--sp-lg);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  color: var(--ink);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}
:root[data-mode="night"] .bloom-result,
:root[data-mode="open"]  .bloom-result {
  background: rgba(10, 16, 36, 0.6);
  border-color: rgba(244, 235, 215, 0.18);
  color: var(--cream-fixed);
}

/* Header */
.bloom-result__head { display: flex; flex-direction: column; gap: 0.4rem; }
.bloom-result__eyebrow {
  font-family: var(--type-ui);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--ink-ter);
  text-transform: uppercase;
}
:root[data-mode="night"] .bloom-result__eyebrow,
:root[data-mode="open"]  .bloom-result__eyebrow { color: rgba(240, 230, 207, 0.7); }

.bloom-result__band {
  font-family: var(--type-italic);
  font-size: var(--fs-2xl);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
:root[data-mode="night"] .bloom-result__band,
:root[data-mode="open"]  .bloom-result__band { color: var(--cream-fixed); }

.bloom-result--bloom .bloom-result__band { color: var(--olive); }
.bloom-result--bud   .bloom-result__band { color: var(--warm); }
.bloom-result--stem  .bloom-result__band { color: var(--barn); }
.bloom-result--seed  .bloom-result__band { color: var(--barn); }
.bloom-result--error .bloom-result__band { color: var(--barn); }

.bloom-result__score {
  font-family: var(--type-ui);
  font-size: var(--fs-md);
  margin: 0;
  color: var(--ink-sec);
}
:root[data-mode="night"] .bloom-result__score,
:root[data-mode="open"]  .bloom-result__score { color: rgba(240, 230, 207, 0.78); }

/* Speed block */
.bloom-speed {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: var(--sp-md);
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--r-sm);
  border: 1px solid var(--rule);
}
:root[data-mode="night"] .bloom-speed,
:root[data-mode="open"]  .bloom-speed {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(244, 235, 215, 0.18);
}
.bloom-speed__score {
  font-family: var(--type-display);
  font-size: var(--fs-3xl);
  font-weight: 600;
  line-height: 1;
  color: var(--barn);
}
.bloom-speed__score--unavail { color: var(--ink-ter); font-size: var(--fs-xl); }
.bloom-speed__label {
  font-family: var(--type-ui);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-ter);
}
:root[data-mode="night"] .bloom-speed__label,
:root[data-mode="open"]  .bloom-speed__label { color: rgba(240, 230, 207, 0.7); }

/* Tier bars */
.bloom-tiers { display: flex; flex-direction: column; gap: var(--sp-sm); }
.bloom-tier { display: flex; flex-direction: column; gap: 0.3rem; }
.bloom-tier__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--type-ui);
  font-size: var(--fs-sm);
}
.bloom-tier__name { font-weight: 700; }
.bloom-tier__score { color: var(--ink-ter); font-variant-numeric: tabular-nums; }
:root[data-mode="night"] .bloom-tier__score,
:root[data-mode="open"]  .bloom-tier__score { color: rgba(240, 230, 207, 0.7); }
.bloom-tier__bar {
  height: 8px;
  background: rgba(35, 31, 26, 0.08);
  border-radius: var(--r-pill);
  overflow: hidden;
}
:root[data-mode="night"] .bloom-tier__bar,
:root[data-mode="open"]  .bloom-tier__bar { background: rgba(255, 255, 255, 0.08); }
.bloom-tier__fill {
  height: 100%;
  background: var(--olive);
  border-radius: var(--r-pill);
  transition: width 0.4s ease;
}

/* Actions block */
.bloom-actions {
  padding: var(--sp-md);
  background: rgba(166, 75, 59, 0.06);
  border: 1px solid rgba(166, 75, 59, 0.2);
  border-left: 3px solid var(--barn);
  border-radius: var(--r-sm);
}
.bloom-actions h3 {
  font-family: var(--type-ui);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin: 0 0 var(--sp-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--barn);
}
:root[data-mode="night"] .bloom-actions h3,
:root[data-mode="open"]  .bloom-actions h3 { color: var(--warm-bright, #f4c45a); }
.bloom-actions__list {
  margin: 0;
  padding-left: 1.4em;
  font-family: var(--type-body);
  font-size: var(--fs-md);
  line-height: 1.5;
}
.bloom-actions__list li { margin-bottom: 0.4rem; }

/* Pass / Miss check list. Miss items are loud; pass items are
   collapsed inside a details element. */
.bloom-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.bloom-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem var(--sp-sm);
  align-items: start;
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--r-sm);
  border: 1px solid transparent;
}
.bloom-check--miss {
  background: rgba(166, 75, 59, 0.08);
  border-color: rgba(166, 75, 59, 0.22);
}
.bloom-check--ok {
  background: rgba(133, 145, 96, 0.08);
  border-color: rgba(133, 145, 96, 0.22);
}
:root[data-mode="night"] .bloom-check--miss,
:root[data-mode="open"]  .bloom-check--miss {
  background: rgba(215, 115, 97, 0.12);
  border-color: rgba(215, 115, 97, 0.32);
}
:root[data-mode="night"] .bloom-check--ok,
:root[data-mode="open"]  .bloom-check--ok {
  background: rgba(170, 185, 139, 0.1);
  border-color: rgba(170, 185, 139, 0.28);
}

.bloom-check__marker {
  font-family: var(--type-ui);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 0.2em 0.55em;
  border-radius: var(--r-pill);
  align-self: start;
  white-space: nowrap;
  line-height: 1.4;
}
.bloom-check--miss .bloom-check__marker {
  background: var(--barn);
  color: var(--cream-fixed);
}
.bloom-check--ok .bloom-check__marker {
  background: var(--olive);
  color: var(--cream-fixed);
}

.bloom-check__label {
  font-family: var(--type-body);
  font-size: var(--fs-md);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 600;
}
:root[data-mode="night"] .bloom-check__label,
:root[data-mode="open"]  .bloom-check__label { color: var(--cream-fixed); }

.bloom-check__detail {
  grid-column: 1 / -1;
  font-family: var(--type-body);
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--ink-sec);
  padding-left: calc(2.5rem);
}
:root[data-mode="night"] .bloom-check__detail,
:root[data-mode="open"]  .bloom-check__detail { color: rgba(240, 230, 207, 0.78); }

/* Mobile: detail aligns under the label, not indented under the marker. */
@media (max-width: 720px) {
  .bloom-check { grid-template-columns: auto 1fr; }
  .bloom-check__detail { padding-left: 0; }
}

/* Pass items collapsed in a <details> element. */
.bloom-check-list-wrap {
  border: 1px dashed var(--rule);
  border-radius: var(--r-sm);
  padding: 0;
}
.bloom-check-list-wrap[open] { padding: 0 0 var(--sp-sm); }
.bloom-check-list-wrap > summary {
  cursor: pointer;
  padding: var(--sp-sm) var(--sp-md);
  font-family: var(--type-ui);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-sec);
  list-style: none;
}
.bloom-check-list-wrap > summary::marker,
.bloom-check-list-wrap > summary::-webkit-details-marker { display: none; }
.bloom-check-list-wrap > summary::after { content: " ▾"; opacity: 0.6; font-size: 0.8em; }
.bloom-check-list-wrap[open] > summary::after { content: " ▴"; }
.bloom-check-list-wrap > .bloom-check-list { padding: var(--sp-sm) var(--sp-md); gap: var(--sp-xs, 0.4rem); }
:root[data-mode="night"] .bloom-check-list-wrap,
:root[data-mode="open"]  .bloom-check-list-wrap { border-color: rgba(244, 235, 215, 0.22); }
:root[data-mode="night"] .bloom-check-list-wrap > summary,
:root[data-mode="open"]  .bloom-check-list-wrap > summary { color: rgba(240, 230, 207, 0.78); }

/* Footer / CTA */
.bloom-result__foot {
  padding-top: var(--sp-md);
  border-top: 1px solid var(--rule);
  font-family: var(--type-body);
  font-size: var(--fs-sm);
  color: var(--ink-sec);
}
:root[data-mode="night"] .bloom-result__foot,
:root[data-mode="open"]  .bloom-result__foot {
  border-top-color: rgba(244, 235, 215, 0.18);
  color: rgba(240, 230, 207, 0.78);
}
.bloom-result__foot a {
  color: var(--barn);
  font-weight: 600;
  text-decoration-color: rgba(166, 75, 59, 0.4);
}

/* Loading state */
.bloom-result--loading {
  align-items: center;
  text-align: center;
  padding: var(--sp-xl) var(--sp-lg);
  background: rgba(255, 255, 255, 0.7);
}
.bloom-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
  width: 100%;
}
.bloom-loading__sunrise {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16 / 9;
}
.bloom-loading__sunrise object { width: 100%; height: 100%; }
.bloom-loading__panel { width: 100%; max-width: 480px; text-align: center; }
.bloom-loading__eyebrow {
  font-family: var(--type-ui);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-ter);
  margin: 0 0 0.4rem;
}
.bloom-loading__h {
  font-family: var(--type-italic);
  font-style: italic;
  font-size: var(--fs-xl);
  margin: 0 0 0.4rem;
  color: var(--ink);
}
:root[data-mode="night"] .bloom-loading__h,
:root[data-mode="open"]  .bloom-loading__h { color: var(--cream-fixed); }
.bloom-loading__deck {
  font-family: var(--type-body);
  font-size: var(--fs-sm);
  margin: 0 0 var(--sp-md);
  color: var(--ink-sec);
}
.bloom-loading__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}
.bloom-loading__step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--type-ui);
  font-size: var(--fs-sm);
  color: var(--ink-ter);
  opacity: 0.55;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.bloom-loading__step.is-active { opacity: 1; color: var(--ink); font-weight: 700; }
.bloom-loading__step.is-done { opacity: 0.85; color: var(--olive); }
:root[data-mode="night"] .bloom-loading__step.is-active,
:root[data-mode="open"]  .bloom-loading__step.is-active { color: var(--cream-fixed); }

.bloom-loading__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-ter);
  flex-shrink: 0;
  transition: background 0.3s ease;
}
.bloom-loading__step.is-active .bloom-loading__dot { background: var(--barn); }
.bloom-loading__step.is-done .bloom-loading__dot { background: var(--olive); }

/* Error state */
.bloom-result--error {
  border-color: rgba(166, 75, 59, 0.4);
  background: rgba(166, 75, 59, 0.06);
}
.bloom-result--error h2 {
  font-family: var(--type-ui);
  font-size: var(--fs-lg);
  color: var(--barn);
  margin: 0 0 var(--sp-sm);
}
:root[data-mode="night"] .bloom-result--error,
:root[data-mode="open"]  .bloom-result--error {
  background: rgba(215, 115, 97, 0.1);
  border-color: rgba(215, 115, 97, 0.32);
}

/* Mobile pad reduction */
@media (max-width: 720px) {
  .bloom-result { padding: var(--sp-lg) var(--sp-md); margin: var(--sp-md) auto; }
  .bloom-speed { flex-wrap: wrap; padding: var(--sp-sm) var(--sp-md); }
  .bloom-result--loading { padding: var(--sp-lg) var(--sp-md); }
}

/* /bloom-test i-run band: align the prose above the URL entry box
   to the form's 640px max-width so the heading + lead + form read as
   one column, and add vertical breath between the prose and the entry
   box. Mark 2026-05-09: ornament removal made the previous spacing
   feel different; this restores hierarchy.
   Scoping: body.page-bloom-test (this page only) +
   .band[data-band-ordinal="1"] (i-run only — bands 2/3/4 on the same
   page keep their full-width treatment for the steps grid, talk
   block, and library list). */
body.page-bloom-test .band[data-band-ordinal="1"] .band__copy > .fx-eyebrow,
body.page-bloom-test .band[data-band-ordinal="1"] .band__copy > .sec-heading,
body.page-bloom-test .band[data-band-ordinal="1"] .band__copy > p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
body.page-bloom-test .band[data-band-ordinal="1"] .bloom-input {
  margin-top: var(--sp-2xl);
}
