/* THE BLOG'S LOOK (2026-10-27). The owner approved a bolder /resources
   (PR #395) and said the other pages "look like old pages without much
   style"; this brings /blog and its articles to the same standard: deep ink
   hero, a pale blue chapter for the list, pill buttons, and a closing band
   with the product's real screen.

   Every class is bx- prefixed because site.css owns .card, .panel, .plan and
   --ease globally, and reusing one silently restyles another page. The
   blog- rules in site.css still apply underneath; these only add to them.
   Nothing here waits on a scroll-reveal script: a reader with scripts off,
   and a crawler, sees every card. */

:root { --bx-ink: #0b1220; --bx-ink-2: #121c30; --bx-sand: #f3ece0; --bx-mist: #b8c4d6;
  --bx-ease: cubic-bezier(.2, .7, .2, 1) }

/* ---- shared parts */
.bx-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-lit); margin-bottom: 18px }
.bx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px;
  font-size: 14px; color: var(--muted) }
.bx-chip { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #fff; background: var(--accent); border-radius: 999px; padding: 3px 10px }
.bx-chip--line { color: var(--accent-ink); background: #fff; box-shadow: inset 0 0 0 1px var(--accent-line) }
.bx-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 24px;
  border-radius: 999px; background: var(--bx-ink); color: #fff; font-weight: 700; font-size: 16px;
  text-decoration: none; transition: background .2s var(--bx-ease), transform .2s var(--bx-ease) }
.bx-btn:hover { background: var(--accent); transform: translateY(-1px) }
.bx-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px }
.bx-btn--light { background: #fff; color: var(--accent-ink) }
.bx-btn--light:hover { background: var(--accent); color: #fff }
.bx-btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4) }
.bx-btn--ghost:hover { background: rgba(255,255,255,.12) }
.bx-btn--light:focus-visible, .bx-btn--ghost:focus-visible { outline-color: #fff }

/* ---- index: the statement */
.bx-hero { background: var(--bx-ink); color: #fff; padding: 96px 0 88px }
.bx-hero h1 { color: #fff; font-size: clamp(40px, 6.4vw, 92px); line-height: .98; letter-spacing: -.05em;
  margin: 0 0 28px; max-width: 13ch }
.bx-sub { color: var(--bx-mist); font-size: 19px; line-height: 1.6; margin: 0; max-width: 58ch }

/* ---- index: the newest guide, on sand */
.bx-feature { background: var(--bx-sand); padding: 72px 0 }
.bx-feature-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center }
.bx-feature-cover { display: block; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(11,18,32,.45) }
.bx-feature-cover img { display: block; width: 100%; height: auto; transition: transform .5s var(--bx-ease) }
.bx-feature-cover:hover img { transform: scale(1.03) }
.bx-feature h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -.035em; margin: 6px 0 16px }
.bx-feature h2 a { color: var(--ink); text-decoration: none }
.bx-feature h2 a:hover { color: var(--accent-ink) }
.bx-feature-text > p:not(.bx-meta) { color: #3d4757; font-size: 17.5px; line-height: 1.6; margin: 0 0 28px; max-width: 46ch }

/* ---- index: every other guide, on pale blue */
.bx-list { background: var(--accent-pale); padding: 80px 0 96px }
.bx-list-title { font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -.045em; margin: 0 0 40px }
.bx-cards { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px }
.bx-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 16px;
  overflow: hidden; box-shadow: 0 1px 0 rgba(11,18,32,.04);
  transition: transform .25s var(--bx-ease), box-shadow .25s var(--bx-ease) }
.bx-card:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -24px rgba(11,18,32,.35) }
.bx-card-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover }
.bx-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px }
.bx-card h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.02em; margin: 2px 0 10px }
.bx-card h3 a { color: var(--ink); text-decoration: none }
/* The whole card is the target, through the title's link, so there is still
   one link per guide in the tab order besides the explicit "Read the guide". */
.bx-card h3 a::after { content: ""; position: absolute; inset: 0 }
.bx-card:has(h3 a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px }
.bx-card p:not(.bx-meta) { margin: 0 0 18px; color: var(--body); line-height: 1.6; font-size: 15.5px }
.bx-more { position: relative; margin-top: auto; color: var(--accent-ink); font-weight: 700; text-decoration: none }

/* ---- article: a deep hero the cover rises out of */
.bx-article-hero.blog-article-hero { background: var(--bx-ink); padding: 56px 0 160px }
.bx-article-hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -.04em; margin: 18px 0 18px }
.bx-article .blog-cover { margin-top: -132px; border-radius: 18px; position: relative;
  box-shadow: 0 40px 70px -40px rgba(11,18,32,.6) }
.bx-article { padding-bottom: 96px }
.bx-article .blog-body { font-size: 19px; line-height: 1.7; color: #334155 }
.bx-article .blog-body h2 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.03em; margin-top: 56px }
.bx-article .blog-body h3 { font-size: 21px }
.bx-article .blog-definition { font-size: 21px; line-height: 1.55 }
.bx-article .blog-takeaways { border-radius: 16px; padding: 22px 26px }
.bx-article .blog-more { border-top: 0; background: var(--bx-sand); border-radius: 16px; padding: 26px 28px }
/* From 1100px the rail is sticky beside the prose; it must start below the
   cover's overlap or it would sit on the dark hero. */
@media (min-width: 1100px) { .bx-article .blog-toc { margin-top: 12px } }

/* ---- the close: the product's own screen */
.bx-close { background: var(--bx-ink); color: #fff; padding: 112px 0; overflow: hidden }
.bx-close .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: center }
.bx-close h2 { color: #fff; font-size: clamp(38px, 5vw, 72px); line-height: .98; letter-spacing: -.05em; margin: 0 0 24px; max-width: 12ch }
.bx-close p { color: var(--bx-mist); font-size: 18.5px; line-height: 1.6; margin: 0 0 32px; max-width: 46ch }
.bx-close-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 }
.bx-close-shot { justify-self: center; max-width: 360px; padding: 18px; background: var(--accent); border-radius: 32px;
  transform: rotate(2deg) }
.bx-close-shot img { display: block; width: 100%; height: auto; border-radius: 20px }

@media (max-width: 900px) {
  .bx-feature-grid, .bx-close .wrap { grid-template-columns: 1fr; gap: 32px }
  .bx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 640px) {
  .bx-hero { padding: 64px 0 56px }
  .bx-hero h1 { font-size: clamp(38px, 11vw, 48px) }
  .bx-sub { font-size: 17px }
  .bx-feature, .bx-list { padding: 56px 0 64px }
  .bx-cards { grid-template-columns: 1fr; gap: 20px }
  .bx-article-hero.blog-article-hero { padding: 36px 0 96px }
  .bx-article .blog-cover { margin-top: -72px; border-radius: 12px }
  .bx-article .blog-body { font-size: 18px }
  .bx-close { padding: 72px 0 }
  .bx-close-shot { max-width: 260px; transform: none }
}
@media (prefers-reduced-motion: reduce) {
  .bx-btn, .bx-card, .bx-feature-cover img { transition: none }
  .bx-card:hover, .bx-btn:hover { transform: none }
}

/* AN ARTICLE'S FILM (2026-11-06): the persona pages' poster-then-player facade,
   in the blog's measure. See site/_blog_film.html. */
.bx-film { margin: 28px 0 30px; }
.bx-film .ytfacade { position: relative; display: block; border-radius: 14px; overflow: hidden;
  border: 1px solid #e6ebf2; background: #13314f; aspect-ratio: 16 / 9; }
.bx-film .ytfacade img { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.bx-film .ytfacade-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px;
  margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(13, 34, 56, .82); box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  transition: transform .15s, background .15s; }
.bx-film .ytfacade:hover .ytfacade-play, .bx-film .ytfacade:focus-visible .ytfacade-play {
  transform: scale(1.06); background: #f28a24; }
.bx-film .ytfacade-play svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.bx-film iframe.ytframe { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block;
  border: 0; border-radius: 14px; background: #13314f; }
.bx-film figcaption { font-size: 14px; line-height: 1.5; color: #64748b; margin: 8px 2px 0; }
/* The same guide in other languages, under the byline. */
.blog-langs { margin: 6px 0 0; font-size: 15px; }
.blog-langs a { font-weight: 600; }
