/* The journal and its articles: a magazine masthead, a lead story and an index, then an editorial reading
   layout with a contents rail, proper callouts and the cars a guide mentions. */

.jr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.jr-meta>span+span::before { content: '\00B7'; margin: 0 10px; }
.jr-read { display: inline-flex; align-items: center; gap: 30px; font-size: 13.5px; padding-bottom: 8px; box-shadow: inset 0 -1px 0 currentColor; }
.jr-read svg { width: 20px; height: 20px; color: var(--orange); transition: transform .3s; }

/* ---------- Journal: masthead ---------- */

.jr-masthead { background: var(--deep); color: #fff; padding: 34px 0 60px; }
.jr-folio { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-block: 1px solid #ffffff2b; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #a9c0c6; }
.jr-title { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 60px; align-items: end; margin-top: 56px; }
.studio .jr-title h1 { font: 600 clamp(88px,11vw,190px)/.84 'Barlow Condensed',Impact,sans-serif; letter-spacing: -.015em; text-transform: uppercase; }
.jr-title p { justify-self: end; max-width: 380px; padding-bottom: 10px; font-size: 17px; line-height: 1.7; color: #d2dfe2; }
.jr-count { margin-top: 44px; padding-top: 16px; border-top: 1px solid #ffffff2b; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-light,#ffac64); }

/* ---------- Journal: lead story ---------- */

.jr-lead { padding-top: 70px; }
.jr-lead-card { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: clamp(36px,5vw,80px); align-items: center; }
.jr-lead-card figure { position: relative; aspect-ratio: 1.45; overflow: hidden; background: var(--paper); }
.jr-lead-card figure::before { content: ''; position: absolute; z-index: 1; top: 20px; left: 20px; width: 34px; height: 34px; border-top: 1px solid var(--orange); border-left: 1px solid var(--orange); }
.jr-lead-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease,ease); }
.jr-lead-card:hover img { transform: scale(1.035); }
.jr-lead-copy .jr-meta>span:first-child { color: var(--orange-ink,#b9580c); }
.jr-lead-copy h2 { font: 400 clamp(36px,3.6vw,58px)/1.05 var(--display); letter-spacing: -.055em; margin-top: 20px; transition: color .3s; }
.jr-lead-card:hover h2 { color: var(--orange-ink,#b9580c); }
.jr-tag { display: inline-block; margin-top: 16px; padding: 5px 10px; font-size: 11.5px; letter-spacing: .06em; color: var(--ink); border: 1px solid var(--line); }
.jr-excerpt { display: block; margin-top: 20px; font-size: 16px; line-height: 1.75; color: var(--muted); }
.jr-lead-copy .jr-read { margin-top: 28px; }
.jr-lead-card:hover .jr-read svg,.jr-list a:hover .jr-read svg,.ar-next-card:hover .jr-read svg { transform: translateX(6px); }

/* ---------- Journal: the index ---------- */

.jr-more { padding-top: 120px; padding-bottom: 120px; }
.jr-more-head .eyebrow { color: var(--muted); margin-bottom: 22px; }
.studio .jr-more-head h2 { font: 400 clamp(38px,4vw,60px)/1.05 var(--display); letter-spacing: -.058em; }
.jr-list { list-style: none; padding: 0; margin-top: 50px; border-top: 1px solid var(--ink); }
.jr-list a { display: grid; grid-template-columns: 70px minmax(0,1fr) minmax(200px,300px); gap: 30px; align-items: start; padding: 34px 0; border-bottom: 1px solid var(--line); }
.jr-no { align-self: start; padding-top: 4px; font: 600 26px/1 'Barlow Condensed',Impact,sans-serif; color: var(--orange-ink,#b9580c); }
.jr-entry strong { display: block; margin-top: 12px; font: 400 clamp(24px,2.2vw,32px)/1.15 var(--display); letter-spacing: -.045em; transition: color .3s; }
.jr-list a:hover strong { color: var(--orange-ink,#b9580c); }
.jr-entry .jr-excerpt { font-size: 15px; margin-top: 12px; max-width: 600px; }
.jr-thumb { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--paper); }
.jr-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease,ease); }
.jr-list a:hover .jr-thumb img { transform: scale(1.04); }

.jr-ask { background: var(--deep); color: #fff; padding-block: 90px; }
.jr-ask-grid { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.jr-ask .eyebrow { color: #a9c0c6; margin-bottom: 20px; }
.studio .jr-ask h2 { font: 400 clamp(36px,3.8vw,56px)/1.06 var(--display); letter-spacing: -.055em; }
.jr-ask-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }
.jr-ask-actions .studio-button { gap: 26px; font-size: 13px; }
.jr-ask-actions .text-link { color: #fff; border-color: #ffffff4d; font-size: 13.5px; }
.jr-ask-actions .text-link svg { color: var(--orange); }

/* ---------- Article: progress and opening ---------- */

.ar-progress { position: fixed; z-index: 70; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; }
.ar-progress span { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.ar-hero { padding-top: 26px; }
.ar-crumbs span { color: var(--ink); }
.ar-meta { margin-top: 56px; }
.ar-meta>span:first-child { color: var(--orange-ink,#b9580c); }
.studio .ar-hero h1 { max-width: 17ch; margin-top: 22px; font: 400 clamp(46px,5.6vw,88px)/1.02 var(--display); letter-spacing: -.06em; }
.ar-standfirst { max-width: 760px; margin-top: 28px; font: 400 clamp(19px,1.6vw,23px)/1.55 var(--display); letter-spacing: -.02em; color: var(--muted); }
.ar-figure { margin-top: 54px; }
.ar-figure img { display: block; width: 100%; height: auto; aspect-ratio: 2.2; object-fit: cover; background: var(--paper); }
.ar-figure figcaption { margin-top: 12px; font-size: 12px; color: var(--muted); }

/* ---------- Article: reading layout ---------- */

.ar-layout { display: grid; grid-template-columns: minmax(220px,280px) minmax(0,700px); gap: clamp(50px,7vw,120px); justify-content: start; padding-top: 70px; padding-bottom: 110px; }
.ar-rail { position: sticky; top: 40px; align-self: start; }
.ar-rail-title { padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ar-toc { list-style: none; padding: 0; }
.ar-toc a { display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; color: var(--muted); transition: color .25s; }
.ar-toc a span { font-size: 11px; color: #9aa7aa; padding-top: 2px; }
.ar-toc a:hover,.ar-toc a.is-current { color: var(--ink); }
.ar-toc a.is-current span { color: var(--orange-ink,#b9580c); }
.ar-toc a.is-current { box-shadow: inset 2px 0 0 var(--orange); padding-left: 10px; transition: color .25s, padding .25s; }
.ar-rail-card { margin-top: 30px; padding: 20px 0 0; border-top: 1px solid var(--ink); }
.ar-rail-card p { font: 400 19px/1.3 var(--display); letter-spacing: -.03em; margin-bottom: 12px; }
.ar-rail-card .text-link { font-size: 13px; }

.ar-body { counter-reset: section; font-size: 17px; line-height: 1.8; color: #2c4248; }
.ar-body>*:first-child { margin-top: 0; }
.ar-body p { margin: 0 0 22px; }
.ar-body strong { color: var(--ink); font-weight: 600; }
.ar-body h2 { counter-increment: section; position: relative; margin: 64px 0 22px; padding-top: 22px; border-top: 1px solid var(--line); font: 400 clamp(28px,2.4vw,36px)/1.15 var(--display); letter-spacing: -.045em; color: var(--ink); scroll-margin-top: 30px; }
.ar-body h2::before { content: counter(section,decimal-leading-zero); display: block; margin-bottom: 12px; font: 400 12px var(--body); letter-spacing: .12em; color: var(--orange-ink,#b9580c); }
.ar-body h3 { margin: 34px 0 14px; font: 400 21px/1.3 var(--display); letter-spacing: -.03em; color: var(--ink); }
.ar-body ul,.ar-body ol { margin: 0 0 26px; padding: 0; list-style: none; }
.ar-body li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid #e9eeed; }
.ar-body ul li::before { content: ''; position: absolute; left: 2px; top: 1.32em; width: 7px; height: 7px; background: var(--orange); }
.ar-body ol { counter-reset: item; }
.ar-body ol li { counter-increment: item; }
.ar-body ol li::before { content: counter(item); position: absolute; left: 0; top: 10px; font-size: 13px; color: var(--orange-ink,#b9580c); }
.ar-callout { position: relative; margin: 30px 0; padding: 22px 26px 24px; background: var(--paper); border-left: 2px solid var(--orange); color: var(--ink); }
.ar-callout-label { display: block; margin-bottom: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink,#b9580c); }
.ar-bestfor { background: none; border-left: 0; border-top: 1px solid var(--ink); padding: 16px 0 0; }
.ar-signoff { display: flex; align-items: center; gap: 16px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--ink); }
.ar-signoff-mark { display: grid; place-items: center; width: 48px; height: 48px; flex: none; background: var(--deep); color: #fff; font: 600 17px/1 'Barlow Condensed',Impact,sans-serif; letter-spacing: .04em; }
.ar-signoff strong { display: block; font: 400 17px var(--display); letter-spacing: -.02em; color: var(--ink); }
.ar-signoff span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- Article: cars mentioned and read next ---------- */

.ar-section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 40px; }
.ar-section-head .eyebrow { color: var(--muted); margin-bottom: 18px; }
.studio .ar-section-head h2 { font: 400 clamp(32px,3.2vw,48px)/1.06 var(--display); letter-spacing: -.055em; }
.ar-cars { background: var(--paper); padding-block: 90px; }
.ar-car-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.ar-car { display: block; background: #fff; }
.ar-car-photo { display: block; aspect-ratio: 1.5; overflow: hidden; background: #e6e6e3; }
.ar-car-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease,ease); }
.ar-car:hover img { transform: scale(1.04); }
.ar-car-meta { display: block; padding: 18px 20px 22px; }
.ar-car-meta>span:first-child { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ar-car-meta strong { display: block; margin-top: 8px; font: 400 22px/1.2 var(--display); letter-spacing: -.035em; transition: color .3s; }
.ar-car:hover strong { color: var(--orange-ink,#b9580c); }
.ar-car-price { display: block; margin-top: 8px; font: 400 17px var(--display); color: var(--ink); }
.ar-car-price small { font: 10.5px var(--body); letter-spacing: .06em; color: var(--muted); }
.ar-next { padding-block: 100px 110px; }
.ar-next-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; }
.ar-next-card { display: block; }
.ar-next-photo { display: block; aspect-ratio: 1.6; overflow: hidden; background: var(--paper); margin-bottom: 20px; }
.ar-next-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease,ease); }
.ar-next-card:hover img { transform: scale(1.035); }
.ar-next-card strong { display: block; margin: 12px 0 18px; font: 400 clamp(24px,2.2vw,32px)/1.15 var(--display); letter-spacing: -.045em; transition: color .3s; }
.ar-next-card:hover strong { color: var(--orange-ink,#b9580c); }

@media(max-width:1000px) {
  .jr-title { grid-template-columns: minmax(0,1fr); gap: 26px; }
  .jr-title p { justify-self: start; }
  .jr-lead-card { grid-template-columns: minmax(0,1fr); }
  .jr-list a { grid-template-columns: 50px minmax(0,1fr) 180px; gap: 20px; }
  .jr-ask-grid { display: block; }
  .jr-ask-actions { margin-top: 28px; }
  .ar-layout { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .ar-rail { position: static; }
  .ar-rail-card { display: none; }
  .ar-car-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
  .jr-masthead { padding: 22px 0 44px; }
  .jr-folio { font-size: 10px; }
  .jr-folio>span:nth-child(3) { display: none; }
  .jr-title { margin-top: 40px; }
  .studio .jr-title h1 { font-size: clamp(76px,22vw,110px); }
  .jr-title p { font-size: 15.5px; }
  .jr-lead { padding-top: 44px; }
  .jr-lead-copy h2 { font-size: 34px; }
  .jr-excerpt { font-size: 15px; }
  .jr-more { padding-block: 80px; }
  .jr-list a { grid-template-columns: 34px minmax(0,1fr); gap: 14px; padding: 26px 0; }
  .jr-thumb { grid-column: 2; grid-row: 1; aspect-ratio: 16/9; margin-bottom: 4px; }
  .jr-entry { grid-column: 2; }
  .jr-no { grid-row: 1 / span 2; font-size: 20px; }
  .jr-entry strong { font-size: 24px; }
  .jr-ask { padding-block: 64px; }
  .jr-ask-actions .studio-button { width: 100%; }
  .ar-meta { margin-top: 34px; }
  .studio .ar-hero h1 { font-size: 40px; }
  .ar-standfirst { font-size: 18px; }
  .ar-figure { margin-top: 36px; padding-inline: 0; }
  .ar-figure img { aspect-ratio: 1.45; }
  .ar-figure figcaption { padding-inline: var(--gutter); }
  .ar-layout { padding-top: 44px; padding-bottom: 70px; }
  .ar-body { font-size: 16px; }
  .ar-body h2 { margin-top: 48px; font-size: 27px; }
  .ar-callout { padding: 18px 18px 20px; }
  .ar-section-head { display: block; }
  .ar-section-head .text-link { margin-top: 16px; }
  .ar-cars,.ar-next { padding-block: 64px; }
  .ar-car-row,.ar-next-row { grid-template-columns: minmax(0,1fr); }
}
