/* The journal. Built on the tokens in styles.css and the bar and buttons in site.css.
   Headlines in Newsreader, text in Inter, colour only where the site already uses it: ink,
   hairlines, and gold for the hand. */

:root { --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif; }
body.j { background: var(--surface); }
.j a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.j .site-top { background: var(--surface); }
.j-name { margin-left: -14px; padding-left: 14px; border-left: 1px solid var(--line); font: 500 19px/1 var(--serif); color: var(--ink); }
.j-nav { margin-left: 6px; }
.j-main { max-width: 1240px; width: 100%; margin: 0 auto; padding: 0 24px 80px; flex: 1; }
.j img { display: block; width: 100%; height: auto; background: var(--sunk); }
.j-noimg { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--sunk); }
.j .crumbs { margin: 0 0 18px; }

/* ---------------------------------------------------------------- front page */
.j-mast { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 8px 40px; align-items: end; padding: 56px 0 0; }
.j-mast h1 { margin: 0; font: 500 clamp(64px, 11vw, 148px)/.86 var(--serif); letter-spacing: -.045em; color: var(--ink); }
.j-mast p { margin: 0 0 16px; font-size: 16px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.j-mast { border-bottom: 1px solid var(--ink); padding-bottom: 34px; }
.j-secs { grid-column: 1 / -1; display: none; flex-wrap: wrap; gap: 4px 24px; margin-top: 10px; }
.j-secs a { font: 500 15px var(--sans); color: var(--ink); text-decoration: none; padding: 4px 0; }
.j-secs a:hover { text-decoration: underline; }
.j-mast-s { display: block; margin-bottom: 34px; }
.j-mast-s h1 { font-size: clamp(52px, 8vw, 104px); margin-bottom: 18px; }
.j-mast-s p { max-width: 620px; margin: 0; font-size: 18px; }
.j-find { position: relative; }
.j-find label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.j-find input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink); font: 400 15px var(--sans); }
.j-find input::placeholder { color: var(--muted); }
.j-find input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.j-find ul { position: absolute; z-index: 20; left: 0; right: 0; top: 52px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-md); }
.j-find li { padding: 8px 10px; color: var(--muted); font-size: 14.5px; }
.j-find li a { display: block; margin: -8px -10px; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.j-find li a:hover, .j-find li a:focus-visible { background: var(--sunk); }

.j-lead { margin-top: 34px; }
.j-lead img { aspect-ratio: 2 / 1; object-fit: cover; border-radius: 4px; }
.j-lead > div { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 18px 48px; align-items: start; padding-top: 24px; }
.j-lead h2 { margin: 0; font: 500 clamp(34px, 4.6vw, 60px)/1.02 var(--serif); letter-spacing: -.028em; text-wrap: balance; }
.j-lead h2 a { color: var(--ink); text-decoration: none; }
.j-lead h2 a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.j-lead p { margin: 6px 0 0; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }

.j-today { margin: 64px 0; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.j-today p { margin: 0 auto; max-width: 980px; font: 400 clamp(23px, 2.9vw, 36px)/1.32 var(--serif); letter-spacing: -.012em; color: var(--ink); text-wrap: pretty; font-variant-numeric: lining-nums; }
.j-today a { color: var(--gold-ink); white-space: nowrap; }

.j-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.j-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }
.j-card > a { display: block; color: var(--ink); text-decoration: none; }
.j-card img, .j-card .j-noimg { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; transition: opacity .2s; }
.j-card > a:hover img { opacity: .9; }
.j-card h2, .j-card h3 { margin: 16px 0 0; font: 500 24px/1.16 var(--serif); letter-spacing: -.016em; color: var(--ink); text-wrap: balance; }
.j-card > a:hover :is(h2, h3) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.j-card p { margin: 9px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.j-card .j-meta { margin-top: 8px; font-size: 13px; color: var(--muted); }
.j-cards-4 .j-card h3 { font-size: 19px; margin-top: 12px; }
.j-next { margin-bottom: 20px; }

.j-sec { margin-top: 84px; padding-top: 18px; border-top: 1px solid var(--ink); }
.j-sec > header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 28px; align-items: baseline; margin-bottom: 30px; }
.j-sec h2 { margin: 0; font: 500 44px/1 var(--serif); letter-spacing: -.03em; }
.j-sec h2 a { color: var(--ink); text-decoration: none; }
.j-sec > header p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.j-all { color: var(--ink); font: 500 14.5px var(--sans); }
.j-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px 56px; }
.j-split .j-card img, .j-split .j-card .j-noimg { aspect-ratio: 16 / 10; }
.j-split .j-card h3 { font-size: 32px; }
.j-split .j-card p { font-size: 15.5px; }
.j-rows { list-style: none; margin: 0; padding: 0; }
.j-rows li + li { border-top: 1px solid var(--line); }
.j-rows a { display: block; padding: 17px 0; color: var(--ink); text-decoration: none; }
.j-rows li:first-child a { padding-top: 0; }
.j-rows b { display: block; font: 500 21px/1.2 var(--serif); letter-spacing: -.014em; }
.j-rows a:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.j-rows span { display: block; margin-top: 5px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------------------------------------------------------------- an article */
.j-head { max-width: 900px; margin: 0 auto; padding: 48px 0 34px; text-align: center; }
.j-head .crumbs { justify-content: center; }
.j-head h1 { margin: 0; font: 500 clamp(38px, 5.6vw, 68px)/1.02 var(--serif); letter-spacing: -.032em; color: var(--ink); text-wrap: balance; }
.j-by { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.j-by .linkbtn { font-size: 14px; font-weight: 500; color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer; }
.j-hero { margin: 0 auto; max-width: 1120px; }
.j-hero img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.j figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.j figcaption a { color: var(--ink-2); }
.j-grid { display: grid; grid-template-columns: 220px minmax(0, 700px) 1fr; gap: 0 60px; max-width: 1120px; margin: 46px auto 0; }
.j-grid-1 { grid-template-columns: minmax(0, 700px); justify-content: center; }
.j-rail { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); display: flex; flex-direction: column; gap: 18px; }
.j-dial svg { width: 112px; height: 112px; display: block; }
.jd-ticks line { stroke: var(--faint); stroke-width: .9; }
.jd-dot { fill: var(--line); transition: fill .25s; }
.jd-dot.on { fill: var(--ink-2); }
.jd-hand { stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; transform-origin: 60px 60px; transform-box: view-box; transition: transform .3s var(--ease); }
.jd-pin { fill: var(--gold); }
.j-toc { overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.j-toc ol { list-style: none; margin: 0; padding: 0; }
.j-toc a { display: block; padding: 5px 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); text-decoration: none; }
.j-toc a:hover { color: var(--ink); }
.j-toc a[aria-current] { color: var(--ink); font-weight: 600; }

.j-toc-s { display: none; margin: -8px 0 30px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.j-toc-s summary { font: 600 15px var(--sans); color: var(--ink); cursor: pointer; }
.j-toc-s ol { list-style: none; margin: 12px 0 0; padding: 0; }
.j-toc-s a { display: block; padding: 6px 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); text-decoration: none; }
.j-toc-s a:hover { color: var(--ink); text-decoration: underline; }
.j-gloss .j-toc-s ol { columns: 6; }
.j-answer { padding: 0 0 26px; margin: 0 0 30px; border-bottom: 1px solid var(--line); }
.j-k { margin: 0 0 10px; font: 600 14px var(--sans); color: var(--gold-ink); }
.j-answer > p { margin: 0; font: 400 24px/1.42 var(--serif); letter-spacing: -.01em; color: var(--ink); text-wrap: pretty; font-variant-numeric: lining-nums; }
.j-answer ul { margin: 20px 0 0; padding: 0; list-style: none; }
.j-answer li { position: relative; padding: 0 0 0 20px; margin-top: 9px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.j-answer li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.j-body, .j-faq, .j-src { font-size: 17.5px; line-height: 1.7; color: var(--ink-2); }
.j-body > p, .j-faq p { margin: 0 0 20px; text-wrap: pretty; }
.j-body > p:first-child { font-size: 19.5px; line-height: 1.62; color: var(--ink); }
.j-body a, .j-faq a, .j-src a, .j-answer a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); }
.j-body a:hover, .j-faq a:hover, .j-src a:hover { text-decoration-color: currentColor; }
.j-body h2, .j-faq h2, .j-src h2 { margin: 54px 0 14px; font: 500 34px/1.12 var(--serif); letter-spacing: -.022em; color: var(--ink); text-wrap: balance; scroll-margin-top: 92px; }
.j-body h3, .j-faq h3 { margin: 32px 0 8px; font: 600 18px/1.4 var(--sans); letter-spacing: -.008em; color: var(--ink); scroll-margin-top: 92px; }
.j-body ul, .j-body ol { margin: 0 0 22px; padding-left: 22px; }
.j-body li { margin: 8px 0; padding-left: 4px; }
.j-body li::marker { color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.j-body strong { color: var(--ink); font-weight: 600; }
.j-num { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.j-ref { font-size: .66em; line-height: 0; margin-left: 1px; font-variant-numeric: tabular-nums; }
.j-ref a { color: var(--gold-ink); text-decoration: none; padding: 2px; }
.j-ref a:hover { text-decoration: underline; }
.j-note { margin: 30px 0; padding: 22px 24px; background: var(--sunk); border-radius: 10px; font-size: 15.5px; line-height: 1.6; }
.j-note h3 { margin: 0 0 6px; font-size: 15.5px; }
.j-note p { margin: 0; }
.j-note p + p { margin-top: 10px; }
.j-pic { margin: 34px 0; }
.j-pic img { border-radius: 4px; }

/* tables: rules, no boxes */
.j-table { margin: 0 0 26px; overflow-x: auto; }
.j-table:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.j-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.j-table thead th { padding: 0 14px 9px 0; text-align: left; vertical-align: bottom; font: 600 13px/1.35 var(--sans); color: var(--muted); border-bottom: 1px solid var(--ink); }
.j-table tbody :is(th, td) { padding: 11px 14px 11px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-weight: 400; color: var(--ink-2); }
.j-table tbody th { font-weight: 600; color: var(--ink); }
.j-table :is(th, td):last-child { padding-right: 0; }
.j-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.j-table thead .num { white-space: normal; }
.j-table a { color: var(--ink); text-decoration-color: var(--faint); }
.j-live { margin: 34px 0; }
.j-live-head h3 { margin: 0 0 14px; font: 600 16px/1.4 var(--sans); color: var(--ink); }
.j-live .j-table { margin-bottom: 0; }
.j-live figcaption { margin-top: 12px; }
.j-table .has-bar { min-width: 190px; }
.j-cell { display: grid; grid-template-columns: minmax(40px, 1fr) minmax(62px, auto); gap: 12px; align-items: center; }
.j-cell > span:last-child { text-align: right; }
.j-bar i { display: block; height: 9px; border-radius: 0 3px 3px 0; background: var(--s1); }
.j-price { margin: 32px 0; padding: 22px 24px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--raise); }
.j-price-k { margin: 0 0 12px; font: 600 15px var(--sans); color: var(--ink); }
.j-price-n { margin: 0 0 6px; font: 500 24px/1.2 var(--serif); color: var(--ink); }
.j-price dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.j-price-4 dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.j-price dt { font-size: 13px; color: var(--muted); }
.j-price dd { margin: 2px 0 0; font: 500 26px/1.15 var(--serif); letter-spacing: -.015em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.j-price dd.sub { margin-top: 3px; font: 400 12.5px/1.4 var(--sans); letter-spacing: 0; color: var(--muted); }
.j-price dd.sub:empty { display: none; }
.j-price-d { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.j-price-d a { color: var(--ink); }
.j-price > p:last-child { margin-bottom: 0; }

.j-faq h2 { margin-top: 60px; padding-top: 34px; border-top: 1px solid var(--line); }
.j-faq p { margin-bottom: 0; }
.j-cta { margin: 52px 0 0; padding: 30px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; background: #0f172a; border-radius: 14px; }
.j-cta p { margin: 0; flex: 1 1 260px; font: 500 22px/1.25 var(--serif); letter-spacing: -.012em; color: #f1f5f9; text-wrap: balance; }
.j-cta div { display: flex; flex-wrap: wrap; gap: 10px; }
.j-cta .btn { text-decoration: none; }
.j-cta .btn-primary { background: #f1f5f9; color: #0f172a; }
.j-cta .btn-ghost { background: transparent; border-color: rgba(203, 213, 225, .38); color: #f1f5f9; }
.j-cta .btn-ghost:hover { border-color: #cbd5e1; }
.j-cta-wide { margin-top: 90px; padding: 48px 48px; }
.j-cta-wide p { font-size: clamp(25px, 3vw, 36px); flex-basis: 420px; }
:root[data-theme="dark"] .j-cta { background: #16202b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .j-cta { background: #16202b; } }
.j-src { font-size: 14.5px; line-height: 1.55; }
.j-src h2 { font-size: 26px; }
.j-src ol { margin: 0 0 18px; padding-left: 26px; }
.j-src li { margin: 6px 0; padding-left: 4px; scroll-margin-top: 110px; overflow-wrap: anywhere; }
.j-src li:target { background: var(--sunk); outline: 6px solid var(--sunk); }
.j-src li span { color: var(--muted); }
.j-src p { color: var(--muted); }
.j-rel { max-width: 1120px; margin: 80px auto 0; padding-top: 22px; border-top: 1px solid var(--ink); }
.j-rel > h2 { margin: 0 0 26px; font: 500 32px/1.1 var(--serif); letter-spacing: -.022em; }
.j-gloss .j-body h2 { font-size: 64px; margin-top: 70px; padding-top: 18px; border-top: 1px solid var(--line); }
.j-gloss .j-body h3 { margin-top: 26px; }
.j-gloss .j-body > p { margin-bottom: 0; font-size: 16.5px; }
.j-gloss .j-toc ol { columns: 3; }
.j-plain .j-head { padding-bottom: 8px; }
.j-plain .j-grid { margin-top: 20px; }

/* ---------------------------------------------------------------- foot */
.j-foot { margin-top: auto; border-top: 1px solid var(--line); background: var(--bg); }
.j-foot-in { max-width: 1240px; margin: 0 auto; padding: 48px 24px 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 32px 80px; }
.j-foot-a p { max-width: 480px; margin: 16px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.j-foot nav { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.j-foot nav b { font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.j-foot nav a { color: var(--ink-2); text-decoration: none; }
.j-foot nav a:hover { color: var(--ink); text-decoration: underline; }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1120px) {
  .j-grid { grid-template-columns: minmax(0, 720px); justify-content: center; }
  .j-rail { display: none; }
  .j-toc-s { display: block; }
}
@media (max-width: 960px) {
  .j-nav { display: none; }
  .j-secs { display: flex; }
  .j-mast { grid-template-columns: minmax(0, 1fr); padding-top: 36px; }
  .j-cards, .j-cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .j-cards-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .j-split { grid-template-columns: minmax(0, 1fr); }
  .j-foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .j-foot-a { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .j-main { padding: 0 16px 56px; }
  .j-demo { display: none; }
  .j-name { margin-left: 0; }
  .j .site-top-inner { gap: 14px; }
  .j-lead > div, .j-cards, .j-cards-3 { grid-template-columns: minmax(0, 1fr); }
  .j-cards { gap: 36px; }
  .j-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .j-cards-4 .j-card h3 { font-size: 17px; }
  .j-lead img { aspect-ratio: 16 / 10; }
  .j-lead, .j-hero { margin-left: -16px; margin-right: -16px; }
  .j-lead img, .j-hero img { border-radius: 0; }
  .j-lead > div, .j-hero figcaption { padding-left: 16px; padding-right: 16px; }
  .j-sec > header { grid-template-columns: minmax(0, 1fr) auto; }
  .j-sec > header p { grid-column: 1 / -1; grid-row: 2; }
  .j-sec h2 { font-size: 36px; }
  .j-sec { margin-top: 64px; }
  .j-today { margin: 48px 0; padding: 30px 0; }
  .j-head { padding: 28px 0 24px; text-align: left; }
  .j-head .crumbs { justify-content: flex-start; }
  .j-answer > p { font-size: 21px; }
  .j-body, .j-faq { font-size: 16.5px; }
  .j-body > p:first-child { font-size: 18px; }
  .j-body h2, .j-faq h2 { font-size: 28px; margin-top: 44px; }
  .j-price dl, .j-price-4 dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .j-price { padding: 18px; }
  .j-cta, .j-cta-wide { padding: 24px 20px; }
  .j-cta div, .j-cta .btn { width: 100%; }
  .j-foot-in { padding: 36px 16px 44px; gap: 30px 24px; }
  .j-foot nav a { overflow-wrap: anywhere; }
  .j-table table { font-size: 14px; }
  .j-table .has-bar { min-width: 132px; }
  .j-cell { grid-template-columns: minmax(34px, 1fr) minmax(56px, auto); gap: 8px; }
}
@media (max-width: 480px) { .j .site-top .icon-btn { display: grid; } .j .site-top .brand-name { display: none; } .j-name { border-left: 0; padding-left: 0; font-size: 21px; } }
@media (max-width: 380px) { .j .site-top .icon-btn { display: none; } }
@media (prefers-reduced-motion: reduce) { .jd-hand, .jd-dot, .j-card img { transition: none; } }
@media print { .site-top, .j-rail, .j-cta, .j-rel, .j-foot { display: none; } .j-grid { display: block; } }
