/* =========================================================
   Alternate Reality — Journal (hub + articles)
   ========================================================= */
.journal-page { background: var(--bg, #161616); }
.j-wrap { position: relative; z-index: 10; isolation: isolate; max-width: 1180px; margin: 0 auto; padding: calc(var(--safe-y) + 130px) var(--safe-x) 80px; }
.nav-links a.is-active { color: var(--ink-1); }
.nav-links a.is-active .dot { background: var(--y-yellow); opacity: 1; }

.j-label { font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--y-yellow); margin-bottom: 12px; }

/* tags + category colours */
.j-tag { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid currentColor; }
.j-tag--yellow { color: var(--y-yellow); } .j-tag--green { color: var(--y-green); } .j-tag--violet { color: #a7a8ff; }
.j-tag--pink { color: #ff8ab3; } .j-tag--blue { color: #7fb2ff; } .j-tag--orange { color: #ffae5c; }

/* ---------------- hub ---------------- */
.j-hub-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.j-hub-title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(40px, 6vw, 80px); line-height: .95; letter-spacing: -.02em; margin: 18px 0 20px; }
.j-hub-title em { font-style: normal; color: var(--y-yellow); }
.j-hub-head p { color: rgba(247,245,241,.75); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.6; max-width: 58ch; margin: 0 auto 28px; }
.j-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.j-chip { font: 700 11.5px/1 Montserrat, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,245,241,.7); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.j-chip:hover { color: #f7f5f1; border-color: rgba(255,255,255,.35); }
.j-chip.is-on { background: var(--y-yellow); color: #161616; border-color: transparent; }

.j-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.j-grid--hub { margin-top: 22px; }

.j-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; overflow: hidden; background: rgba(22,22,22,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: border-color .3s, transform .4s cubic-bezier(.22,.61,.36,1); }
.j-card:hover { border-color: rgba(251,191,21,.45); transform: translateY(-4px); }
.j-card[hidden] { display: none; }
.j-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #121212; }
.j-cover-cat { text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.j-cover::before { content: ''; position: absolute; inset: -10%; filter: blur(26px) saturate(1.25); opacity: 1; transition: transform .8s cubic-bezier(.22,.61,.36,1); }
.j-card:hover .j-cover::before { transform: scale(1.08) rotate(3deg); }
.j-cover--yellow::before { background: radial-gradient(45% 55% at 25% 30%, rgba(251,191,21,.75), transparent 70%), radial-gradient(40% 50% at 80% 75%, rgba(255,120,60,.45), transparent 70%); }
.j-cover--green::before { background: radial-gradient(45% 55% at 25% 30%, rgba(111,211,90,.7), transparent 70%), radial-gradient(40% 50% at 80% 75%, rgba(40,160,150,.5), transparent 70%); }
.j-cover--violet::before { background: radial-gradient(45% 55% at 25% 30%, rgba(106,107,217,.85), transparent 70%), radial-gradient(40% 50% at 80% 75%, rgba(255,90,170,.45), transparent 70%); }
.j-cover--pink::before { background: radial-gradient(45% 55% at 25% 30%, rgba(255,90,170,.7), transparent 70%), radial-gradient(40% 50% at 80% 75%, rgba(251,191,21,.4), transparent 70%); }
.j-cover--blue::before { background: radial-gradient(45% 55% at 25% 30%, rgba(70,130,240,.8), transparent 70%), radial-gradient(40% 50% at 80% 75%, rgba(111,211,90,.35), transparent 70%); }
.j-cover--orange::before { background: radial-gradient(45% 55% at 25% 30%, rgba(255,150,60,.75), transparent 70%), radial-gradient(40% 50% at 80% 75%, rgba(106,107,217,.45), transparent 70%); }
.j-cover::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.j-cover-cat { position: absolute; left: 18px; bottom: 16px; z-index: 2; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(18px, 2vw, 26px); color: #f7f5f1; letter-spacing: -.01em; }
.j-cover-mark { position: absolute; right: 16px; top: 14px; z-index: 2; font: 800 10px/1 Montserrat, sans-serif; letter-spacing: .3em; color: rgba(247,245,241,.6); }

.j-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.j-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: rgba(247,245,241,.55); margin-bottom: 14px; }
.j-card-meta .j-tag { padding: 5px 10px; font-size: 9.5px; }
.j-card-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.12; letter-spacing: -.005em; margin: 0 0 10px; }
.j-card-desc { color: rgba(247,245,241,.68); font-size: 14px; line-height: 1.6; margin: 0 0 18px; flex: 1; }
.j-read { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--y-yellow); }

.j-card--big { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.j-card--big .j-cover { aspect-ratio: auto; min-height: 340px; }
.j-card--big .j-cover-cat { font-size: clamp(26px, 3vw, 40px); left: 28px; bottom: 26px; }
.j-card--big .j-card-body { padding: clamp(26px, 3.5vw, 44px); justify-content: center; }
.j-card--big .j-card-title { font-size: clamp(26px, 2.6vw, 38px); }
.j-card--big .j-card-desc { font-size: 15.5px; flex: 0; }

.j-subscribe, .j-cta { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px; align-items: center; padding: clamp(24px, 3.5vw, 40px); border-radius: 24px; border: 1px solid rgba(251,191,21,.3); background: linear-gradient(135deg, rgba(251,191,21,.08), rgba(22,22,22,.6) 60%); }
.j-subscribe h2, .j-cta h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 34px); line-height: 1; margin: 0 0 10px; }
.j-subscribe p, .j-cta p { margin: 0; color: rgba(247,245,241,.72); line-height: 1.6; font-size: 15px; }
.j-cta-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.j-cta-alt { font-size: 13px; color: rgba(247,245,241,.7); text-decoration: underline; text-underline-offset: 4px; }
.j-cta-alt:hover { color: var(--y-yellow); }

/* ---------------- article ---------------- */
.j-crumbs { max-width: 760px; margin: 0 auto 26px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: rgba(247,245,241,.5); }
.j-crumbs a { color: rgba(247,245,241,.7); text-decoration: none; } .j-crumbs a:hover { color: var(--y-yellow); }
.j-article { max-width: 760px; margin: 0 auto; }
.j-head { margin-bottom: 36px; }
.j-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 4.6vw, 56px); line-height: 1; letter-spacing: -.015em; margin: 20px 0 20px; }
.j-standfirst { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: rgba(247,245,241,.8); margin: 0 0 26px; }
.j-byline { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.j-byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.j-byline strong { display: block; font-size: 14.5px; } .j-byline span { font-size: 13px; color: rgba(247,245,241,.55); }

.j-takeaways, .j-toc { border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 22px 26px; margin: 0 0 28px; background: rgba(255,255,255,.03); }
.j-takeaways { border-color: rgba(111,211,90,.35); background: rgba(111,211,90,.05); }
.j-takeaways .j-label { color: var(--y-green); }
.j-takeaways ul { margin: 0; padding-left: 18px; } .j-takeaways li { margin: 8px 0; line-height: 1.55; font-size: 15.5px; color: rgba(247,245,241,.88); }
.j-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; } .j-toc li { margin: 6px 0; break-inside: avoid; font-size: 14.5px; }
.j-toc a { color: rgba(247,245,241,.8); text-decoration: none; } .j-toc a:hover { color: var(--y-yellow); }

.j-body { font-size: clamp(16.5px, 1.25vw, 18px); line-height: 1.75; color: rgba(247,245,241,.86); }
.j-body p { margin: 0 0 1.25em; }
.j-body h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(23px, 2.3vw, 30px); line-height: 1.08; letter-spacing: -.005em; color: #f7f5f1; margin: 2.2em 0 .8em; scroll-margin-top: 110px; }
.j-body h3 { font-size: 19px; font-weight: 800; color: #f7f5f1; margin: 1.8em 0 .6em; scroll-margin-top: 110px; }
.j-body strong { color: #f7f5f1; font-weight: 700; }
.j-body a, .j-faq a { color: var(--y-yellow); text-decoration: underline; text-underline-offset: 3px; }
.j-body ul, .j-body ol { margin: 0 0 1.4em; padding-left: 1.3em; } .j-body li { margin: .55em 0; padding-left: .2em; }
.j-body li::marker { color: var(--y-yellow); font-weight: 800; }
.j-body blockquote { margin: 1.8em 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--y-yellow); font-size: 1.12em; color: #f7f5f1; }
.j-table { overflow-x: auto; margin: 1.6em 0; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; }
.j-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.j-table th { text-align: left; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--y-yellow); padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
.j-table td { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.06); vertical-align: top; }

.j-faq { margin-top: 48px; }
.j-faq h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(23px, 2.3vw, 30px); margin: 0 0 18px; }
.j-faq details { border-top: 1px solid rgba(255,255,255,.1); padding: 4px 0; }
.j-faq details:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.j-faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 700; font-size: 16.5px; position: relative; }
.j-faq summary::-webkit-details-marker { display: none; }
.j-faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--y-yellow); transition: transform .25s; }
.j-faq details[open] summary::after { transform: rotate(45deg); }
.j-faq details p { margin: 0 0 18px; color: rgba(247,245,241,.78); line-height: 1.7; font-size: 15.5px; }

.j-sources { margin-top: 40px; font-size: 13.5px; }
.j-sources ol { padding-left: 20px; margin: 0; } .j-sources li { margin: 6px 0; color: rgba(247,245,241,.55); }
.j-sources a { color: rgba(247,245,241,.75); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }

.j-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 48px; padding: 24px; border-radius: 18px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); }
.j-author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.j-author strong { display: block; font-size: 17px; margin-bottom: 6px; }
.j-author p { margin: 0; color: rgba(247,245,241,.7); font-size: 14.5px; line-height: 1.6; }
.j-related { max-width: 1180px; margin: 80px auto 0; }

.j-foot { position: relative; z-index: 10; border-top: 1px solid rgba(255,255,255,.08); padding: 40px var(--safe-x) 56px; }
.j-foot-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; font-size: 13px; color: rgba(247,245,241,.55); }
.j-foot .brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); text-transform: uppercase; font-size: 13px; color: #f7f5f1; text-decoration: none; }
.j-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.j-foot a { color: rgba(247,245,241,.75); text-decoration: none; } .j-foot a:hover { color: var(--y-yellow); }
.j-foot p { margin: 0; width: 100%; }

@media (max-width: 1000px) {
  .j-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .j-card--big { grid-template-columns: 1fr; }
  .j-card--big .j-cover { min-height: 240px; }
}
@media (max-width: 640px) {
  .j-wrap { padding-top: calc(var(--safe-y) + 110px); }
  .j-grid { grid-template-columns: 1fr; }
  .j-toc ol { columns: 1; }
  .j-subscribe, .j-cta { grid-template-columns: 1fr; }
  .j-author { flex-direction: column; }
}

/* ---- Branded image covers (generated per article) ---- */
.j-cover--img::before, .j-cover--img::after { display: none; }
.j-cover--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.22,.61,.36,1); }
.j-card:hover .j-cover--img img { transform: scale(1.035); }
.j-card--big { align-items: center; }
.j-card--big .j-cover--img { aspect-ratio: 16 / 9; min-height: 0; height: auto; width: 100%; align-self: center; }
.j-card--big .j-cover--img img { object-fit: cover; }
.j-hero { margin: 0 0 40px; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); aspect-ratio: 16 / 9; background: #121212; }
.j-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.j-card--big { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.j-card--big .j-cover--img { margin: clamp(16px, 2vw, 26px); margin-right: 0; width: auto; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); }
.j-card--big .j-card-title { font-size: clamp(24px, 2.1vw, 32px); }
@media (max-width: 980px) { .j-card--big { grid-template-columns: 1fr; } .j-card--big .j-cover--img { margin: 0; border: 0; border-radius: 0; } }
