@import url("left-nav.css");
/* ============================================================
   thinking.css — publishing visual system for the Thinking section.
   Built on tokens.css. No new visual language: Inter + Source Serif,
   blueprint accents, hairlines, generous space. One stylesheet so the
   article template has a single place to evolve.
   ============================================================ */

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{margin:0;background:var(--paper);color:var(--ink);font-family:'Inter',system-ui,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body{font-size:19px;line-height:1.62}
a{color:inherit;text-decoration:none}
.wrap{max-width:1200px;margin:0 auto;padding:0 40px}
@media (max-width:700px){.wrap{padding:0 22px}}

/* ---- Reading progress ---- */
.progress{position:fixed;top:0;left:0;height:2px;width:0;background:var(--blueprint);z-index:50;transition:width .08s linear}

/* Global nav and footer are inherited from system.css, the shared site chrome,
   so the header and footer are identical across Thinking and non-Thinking pages
   (including the mobile menu toggle). Do not redefine them here. */

/* ---- Library landing (hub and the four libraries) ---- */
.lib-hero{padding:72px 0 8px}
.crumbs{font-family:var(--font-system);font-weight:500;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:22px}
.crumbs a:hover{color:var(--accent)}
.crumbs .sep{margin:0 8px;color:var(--line-2)}
.lib-eyebrow{font-family:var(--font-system);font-weight:600;font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);margin-bottom:18px}
.lib-hero h1{font-family:var(--font-system);font-weight:700;font-size:clamp(44px,6.4vw,84px);line-height:1.04;letter-spacing:-.022em;margin:0 0 24px;max-width:none;text-wrap:balance}
.lib-hero .deck{font-family:var(--font-meaning);font-style:italic;font-size:clamp(21px,2.4vw,29px);line-height:1.45;color:var(--ink-2);max-width:54ch;margin:0}
.lib-intro{padding:50px 0 0}
.lib-intro p{font-size:19px;line-height:1.7;color:var(--ink-light);max-width:66ch;margin:0;text-wrap:pretty}
.lib-intro em{font-style:italic;color:var(--ink)}
.lib{padding:60px 0 0}
/* Breathing room before the dark contact block: the paper section that leads into
   it gets a generous bottom margin so nothing floats against the blue. */
.lib:has(+ .closing){padding-bottom:88px}
.lib-head{font-family:var(--font-system);font-weight:600;font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);margin:0 0 6px}
.lib-note{font-family:var(--font-system);font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:0 0 24px}
.pl-list{border-top:1px solid var(--line-strong)}
.pl-row{display:grid;grid-template-columns:56px 1fr auto;gap:28px;align-items:baseline;padding:28px 0;border-bottom:1px solid var(--line);transition:padding .2s ease,background .2s ease}
a.pl-row:hover{padding-left:16px;padding-right:16px;background:rgba(57,62,112,.06)}
.pl-num{font-family:var(--font-system);font-weight:500;font-size:13px;letter-spacing:.12em;color:var(--accent);padding-top:9px}
.pl-title{font-family:var(--font-system);font-weight:700;font-size:clamp(21px,2.3vw,29px);line-height:1.14;letter-spacing:-.014em;color:var(--ink);text-wrap:balance}
.pl-meta{font-family:var(--font-system);font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-top:9px}
.pl-sum{font-size:16px;line-height:1.56;color:var(--ink-light);margin-top:7px;max-width:62ch;text-wrap:pretty}
.pl-go{font-family:var(--font-system);font-weight:600;font-size:14px;color:var(--accent);white-space:nowrap;padding-top:11px}
.pl-row--soon .pl-title{color:var(--ink-light)}
.pl-row--soon .pl-go{color:var(--muted);font-weight:500}
@media (max-width:700px){.pl-row{grid-template-columns:40px 1fr;gap:14px}.pl-go{grid-column:2;padding-top:4px}}
.endnote{margin-top:8px;border-top:1px solid var(--line-strong);padding:40px 0 0}
.endnote p{font-family:var(--font-meaning);font-style:italic;font-size:clamp(18px,2vw,24px);line-height:1.4;color:var(--ink);max-width:52ch;margin:0}

/* ---- Article: sticky reference rail + content ---- */
.ref-layout{display:grid;grid-template-columns:240px 1fr;gap:68px;padding:56px 40px 56px;max-width:1200px;margin:0 auto;align-items:start}
.ref-rail{position:sticky;top:92px;align-self:start}
@media (max-width:980px){
  .ref-layout{grid-template-columns:1fr;gap:0;padding:30px 22px 44px}
  .ref-content{order:1}
  .ref-rail{order:2;position:static;top:auto;margin-top:48px;padding-top:30px;border-top:1px solid var(--line-strong)}
  .ref-rail .ref-back,.ref-rail .ref-here,.ref-rail .ref-pager{display:none}
}
.ref-back{display:inline-flex;align-items:center;gap:7px;font-family:var(--font-system);font-weight:600;font-size:13px;letter-spacing:.04em;color:var(--accent);margin-bottom:24px}
.ref-layer{font-family:var(--font-system);font-weight:600;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.ref-here{font-family:var(--font-meaning);font-style:italic;font-size:20px;line-height:1.25;color:var(--ink);margin-bottom:22px}
.ref-list{border-top:1px solid var(--line);padding-top:8px;margin-bottom:22px}
.ref-list a,.ref-list span{display:flex;gap:12px;padding:8px 0;font-family:var(--font-system);font-size:14px;line-height:1.35;color:var(--ink-light);border-bottom:1px solid rgba(19,21,63,.06)}
.ref-list a:last-child,.ref-list span:last-child{border-bottom:0}
.ref-list a:hover{color:var(--ink)}
.ref-list a.here{color:var(--accent);font-weight:600}
.ref-list span{color:var(--muted)}
.ref-list .rn{color:var(--muted);font-weight:500;font-size:12px;letter-spacing:.08em;flex:0 0 auto;padding-top:2px}
.ref-pager{display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding-top:16px;font-family:var(--font-system);font-weight:600;font-size:13px}
.ref-pager a{color:var(--accent)}
.ref-pager a.disabled{color:var(--muted);pointer-events:none}

/* The article column. Reading elements hold a ~66ch measure inside it; structural
   and emphasis elements (the metadata rule, figures, pull quotes) break to its full
   width. Two measures, composed on purpose, rather than one container for everything. */
.ref-content{max-width:800px;padding-bottom:24px}
.art-eyebrow{font-family:var(--font-system);font-weight:600;font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);margin-bottom:18px}
/* Title: an editorial object, free to use the full article measure. No width cap, so
   short titles set on one line instead of stacking; balance handles longer ones. */
.art-title{font-family:var(--font-system);font-weight:700;font-size:clamp(36px,4.8vw,58px);line-height:1.06;letter-spacing:-.021em;margin:0 0 20px;max-width:none;text-wrap:balance;hyphens:none;overflow-wrap:break-word}
.art-sub{font-family:var(--font-meaning);font-style:italic;font-size:clamp(20px,2.2vw,27px);line-height:1.42;color:var(--ink-2);margin:0 0 30px;max-width:48ch;text-wrap:balance}
.art-meta{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:baseline;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0;margin:0 0 42px;font-family:var(--font-system);font-size:12px;font-weight:500;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.art-meta .m b{color:var(--ink);font-weight:600}
.art-meta .m.series b{color:var(--accent)}
/* First optical center: the thesis. The one ruled serif element, held at reading
   measure, with a long pause after it before the expansion begins. */
.art-obs{font-family:var(--font-meaning);font-style:italic;font-weight:400;font-size:clamp(22px,2.5vw,30px);line-height:1.4;color:var(--ink);border-left:2px solid var(--accent);padding-left:30px;margin:0 0 52px;max-width:46ch;text-wrap:balance}
.art-body p{font-size:19px;line-height:1.7;color:var(--ink-light);margin:0 0 22px;max-width:66ch;text-wrap:pretty}
.art-body strong{color:var(--ink);font-weight:600}
.art-body em{font-style:italic}
/* Section heading: a long breath before the turn into realization, modest after. */
.art-h2{font-family:var(--font-system);font-weight:700;font-size:clamp(21px,2.3vw,27px);line-height:1.2;letter-spacing:-.01em;color:var(--ink);margin:60px 0 16px;max-width:32ch;text-wrap:balance}
/* Second optical center: the pull quote. It breaks the reading measure to the full
   column, set large with silence around it, so the eye rests and the page turns. A
   single quiet blueprint rule marks it as a distinct editorial voice; whitespace, not
   the rule, carries most of the separation. Never a narrow tower of words. */
.art-pull{font-family:var(--font-meaning);font-style:italic;font-weight:400;font-size:clamp(26px,3.2vw,38px);line-height:1.22;letter-spacing:-.014em;color:var(--ink);border-left:2px solid var(--accent);padding-left:32px;margin:60px 0;max-width:none;text-wrap:balance}
.art-fn-ref{font-size:.7em;vertical-align:super;line-height:0;color:var(--accent);font-weight:600;padding:0 1px}
.art-footnotes{margin-top:48px;padding-top:22px;border-top:1px solid var(--line)}
.art-footnotes ol{margin:0;padding-left:20px}
.art-footnotes li{font-size:15px;line-height:1.62;color:var(--ink-2);margin-bottom:10px;max-width:62ch;text-wrap:pretty}
.art-footnotes li:target{color:var(--ink)}

/* ---- Figure (editorial asset, click to enlarge) ---- */
.lib-figwrap{max-width:880px;margin:0 auto}
.fig{margin:34px 0;border:1px solid var(--line);border-radius:8px;background:var(--paper-2);overflow:hidden}
.fig.zoomable{cursor:zoom-in}
.fig img,.fig svg{display:block;width:100%;height:auto}
/* Animated plates (Field Notes video figures) are wide editorial illustrations,
   not media players. A fixed 16:9 STAGE (a plain box, so the ratio never depends
   on how a browser reads the video's own dimensions) holds the clip; the video
   fills it and is shown in full via object-fit:contain — the entire composition
   is always visible, never cropped, centred, and it scales to the content column.
   Rounded corners + border + spacing come from the .fig frame. */
.fig-media{position:relative;width:100%;aspect-ratio:16/9;background:var(--paper-2);overflow:hidden}
.fig-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;display:block;background:var(--paper-2)}
.fig-motion{cursor:zoom-in}
.fig figcaption{display:flex;gap:14px;align-items:baseline;padding:14px 22px;border-top:1px solid var(--line);font-family:var(--font-system);font-size:13px;color:var(--ink-2)}
.fig figcaption .fk{font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);flex:0 0 auto}
.fig figcaption .ft{color:var(--ink);font-weight:600}
.fig figcaption .fz{margin-left:auto;color:var(--muted);flex:0 0 auto}
.fig .fig-note{padding:0 22px 14px;font-family:var(--font-system);font-size:13px;line-height:1.5;color:var(--muted)}
.fig-modal{position:fixed;inset:0;z-index:60;background:rgba(19,21,63,.86);display:none;align-items:center;justify-content:center;padding:5vw;cursor:zoom-out}
.fig-modal.open{display:flex}
.fig-modal img{max-width:min(1000px,92vw);max-height:90vh;height:auto;background:var(--paper);border-radius:8px;padding:24px}
.fig-modal .x{position:absolute;top:22px;right:26px;color:rgba(252,252,253,.8);font-family:var(--font-system);font-size:13px;letter-spacing:.14em;text-transform:uppercase}

/* ---- Related reading: a curated index, part of the publication, not appended UI ---- */
.related{margin-top:60px;border-top:1px solid var(--line-strong);padding-top:30px}
.related-h{font-family:var(--font-system);font-weight:600;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);margin-bottom:18px}
.related-list{border-top:1px solid var(--line)}
.related-list a{display:flex;gap:18px;align-items:baseline;padding:17px 0;border-bottom:1px solid var(--line);font-family:var(--font-system);font-size:17px;font-weight:500;line-height:1.3;color:var(--ink)}
.related-list a:hover{color:var(--accent)}
.related-list a .rk{font-size:11px;font-weight:600;letter-spacing:.13em;text-transform:uppercase;color:var(--muted);flex:0 0 122px;padding-top:3px}
.related-list a .rg{margin-left:auto;color:var(--muted);font-weight:500;font-size:13px;white-space:nowrap;opacity:.6;transition:color .2s ease,opacity .2s ease}
.related-list a:hover .rg{color:var(--accent);opacity:1}

/* ---- Article footer: prev / next / return ---- */
.art-foot{display:flex;justify-content:space-between;gap:20px;margin-top:50px;border-top:1px solid var(--line);padding-top:24px}
.art-foot a{font-family:var(--font-system);font-weight:600;font-size:15px;color:var(--accent);max-width:46%}
.art-foot a.disabled{color:var(--muted);pointer-events:none}
.art-foot .ek{display:block;font-weight:500;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:5px}
.art-return{margin-top:30px;font-family:var(--font-system);font-weight:600;font-size:14px;color:var(--accent)}

/* ---- Persistent reading bar: sideways (prev/next) + upward (section, Thinking) ---- */
body:has(.read-bar){padding-bottom:58px}
.read-bar{position:fixed;left:0;right:0;bottom:0;z-index:25;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;padding:9px clamp(16px,4vw,44px);background:rgba(252,252,253,.85);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:1px solid rgba(19,21,63,.08);transition:transform .35s ease,opacity .35s ease}
.read-bar.tucked{transform:translateY(112%);opacity:0;pointer-events:none}
.read-bar .rb-side{display:flex;flex-direction:column;min-width:0;font-family:var(--font-system);font-size:14px;font-weight:600;color:var(--accent)}
.read-bar .rb-next{align-items:flex-end;text-align:right}
.read-bar .rb-side.disabled{color:var(--muted);pointer-events:none}
.read-bar .rb-k{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.read-bar .rb-t{max-width:30ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.read-bar .rb-center{display:flex;align-items:center;gap:9px;font-family:var(--font-system);font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.read-bar .rb-center a{color:var(--ink-2)}
.read-bar .rb-center a:hover{color:var(--accent)}
.read-bar .rb-dot{color:var(--line-2)}
@media (max-width:700px){.read-bar{gap:10px;padding:7px 16px}.read-bar .rb-center{display:none}.read-bar .rb-t{max-width:20ch;font-size:13px}}
@media print{.read-bar{display:none}}

/* ---- Mobile reading: its own optical judgment, not a collapsed desktop ---- */
@media (max-width:700px){
  .lib:has(+ .closing){padding-bottom:60px}
  .lib-hero{padding:46px 0 4px}
  .lib-hero h1{font-size:clamp(33px,9vw,46px);line-height:1.08}
  .lib-hero .deck{font-size:20px;line-height:1.42}
  .lib-intro{padding:38px 0 0}
  .lib-intro p{font-size:17.5px;line-height:1.66}
  .art-title{font-size:clamp(31px,8.6vw,41px);line-height:1.08;margin-bottom:16px}
  .art-sub{font-size:20px;line-height:1.4;margin-bottom:24px}
  .art-meta{gap:7px 16px;font-size:11px;margin-bottom:34px}
  .art-obs{font-size:21px;line-height:1.42;padding-left:18px;margin-bottom:36px}
  .art-body p{font-size:17.5px;line-height:1.68;margin-bottom:20px}
  .art-h2{font-size:21px;margin:46px 0 13px}
  .art-pull{font-size:25px;line-height:1.3;margin:40px 0;max-width:none;padding-left:20px}
  .related{margin-top:48px;padding-top:26px}
  .related-list a{flex-wrap:wrap;gap:3px 14px;padding:15px 0;font-size:16px}
  .related-list a .rk{flex-basis:100%;padding-top:0}
  .related-list a .rg{margin-left:0}
  .art-foot{flex-direction:column;gap:18px}
  .art-foot a{max-width:100%}
}

.reveal{opacity:0;transform:translateY(14px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}html{scroll-behavior:auto}}
