/* The Journal's pages: the reading room (one essay), the landing page (the desk) and the pieces they share (the byline,
   the recent-essay type, the subscribe line). From the Journal mockups (2026-11-03), on the shared system: load after
   fonts.css, tokens.css, site.css, components.css and charts.css (the charts' text roles and their frame live there).
   Inside the essay every construct reads as paper and ink: notes with a brass rule, tables on hairlines, code and the
   product receipt on raised paper. Nothing here moves while someone reads; the progress line is page chrome. */

.wrap{max-width:1180px;margin:0 auto;padding:0 24px}
main.wrap{padding-top:68px} /* the navigation is fixed, 68px tall (site.css) */
.wrap>.band.places{padding-inline:0} /* the landing page's places band (places.css) keeps to the column's own margins */
.eyebrow.brass{color:hsl(var(--accent-text))}

/* shared with the landing page: the byline, the recent essays in type, the subscribe line */
.byline{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;font-size:13.5px;color:hsl(var(--text-soft));margin:0}
.byline b{color:hsl(var(--text));font-weight:700}
.j-recent{display:grid;gap:0;align-content:start}
.j-recent .eyebrow{margin:0 0 6px}
.j-recent ol{list-style:none;margin:0;padding:0}
.j-recent li{padding:18px 0;border-top:1px solid hsl(var(--line))}
.j-recent li:first-child{border-top:0;padding-top:4px}
.j-recent h3{font-family:var(--font-display);font-weight:700;letter-spacing:-.02em;font-size:23px;line-height:1.12;margin:0 0 8px}
.j-recent h3 a{text-decoration:none}
.j-recent li{position:relative}.j-recent h3 a::after{content:'';position:absolute;inset:-10px 0 0} /* the whole entry, and a little above its title, is the link's tap area */
.j-recent h3 a:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.j-recent p{font-size:14.5px;line-height:1.5;color:hsl(var(--text-soft));margin:0 0 8px}
.j-recent .j-tag{font-size:12px;letter-spacing:.06em;text-transform:uppercase;font-weight:700;color:hsl(var(--accent-text))}
.recent-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px;padding:30px 0 40px;border-top:1px solid hsl(var(--line))}
.recent-row .j-recent li{border-top:0;padding:0}
.subscribe{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 40px;align-items:center;padding:28px 0 0;margin-top:28px;border-top:1px solid hsl(var(--line))}
.subscribe h3{font-family:var(--font-display);font-weight:800;font-size:20px;line-height:1.2;margin:0 0 2px}
.subscribe p{margin:0;font-size:16px;line-height:1.5;color:hsl(var(--text-soft))}
.subscribe form{display:flex;gap:8px}
.subscribe input{font:inherit;font-size:14px;padding:9px 14px;border:1px solid hsl(var(--line));border-radius:99px;background:hsl(var(--surface-raised));color:hsl(var(--text));min-width:150px}
.subscribe input[type="email"]{min-width:220px}
.subscribe input:focus-visible{outline:2px solid hsl(var(--focus));outline-offset:2px}
.subscribe input[aria-invalid="true"]{border:1.5px solid hsl(var(--terra-ink))}
/* what happened (design/forms.js): its own line under the fields, never widening the form's column; once sent, it alone */
.subscribe form{flex-wrap:wrap}
.subscribe .form-status{flex:1 0 100%;contain:inline-size}
.subscribe .form-status:is(.bad,[data-mp-says="invalid"]){padding:0;border:0;background:none;font-size:14px;font-weight:600;color:hsl(var(--terra-ink))} /* a field error's look: no box, whose side padding would widen the column */
.subscribe .form-status:is(.bad,[data-mp-says="invalid"])::before{content:'';display:inline-block;width:7px;height:7px;margin-right:7px;border:1.5px solid currentColor;border-radius:50%;transform:translateY(-1px)}
.subscribe form[data-mp-state="sent"] > :not(.form-status){display:none}
.subscribe form[data-mp-state="sent"] .form-status{contain:none;font-size:16px;color:hsl(var(--text))}
.subscribe .sketch-note{grid-column:1/-1;margin-top:0}

/* the reading room */
.j-progress{position:fixed;top:68px;left:0;right:0;height:2px;z-index:39;pointer-events:none}
.j-progress i{display:block;height:100%;width:0;background:hsl(var(--accent-text))}
main.essay{max-width:960px}
.crumb{font-size:13.5px;margin:18px 0 0}
.crumb a{text-decoration:none;font-weight:600;color:hsl(var(--text-soft))}
.crumb a:hover{color:hsl(var(--text))}
.essay-head{padding:22px 0 26px;max-width:800px}
.essay-head h1{font-family:var(--font-display);font-weight:800;letter-spacing:-.035em;font-size:54px;line-height:.98;margin:10px 0 16px}
.essay-head .stand{font-size:21px;line-height:1.45;color:hsl(var(--text-soft));margin:0 0 20px;max-width:30em}
.portrait{width:30px;height:30px;border-radius:50%;object-fit:cover;background:hsl(var(--line))}
.j-cover{margin:0 0 36px;border:1px solid hsl(var(--line));border-radius:12px;overflow:hidden;background:hsl(var(--paper))}
.j-cover svg{display:block;width:100%;height:auto}
.j-cover figcaption{padding:8px 14px;font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;font-weight:700;color:hsl(var(--accent-text));border-top:1px solid hsl(var(--line));background:hsl(var(--surface-raised))}

/* two columns: the contents follow the reader on the left, the essay at a 640px measure on the right */
.essay-grid{display:grid;grid-template-columns:minmax(0,1fr) 640px;gap:0 56px;align-items:start}
.contents{position:sticky;top:92px;font-size:14px;line-height:1.4}
.contents summary{list-style:none;cursor:default;margin-bottom:8px}
.contents summary::-webkit-details-marker{display:none}
.contents ol{list-style:none;margin:0;padding:0;border-left:1px solid hsl(var(--line))}
.contents li a{display:block;padding:7px 0 7px 14px;margin-left:-1px;border-left:2px solid transparent;color:hsl(var(--text-soft));text-decoration:none}
.contents li a:hover{color:hsl(var(--text))}
.contents li a.now{color:hsl(var(--text));border-left-color:hsl(var(--accent-text));font-weight:600}

/* the essay: a drop cap, numbered sections (the number is CSS, so the heading stays the essay's own words) */
.j-body{min-width:0;font-size:17.5px;line-height:1.68;counter-reset:sec}
.j-body p{margin:0 0 22px}
.j-body > p:first-of-type::first-letter{font-family:var(--font-display);font-weight:800;font-size:3.4em;float:left;line-height:.82;margin:6px 10px 0 0;color:hsl(var(--text))}
.j-body a{color:hsl(var(--text));text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:hsl(var(--accent-text))}
.j-body a:hover{text-decoration-thickness:2px}
.j-body h2{font-family:var(--font-display);font-weight:800;letter-spacing:-.025em;font-size:29px;line-height:1.1;margin:46px 0 16px;padding-top:18px;border-top:1px solid hsl(var(--accent-text) / .5)}
.j-body h2::before{counter-increment:sec;content:counter(sec,decimal-leading-zero);display:block;font-family:var(--font-text);font-weight:800;font-size:11px;letter-spacing:.14em;color:hsl(var(--accent-text));margin-bottom:10px}
.j-body h3{font-family:var(--font-display);font-weight:700;letter-spacing:-.015em;font-size:22px;line-height:1.2;margin:34px 0 12px}
.j-body h4{font-family:var(--font-text);font-weight:700;font-size:16px;line-height:1.4;margin:26px 0 8px}
.j-body ul,.j-body ol{margin:0 0 22px;padding-left:1.35em}
.j-body li{margin:0 0 8px;padding-left:.2em}
.j-body li::marker{color:hsl(var(--accent-text));font-weight:700}
.j-body li > p{margin:0 0 8px}
.j-body hr{border:0;border-top:1px solid hsl(var(--line));margin:40px 0}

/* quotations: a brass rule on the left, Sansita italic */
.j-body blockquote{margin:28px 0 30px;padding:2px 0 2px 22px;border-left:3px solid hsl(var(--accent-text));font-family:var(--font-display);font-style:italic;font-weight:400;font-size:20px;line-height:1.5;color:hsl(var(--text))}
.j-body blockquote p{margin:0 0 12px}
.j-body blockquote p:last-child{margin-bottom:0}

/* tables on hairlines: a brass small-caps header row, figures in columns */
.j-body table{width:100%;border-collapse:collapse;margin:26px 0 30px;font-size:15px;line-height:1.5;font-variant-numeric:tabular-nums}
.j-body th{text-align:left;vertical-align:bottom;padding:0 14px 9px 0;font-size:11px;line-height:1.35;letter-spacing:.1em;text-transform:uppercase;font-weight:800;color:hsl(var(--accent-text));border-bottom:1px solid hsl(var(--accent-text) / .5)}
.j-body td{vertical-align:top;padding:10px 14px 10px 0;border-bottom:1px solid hsl(var(--line))}
.j-body th:last-child,.j-body td:last-child{padding-right:0}

/* code: the mono token on raised paper */
.j-body code{font-family:var(--font-mono);font-size:.84em;padding:.1em .35em;border-radius:5px;background:hsl(var(--surface-raised));border:1px solid hsl(var(--line))}
.j-body pre{margin:26px 0 30px;padding:16px 18px;overflow-x:auto;background:hsl(var(--surface-raised));border:1px solid hsl(var(--line));border-radius:10px;box-shadow:3px 4px 0 hsl(var(--depth-indigo) / .05)}
.j-body pre code{display:block;font-size:13.5px;line-height:1.6;padding:0;border:0;border-radius:0;background:none;color:hsl(var(--text))}

/* a note: paper with a brass rule on the left, its kind as a small-caps label (the essays' callouts and the call to action) */
.j-note{margin:28px 0 30px;padding:16px 22px 2px;background:hsl(var(--surface-raised));border:1px solid hsl(var(--line));border-left:3px solid hsl(var(--accent-text));border-radius:4px 12px 12px 4px;box-shadow:3px 4px 0 hsl(var(--depth-indigo) / .05)}
.j-note h4{font-family:var(--font-display);font-weight:700;letter-spacing:-.01em;font-size:19px;line-height:1.25;margin:0 0 10px}
.j-note p{font-size:16px;line-height:1.6;margin:0 0 14px}
.j-note.cta{max-width:760px;margin:6px 0 34px;padding:20px 26px 6px}
.j-note.cta h3{font-family:var(--font-display);font-weight:700;letter-spacing:-.015em;font-size:22px;line-height:1.2;margin:0 0 8px}
.j-note.cta p{color:hsl(var(--text-soft));max-width:40em}
.j-note p.eyebrow{font-size:11px;line-height:1.4;margin:0 0 6px;color:hsl(var(--accent-text))} /* after .j-note p, so the label keeps the eyebrow's size and brass */
.j-note .cta-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin:18px 0 16px}
.j-note .text{font-size:14px;font-weight:700;color:hsl(var(--text));text-decoration:underline;text-decoration-color:hsl(var(--accent-text));text-underline-offset:4px}
.j-note .text:hover{text-decoration-thickness:2px}

/* the Deep Analysis receipt: a product screen on raised paper with a hairline, never redrawn as a picture */
.proof{margin:30px 0 32px}
.proof-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 28px;padding:20px 22px 16px;background:hsl(var(--surface-alt));border:1px solid hsl(var(--line));border-radius:12px;box-shadow:3px 4px 0 hsl(var(--depth-indigo) / .06);font-size:14px;line-height:1.5}
.proof-card > *{grid-column:1/-1}
.proof-card > .plan,.proof-card > .checks{grid-column:auto}
.proof-card .eyebrow{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px}
.proof-card h4{font-family:var(--font-display);font-weight:700;letter-spacing:-.01em;font-size:20px;line-height:1.2;margin:0 0 10px}
.proof-card .j-tag{justify-self:start;margin:0 0 18px;padding:3px 10px;border:1px solid hsl(var(--sage-ink) / .45);border-radius:99px;font-size:12px;font-weight:700;color:hsl(var(--sage-ink))}
.proof-card .plan::before,.proof-card .checks::before{display:block;grid-column:1/-1;margin:0 0 8px;font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;font-weight:800;color:hsl(var(--ink-soft))}
.proof-card .plan::before{content:'Plan'}
.proof-card .checks::before{content:'Assumption checks'}
.proof-card .plan{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 14px;margin:0 0 18px;align-content:start}
.proof-card .plan dt{color:hsl(var(--text-soft))}
.proof-card .plan dd{margin:0;text-align:right}
.proof-card .checks{list-style:none;margin:0 0 18px;padding:0}
.proof-card .checks li{position:relative;margin:0 0 6px;padding:0 0 0 22px}
.proof-card .checks li::before{content:'';position:absolute;left:4px;top:.3em;width:5px;height:9px;border:solid hsl(var(--sage-ink));border-width:0 2px 2px 0;transform:rotate(45deg)}
.proof-card .stats{display:grid;grid-template-rows:auto auto;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:2px 16px;margin:0;padding:14px 0 0;border-top:1px solid hsl(var(--line))}
.proof-card .stats dt{font-size:12px;font-weight:600;color:hsl(var(--text-soft))} /* never uppercased: it would turn η² into Η² */
.proof-card .stats dd{margin:0;font-family:var(--font-text);font-weight:700;font-size:20px;font-variant-numeric:tabular-nums;color:hsl(var(--text))}
.proof-card .stats dd.hi{color:hsl(var(--accent-text))}
.proof-card .small{margin:14px 0 0;font-size:12.5px;line-height:1.5;color:hsl(var(--text-soft))}
.proof figcaption{font-size:13.5px;line-height:1.5;color:hsl(var(--text-soft));margin-top:12px}

/* the end of the essay: the author, the call to action, related essays, the subscribe line, the way back */
.essay-end{margin-top:36px;border-top:1px solid hsl(var(--line))}
.essay-end > .crumb{margin:22px 0 48px}
.author{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:18px 22px;align-items:center;padding:28px 0}
.author .portrait{width:72px;height:72px}
.author h3{font-family:var(--font-display);font-weight:800;font-size:21px;margin:0 0 4px}
.author p{margin:0;font-size:15px;line-height:1.5;color:hsl(var(--text-soft));max-width:40em}
.author .cameo{width:220px}
.author .cameo svg{display:block;width:100%;height:auto}
.related{padding:26px 0 8px;border-top:1px solid hsl(var(--line))}
.related .eyebrow{margin:0 0 14px}
.related .recent-row{padding:0;border-top:0}

/* the landing page: the masthead beside the study, the featured spread, the index on hairlines, the subscribe line. The
   study is a world drawing: nothing in it moves by CSS, the explorer moves through its rig (journal.js desk()). The
   rules for its svg reach only the top one, never the covers' viewports nested inside it. */
.mast-desk{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:24px 48px;align-items:end;padding:34px 0 30px}
.mast h1{font-family:var(--font-display);font-weight:800;letter-spacing:-.035em;font-size:88px;line-height:.92;margin:0}
.mast .intro{font-size:18px;line-height:1.5;color:hsl(var(--text-soft));margin:14px 0 0;max-width:30em}
.mast .intro b{color:hsl(var(--text));font-weight:600}
.mast .mast-meta{display:flex;flex-wrap:wrap;gap:8px 18px;margin:16px 0 0;font-size:13px;color:hsl(var(--text-soft))}
.mast .mast-meta a{color:hsl(var(--text));font-weight:600;text-decoration:none;border-bottom:1px solid hsl(var(--accent-text) / .6)}
.mast-scene > svg{display:block;width:100%;height:auto}

/* the featured spread: one essay large, the recent ones in type */
.featured-spread{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:40px 56px;align-items:start;padding:36px 0 44px;border-top:1px solid hsl(var(--line))}
.j-feat{display:grid;gap:18px}
.j-feat .j-art{border:1px solid hsl(var(--line));border-radius:12px;overflow:hidden;background:hsl(var(--paper))}
.j-feat .j-art > svg{display:block;width:100%;height:auto}
.j-feat h2{font-family:var(--font-display);font-weight:800;letter-spacing:-.03em;font-size:40px;line-height:1.02;margin:0}
.j-feat h2 a{text-decoration:none;display:block} /* the whole title takes the tap, not only its letters */
.j-feat h2 a:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.j-feat .stand{font-size:18px;line-height:1.5;color:hsl(var(--text-soft));margin:0;max-width:34em}
.j-read{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:15px;text-decoration:none;color:hsl(var(--text));border-bottom:2px solid hsl(var(--text));padding-bottom:2px;width:max-content}
.j-read:hover{border-bottom-color:hsl(var(--accent-text))}

/* the index: an editorial list, not a dashboard; the topics and the search narrow it in place */
.index{padding:40px 0 60px;border-top:1px solid hsl(var(--line))}
.index-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:14px 24px;margin:0 0 18px}
.index-head h2{font-family:var(--font-display);font-weight:800;letter-spacing:-.02em;font-size:28px;line-height:1;margin:0}
.index-head .count{font-size:13.5px;color:hsl(var(--text-soft))}
.topics{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center;margin:0 0 8px;font-size:14px}
.topics button{background:none;border:0;padding:6px 0;font:inherit;font-weight:600;color:hsl(var(--text-soft));cursor:pointer;border-bottom:2px solid transparent}
.topics button:hover{color:hsl(var(--text))}
.topics button[aria-pressed="true"]{color:hsl(var(--text));border-bottom-color:hsl(var(--accent-text))}
.search{display:flex;align-items:center;gap:8px;margin-left:auto}
.search .eyebrow{margin:0}
.search input{font:inherit;font-size:14px;padding:7px 12px;border:1px solid hsl(var(--line));border-radius:99px;background:hsl(var(--surface-raised));color:hsl(var(--text));min-width:250px} /* the placeholder fits, with the clear button's room */
.search input:focus-visible{outline:2px solid hsl(var(--focus));outline-offset:2px}
.index-list{list-style:none;margin:0;padding:0;border-top:1px solid hsl(var(--line))}
.index-list li{border-bottom:1px solid hsl(var(--line))}
.index-list li[hidden]{display:none}
.index-list a{display:grid;grid-template-columns:118px minmax(0,1fr) auto;gap:8px 24px;align-items:baseline;padding:16px 0;text-decoration:none}
.index-list .when{font-size:13px;color:hsl(var(--text-soft));font-variant-numeric:tabular-nums}
.index-list .what{font-family:var(--font-display);font-weight:700;letter-spacing:-.015em;font-size:21px;line-height:1.15}
.index-list a:hover .what{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.index-list .j-tag{font-size:12px;letter-spacing:.06em;text-transform:uppercase;font-weight:700;color:hsl(var(--accent-text));white-space:nowrap}
.index-empty{padding:28px 0;color:hsl(var(--text-soft));font-size:15px}

/* phones and narrow windows: one column, the contents a box to tap open, no cameo */
@media (max-width:900px){
  main.essay{max-width:none}
  .essay-head h1{font-size:36px}.essay-head .stand{font-size:18px}
  .essay-grid{grid-template-columns:minmax(0,1fr);gap:20px}
  .contents{position:static;padding:12px 14px;border:1px solid hsl(var(--line));border-radius:10px;background:hsl(var(--surface-raised))}
  .contents summary{cursor:pointer;margin-bottom:0}
  .contents ol{margin-top:8px}
  .j-body{font-size:17px}
  .j-body h2{font-size:26px}
  /* a table wider than the column scrolls inside itself; a soft shadow marks the side with more to see */
  .j-body table{display:block;overflow-x:auto;background:linear-gradient(to right,hsl(var(--paper)) 30%,hsl(var(--paper) / 0)) left / 32px 100% no-repeat local,linear-gradient(to left,hsl(var(--paper)) 30%,hsl(var(--paper) / 0)) right / 32px 100% no-repeat local,radial-gradient(farthest-side at 0 50%,hsl(var(--depth-indigo) / .16),transparent) left / 12px 100% no-repeat scroll,radial-gradient(farthest-side at 100% 50%,hsl(var(--depth-indigo) / .16),transparent) right / 12px 100% no-repeat scroll}
  .proof-card{grid-template-columns:minmax(0,1fr)}
  .proof-card .stats{grid-template-rows:repeat(4,auto);grid-auto-columns:minmax(0,1fr)}
  .author{grid-template-columns:56px minmax(0,1fr)}.author .portrait{width:56px;height:56px}.author .cameo{display:none}
  .recent-row{grid-template-columns:minmax(0,1fr);gap:0}
  .recent-row .j-recent li{border-top:1px solid hsl(var(--line));padding:16px 0}
  .related .recent-row .j-recent:first-child li{border-top:0;padding-top:0}
  .subscribe{grid-template-columns:minmax(0,1fr)}
  .subscribe form{flex-wrap:wrap}.subscribe input,.subscribe input[type="email"]{min-width:0;flex:1 1 150px}
}

/* the landing page on phones (its mockup folded at 860px): one column in the order of the page, the scene at full width,
   each index row's date above its title */
@media (max-width:860px){
  .mast-desk{grid-template-columns:minmax(0,1fr);align-items:start;padding:24px 0 20px}
  .mast h1{font-size:64px}
  .featured-spread{grid-template-columns:minmax(0,1fr);gap:28px}
  .j-feat h2{font-size:30px}
  .index-list a{grid-template-columns:minmax(0,1fr);gap:4px}
  .index-list .what{font-size:19px}
  .search{margin-left:0;width:100%}.search input{width:100%}
}
/* ================= touch targets on phones: every control owns a 44px square (DESIGN_SYSTEM; tools/check-access.mjs). Where a
   control's size is part of the look, an invisible ::after widens what a finger can hit and nothing moves ================= */
@media (max-width:760px){
  .topics button{min-height:44px;min-width:44px}
  .j-note .cta-row{row-gap:16px} /* the text link that wraps under the button keeps its tap area off the button's */
  .search input,.subscribe input{font-size:16px;min-height:44px}
  .contents summary{display:flex;align-items:center;min-height:44px}
  .crumb a,.j-read,.j-note .text,.mast-meta a{position:relative}
  .crumb a::after,.j-read::after,.j-note .text::after,.mast-meta a::after{content:'';position:absolute;inset:-14px -4px}
}
