/* ==========================================================================
   House of Pros — the Journal (articles and videos)
   White and black: the Journal is a bright white gallery after the dark
   video "cover" — ink type, hairline rules, frosted glass — with the videos
   shown in a black cinema band. Not a newspaper; the same luxury as the site.
   Here: the homepage's Journal, the Journal page, a post's page.
   Shared pieces (.jr-…) also style the preview in /admin → Journal.
   ========================================================================== */

.jr-page,
.jr-home,
.jr-preview {
  --jr-bg: #ffffff;
  --jr-panel: #f1f1f0;
  --jr-title-font: Arial, "Helvetica Neue", Helvetica, sans-serif; /* post titles: bold Arial, easy to read */
  --jr-ink: #0a0a0a;
  --jr-text: #26262b;
  --jr-mist: #6e6e73;
  --jr-faint: #a3a3a8;
  --jr-line: rgba(10, 10, 10, 0.12);
  --jr-line-strong: rgba(10, 10, 10, 0.8);
  --jr-wrap: 1280px;
  --jr-radius: 16px;
}

/* the Journal pages: white all the way down */
html:has(body.jr-page) {
  background: #ffffff;
}

.jr-page {
  background: var(--jr-bg);
  color: var(--jr-text);
}

.jr-page main {
  display: block;
  min-height: 70svh;
}

.jr-page ::selection,
.jr-home ::selection {
  background: var(--jr-ink);
  color: #fff;
}

.jr-page :focus-visible,
.jr-home :focus-visible {
  outline-color: var(--jr-ink);
}

/* The menu keeps its light type, on glass that stays see-through: the page
   blurs through the bar's 45px glass, tinted just enough to stay readable */
.jr-page .nav,
.jr-page .nav__panel {
  color: var(--silver-50);
}

.jr-page > .nav .nav__bar,
body.has-journal .nav .nav__bar {
  background-color: rgba(10, 10, 10, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* -- details: "MARKETS · 4 DEC 2026 · 6 MIN READ" --------------------------- */

.jr-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 0;
  font-family: var(--font-neue);
  font-weight: 400;
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jr-mist);
}

.jr-meta > * + *::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  vertical-align: middle;
}

.jr-meta__topic {
  font-weight: 500;
  color: var(--jr-ink);
}

/* -- a post: picture, details, headline, summary ---------------------------- */

.jr-card {
  display: grid;
  align-content: start;
  gap: 18px;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.jr-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--jr-radius);
  background: var(--jr-panel);
  box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.06);
  isolation: isolate;
}

.jr-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.4s var(--ease);
}

/* An article with no picture: its topic, set large, on quiet grey */
.jr-card__media--plain {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.9), transparent 60%),
    var(--jr-panel);
}

.jr-card__plain {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(18px, 2vw, 26px);
  transition: transform 1.4s var(--ease);
}

.jr-card__plain span {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 0.95;
  color: var(--jr-ink);
}

.jr-card__plain img {
  position: absolute;
  top: clamp(18px, 2vw, 26px);
  right: clamp(18px, 2vw, 26px);
  width: auto;
  height: 34px;
  opacity: 0.3;
  filter: invert(1);
}

/* Play: a fine white ring with the triangle in it and the word beside, in
   the corner of the still over a soft shadow (so it reads on bright
   pictures too), never on top of what the picture says. The ring fills
   white when you point at it. One design for every video on the site. */
.jr-play {
  --ring: 40px;
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  pointer-events: none;
}

.jr-play::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -60px;
  bottom: -60px;
  width: calc(100% + 180px);
  height: calc(100% + 130px);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.22) 60%, rgba(0, 0, 0, 0));
}

.jr-play__ring {
  display: grid;
  place-items: center;
  width: var(--ring);
  height: var(--ring);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  color: #ffffff;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), transform 0.6s var(--ease);
}

.jr-play__ring svg {
  width: calc(var(--ring) * 0.34);
  height: calc(var(--ring) * 0.34);
}

.jr-play__label {
  font-family: var(--font-neue);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}

/* pointed at: the ring fills */
@media (hover: hover) {
  .jr-card:hover .jr-play__ring,
  .jr-tile:hover .jr-play__ring,
  .jr-card--panel:hover .jr-play__ring,
  .jr-show__pic:hover .jr-play__ring,
  .jr-player__btn:not(:disabled):hover .jr-play__ring {
    background: #ffffff;
    color: #0a0a0a;
    transform: scale(1.06);
  }
}

.jr-card__body {
  display: grid;
  gap: 10px;
}

.jr-card__title {
  margin: 0;
  font-family: var(--jr-title-font);
  font-weight: 700;
  font-size: clamp(1.45rem, 1.8vw, 1.7rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--jr-ink);
  text-wrap: balance;
}

/* the underline draws in on hover */
.jr-card__title span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.7s var(--ease);
}

.jr-card__excerpt {
  margin: 0;
  font-family: var(--font-neue);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--jr-mist);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jr-card__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-family: var(--font-neue);
  font-size: 15px;
  color: var(--jr-ink);
}

.jr-card__more svg {
  transition: transform 0.5s var(--ease);
}

@media (hover: hover) {
  .jr-card:hover .jr-card__img,
  .jr-card:hover .jr-card__plain {
    transform: scale(1.035);
  }
  .jr-card:hover .jr-card__title span {
    background-size: 100% 1px;
  }
  .jr-card:hover .jr-card__more svg {
    transform: translateX(4px);
  }
}

.jr-card:focus-visible .jr-card__media {
  outline: 1px solid var(--jr-ink);
  outline-offset: 4px;
}

/* Large: picture on one side, words on the other */
.jr-card--feature {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.jr-card--feature .jr-card__media {
  aspect-ratio: 16 / 10;
}

.jr-card--feature .jr-card__body {
  gap: 16px;
}

.jr-card--feature .jr-card__title {
  font-size: clamp(2.1rem, 3.4vw, 3.2rem);
  line-height: 1.04;
}

.jr-card--feature .jr-card__excerpt {
  font-size: clamp(16px, 1.4vw, 18px);
  -webkit-line-clamp: 4;
}

.jr-card--feature .jr-play {
  --ring: 52px;
  left: 22px;
  bottom: 22px;
}

.jr-card--flip {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.jr-card--flip .jr-card__media {
  order: 2;
}

@media (max-width: 760px) {
  .jr-card--feature,
  .jr-card--flip {
    grid-template-columns: minmax(0, 1fr);
  }
  .jr-card--flip .jr-card__media {
    order: 0;
  }
}

/* -- posts, three to a row, with room to breathe ----------------------------- */

.jr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(48px, 5.5vw, 72px) clamp(28px, 3vw, 44px);
  margin: 0;
  padding: 0;
}

@media (max-width: 1000px) {
  .jr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .jr-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }
  .jr-grid > * {
    padding: 32px 0;
    border-top: 1px solid var(--jr-line);
  }
  .jr-grid > :first-child {
    padding-top: 0;
    border-top: 0;
  }
}

/* Loading: quiet placeholders where the posts will be */
.jr-ghost {
  display: grid;
  gap: 16px;
}

.jr-ghost span {
  display: block;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.05) 0%, rgba(10, 10, 10, 0.09) 50%, rgba(10, 10, 10, 0.05) 100%) 0 0 / 200% 100%;
  animation: jr-shimmer 1.6s linear infinite;
}

.jr-ghost span:nth-child(1) { aspect-ratio: 3 / 2; border-radius: var(--jr-radius, 16px); }
.jr-ghost span:nth-child(2) { height: 11px; width: 40%; }
.jr-ghost span:nth-child(3) { height: 26px; width: 85%; }
.jr-ghost span:nth-child(4) { height: 14px; width: 65%; }

@keyframes jr-shimmer {
  to { background-position: -200% 0; }
}

/* Arriving together, one after another */
.jr-rise {
  animation: jr-rise 0.9s var(--ease) both;
  animation-delay: calc(var(--n, 0) * 70ms);
}

@keyframes jr-rise {
  from { opacity: 0; transform: translateY(18px); }
}

/* Each post rises in as it scrolls into view, its picture opening up */
.jr-reveal {
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity 1.1s var(--ease) var(--d, 0ms),
    transform 1.3s var(--ease) var(--d, 0ms);
}

.jr-reveal .jr-card__media {
  clip-path: inset(10% 0 0 0 round var(--jr-radius));
  transition: clip-path 1.5s var(--ease) var(--d, 0ms);
}

.jr-reveal.is-in {
  opacity: 1;
  transform: none;
}

.jr-reveal.is-in .jr-card__media {
  clip-path: inset(0 0 0 0 round var(--jr-radius));
}

/* -- "View all →" ------------------------------------------------------------ */

.jr-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-family: var(--font-neue);
  font-size: 15px;
  color: var(--jr-ink);
  text-decoration: none;
  white-space: nowrap;
}

.jr-link span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
}

.jr-link svg {
  transition: transform 0.5s var(--ease);
}

.jr-link:hover svg {
  transform: translateX(4px);
}

/* A section's heading: a light serif over a hairline, a link on the right */
.jr-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 3.4vw, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--jr-line);
}

.jr-section-head h2,
.jr-section-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--jr-ink);
}

/* ==========================================================================
   The homepage: the Journal, a white gallery rising under the video
   ========================================================================== */

.jr-home {
  position: relative;
  z-index: 1;
  border-radius: clamp(20px, 2.6vw, 34px) clamp(20px, 2.6vw, 34px) 0 0;
  background: var(--jr-bg);
  color: var(--jr-text);
}

.jr-home__inner {
  max-width: var(--jr-wrap);
  margin: 0 auto;
  padding: clamp(12px, 2vw, 24px) var(--gutter) clamp(40px, 5vw, 64px);
}

/* -- The latest: held on screen while scrolling moves through them ----------
   The section is several screens tall; its stage stays put (sticky) and each
   stretch of scrolling brings the next post (js/journal.js). */

.jr-show {
  --count: 5;
  --step: 72svh;
  position: relative;
  height: calc(100svh + (var(--count) - 1) * var(--step));
}

.jr-show--one {
  height: auto;
}

.jr-show__stage {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(20px, 3.4vh, 40px);
  height: 100svh;
  padding: clamp(28px, 5vh, 56px) 0 clamp(24px, 5vh, 52px);
}

.jr-show--one .jr-show__stage {
  position: relative;
  height: min(100svh, 860px);
}

/* The masthead: the date · THE JOURNAL · the subjects, over a rule. Shared
   by the homepage (held at the top while the posts change) and /journal. */
.jr-mast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: last baseline; /* the date and subjects sit on the title's own line */
  gap: 16px;
  padding-bottom: clamp(14px, 2.2vh, 24px);
  border-bottom: 1px solid var(--jr-line-strong);
}

.jr-mast__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, min(8vw, 10.5vh), 6rem); /* traded with the hero's title */
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--jr-ink);
  text-align: center;
  white-space: nowrap;
  padding-bottom: 0.22em; /* room for the tail of the J: the rule runs under it, not through it */
}

.jr-mast__side {
  margin: 0;
  padding-bottom: 6px;
  white-space: nowrap;
  font-family: var(--font-neue);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jr-mist);
}

.jr-mast__side--end {
  justify-self: end;
  text-align: right;
}

.jr-mast__side a {
  color: var(--jr-ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}

.jr-show__body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 72px);
  min-height: 0;
}

/* the photographs: each new one wipes up over the last */
.jr-show__pics {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--jr-radius);
  background: var(--jr-panel);
  isolation: isolate;
}

.jr-show__pic {
  position: absolute;
  inset: 0;
  display: block;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.05s var(--ease);
}

.jr-show__pic.is-shown {
  clip-path: inset(0 0 0 0);
}

.jr-show__pic .jr-card__media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

.jr-show__pic .jr-card__img,
.jr-show__pic .jr-card__plain {
  transform: scale(1.12);
  transition: transform 1.6s var(--ease);
}

.jr-show__pic.is-now .jr-card__img,
.jr-show__pic.is-now .jr-card__plain {
  transform: scale(1);
}

.jr-show__pic .jr-play {
  --ring: 54px;
  left: clamp(18px, 2vw, 28px);
  bottom: clamp(18px, 2vw, 28px);
}

.jr-show__pic .jr-play__label {
  font-size: 12px;
}

.jr-show__pic .jr-card__plain span {
  font-size: clamp(3rem, 6vw, 5.4rem);
}

/* a video: the frame itself resizes to widescreen while it's up, and back
   for the next photograph. js/journal.js measures the 16:9 band the frame
   closes in to (--vt top, --vb bottom, --vx each side); the still fills the
   frame, and the flag moves with the corner in the same step, so the two
   can't come apart. Phones use one widescreen frame for every post instead
   (see the phone rules below). */
.jr-show__pics {
  transition: margin 0.95s var(--ease);
}

.jr-show--wide .jr-show__pics {
  margin: var(--vt, 0px) var(--vx, 0px) var(--vb, 0px);
}

/* the flag: the photograph's corner is cut away and the word sits in the
   notch, in the page's own white, like a label set into a print layout */
.jr-flag {
  --r: 14px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  padding: 0 18px 12px 0;
  border-bottom-right-radius: var(--r);
  background: var(--jr-bg);
  color: var(--jr-ink);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  line-height: 1;
  letter-spacing: -0.005em;
  pointer-events: none;
  /* moved the same way the frame is reshaped (not a transform, which runs
     apart from it), so the flag and the corner stay locked together */
  transition: top 0.95s var(--ease), left 0.95s var(--ease);
}

.jr-show--wide .jr-flag {
  top: var(--vt, 0px);
  left: var(--vx, 0px);
}

/* the two inside curves where the notch meets the photograph */
.jr-flag::before,
.jr-flag::after {
  content: "";
  position: absolute;
  width: var(--r);
  height: var(--r);
  background: radial-gradient(circle at 100% 100%, transparent calc(var(--r) - 0.5px), var(--jr-bg) var(--r));
}

.jr-flag::before {
  top: 0;
  left: 100%;
}

.jr-flag::after {
  top: 100%;
  left: 0;
}

/* the words: the new post's rise in as the last one's leave */
.jr-show__side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 3.4vh, 36px);
  min-height: 0;
}

.jr-show__count {
  margin: 0;
  font-family: var(--font-neue);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--jr-faint);
  font-variant-numeric: tabular-nums;
}

.jr-show__count [data-show-n] {
  color: var(--jr-ink);
}

.jr-show__texts {
  display: grid;
}

/* The words change over in place: the topic and date line and the link only
   fade, so they never shift; the headline and summary rise a little */
.jr-show__text {
  grid-area: 1 / 1;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s var(--ease),
    visibility 0s linear 0.35s;
}

.jr-show__text.is-now {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.6s var(--ease) 0.15s,
    visibility 0s;
}

.jr-show__text :is(.jr-show__title, .jr-show__excerpt) {
  transform: translateY(12px);
  transition: transform 0.35s var(--ease);
}

.jr-show__text.is-past :is(.jr-show__title, .jr-show__excerpt) {
  transform: translateY(-12px);
}

.jr-show__text.is-now :is(.jr-show__title, .jr-show__excerpt) {
  transform: none;
  transition: transform 0.9s var(--ease) 0.15s;
}

.jr-show__title {
  margin: 0;
  font-family: var(--jr-title-font);
  font-weight: 700;
  font-size: clamp(2rem, min(3.4vw, 5.6vh), 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--jr-ink);
  text-wrap: balance;
}

.jr-show__title a {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.7s var(--ease);
}

.jr-show__title a:hover {
  background-size: 100% 1px;
}

.jr-show__excerpt {
  margin: 0;
  max-width: 30em;
  font-family: var(--font-neue);
  font-weight: 300;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.5;
  color: var(--jr-mist);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jr-show__text .jr-link {
  margin-top: 4px;
}

/* where you are: a segment per post, filled as you pass it; press one to go */
.jr-show__bar {
  display: flex;
  gap: 6px;
}

.jr-show__seg {
  position: relative;
  flex: 1;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.jr-show__seg span {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  overflow: hidden;
  background: var(--jr-line);
  transition: height 0.3s var(--ease);
}

.jr-show__seg span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--jr-ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.6s var(--ease);
}

.jr-show__seg.is-done span::after {
  transform: none;
}

.jr-show__seg:hover span {
  height: 4px;
}

.jr-show__seg:focus-visible {
  outline: 1px solid var(--jr-ink);
  outline-offset: 2px;
}

.jr-show--one .jr-show__count,
.jr-show--one .jr-show__bar {
  display: none;
}

@media (max-width: 1000px) {
  .jr-mast {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 12px;
  }
  .jr-mast__title {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .jr-mast__side {
    padding-bottom: 0;
  }
  .jr-mast__side br {
    display: none;
  }
  .jr-mast__side a {
    margin-left: 12px;
  }
}

@media (max-width: 760px) {
  .jr-mast__title,
  .jr-head .jr-mast__title {
    font-size: clamp(2.6rem, 13.2vw, 4.4rem); /* traded with the hero title, as on wide screens */
  }
  .jr-mast__side {
    font-size: 10.5px;
  }
}

/* phones: no room for the date; the subjects sit centred under the title */
@media (max-width: 600px) {
  .jr-mast {
    grid-template-columns: minmax(0, 1fr);
  }
  .jr-mast__side:not(.jr-mast__side--end) {
    display: none;
  }
  .jr-mast__side--end {
    justify-self: center;
    text-align: center;
  }
}

/* Phones and narrow screens: the photograph on top, the words under it */
@media (max-width: 760px) {
  .jr-show {
    --step: 64svh;
  }
  /* every post, video or article, in one widescreen frame, so nothing is
     reshaped: the flag, the words and the progress bar never move. The
     masthead sits near the top of the screen and the progress bar near the
     bottom; any room to spare falls between the words and the bar. */
  .jr-show__stage {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 22px;
    padding: 18px 0 22px;
  }
  .jr-show__body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 24px;
  }
  .jr-show__side {
    justify-content: flex-start;
    gap: 22px;
  }
  .jr-show__bar {
    margin-top: auto;
  }
  /* the frame takes the room the screen has to give: no shallower than
     16:10, no deeper than 4:3 (a video loses only a sliver at its sides) */
  .jr-show__pics,
  .jr-show--wide .jr-show__pics {
    --w: calc(100vw - 2 * var(--gutter));
    height: clamp(calc(var(--w) * 0.625), calc(100svh - 560px), calc(var(--w) * 0.75));
    margin: 0;
  }
  .jr-show--wide .jr-flag {
    top: 0;
    left: 0;
  }
  .jr-show__count {
    display: none;
  }
  .jr-show__text {
    gap: 10px;
  }
  .jr-show__title {
    font-size: clamp(1.8rem, 8.4vw, 2.5rem);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .jr-show__excerpt {
    font-size: 16px;
    -webkit-line-clamp: 3;
  }
  .jr-show__pic .jr-play {
    --ring: 44px;
  }
  .jr-show__seg {
    height: 18px;
  }
}

/* short phone screens: keep the photograph big, drop the summary */
@media (max-width: 760px) and (max-height: 720px) {
  .jr-show__excerpt {
    display: none;
  }
}

/* Watch: a cinema — the black band, one big screen, the queue beside it.
   Held on screen while scrolling moves the screen down the queue: the band is
   several screens tall and its stage stays put (js/journal.js). */
.jr-watch {
  --count: 1;
  --step: 62svh;
  margin: clamp(72px, 9vw, 120px) calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter);
  background: #0a0a0a;
  color: #fff;
  --jr-ink: #ffffff;
  --jr-text: #c3c8d0;
  --jr-mist: #9a9aa1;
  --jr-line: rgba(255, 255, 255, 0.16);
}

@media (min-width: 1281px) {
  .jr-watch {
    margin-inline: calc((100vw - var(--jr-wrap)) / -2 - var(--gutter));
    padding-inline: calc((100vw - var(--jr-wrap)) / 2 + var(--gutter));
  }
}

.jr-watch__stage {
  padding-block: clamp(48px, 6vw, 80px) clamp(52px, 6vw, 84px);
}

.jr-watch--held {
  height: calc(100svh + (var(--count) - 1) * var(--step));
}

/* held on wide screens: the cinema may use more than the page column */
@media (min-width: 1281px) {
  .jr-watch--held {
    padding-inline: var(--gutter);
  }
}

.jr-watch--held .jr-watch__stage {
  position: sticky;
  top: 0;
  display: grid;
  align-content: center;
  width: fit-content;
  max-width: 100%;
  height: 100svh;
  margin-inline: auto;
  padding-block: clamp(24px, 5vh, 56px);
}

.jr-watch .jr-section-head {
  border-top: 0;
  padding-top: 0;
}

.jr-watch--held .jr-section-head {
  margin-bottom: clamp(18px, 3.4vh, 40px);
}

.jr-cinema {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(20px, 2.8vw, 40px);
  align-items: start;
  min-height: 0;
}

/* held: the screen is as big as the height allows, the queue beside it */
.jr-watch--held .jr-cinema {
  --queue: clamp(280px, 22vw, 380px);
  grid-template-columns: auto var(--queue);
}

.jr-watch--held .jr-stage {
  width: min(calc((100svh - 300px) * 16 / 9), calc(100vw - 2 * var(--gutter) - var(--queue) - 48px), 1280px);
}

.jr-stage .jr-player {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.jr-stage__info {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.jr-stage__title {
  margin: 0;
  font-family: var(--jr-title-font);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.14;
  color: #fff;
  text-decoration: none;
}

a.jr-stage__title:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* the queue: the row on the screen is lit; press one and it plays */
.jr-playlist {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  max-height: min(60vh, 560px);
  overflow-y: auto;
  scrollbar-width: none;
}

.jr-watch--held .jr-playlist {
  max-height: calc(100svh - 220px);
}

.jr-playlist::-webkit-scrollbar {
  display: none;
}

.jr-plrow {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s var(--ease);
}

.jr-plrow:hover {
  background: rgba(255, 255, 255, 0.07);
}

.jr-plrow.is-now {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.jr-plrow:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 2px;
}

.jr-plrow__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #17181b;
}

.jr-plrow__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jr-plrow__text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.jr-plrow__title {
  font-family: var(--jr-title-font);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.35;
  color: #f2f3f5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jr-plrow .jr-meta {
  flex-wrap: nowrap;
  overflow: hidden;
  font-size: 10.5px;
  white-space: nowrap;
}

/* every row is a video: no need to say so */
.jr-plrow .jr-meta > :last-child:not(:first-child) {
  display: none;
}

.jr-plrow.is-now .jr-meta .jr-meta__topic::after {
  content: " · Playing";
  color: #fff;
}

/* tablets and phones: the screen across the top, the queue a row of
   thumbnails under it */
@media (max-width: 900px) {
  .jr-cinema {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .jr-watch--held .jr-watch__stage {
    width: auto;
  }
  .jr-watch--held .jr-cinema {
    grid-template-columns: minmax(0, 1fr);
  }
  .jr-watch--held .jr-stage {
    width: 100%;
  }
  .jr-stage__info {
    margin-top: 14px;
  }
  .jr-stage__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .jr-playlist,
  .jr-watch--held .jr-playlist {
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 30%);
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .jr-plrow {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 8px;
    padding: 8px;
  }
  .jr-plrow .jr-meta {
    display: none;
  }
  .jr-plrow__title {
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .jr-playlist,
  .jr-watch--held .jr-playlist {
    grid-auto-columns: 42%;
  }
}

/* More to read: held on screen while scrolling slides the row of articles
   sideways, from the right edge of the screen to the left */
.jr-more {
  margin-top: clamp(72px, 9vw, 120px);
}

.jr-more--held {
  margin-top: 0;
}

.jr-more--held .jr-more__stage {
  position: sticky;
  top: 0;
  display: grid;
  align-content: center;
  grid-template-columns: minmax(0, 1fr);
  height: 100svh;
  padding-block: clamp(24px, 5vh, 56px);
}

.jr-more--held .jr-section-head {
  border-top: 0;
  padding-top: 0;
}

/* held: the pictures take the height the screen has */
.jr-more--held .jr-more__track > .jr-card .jr-card__media {
  height: clamp(170px, calc(100svh - 470px), 600px);
  aspect-ratio: auto;
}

.jr-more__view {
  min-width: 0;
  overflow: clip;
  margin-inline: calc(var(--gutter) * -1);
}

@media (min-width: 1281px) {
  .jr-more__view {
    margin-inline: calc((100vw - var(--jr-wrap)) / -2 - var(--gutter));
  }
}

.jr-more__track {
  display: flex;
  align-items: stretch;
  gap: clamp(20px, 2.4vw, 32px);
  width: max-content;
  padding-inline: var(--gutter);
  will-change: transform;
}

@media (min-width: 1281px) {
  .jr-more__track {
    padding-inline: calc((100vw - var(--jr-wrap)) / 2 + var(--gutter));
  }
}

.jr-more__track > .jr-card {
  flex: 0 0 clamp(270px, 27vw, 430px);
}

/* the last of the row: the way through to everything */
.jr-more__end {
  display: flex;
  flex: 0 0 clamp(270px, 27vw, 430px);
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 280px;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--jr-radius);
  background: #0a0a0a;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  line-height: 1.02;
}

.jr-more__end svg {
  align-self: flex-end;
  transition: transform 0.5s var(--ease);
}

.jr-more__end:hover svg {
  transform: translateX(6px);
}

.jr-more__end:focus-visible {
  outline: 1px solid var(--jr-ink);
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .jr-more__track > .jr-card,
  .jr-more__end {
    flex-basis: 78vw;
  }
}

/* reduced motion: nothing held; a row you swipe */
.jr-more--free .jr-more__view {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 14px; /* a scrolling row clips at its edge: room for the last line's tails */
}

.jr-more--free .jr-more__track > * {
  scroll-snap-align: center;
}

/* Until the page knows whether there's a Journal below, the hero's foot
   stays out of sight (so the small print never flashes up and then goes) */
:root:not(.jr-known) body.home:not(.jr-decided) .hero__footer {
  visibility: hidden;
  animation: jr-foot-late 0s linear 5s forwards; /* never hidden for good */
}

@keyframes jr-foot-late {
  to {
    visibility: visible;
  }
}

/* Once the Journal is below, the hero's foot is a single thin chevron in the
   middle, pointing down to it (the small print moves to the bottom of the
   page) */
.hero__next {
  display: none;
}

:is(.jr-known, .has-journal) .hero__footer {
  display: flex;
  justify-content: center;
}

:is(.jr-known, .has-journal) .hero__footer .foot-legal,
:is(.jr-known, .has-journal) .hero__footer > a[href="terms"] {
  display: none;
}

:is(.jr-known, .has-journal) .hero__next {
  display: grid;
  place-items: center;
  width: 64px;
  height: 44px;
  color: var(--silver-50);
  opacity: 0.85;
  animation: foot-in 0.8s var(--ease) both;
  transition: opacity 0.3s var(--ease);
}

:is(.jr-known, .has-journal) .hero__next:hover {
  opacity: 1;
}

:is(.jr-known, .has-journal) .hero__next svg {
  animation: hero-next-drift 2.8s var(--ease) 1.2s infinite;
}

@keyframes hero-next-drift {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {
  :is(.jr-known, .has-journal) .hero__next svg {
    animation: none;
  }
}

/* ==========================================================================
   The Journal page
   ========================================================================== */

.jr-head {
  max-width: var(--jr-wrap);
  margin: 0 auto;
  padding: clamp(130px, 17vh, 180px) var(--gutter) 0;
  text-align: center;
}

.jr-head .jr-mast__title {
  font-size: clamp(3.6rem, min(9.4vw, 20vh), 8.6rem);
}

.jr-lede {
  max-width: 32em;
  margin: clamp(22px, 2.8vw, 30px) auto 0;
  font-family: var(--font-neue);
  font-weight: 300;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.45;
  color: var(--jr-mist);
  text-align: center;
  text-wrap: balance;
}

/* All / Articles / Videos: words with a rule under the chosen one */
.jr-tabs {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 3vw, 36px);
  margin: clamp(26px, 3.4vw, 36px) auto 0;
}

.jr-tab {
  position: relative;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--jr-mist);
  font: 400 14px/1 var(--font-neue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.jr-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--jr-ink);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
}

.jr-tab:hover,
.jr-tab[aria-pressed="true"] {
  color: var(--jr-ink);
}

.jr-tab[aria-pressed="true"]::after {
  transform: none;
}

.jr-list {
  max-width: var(--jr-wrap);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) var(--gutter) clamp(96px, 12vw, 150px);
}

.jr-list > .jr-card--feature {
  padding-bottom: clamp(48px, 6vw, 72px);
  margin-bottom: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--jr-line);
}

/* -- The rest, like a magazine: the rhythm repeats every six posts ----------
   big photograph + black panel · three side by side · one wide */

.jr-mag {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(44px, 5.4vw, 80px) clamp(20px, 2.4vw, 32px);
}

.jr-mag__item {
  min-width: 0;
}

.jr-mag__big {
  grid-column: span 8;
}

.jr-mag__panel,
.jr-mag__std {
  grid-column: span 4;
}

.jr-mag__half {
  grid-column: span 6;
}

.jr-mag__wide {
  grid-column: 1 / -1;
  padding-block: clamp(36px, 4.4vw, 60px);
  border-block: 1px solid var(--jr-line);
}

/* never two rules in a row: no top rule straight after the lead story's
   rule or another wide one */
.jr-mag > .jr-mag__wide:first-child,
.jr-mag__wide + .jr-mag__wide {
  border-top: 0;
  padding-top: 0;
}

/* nor a rule under the last one, just before the footer */
.jr-mag > .jr-mag__wide:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* a big photograph, the headline set on frosted glass at its foot */
.jr-tile {
  position: relative;
  display: block;
  min-height: clamp(440px, 44vw, 620px);
  color: #fff;
  text-decoration: none;
  outline: none;
}

.jr-tile .jr-card__media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.jr-tile .jr-play {
  --ring: 46px;
  top: 20px;
  left: 20px;
  bottom: auto;
}

.jr-tile__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 12px;
  padding: clamp(64px, 7vw, 96px) clamp(22px, 2.6vw, 36px) clamp(22px, 2.6vw, 36px);
  isolation: isolate;
}

.jr-tile__body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 0 0 var(--jr-radius) var(--jr-radius);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 50%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 50%);
  pointer-events: none;
}

.jr-tile .jr-meta {
  color: rgba(255, 255, 255, 0.8);
}

.jr-tile .jr-meta__topic {
  color: #fff;
}

.jr-tile__title {
  max-width: 18em;
  margin: 0;
  font-family: var(--jr-title-font);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.jr-tile__title span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.7s var(--ease);
}

.jr-tile__excerpt {
  max-width: 34em;
  margin: 0;
  font-family: var(--font-neue);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* no picture: the grey card, the words in ink, no glass */
.jr-tile--plain {
  color: var(--jr-ink);
}

.jr-tile--plain .jr-tile__body::before,
.jr-tile--plain .jr-card__plain span {
  display: none;
}

.jr-tile--plain .jr-meta,
.jr-tile--plain .jr-tile__excerpt {
  color: var(--jr-mist);
}

.jr-tile--plain .jr-meta__topic {
  color: var(--jr-ink);
}

@media (hover: hover) {
  .jr-tile:hover .jr-card__img,
  .jr-tile:hover .jr-card__plain {
    transform: scale(1.04);
  }
  .jr-tile:hover .jr-tile__title span {
    background-size: 100% 1px;
  }
}

.jr-tile:focus-visible .jr-card__media {
  outline: 1px solid var(--jr-ink);
  outline-offset: 4px;
}

/* the black panel beside it: the same post card, in white on black */
.jr-card--panel {
  --jr-ink: #ffffff;
  --jr-mist: #a1a1a6;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100%;
  padding: clamp(14px, 1.4vw, 20px) clamp(14px, 1.4vw, 20px) clamp(24px, 2.4vw, 32px);
  border-radius: var(--jr-radius);
  background: #0a0a0a;
  color: #fff;
}

.jr-card--panel .jr-card__media {
  --jr-radius: 10px;
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 240px;
  background: #17181b;
  box-shadow: none;
}

.jr-card--panel .jr-card__body {
  padding-inline: clamp(6px, 0.8vw, 10px);
}

.jr-card--panel .jr-card__title {
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
}

.jr-card--panel .jr-card__media--plain {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
    #17181b;
}

.jr-card--panel .jr-card__plain img {
  filter: none;
  opacity: 0.4;
}


.jr-card--panel:focus-visible {
  outline: 1px solid var(--jr-line-strong);
  outline-offset: 4px;
}

/* the wide one: words on the left, the picture on the right */
.jr-mag__wide .jr-card__title {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
}

/* tablets: the big photograph across the page; the panel and the three
   cards two to a row */
@media (max-width: 1000px) {
  .jr-mag {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jr-mag__panel,
  .jr-mag__std,
  .jr-mag__half {
    grid-column: span 1;
  }
  .jr-mag__big,
  .jr-mag__wide {
    grid-column: 1 / -1;
  }
  .jr-tile {
    min-height: clamp(420px, 70vw, 560px);
  }
}

/* phones: one column */
@media (max-width: 600px) {
  .jr-mag {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 44px;
  }
  .jr-mag__item,
  .jr-mag__panel,
  .jr-mag__std,
  .jr-mag__half {
    grid-column: 1 / -1;
  }
  .jr-card--panel .jr-card__media {
    flex: none;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .jr-tile {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
  .jr-tile__title {
    font-size: 1.85rem;
  }
  .jr-tile__excerpt {
    display: none;
  }
  .jr-mag__wide {
    padding-block: 36px;
  }
}

.jr-empty {
  margin: 0;
  padding: 40px 0 0;
  text-align: center;
  font-family: var(--font-neue);
  font-weight: 300;
  color: var(--jr-mist);
}

.jr-empty strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  color: var(--jr-ink);
}

/* ==========================================================================
   A post's page
   ========================================================================== */

.jp-head {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(130px, 17vh, 180px) var(--gutter) 0;
  text-align: center;
}

.jp-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(28px, 4vh, 44px);
  font-family: var(--font-neue);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jr-mist);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.jp-back svg {
  transform: rotate(180deg);
  transition: transform 0.5s var(--ease);
}

.jp-back:hover {
  color: var(--jr-ink);
}

.jp-back:hover svg {
  transform: rotate(180deg) translateX(4px);
}

.jp-head .jr-meta {
  justify-content: center;
}

.jp-title {
  margin: 20px 0 0;
  font-family: var(--jr-title-font);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--jr-ink);
  text-wrap: balance;
}

.jp-lede {
  max-width: 34em;
  margin: 24px auto 0;
  font-family: var(--font-neue);
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.45;
  color: var(--jr-mist);
  text-wrap: balance;
}

.jp-media {
  max-width: 1160px;
  margin: clamp(44px, 6vh, 64px) auto 0;
  padding: 0 var(--gutter);
}

.jp-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--jr-radius);
}

.jp-body {
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(44px, 6vh, 64px) var(--gutter) 0;
  box-sizing: content-box;
}

.jp-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 660px;
  margin: clamp(52px, 7vh, 72px) auto 0;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid var(--jr-line);
  box-sizing: content-box;
  font-family: var(--font-neue);
  font-size: 14px;
  color: var(--jr-mist);
}

@media (min-width: 760px) {
  .jp-share {
    padding-inline: 0;
  }
}

.jp-share__label {
  margin-right: 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jp-share a,
.jp-share button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--jr-line);
  border-radius: 999px;
  background: transparent;
  color: var(--jr-text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.jp-share a:hover,
.jp-share button:hover {
  border-color: var(--jr-ink);
  background: var(--jr-ink);
  color: #fff;
}

.jp-share svg {
  width: 14px;
  height: 14px;
}

.jp-more {
  max-width: var(--jr-wrap);
  margin: clamp(96px, 12vw, 150px) auto 0;
  padding: 0 var(--gutter) clamp(96px, 12vw, 150px);
}

/* How far through the article you are: a hairline along the top */
.jp-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 2px;
  background: var(--jr-ink, #0a0a0a);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* Not found / couldn't load */
.jp-missing {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(180px, 26vh, 260px) var(--gutter) 160px;
  text-align: center;
}

.jp-missing h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  line-height: 1.02;
  color: var(--jr-ink);
}

.jp-missing p {
  margin: 20px 0 32px;
  font-family: var(--font-neue);
  font-weight: 300;
  color: var(--jr-mist);
}

/* -- an article's text ------------------------------------------------------ */

/* the text of a post: Arial unless the post chose otherwise (/admin) */
.jr-prose {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.7;
  color: var(--jr-text);
}

.jr-prose--serif {
  font-family: var(--font);
  font-size: clamp(19px, 1.45vw, 21px);
  line-height: 1.72;
}

.jr-prose--sans {
  font-family: var(--font-neue);
}

/* some words in another font ([words]{serif} in the editor). Serif type
   runs small beside Arial, so it's set a touch larger to sit level */
.jr-font {
  line-height: 1;
}

.jr-font--arial {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.jr-font--sans {
  font-family: var(--font-neue);
}

.jr-font--serif {
  font-family: var(--font);
  font-size: 1.1em;
}

.jr-prose--serif .jr-font--serif {
  font-size: inherit;
}

.jr-prose--serif .jr-font--arial,
.jr-prose--serif .jr-font--sans {
  font-size: 0.91em;
}

.jr-prose > * {
  margin: 0;
}

.jr-prose > * + * {
  margin-top: 1.15em;
}

.jr-prose h2,
.jr-prose h3 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--jr-ink);
  text-wrap: balance;
}

.jr-prose h2 {
  margin-top: 2em;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.1;
}

.jr-prose h3 {
  margin-top: 1.8em;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.16;
}

.jr-prose h2 + *,
.jr-prose h3 + * {
  margin-top: 0.7em;
}

.jr-prose a {
  color: var(--jr-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(10, 10, 10, 0.35);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s var(--ease);
}

.jr-prose a:hover {
  text-decoration-color: var(--jr-ink);
}

.jr-prose strong {
  font-weight: 600;
  color: var(--jr-ink);
}

.jr-prose ul,
.jr-prose ol {
  padding-left: 1.3em;
}

.jr-prose li + li {
  margin-top: 0.45em;
}

.jr-prose li::marker {
  color: var(--jr-faint);
}

/* A quote: set large and light, off a black rule */
.jr-prose blockquote {
  margin-block: 1.9em;
  padding-left: clamp(20px, 3vw, 28px);
  border-left: 2px solid var(--jr-ink);
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 1.4em;
  line-height: 1.26;
  color: var(--jr-ink);
}

.jr-prose blockquote p + p {
  margin-top: 0.6em;
}

.jr-prose hr {
  width: 64px;
  margin-block: 2.4em;
  border: 0;
  border-top: 1px solid var(--jr-line-strong);
}

.jr-figure {
  margin-block: 2em;
}

.jr-figure img {
  width: 100%;
  border-radius: var(--jr-radius, 16px);
}

.jr-figure figcaption {
  margin-top: 12px;
  font-family: var(--font-neue);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--jr-mist);
}

/* -- the video player ------------------------------------------------------- */

.jr-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--jr-radius, 16px);
  background: #0e0e10;
}

.jr-player__btn {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.jr-player__btn:disabled {
  cursor: default;
}

.jr-player__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.8s var(--ease);
  filter: brightness(0.86);
}

.jr-player .jr-play {
  --ring: clamp(52px, 5vw, 66px);
  left: clamp(18px, 2.4vw, 32px);
  bottom: clamp(18px, 2.4vw, 32px);
}

.jr-player .jr-play__label {
  font-size: 12px;
}

@media (hover: hover) {
  .jr-player__btn:not(:disabled):hover .jr-player__img {
    transform: scale(1.03);
    filter: brightness(0.95);
  }
}

.jr-player__btn:focus-visible {
  outline: 1px solid #fff;
  outline-offset: -6px;
}

.jr-player__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .jr-reveal,
  .jr-reveal .jr-card__media {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }
  .jr-rise,
  .jr-ghost span {
    animation: none;
  }
  .jr-card__img,
  .jr-card__plain,
  .jr-player__img,
  .jr-show__pics,
  .jr-flag,
  .jr-show__pic,
  .jr-show__pic .jr-card__img,
  .jr-show__pic .jr-card__plain,
  .jr-show__text,
  .jr-show__text.is-now,
  .jr-show__text :is(.jr-show__title, .jr-show__excerpt) {
    transition: none;
  }
  .jr-show__pic .jr-card__img,
  .jr-show__pic .jr-card__plain,
  .jr-show__text :is(.jr-show__title, .jr-show__excerpt) {
    transform: none;
  }
}
