/* ==========================================================================
   Formium Alliance — Journal (blog index + article), 2026-10-28.
   A quiet editorial layer: light oversized titles, hairlines, lots of air, one orange dot. Not a card grid.
     index   → a typographic list; hovering a row floats a preview of the article next to the cursor
     article → spec-sheet column (author / date / read / contents / share) beside a calm reading column
   Loaded only by formium-blog.html and formium-blog-details.html, after formium-blog.css, on <main class="bl jr">.
   Sizes come from the five type tokens (title / subtitle / body / small / micro); colours from the tokens on .bl, so the
   reading modes (day / warm / night) restyle everything for free.
   ========================================================================== */
.jr { --on-ink: #fff; --ease-j: cubic-bezier(.22, 1, .36, 1); }
body.bl-mode-night .jr { --on-ink: #101012; }
.jr::before { content: ''; position: absolute; z-index: 0; top: 0; left: 0; right: 0; height: 680px; pointer-events: none;
  background: radial-gradient(620px 380px at 90% -6%, rgba(244, 60, 0, .075), transparent 70%), radial-gradient(520px 320px at 4% 0%, rgba(26, 26, 28, .04), transparent 70%); }
body.bl-mode-night .jr::before { opacity: .5; }
.jr > * { position: relative; z-index: 1; }
.jr-wrap { width: 100%; max-width: 1290px; margin-inline: auto; padding-inline: 20px; }
.jr-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: var(--t-micro); line-height: 1.4; letter-spacing: .02em; color: var(--ink-3); text-decoration: none; }
.jr-kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #f43c00; flex: none; }
.jr .jr-hero h1, .jr .jr-ah h1 { font-weight: 300 !important; color: var(--ink); text-wrap: balance; }
.jr-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: var(--t-small); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color .3s; }
.jr-link:hover { border-color: var(--ink); }
.jr-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-j); }
.jr-link:hover svg { transform: translateX(3px); }
.jr a.jr-btn, .jr-btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-size: var(--t-body); text-decoration: none; transition: transform .4s var(--ease-j), opacity .3s; }
.jr-btn:hover { transform: translateY(-2px); }
.jr-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- index: headline, then search (left) + categories (right), then a grid of articles with pictures ---------- */
.jr-hero { padding-top: 176px; padding-bottom: 52px; }
.jr .jr-hero h1 { margin: 0; max-width: 14ch; }
.jr-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px 32px; flex-wrap: wrap; }
.jr-search { position: relative; display: block; }
.jr-search svg { position: absolute; left: 15px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; stroke: var(--ink-3); fill: none; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.jr-search input { width: 260px; height: 42px; border-radius: 99px; border: 1px solid transparent; background: color-mix(in srgb, var(--ink) 5%, transparent); padding: 0 36px 0 40px; font: inherit; font-size: var(--t-small); color: var(--ink); transition: background-color .3s, border-color .3s; }
.jr-search input::placeholder { color: var(--ink-3); }
.jr-search input::-webkit-search-cancel-button { display: none; }
.jr-search input:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.jr-search input:focus { outline: none; border-color: var(--ink); background: transparent; }
.jr-search button { position: absolute; right: 6px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center; }
.jr-search button[hidden] { display: none; }
.jr-search button svg { position: static; width: 13px; height: 13px; margin: 0; stroke: var(--ink); }
.jr-cats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
.jr-chip { flex: none; height: 36px; padding: 0 15px; border-radius: 99px; font-size: var(--t-small); color: var(--ink-3); transition: color .3s, background-color .4s; white-space: nowrap; }
.jr-chip:hover { color: var(--ink); }
.jr-chip.is-on { background: var(--ink); color: var(--on-ink); }

.jr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 24px; margin-top: 44px; }
.jr-card { display: block; color: var(--ink); text-decoration: none; opacity: 0; transform: translateY(14px); }
.jr-card.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease-j), transform .8s var(--ease-j); transition-delay: var(--d, 0ms); }
.jr-card .bl-img { aspect-ratio: 4 / 3; border-radius: 16px; }
.jr-card:hover .bl-img img { transform: scale(1.04); }
.jr-ct { display: grid; gap: 10px; padding-top: 18px; }
.jr .jr-title { font-weight: 400 !important; margin: 0; text-wrap: balance; }
.jr .jr-card .jr-title { font-size: var(--t-body) !important; line-height: 1.4 !important; letter-spacing: -.01em !important; font-weight: 500 !important; }
.jr-meta { font-family: var(--f-mono); font-size: var(--t-micro); line-height: 1.4; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) {
  .jr-card.is-in { transition: opacity .4s ease, transform .8s var(--ease-j); }
  .jr-grid:has(.jr-card:hover) .jr-card.is-in:not(:hover) { opacity: .4; }      /* only while a card is actually under the pointer: the gaps between cards dim nothing */
}
.jr-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 12px; }
.jr-more { display: flex; justify-content: center; padding: 56px 0 0; }
.jr-empty { grid-column: 1 / -1; padding: 64px 0; }
.jr-empty p { color: var(--ink-2); max-width: 44ch; margin: 10px 0 22px; }
.jr-index-end { padding-bottom: 150px; }

/* ---------- closing line (article page) ---------- */
.jr-end { padding-top: 120px; padding-bottom: 130px; }
.jr-end-in { border-top: 1px solid var(--line); padding-top: 56px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.jr-end-t { font-size: var(--t-title); line-height: var(--fa-title-lh, 1.06); letter-spacing: var(--fa-title-ls, -.03em); font-weight: 300; color: var(--ink); max-width: 14ch; margin: 0; text-wrap: balance; }
.jr-end-btns { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

/* ---------- article ---------- */
.jr-ah { padding-top: 176px; }
.jr-ah .jr-kicker { margin-bottom: 0; }
.jr-ah .jr-kicker span { color: var(--ink); }
.jr .jr-ah h1 { margin-top: 28px; max-width: none; }   /* the whole column is available, so a normal title sets in two balanced lines instead of three narrow ones */
.jr-dek { margin-top: 26px; max-width: 56ch; color: var(--ink-2); text-wrap: pretty; }
.jr-cover.jr-wrap { margin-top: 64px; max-width: none; padding-inline: clamp(12px, 1.8vw, 28px); }      /* nearly the full width of the screen, with a small margin on both sides */
.jr-cover .bl-img { aspect-ratio: 16 / 7; max-height: 78vh; border-radius: 28px; }
.jr-cover .bl-img img { transition: none; object-position: 50% 20%; }
.jr-layout { display: grid; grid-template-columns: 250px minmax(0, 700px); gap: 0 96px; align-items: start; margin-top: 72px; }
.jr-side-in { position: sticky; top: 112px; display: grid; gap: 44px; }
.jr-h { margin: 0 0 14px; font-family: var(--f-mono); font-size: var(--t-micro) !important; line-height: 1.4 !important; letter-spacing: .02em !important; font-weight: 450 !important; color: var(--ink-3); }
.jr-spec { margin: 0; border-top: 1px solid var(--line); }
.jr-spec > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.jr-spec dt { font-family: var(--f-mono); font-size: var(--t-micro); color: var(--ink-3); letter-spacing: .02em; }
.jr-spec dd { margin: 0; font-size: var(--t-small); color: var(--ink); text-align: right; }
.jr-spec dd a { text-decoration: none; border-bottom: 1px solid var(--line-2); transition: border-color .3s; }
.jr-spec dd a:hover { border-color: var(--ink); }
.jr-toc { display: grid; }
.jr-toc a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px; padding: 9px 0; font-size: var(--t-small); line-height: 1.4; color: var(--ink-3); text-decoration: none; transition: color .3s; }
.jr-toc a i { font-style: normal; font-family: var(--f-mono); font-size: var(--t-micro); padding-top: 2px; }
.jr-toc a:hover { color: var(--ink); }
.jr-toc a.is-on { color: var(--ink); }
.jr-toc a.is-on i { color: #f43c00; }
.jr-share { display: flex; gap: 8px; flex-wrap: wrap; }
.jr-share a, .jr-share button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; text-decoration: none; color: var(--ink); transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease-j); }
.jr-share a:hover, .jr-share button:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); transform: translateY(-2px); }
.jr-share svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.jr-share svg.f { fill: currentColor; stroke: none; }
.jr-share-m { display: none; margin-top: 40px; }
.jr-main { min-width: 0; }
.jr-main .bl-tags { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.jr-main .bl-tag { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); }
.jr-main .bl-tag:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.jr-related { margin-top: 120px; }
.jr-related-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) { .jr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 20px; } }
@media (max-width: 640px) {
  .jr-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .jr-tools { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .jr-search { min-width: 0; }
  .jr-search input { width: 100%; }
  .jr-cats { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
  .jr-cats::-webkit-scrollbar { display: none; }
}
@media (max-width: 1180px) { .jr-layout { grid-template-columns: 210px minmax(0, 700px); gap: 0 56px; } }
@media (max-width: 980px) {
  .jr-layout { grid-template-columns: minmax(0, 700px); margin-top: 52px; }
  .jr-side-in { position: static; gap: 0; }
  .jr-toc-box, .jr-share-s { display: none; }
  .jr-share-m { display: flex; }
  .jr-spec { margin-bottom: 40px; }
}
@media (max-width: 760px) {
  .jr-hero, .jr-ah { padding-top: 132px; }
  .jr-hero { padding-bottom: 36px; }
  .jr-cover { margin-top: 40px; }
  .jr-cover .bl-img { aspect-ratio: 4 / 3; max-height: none; border-radius: 20px; }
  .jr-end { padding-top: 80px; padding-bottom: 100px; }
  .jr-end-in { padding-top: 40px; }
  .jr-related { margin-top: 84px; }
}
@media (prefers-reduced-motion: reduce) { .jr-card { opacity: 1; transform: none; } .jr *, .jr *::before { transition-duration: .01ms !important; } }
