/* ============================================================
   Gessura — journal v5 «Monochrome premium»
   index.php (the ledger) + single.php (the read-width article).
   Tokens from system.css only; long-form baseline from main.css,
   refined here for coal. Sibling of home.css — hairline rows,
   thin large type, caps labels, no boxes.
   ============================================================ */

/* -- index · lead story: the newest entry, full bleed --------- */
/* The homepage hero applied to an article: the cover edge to
   edge, a scrim weighted to the copy corner and the fold, the
   title large and thin on top, date + read time as caps stamps. */

.g3-jr-lead {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--coal);
}
.g3-jr-lead-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.g3-jr-lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);   /* headroom for the scroll drift (journal.js) */
}
/* desktop: the covers are centred renders on black, so slide the
   render toward the right third and let the title own the black on
   the left — the homepage hero's composition. The cover's own black
   margin meets the band's black under the scrim. */
@media (min-width: 901px) {
  .g3-jr-lead-media img { transform: translateX(17%) scale(1.06); }
}
.g3-jr-lead-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 12, .86) 0%, rgba(10, 10, 12, .5) 40%, rgba(10, 10, 12, .1) 74%),
    linear-gradient(180deg, rgba(10, 10, 12, .55) 0%, transparent 26%, transparent 56%, rgba(10, 10, 12, .92) 100%);
}
.g3-jr-lead-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 24px;
  justify-items: start;
  max-width: min(1120px, 94vw);
  padding: 140px clamp(24px, 6vw, 110px) clamp(64px, 9vh, 110px);
}
.g3-jr-lead-kicker { margin: 0; color: var(--bone-soft); }
.g3-jr-lead-title {
  font-weight: 200;
  font-size: clamp(40px, 5.8vw, 104px);
  line-height: 1.04;
  letter-spacing: -.015em;
  max-width: 19ch;
}
.g3-jr-lead-title a { color: inherit; text-decoration: none; }
/* desktop: the shifted render begins near 44vw — keep the title on the black */
@media (min-width: 901px) {
  .g3-jr-lead-title { max-width: min(19ch, 36vw); font-size: clamp(40px, 4.6vw, 92px); }
}
.g3-jr-lead-sub {
  margin: 0;
  max-width: 54ch;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--bone-soft);
}
/* caps stamps on hairline seams — the homepage's spec line */
.g3-jr-lead-stamps {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}
.g3-jr-lead-stamps > * {
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--bone-soft);
  padding: 6px 20px 6px 0;
  margin-right: 20px;
  border-right: 1px solid var(--hairline-2);
}
.g3-jr-lead-stamps > :last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.g3-jr-lead-copy .g3-btn { margin-top: 4px; }

@media (max-width: 900px) {
  .g3-jr-lead { min-height: 100svh; }
  .g3-jr-lead-media::after {
    background:
      linear-gradient(180deg, rgba(10, 10, 12, .55) 0%, rgba(10, 10, 12, .25) 32%, rgba(10, 10, 12, .84) 72%, rgba(10, 10, 12, .97) 100%);
  }
  .g3-jr-lead-copy { padding-top: 120px; gap: 20px; }
  .g3-jr-lead-title { font-size: clamp(32px, 8.4vw, 56px); }
}

/* -- index · header ------------------------------------------ */

.g3-jr-head { padding: clamp(72px, 9vw, 140px) 0 clamp(36px, 4vw, 64px); }
/* after the lead band the head is a section head, not a page top */
.g3-jr-head-after { padding-top: clamp(80px, 8vw, 130px); }
.g3-jr-head-after .g3-jr-title { margin-top: 18px; }

.g3-jr-back { margin: 0 0 26px; }
.g3-jr-back a {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bone-faint);
  transition: color var(--t-quick) var(--ease);
}
.g3-jr-back a:hover { color: var(--bone); }

.g3-jr-title {
  margin-top: 18px;
  font-size: clamp(36px, 4.8vw, 84px);
  font-weight: 200;
  line-height: 1.08;
  letter-spacing: -.015em;
  max-width: 20ch;
}

.g3-jr-lede {
  margin: 24px 0 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--bone-soft);
  max-width: 52ch;
}

.g3-jr-count {
  margin: 28px 0 0;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* -- index · the ledger: wide hairline rows ------------------ */

.g3-jr { padding-bottom: var(--pad); }

.g3-jr-list { border-top: 1px solid var(--hairline); }

.g3-jr-row { border-bottom: 1px solid var(--hairline); }

.g3-jr-link {
  display: grid;
  grid-template-columns: clamp(112px, 11vw, 150px) 1fr 40px;
  align-items: baseline;
  gap: clamp(18px, 3vw, 48px);
  padding: clamp(26px, 3.2vw, 44px) 0;
  transition: padding-left var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
}
.g3-jr-link:hover { padding-left: 18px; }

.g3-jr-when {
  display: grid;
  gap: 6px;
  align-content: start;
}
.g3-jr-date {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone-faint);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.g3-jr-mins {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone-faint);
  white-space: nowrap;
}

/* the inline cover: touch only (no hover to drive the floating one).
   Unframed — the render's own black is the edge. */
.g3-jr-thumb { display: none; }
@media (hover: none), (pointer: coarse), (max-width: 700px) {
  .g3-jr-link { grid-template-columns: clamp(112px, 11vw, 150px) 1fr 132px 40px; }
  .g3-jr-thumb {
    display: block;
    align-self: center;
    width: 132px;
    aspect-ratio: 3 / 2;
    overflow: hidden;
  }
  .g3-jr-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* fine pointer: the hovered row holds, the others recede — the
   floating cover (journal.js) carries the picture */
@media (hover: hover) and (pointer: fine) {
  .g3-jr-list:hover .g3-jr-link { opacity: .4; }
  .g3-jr-list:hover .g3-jr-row:hover .g3-jr-link,
  .g3-jr-list .g3-jr-link:focus-visible { opacity: 1; }
}

/* the floating cover: lives on <body>, outside the smoothed content,
   so position: fixed means the viewport. Never takes the pointer. */
.g3-jr-float {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;              /* under the bar (100) and the menu (90) */
  width: 320px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity, filter;
}
.g3-jr-float img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g3-jr-main {
  min-width: 0;
  display: grid;
  gap: 12px;
  justify-items: start;
}

.g3-jr-rowtitle {
  font-size: clamp(22px, 2.4vw, 38px);
  font-weight: 200;
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--bone);
  max-width: 34ch;
  text-wrap: balance;
}

/* one muted line, cut clean */
.g3-jr-excerpt {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--bone-faint);
}

.g3-jr-arrow {
  justify-self: end;
  font-size: 20px;
  color: var(--bone-faint);
  transition: color var(--t-quick) var(--ease), translate var(--t-base) var(--ease);
}
.g3-jr-link:hover .g3-jr-arrow { color: var(--bone); translate: 6px 0; }

/* -- index · pagination: quiet buttons ----------------------- */

.g3-jr-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 4.4vw, 60px);
}

.g3-jr-pager-note {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bone-faint);
  font-variant-numeric: tabular-nums;
}

/* boxless, like the marketplace pager: bare numerals on an underline;
   the current page is live */
.g3-jr-pages { display: flex; gap: 4px; flex-wrap: wrap; }
.g3-jr-pages .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: var(--bone-soft);
  transition: border-color var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}
.g3-jr-pages a.page-numbers:hover { border-bottom-color: var(--hairline-2); color: var(--bone); }
.g3-jr-pages .page-numbers.current {
  border-bottom-color: var(--ember);
  color: var(--ember-hi);
}
.g3-jr-pages .page-numbers.dots {
  min-width: 0;
  padding-inline: 2px;
  color: var(--bone-faint);
}

/* -- index · empty, honestly --------------------------------- */

.g3-jr-none .g3-jr-none-rule {
  border-top: 1px solid var(--hairline);
  margin-bottom: clamp(36px, 5vw, 60px);
}
.g3-jr-none-line {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 44px);
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--bone);
  max-width: 26ch;
}
.g3-jr-none-sub {
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--bone-soft);
  max-width: 52ch;
}
.g3-jr-search {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  max-width: 520px;
}
.g3-jr-search .g3-input { flex: 1; }
.g3-jr-none-back { margin: 28px 0 0; }

/* ============================================================
   Single entry
   ============================================================ */

/* -- opening scene: the cover edge to edge, the title on it ---- */

.g3-jr-hero {
  position: relative;
  min-height: min(92vh, 980px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--coal);
}
.g3-jr-hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.g3-jr-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);   /* headroom for the scroll drift (journal.js) */
}
/* scrim: centre held open for the render, weighted hard to the fold
   where the title sits */
.g3-jr-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 50% 72%, rgba(10, 10, 12, .62), rgba(10, 10, 12, .2) 62%, transparent 85%),
    linear-gradient(180deg, rgba(10, 10, 12, .6) 0%, transparent 24%, transparent 46%, rgba(10, 10, 12, .94) 100%);
}
.g3-jr-hero-copy {
  position: relative;
  z-index: 2;
  width: min(1120px, 92vw);
  margin-inline: auto;
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
  padding: 140px 0 clamp(56px, 8vh, 100px);
}
.g3-jr-hero-stamps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px 12px;
  margin: 0;
  color: var(--bone-soft);
}
.g3-jr-hero-stamps a { color: var(--bone-soft); text-decoration: none; transition: color var(--t-quick) var(--ease); }
.g3-jr-hero-stamps a:hover { color: var(--bone); }
.g3-jr-hero-title {
  font-weight: 200;
  font-size: clamp(34px, 5vw, 88px);
  line-height: 1.06;
  letter-spacing: -.015em;
  max-width: 21ch;
}
.g3-jr-hero + .g3-jr-body { padding-top: clamp(56px, 6vw, 100px); }

@media (max-width: 700px) {
  .g3-jr-hero { min-height: 82svh; }
  .g3-jr-hero-copy { padding-top: 110px; gap: 18px; }
  .g3-jr-hero-title { font-size: clamp(30px, 8vw, 44px); }
  .g3-jr-hero-media::after {
    background:
      linear-gradient(180deg, rgba(10, 10, 12, .55) 0%, rgba(10, 10, 12, .2) 30%, rgba(10, 10, 12, .82) 68%, rgba(10, 10, 12, .97) 100%);
  }
}

/* -- fallback header (an entry without a cover) ---------------- */

.g3-jr-single-head { padding: clamp(72px, 9vw, 130px) 0 clamp(30px, 3.6vw, 52px); }

.g3-jr-single-meta { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.g3-jr-single-meta a { text-decoration: none; transition: color var(--t-quick) var(--ease); }
.g3-jr-single-meta a:hover { color: var(--bone); text-decoration: none; }
.g3-jr-single-meta time { color: var(--bone-soft); }

.g3-jr-single-title {
  margin-top: 22px;
  font-size: clamp(32px, 4.4vw, 64px);
  font-weight: 200;
  line-height: 1.12;
  letter-spacing: -.015em;
}

.g3-jr-body { padding-bottom: clamp(64px, 7vw, 110px); }

/* -- prose, refined for coal ----------------------------------
   main.css carries the baseline; these keep the article reading
   like the homepage: light headings, quiet rules, no faux bold
   (Poppins loads 300–600 — a 700 strong would synthesize). */

.g3-jr-article { font-size: 16.5px; line-height: 1.75; }
.g3-jr-article > p:first-child {
  font-size: 19px;
  line-height: 1.7;
  color: var(--bone);
}
.g3-jr-article p, .g3-jr-article ul, .g3-jr-article ol { color: var(--bone-soft); }
.g3-jr-article strong { color: var(--bone); font-weight: 600; }

.g3-jr-article h2 {
  margin-top: 2.2em;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--bone);
}
.g3-jr-article h3 {
  margin-top: 1.8em;
  font-size: 19px;
  font-weight: 500;
  color: var(--bone);
}

.g3-jr-article blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 24px;
  border-left: 1px solid var(--hairline-2);
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 300;
  font-size: 1.15em;
  line-height: 1.6;
  color: var(--bone);
}

.g3-jr-article code { color: var(--bone); }
.g3-jr-article pre {
  border: 1px solid var(--hairline);
  border-radius: var(--r-ctl);
}
.g3-jr-article hr { border-top-color: var(--hairline); }

.g3-jr-article li::marker { color: var(--bone-faint); }

/* the entries carry wide spec tables; main.css leaves tables alone */
.g3-jr-tablewrap {
  overflow-x: auto;
  margin: 1.8em 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.g3-jr-article table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
}
.g3-jr-article th,
.g3-jr-article td {
  padding: 12px 18px 12px 0;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}
.g3-jr-article th {
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--bone-faint);
}
.g3-jr-article td {
  color: var(--bone-soft);
  font-variant-numeric: tabular-nums;
}
.g3-jr-article tr:last-child td { border-bottom: 0; }

/* -- neighbouring entries: two boxless rows ------------------- */

.g3-jr-adj { padding-bottom: var(--pad); }

.g3-jr-adj-rows { border-top: 1px solid var(--hairline); }
.g3-jr-adj-row {
  display: grid;
  grid-template-columns: clamp(130px, 15vw, 170px) 1fr 32px;
  align-items: baseline;
  gap: clamp(16px, 2.4vw, 36px);
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left var(--t-base) var(--ease);
}
.g3-jr-adj-row:hover { padding-left: 16px; }
.g3-jr-adj-label {
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone-faint);
  font-variant-numeric: tabular-nums;
}
.g3-jr-adj-title {
  min-width: 0;
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 300;
  line-height: 1.35;
  color: var(--bone);
}
.g3-jr-adj-row .g3-jr-arrow { justify-self: end; }
.g3-jr-adj-row:hover .g3-jr-arrow { color: var(--bone); translate: 6px 0; }

/* -- closing band: full-bleed, one primary into the studio ---- */

.g3-jr-cta {
  position: relative;
  min-height: 68vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.g3-jr-cta-media { position: absolute; inset: 0; }
.g3-jr-cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}
.g3-jr-cta-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(72% 60% at 50% 52%, rgba(10, 10, 12, .78), rgba(10, 10, 12, .38) 65%, transparent 85%),
    linear-gradient(180deg, rgba(10, 10, 12, .95) 0%, transparent 30%, transparent 70%, rgba(10, 10, 12, .9) 100%);
}
.g3-jr-cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
  padding: clamp(80px, 11vh, 140px) 24px;
}
.g3-jr-cta-title {
  font-size: clamp(34px, 4.8vw, 78px);
  font-weight: 300;
  line-height: 1.08;
}
.g3-jr-cta-note {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone-soft);
  text-shadow: 0 1px 14px rgba(10, 10, 12, .9);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 700px) {
  .g3-jr-link {
    grid-template-columns: minmax(0, 1fr) 96px;
    column-gap: 16px;
    row-gap: 10px;
    padding: 22px 0;
  }
  .g3-jr-when { grid-column: 1; display: flex; gap: 14px; }
  .g3-jr-main { grid-column: 1; }
  .g3-jr-thumb { grid-column: 2; grid-row: 1 / span 2; width: 96px; align-self: start; margin-top: 2px; }
  .g3-jr-link:hover { padding-left: 0; }
  .g3-jr-arrow { display: none; }
  .g3-jr-rowtitle { font-size: clamp(20px, 5.6vw, 24px); }
  .g3-jr-excerpt {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .g3-jr-pager { justify-content: center; }
  .g3-jr-search { flex-direction: column; }

  .g3-jr-adj-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }
  .g3-jr-adj-row:hover { padding-left: 0; }
  .g3-jr-adj-row .g3-jr-arrow { display: none; }

  .g3-jr-cta { min-height: 78svh; }
}
