/* The Third Intelligence: one visual layer for the site, taken from the book's cover (13 Nov 2026).
   Night is the cover's sky and paper its title white. Gold speaks for the human (Seth), blue for the AIs (Noēsis).
   Rules: the cover is the one loud thing; lines, not boxes; tracked capitals only where the cover has them
   (the series line, the author, who said a quotation); one centred column of 75rem that its content fills. */

:root{
  --night:#05060b; --night-2:#0b0d15; --night-3:#131622;
  --paper:#f4f1e8; --ink:#d8d4ca; --ink-2:#a6a298; --ink-3:#7b7870;
  --seth:#e2bf7a; --seth-deep:#b8944a; --noesis:#a6d2f6;
  --hair:rgba(244,241,232,.16); --hair-2:rgba(244,241,232,.08);
  --serif:'Source Serif 4',Georgia,'Times New Roman',serif;
  --sans:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --wrap:75rem; --gutter:clamp(16px,4vw,40px);
  /* the names the older page styles use, pointed at the cover's colours */
  --bg:var(--night); --bg2:var(--night-2); --bg-card:var(--night-2); --bg-card-hover:var(--night-3);
  --text:var(--ink); --text-dim:var(--ink-2); --text-secondary:var(--ink-2); --text-muted:var(--ink-3);
  --dim:var(--ink); --muted:var(--ink-3);
  --gold:var(--seth); --gold-soft:#eed6a6; --gold-dim:var(--seth-deep); --gold-bg:rgba(226,191,122,.07);
  --blue:var(--noesis); --green:var(--noesis); --green-bg:rgba(166,210,246,.07);
  --border:var(--hair); --line:var(--hair); --radius:3px;
}

/* ---------------------------------------------------------------- the bar at the top of every page */
.site-bar{position:relative;z-index:210;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .8rem;
  width:100%;max-width:var(--wrap);margin-inline:auto;padding:.9rem var(--gutter)}
.sb-brand{display:inline-flex;align-items:center;gap:.6rem;color:var(--paper);text-decoration:none;
  font-family:var(--serif);font-size:.98rem;font-weight:600;line-height:1.2;border:0;min-width:0}
.sb-brand svg{width:1.7rem;height:auto;flex:none}
.sb-nav{order:3;display:flex;gap:1.4rem;width:100%;overflow-x:auto;scrollbar-width:none;
  font-family:var(--sans);font-size:.86rem;font-weight:500;white-space:nowrap}
.sb-nav::-webkit-scrollbar{display:none}
.sb-nav a{color:var(--ink-2);text-decoration:none;border:0;padding:.2rem 0}
.sb-nav a:hover,.sb-nav a:focus-visible{color:var(--paper)}
@media(min-width:56rem){
  .site-bar{gap:.5rem 1.4rem}
  .sb-brand{font-size:1.04rem}
  .sb-nav{order:0;width:auto;margin-left:auto;overflow:visible;gap:1.8rem}
}

/* the language menu: the page's own buttons or links stay in the markup, book.js puts one menu over them */
html body #lang-bar{position:static;top:auto;right:auto;z-index:auto;margin-left:auto;display:flex;flex-wrap:wrap;gap:.3rem;
  max-width:none;overflow:visible}
@media(min-width:56rem){html body #lang-bar{margin-left:0}}
html body #lang-bar .lang-btn{flex:0 0 auto;padding:.3rem .55rem;border:1px solid var(--hair);border-radius:3px;background:none;
  font:500 .72rem/1 var(--sans);letter-spacing:.04em;color:var(--ink-2);cursor:pointer;text-decoration:none}
html body #lang-bar .lang-btn.active{color:var(--paper);border-color:var(--seth)}
.has-lang-select #lang-bar .lang-btn{display:none}
.lang-select{-webkit-appearance:none;appearance:none;margin:0;padding:.42rem 1.7rem .42rem .65rem;border:1px solid var(--hair);border-radius:3px;
  background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23d8d4ca' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right .65rem center/.6rem;
  color:var(--paper);font:500 .8rem/1.2 var(--sans);cursor:pointer}
.lang-select:hover{border-color:var(--ink-2)}
.lang-select option{background:#0b0d15;color:#f4f1e8}
[dir=rtl] .lang-select{padding:.46rem .75rem .46rem 1.9rem;background-position:left .65rem center}

:where(a,button,select,input,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--noesis);outline-offset:3px}

/* ---------------------------------------------------------------- the foot of every page */
.site-foot{border-top:1px solid var(--hair-2);background:var(--night);color:var(--ink-2);
  font-family:var(--sans);font-size:.88rem;line-height:1.6;text-align:left;padding:0}
.sf-wrap{display:grid;gap:2.2rem 3rem;grid-template-columns:repeat(auto-fit,minmax(min(11rem,100%),1fr));
  max-width:var(--wrap);margin-inline:auto;padding:3.2rem var(--gutter) 1.4rem}
.sf-book{grid-column:1/-1}
@media(min-width:56rem){.sf-wrap{grid-template-columns:minmax(0,1.7fr) repeat(3,minmax(0,1fr))}.sf-book{grid-column:auto}}
.sf-book p{margin:.8rem 0 0;max-width:30rem;color:var(--ink-2);font-size:.88rem}
.sf-col{display:flex;flex-direction:column;gap:.55rem;align-items:flex-start}
.site-foot .sf-col a{color:var(--ink);text-decoration:none;opacity:1;border:0;margin:0}
.site-foot .sf-col a:hover{color:var(--seth)}
.sf-method{max-width:var(--wrap);margin:0 auto;padding:1.2rem var(--gutter) 2.6rem;color:var(--ink-3);font-size:.82rem}
.sf-method a{color:inherit}

/* ---------------------------------------------------------------- the invitation to subscribe, one look on every page */
#popup-overlay{position:fixed;inset:0;z-index:1000;align-items:center;justify-content:center;padding:1.25rem;
  background:rgba(5,6,11,.76);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.pop,.pop *{box-sizing:border-box}
.pop{position:relative;width:100%;max-width:27rem;padding:2.4rem 2rem 1.6rem;background:var(--night-2);border:1px solid var(--hair);
  border-top-color:var(--seth);border-radius:3px;box-shadow:0 30px 80px -20px #000;font-family:var(--sans);color:var(--ink);text-align:start}
.pop-close{position:absolute;top:.6rem;inset-inline-end:.6rem;display:grid;place-items:center;width:2.4rem;height:2.4rem;
  background:none;border:0;border-radius:3px;color:var(--ink-2);font-size:1rem;line-height:1;cursor:pointer}
.pop-close:hover{color:var(--paper)}
.pop .pop-title{margin:0 0 .6rem;padding-inline-end:1.8rem;font-family:var(--serif);font-size:1.4rem;font-weight:600;line-height:1.25;
  color:var(--paper);text-wrap:balance}
.pop .pop-text{margin:0 0 1.4rem;font-size:.95rem;line-height:1.6;color:var(--ink)}
.pop-row{display:flex;flex-wrap:wrap;gap:.5rem}
.pop-input{flex:1 1 12rem;min-width:0;padding:.8rem .9rem;background:var(--night);border:1px solid var(--hair);border-radius:3px;
  color:var(--paper);font:400 1rem/1.2 var(--sans)}
.pop-input::placeholder{color:var(--ink-3)}
.pop-input:focus{border-color:var(--seth);outline:0}
.pop-submit{flex:0 0 auto;padding:.8rem 1.2rem;background:var(--seth);color:#14120b;border:0;border-radius:3px;
  font:600 .95rem/1.2 var(--sans);cursor:pointer;white-space:nowrap}
.pop-submit:hover{background:#eccf93}
.pop-thanks{padding:.4rem 0;font-size:.95rem;color:var(--ink)}
.pop-or{display:flex;align-items:center;gap:.8rem;margin:1.2rem 0;font-size:.82rem;color:var(--ink-3)}
.pop-or::before,.pop-or::after{content:'';flex:1;height:1px;background:var(--hair-2)}
.pop .pop-wa{display:flex;align-items:center;justify-content:center;gap:.6rem;width:100%;padding:.75rem;border:1px solid var(--hair);
  border-radius:3px;color:var(--paper);font:500 .92rem/1.2 var(--sans);text-decoration:none}
.pop .pop-wa:hover{border-color:var(--ink-2)}
.pop .pop-note{margin:.9rem 0 0;font-size:.8rem;color:var(--ink-3);text-align:center}

/* ---------------------------------------------------------------- the homepage */
:where(.home) *,:where(.home) *::before,:where(.home) *::after{box-sizing:border-box;margin:0;padding:0}
html:has(.home){scroll-behavior:smooth;background:var(--night)}
@media(prefers-reduced-motion:reduce){html:has(.home){scroll-behavior:auto}}
body.home{margin:0;background:var(--night);color:var(--ink);font-family:var(--serif);font-size:1.0625rem;line-height:1.65;
  min-height:100vh;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.home ::selection{background:rgba(226,191,122,.3)}
.home .site-bar{position:absolute;left:0;right:0;top:0}

/* the hero is the cover: series line, title, rule, subtitle; the two orbs; the line at the foot and the author */
.home .hero{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:center;
  justify-content:space-between;gap:2rem;text-align:center;min-height:100vh;min-height:100svh;
  padding:clamp(6.6rem,13svh,8rem) var(--gutter) clamp(1.6rem,3.4svh,2.6rem)}
/* the two orbs stand in the band between the title and the line at the foot, as on the cover: their centre is 58.5% down the image */
.home .hero-art{position:absolute;z-index:-1;left:50%;top:59.5%;width:max(30rem,min(100vw,calc(100svh*1.42),1280px));transform:translate(-50%,-58.5%);pointer-events:none}
.home .hero-art img{display:block;width:100%;height:auto;
  -webkit-mask-image:radial-gradient(ellipse 50% 50% at 50% 58%,#000 40%,transparent 74%);
  mask-image:radial-gradient(ellipse 50% 50% at 50% 58%,#000 40%,transparent 74%)}
.home .hero-top,.home .hero-foot{display:flex;flex-direction:column;align-items:center}
.home .hero-series{font-family:var(--serif);font-weight:600;font-size:clamp(.78rem,1.3vw,.95rem);letter-spacing:.44em;text-transform:uppercase;
  color:var(--seth);margin:0 0 .8rem .44em}
.home .hero h1{font-size:clamp(2.6rem,min(7.4vw,9.2svh),4.9rem);font-weight:600;line-height:1.03;letter-spacing:-.012em;color:var(--paper);
  max-width:11.5ch;text-wrap:balance;text-shadow:0 2px 28px rgba(5,6,11,.75)}
.home .hero-rule{display:block;width:2.6rem;height:1px;background:var(--seth);margin:1.25rem 0 .9rem}
.home .hero-sub{font-size:clamp(1.02rem,1.8vw,1.3rem);color:var(--ink);text-shadow:0 1px 14px rgba(5,6,11,.9)}
.home .hero-line{font-style:italic;font-size:clamp(1.08rem,1.9vw,1.4rem);line-height:1.35;color:var(--paper);text-shadow:0 1px 16px rgba(5,6,11,.95),0 0 3px rgba(5,6,11,.8)}
.home .hero-line span{display:block}
@media(min-width:64rem){.home .hero-line span{display:inline}.home .hero-line span+span::before{content:' '}}
.home .hero-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.9rem 1.6rem;margin-top:1.5rem}
.home .btn{display:inline-flex;align-items:center;gap:.5rem;font-family:var(--sans);font-size:.98rem;font-weight:600;line-height:1.2;
  text-decoration:none;border-radius:3px;transition:background-color .15s,color .15s,border-color .15s}
.home .btn-primary{padding:.9rem 1.55rem;background:var(--seth);color:#14120b}
.home .btn-primary:hover{background:#eccf93}
.home .btn-ghost{padding:.9rem .2rem;color:var(--paper);border-bottom:1px solid transparent}
.home .btn-ghost::before{content:'';width:0;height:0;border-style:solid;border-width:.36rem 0 .36rem .6rem;border-color:transparent transparent transparent var(--noesis)}
[dir=rtl] .home .btn-ghost::before{transform:scaleX(-1)}
.home .btn-ghost:hover{border-bottom-color:var(--noesis)}
.home .hero-out{margin-top:1.3rem;font-family:var(--sans);font-size:.88rem;font-weight:500;color:var(--ink-2)}
.home .hero-buy{display:flex;flex-wrap:wrap;justify-content:center;gap:0 1.5rem;margin-top:.35rem;font-family:var(--sans);font-size:.88rem;font-weight:500}
.home .hero-buy a{padding:.3rem 0 .1rem;color:var(--seth);text-decoration:none;border-bottom:1px solid var(--seth-deep)}
.home .hero-buy a:hover{color:var(--gold-soft);border-bottom-color:var(--gold-soft)}
.home .hero-author{margin-top:1.5rem;font-family:var(--serif);font-weight:600;font-size:clamp(.8rem,1.3vw,.95rem);letter-spacing:.36em;
  text-transform:uppercase;color:var(--paper);margin-inline-start:.36em}

/* what the book is, beside the book itself */
.home .section{max-width:var(--wrap);margin-inline:auto;padding:clamp(4rem,9vw,7.5rem) var(--gutter)}
.home .about{display:grid;gap:3rem;align-items:center}
@media(min-width:56rem){.home .about{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:clamp(3rem,6vw,6rem)}}
.home .section h2,.home .chapters-header h2{font-size:clamp(1.75rem,3.5vw,2.75rem);font-weight:600;line-height:1.14;letter-spacing:-.008em;
  color:var(--paper);text-wrap:balance}
.home .about h2{margin-bottom:1.6rem}
.home .about p{font-size:1.14rem;line-height:1.7;color:var(--ink);margin-bottom:1.15rem}
.home .about p:last-child{margin-bottom:0;font-size:.98rem;color:var(--ink-2)}
.home .about-cover{justify-self:center;width:min(100%,21rem)}
.home .about-cover img{display:block;width:100%;height:auto;border-radius:2px;
  box-shadow:0 0 0 1px var(--hair-2),0 28px 60px -18px #000,0 0 90px -30px rgba(166,210,246,.28)}

/* watch and listen, side by side */
.home .media{display:grid;gap:3.2rem;max-width:var(--wrap);margin-inline:auto;padding:0 var(--gutter) clamp(4rem,9vw,7.5rem)}
@media(min-width:56rem){.home .media{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:clamp(3rem,5vw,5rem);align-items:start}}
.home .watch-section,.home .listen-section{min-width:0}
.home .media h2{font-size:clamp(1.4rem,2.3vw,1.8rem);font-weight:600;line-height:1.2;color:var(--paper);margin-bottom:.55rem}
.home .media section>p{color:var(--ink-2);font-size:1rem;line-height:1.6;margin-bottom:1.4rem}
.home .video-wrapper{position:relative;padding-bottom:56.25%;height:0;overflow:hidden;border-radius:2px;background:#000;box-shadow:0 0 0 1px var(--hair-2)}
.home .video-wrapper video,.home .video-wrapper iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}
.home .watch-link{margin-top:.9rem;font-family:var(--sans);font-size:.9rem}
.home .watch-link a{color:var(--seth);text-decoration:underline;text-decoration-color:rgba(226,191,122,.4);text-underline-offset:.2em}
.home .watch-link a:hover{text-decoration-color:currentColor}
.home .audio-card{padding:1.2rem 0 0;border-top:1px solid var(--hair)}
.home .audio-lang{font-family:var(--sans);font-size:.8rem;font-weight:500;color:var(--noesis);margin-bottom:.3rem}
.home .audio-title{font-size:1.02rem;line-height:1.4;color:var(--paper);margin-bottom:1rem}
.home .audio-card audio{width:100%;height:40px;accent-color:var(--seth);color-scheme:dark}

/* the chapters, set like the contents page of the book */
.home .chapters-section{background:var(--night-2);border-block:1px solid var(--hair-2);padding:clamp(4rem,9vw,7rem) 0}
.home .chapters-inner{max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gutter)}
.home .chapters-header{text-align:center;margin-bottom:clamp(2.2rem,5vw,3.6rem)}
.home .chapters-header p{margin:1rem auto 0;max-width:56rem;color:var(--ink-2);font-size:1.05rem}
.home .chapters-grid{columns:3 17.5rem;column-gap:clamp(2rem,4vw,3.5rem);border-top:1px solid var(--hair)}
.home .chapter-card{display:grid;grid-template-columns:6.4rem minmax(0,1fr);align-items:baseline;gap:.9rem;break-inside:avoid;
  padding:.95rem 0;border-bottom:1px solid var(--hair-2);color:var(--ink);text-decoration:none;cursor:pointer}
.home .card-num{font-family:var(--sans);font-size:.78rem;font-weight:500;color:var(--seth);line-height:1.5}
.home .card-title{font-size:1.04rem;line-height:1.36;transition:color .15s}
.home .chapter-card:hover .card-title,.home .chapter-card:focus-visible .card-title{color:var(--paper)}
.home .chapter-card.inactive{opacity:.5}
.home .chapter-card[hidden]{display:none}      /* the Prologue card, in a book without one (scripts/site/apply_i18n_misc.py) */
.home .card-status{display:none}

/* one sentence, large */
.home .quote-section{max-width:var(--wrap);margin-inline:auto;padding:clamp(4.5rem,10vw,8rem) var(--gutter);text-align:center}
.home blockquote{max-width:48rem;margin-inline:auto;font-size:clamp(1.3rem,2.7vw,1.95rem);font-style:italic;line-height:1.42;color:var(--paper);text-wrap:balance}
.home blockquote cite{display:block;margin-top:1.5rem;font-family:var(--sans);font-size:.84rem;font-style:normal;font-weight:500;color:var(--ink-2)}

/* ---------------------------------------------------------------- the chapter pages
   The template keeps its own styles; these put the book's hand on them: the chapter opens like a chapter of the book
   (series line, title, short rule, the line under it), sections are named in the text face, lines stand in for boxes. */
body.chapter{background:var(--night);color:var(--ink);-webkit-font-smoothing:antialiased}
.chapter .header{border-bottom:0;padding:clamp(1.6rem,5vw,3.2rem) var(--gutter) clamp(2rem,4vw,2.8rem)}
.chapter .header-brand{font-family:var(--serif);font-weight:600;font-size:.8rem;letter-spacing:.42em;text-transform:uppercase;color:var(--seth);margin:0 0 1rem .42em}
.chapter .header-chapter{font-family:var(--sans);font-size:.92rem;font-weight:500;color:var(--ink-2);margin-bottom:.7rem}
.chapter .header h1{font-size:clamp(2rem,5.4vw,3.4rem);font-weight:600;line-height:1.08;letter-spacing:-.01em;color:var(--paper);max-width:24ch;margin:0 auto;text-wrap:balance}
.chapter .header h1 em{font-style:normal;color:inherit}
.chapter .header h1::after{content:'';display:block;width:2.6rem;height:1px;background:var(--seth);margin:1.3rem auto 1.1rem}
.chapter .header-subtitle{font-style:italic;font-weight:400;font-size:clamp(1.02rem,1.9vw,1.2rem);line-height:1.5;color:var(--ink);max-width:46rem}
.chapter .main{max-width:var(--wrap);padding:0 var(--gutter) 4rem}
.chapter .section{border-bottom:1px solid var(--hair-2);margin-bottom:3rem;padding-bottom:3rem}
.chapter .section-title{font-family:var(--serif);font-size:clamp(1.3rem,2.4vw,1.6rem);font-weight:600;letter-spacing:0;text-transform:none;color:var(--paper);line-height:1.2}
.chapter .section-desc{font-weight:400;font-size:1.02rem;color:var(--ink-2)}
.chapter .atomic-answer{border-left:1px solid var(--seth);border-radius:0;padding:.2rem 0 .2rem 1.2rem}
.chapter .atomic-answer p{font-size:1.04rem;color:var(--ink)}
.chapter .exercise-box{background:none;border:0;border-top:1px solid var(--seth);border-radius:0;padding:1.4rem 0 0}
/* the task's title is written in capitals in every language, so it is set as the cover sets its capitals: small, spaced, gold */
.chapter .exercise-title{font-family:var(--serif);font-size:.82rem;font-weight:600;letter-spacing:.2em;line-height:1.6;color:var(--seth)}
.chapter .exercise-box p,.chapter .exercise-box li{font-size:1.04rem;color:var(--ink)}
.chapter .quote-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(17rem,100%),1fr));gap:1.6rem 2.6rem}
.chapter .quote-card{background:none;border:0;border-left:1px solid var(--seth);border-radius:0}
.chapter .quote-card blockquote{font-size:1.12rem;color:var(--paper)}
.chapter .quote-card-share{color:var(--ink-2);border-color:var(--hair);border-radius:3px}
.chapter .resource-list{columns:2 22rem;column-gap:3.2rem}
.chapter .resource-item{break-inside:avoid;border-bottom:1px solid var(--hair-2)}
.chapter .resource-title{font-size:1.02rem}
.chapter .resource-note{font-size:.92rem;color:var(--ink-2)}
.chapter .thinker-pill,.chapter .persona-tab,.chapter .share-btn,.chapter .chat-window{border-radius:3px}
.chapter .llm-btn.claude,.chapter .llm-btn.chatgpt,.chapter .llm-btn.gemini,.chapter .llm-btn.perplexity{border-color:var(--hair)}
.chapter .story-box{background:none;border:0;border-top:1px solid var(--noesis);border-radius:0;padding:1.4rem 0 0}
.chapter .journey-next{border:0;border-block:1px solid var(--hair);border-radius:0;background:none;padding:2rem 1rem}
.chapter .journey-next:hover{background:var(--night-2);transform:none}
.chapter .journey-next-label{text-transform:none;letter-spacing:0;font-size:.88rem;color:var(--ink-2)}
.chapter .journey-next-title{font-size:clamp(1.3rem,2.6vw,1.7rem);font-weight:600;color:var(--paper)}
.chapter .journey-next-arrow{display:none}
/* on a wide screen the chapter opens with its summary and its task side by side, so the column is filled from the first line */
@media(min-width:60rem){
  .chapter .main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(2.5rem,5vw,4.5rem);align-items:start}
  .chapter .main>*{grid-column:1/-1;min-width:0}
  .chapter .main>.atomic-answer{grid-column:1;margin-bottom:3rem}
  .chapter .main>.atomic-answer+#try{grid-column:2}
}
.chapter .share-btn,.chapter .chapter-link,.chapter .react-btn{background:none;border-color:var(--hair);border-radius:3px}
.chapter .share-btn:hover,.chapter .chapter-link:hover,.chapter .react-btn:hover{border-color:var(--seth);color:var(--paper)}
.chapter .chapter-link-label,.chapter .persona-label{font-size:.8rem;font-weight:500;letter-spacing:0;text-transform:none;color:var(--ink-2)}
.chapter .react-btn{flex-direction:row;justify-content:center;padding:.8rem .6rem;font-size:.9rem;font-weight:500;color:var(--ink)}

/* ---------------------------------------------------------------- pages written by hand
   Explore, Privacy, the three printable sheets, Pilot Quest, the prologue and the video pages keep their own styles;
   these put the book's hand on them. The class on <body> says which kind of page it is. */
body.page,body.quest,body.stub{margin:0;padding:0;background:var(--night);color:var(--ink);-webkit-font-smoothing:antialiased}

/* the printable sheets: twenty-one things to try, the practices of chapter 20, the ledger of chapter 21 */
.sheet main{max-width:var(--wrap);margin-inline:auto;padding:clamp(1.8rem,5vw,3.4rem) var(--gutter) 4.5rem}
.sheet .back{display:inline-block;margin-bottom:1.5rem;font-size:.9rem;font-weight:500;letter-spacing:0;text-transform:none;color:var(--seth)}
.sheet .back:hover{color:var(--paper)}
.sheet h1{font-size:clamp(2rem,4.6vw,3rem);font-weight:600;line-height:1.1;letter-spacing:-.01em;color:var(--paper);text-wrap:balance;margin-bottom:0}
.sheet h1::after{content:'';display:block;width:2.6rem;height:1px;background:var(--seth);margin:1.3rem 0 1.2rem}
.sheet h1+p{font-size:1.1rem;line-height:1.6}
.sheet h2{font-size:clamp(1.3rem,2.4vw,1.6rem);font-weight:600;line-height:1.2;color:var(--paper);margin:3.2rem 0 1.2rem;padding-bottom:.7rem;
  border-bottom:1px solid var(--hair)}
.sheet h3{font-size:1.12rem;color:var(--paper)}
.sheet p,.sheet li{color:var(--ink);font-size:1.04rem}
.sheet main>ol,.sheet main>ul{columns:2 24rem;column-gap:clamp(2rem,4vw,3.5rem)}
.sheet li{break-inside:avoid}
.sheet li::marker{color:var(--seth)}
.sheet th{font-size:.84rem;font-weight:600;letter-spacing:0;text-transform:none;color:var(--seth)}
.sheet th,.sheet td{border-bottom-color:var(--hair)}
.sheet main a{color:var(--seth)}
.sheet .note{color:var(--ink-2);font-size:.9rem;border-top:1px solid var(--hair-2);padding-top:1.4rem}
.sheet .task,.sheet .block{padding:1.4rem 0;border-bottom:1px solid var(--hair-2)}
.sheet .task h2{font-size:1.25rem;margin:0 0 .35rem;padding:0;border:0}
.sheet .task h2 a{color:var(--paper)}
.sheet .task h2 a:hover{color:var(--seth)}
.sheet .task p:last-child,.sheet .block>:last-child{margin-bottom:0}
.sheet .time{margin:0 0 .5rem;font-size:.84rem;letter-spacing:0;color:var(--seth)}
.sheet .block h3{margin:0 0 .3rem}
.sheet pre.copy{background:var(--night-2);border:1px solid var(--hair);border-radius:3px;font-size:.92rem}
@media(min-width:56rem){
  .sheet main:has(>.task){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(2rem,4vw,3.5rem)}
  .sheet main:has(>.task)>*{grid-column:1/-1}
  .sheet main:has(>.task)>.task,.sheet main:has(>.task)>.block{grid-column:auto}
}

/* how to explore the graph */
.guide .topbar,.guide>footer:not(.site-foot){display:none}
.guide .wrap{max-width:var(--wrap);padding:0 var(--gutter)}
.guide .hero{padding:clamp(1.8rem,5vw,3.4rem) 0 0;text-align:center}
.guide .eyebrow{font-size:.92rem;font-weight:500;letter-spacing:0;text-transform:none;color:var(--ink-2);margin-bottom:.7rem}
.guide h1{font-style:normal;font-weight:600;font-size:clamp(2rem,4.6vw,3rem);line-height:1.1;letter-spacing:-.01em;color:var(--paper);text-wrap:balance}
.guide h1::after{content:'';display:block;width:2.6rem;height:1px;background:var(--seth);margin:1.3rem auto 1.1rem}
.guide .standfirst{margin:0 auto;max-width:56rem;font-size:1.15rem;font-weight:400;font-style:italic;line-height:1.5;color:var(--ink)}
.guide main{padding:2.4rem 0 5rem}
.guide h2{font-family:var(--serif);font-size:clamp(1.3rem,2.4vw,1.6rem);font-weight:600;line-height:1.2;letter-spacing:0;text-transform:none;
  color:var(--paper);margin:3.2rem 0 1.3rem;padding-bottom:.7rem;border-bottom:1px solid var(--hair)}
.guide h3{font-weight:600;font-size:1.2rem;line-height:1.3;color:var(--paper)}
.guide p{font-size:1.08rem;font-weight:400;color:var(--ink)}
.guide a.inline{color:var(--seth);border-bottom-color:rgba(226,191,122,.4)}
.guide .lede{font-size:1.3rem;font-weight:400;font-style:italic;line-height:1.5;color:var(--paper);border-left:1px solid var(--seth);padding-left:1.3rem}
.guide .key{gap:.6rem 1.8rem}
.guide .key-item{border:0;border-radius:0;padding:0;font-size:.92rem;color:var(--ink)}
.guide .route{display:block;margin:0;padding:.4rem 0 1.4rem}
.guide .route-num{display:block;width:auto;height:auto;border:0;border-radius:0;margin:0 0 .5rem;font-family:var(--serif);font-size:1.6rem;
  font-weight:600;line-height:1;color:var(--seth)}
.guide .callout{background:none;border:0;border-top:1px solid var(--noesis);border-radius:0;padding:1.5rem 0 0;margin-top:2.6rem}
.guide .callout .small{font-size:.95rem;color:var(--ink-2)}
.guide .cta{align-items:center;gap:.9rem 1.6rem}
.guide .btn{padding:.9rem 1.5rem;border:0;border-radius:3px;background:var(--seth);color:#14120b;font-size:.98rem;font-weight:600;letter-spacing:0;text-transform:none}
.guide .btn:hover{background:#eccf93}
.guide .btn.plain{background:none;color:var(--paper);padding-inline:.2rem}
.guide .btn.plain:hover{color:var(--seth);background:none}
@media(min-width:56rem){
  .guide main>.wrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:clamp(2rem,4vw,3.5rem)}
  .guide main>.wrap>*{grid-column:1/-1}
  .guide main>.wrap>.route{grid-column:auto}
}

/* privacy */
.legal main{max-width:var(--wrap);padding:clamp(1.8rem,5vw,3.4rem) var(--gutter) 4.5rem}
.legal h1{font-size:clamp(2rem,4.6vw,3rem);font-weight:600;line-height:1.1;letter-spacing:-.01em;color:var(--paper);text-align:center;text-wrap:balance}
.legal h1+p{text-align:center}
.legal .intro{max-width:56rem;margin:0 auto 3rem;text-align:center;color:var(--ink)}
.legal h2{font-family:var(--serif);font-size:clamp(1.3rem,2.4vw,1.6rem);font-weight:600;line-height:1.2;letter-spacing:0;text-transform:none;
  color:var(--paper);margin-top:3rem;padding-bottom:.7rem;border-bottom:1px solid var(--hair)}
.legal p,.legal li{color:var(--ink)}
.legal main a{color:var(--seth);border-bottom-color:rgba(226,191,122,.4)}
.legal .back{display:none}

/* Pilot Quest, built on the chapter page */
.quest .header-brand,.quest .section-icon,.quest>.footer{display:none}
.quest .header-tag{font-family:var(--sans);font-size:.92rem;font-weight:500;color:var(--ink-2)}
.quest .header h1 em{font-style:italic}
.quest .header-cta{border:0;border-radius:3px;background:var(--seth);color:#14120b;font-size:.98rem;font-weight:600;padding:.9rem 1.5rem}
.quest .header-cta:hover{background:#eccf93;color:#14120b}
.quest .header-cta .arrow{animation:none}
.quest .header-cta-note{font-size:.86rem;color:var(--ink-2)}
.quest .section-header{margin-bottom:1.3rem}
.quest .quote-card{padding:.2rem 0 .2rem 1.3rem}
.quest .quote-card .speaker{font-family:var(--serif);font-size:.78rem;font-weight:600;letter-spacing:.3em;color:var(--seth)}
.quest .section p,.quest .feature-list li,.quest .step-content,.quest .invitation-box li{font-size:1.04rem;color:var(--ink)}
.quest .feature-list li{border-bottom-color:var(--hair-2)}
.quest .feature-list li::before{width:5px;height:5px;top:1.3rem;background:var(--seth)}
.quest .step-num{width:auto;min-width:1.5rem;height:auto;border:0;border-radius:0;background:none;justify-content:flex-start;
  font-family:var(--serif);font-size:1.5rem;font-weight:600;line-height:1.3;color:var(--seth)}
.quest .step-content{padding-top:.3rem}
.quest .step-content code{border-radius:3px}
.quest .btn-download{border-radius:3px;background:var(--seth);color:#14120b}
.quest .btn-download:hover{background:#eccf93}
.quest .cta-note{color:var(--ink-2)}
.quest .invitation-box{background:none;border:0;border-top:1px solid var(--noesis);border-radius:0;padding:1.5rem 0 0}
.quest .invitation-box h3{color:var(--paper)}
.quest .links-list li{border-bottom-color:var(--hair-2)}
.quest .links-list .link-note{color:var(--ink-2)}
.quest .request-form label{font-size:.88rem;color:var(--ink)}
.quest .request-form input[type=email],.quest .request-form input[type=text],.quest .request-form select,.quest .request-form textarea{
  background:var(--night-2);border-color:var(--hair);border-radius:3px;color:var(--paper);font-size:1rem}
.quest .request-form .consent{font-size:.88rem;color:var(--ink-2)}
.quest .request-thanks{color:var(--noesis)}

/* the prologue, while it is being written */
body.stub{display:block;min-height:100vh}
.stub .container{max-width:42rem;margin:0 auto;padding:clamp(3.5rem,14vh,8rem) var(--gutter) clamp(4rem,14vh,8rem)}
.stub .act-label{font-family:var(--sans);font-size:.92rem;font-weight:500;letter-spacing:0;text-transform:none;color:var(--ink-2);margin-bottom:.7rem}
.stub h1{font-size:clamp(2rem,5.4vw,3.2rem);font-weight:600;line-height:1.08;letter-spacing:-.01em;color:var(--paper);margin-bottom:0}
.stub h1::after{content:'';display:block;width:2.6rem;height:1px;background:var(--seth);margin:1.3rem auto 1.1rem}
.stub .status{display:block;padding:0;border:0;font-family:var(--serif);font-size:1.1rem;font-style:italic;letter-spacing:0;text-transform:none;
  color:var(--seth);margin-bottom:1.4rem}
.stub .message{font-family:var(--serif);font-size:1.08rem;color:var(--ink)}
.stub .links{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:.8rem 1.4rem}
.stub .links a{padding:.8rem 1.3rem;border-color:var(--hair);border-radius:3px;color:var(--paper);font-size:.95rem;font-weight:500}
.stub .links a:hover{border-color:var(--seth)}
.stub .back{display:none}

/* the video pages */
body.video{padding:0}
.video main{max-width:var(--wrap);padding:clamp(1.2rem,3vw,2.2rem) var(--gutter) 4.5rem}
.video video{border-radius:2px;box-shadow:0 0 0 1px var(--hair-2)}
.video h1{font-size:clamp(1.9rem,4.4vw,2.8rem);font-weight:600;line-height:1.12;letter-spacing:-.01em;color:var(--paper);margin:2rem 0 1rem;text-wrap:balance}
.video .lead{color:var(--ink);font-size:1.08rem}
.video .actions{gap:.9rem 1.6rem;align-items:center;font-size:.98rem}
.video .actions a{padding:.9rem 1.5rem;border-radius:3px;background:var(--seth);color:#14120b;font-weight:600}
.video .actions a:hover{background:#eccf93}
.video .actions a.ghost{background:none;border:0;color:var(--paper);padding-inline:.2rem;font-weight:500}
.video .actions a.ghost:hover{color:var(--seth);background:none}
.video h2{font-size:clamp(1.3rem,2.4vw,1.6rem);font-weight:600;line-height:1.2;color:var(--paper);margin:3rem 0 1.2rem;padding-bottom:.7rem;
  border-bottom:1px solid var(--hair)}
.video p{color:var(--ink);font-size:1.04rem}
.video p strong{color:var(--seth);font-weight:600}
.video .note{color:var(--ink-2);font-size:.9rem}

/* the knowledge graph: an app on one screen, with a header of its own, in the book's colours */
body.graph{background:var(--night);color:var(--ink)}
.graph header{padding:.75rem var(--gutter);border-bottom-color:var(--hair-2);gap:.6rem 1rem}
.graph .header-brand{font-family:var(--serif);font-size:.7rem;font-weight:600;letter-spacing:.36em;color:var(--seth)}
.graph .header-brand a{color:inherit}
.graph header h1{font-family:var(--serif);font-size:1.3rem;font-weight:600;letter-spacing:0;color:var(--paper);text-transform:lowercase;margin-top:.15rem}
.graph header h1::first-letter{text-transform:uppercase}
.graph header p{font-size:.8rem;letter-spacing:0;color:var(--ink-2)}
.graph .header-action{gap:.5rem}
.graph .header-action a,.graph .header-action a.hdr-quiet{margin:0;padding:.42rem .8rem;border:1px solid var(--hair);border-radius:3px;
  font-family:var(--sans);font-size:.8rem;font-weight:500;letter-spacing:0;text-transform:none;color:var(--paper)}
.graph .header-action a.hdr-quiet{color:var(--ink-2)}
.graph .header-action a:hover,.graph .header-action a.hdr-quiet:hover{border-color:var(--seth);color:var(--paper);background:none}
html body.graph #lang-bar{margin:0;flex-wrap:nowrap}
.graph #info,.graph #search,.graph #results{border-color:var(--hair);border-radius:3px}
.graph #info{background:rgba(11,13,21,.96)}
.graph #search{background:rgba(11,13,21,.92);color:var(--paper)}
.graph #results{background:rgba(11,13,21,.98)}
.graph .res{border-bottom-color:var(--hair-2)}
.graph .res:hover,.graph .res.sel{background:var(--night-3)}
.graph .leg-item,.graph .group-tag,.graph .info-action a{border-radius:3px}
.graph .leg-item{color:var(--ink-2)}
.graph .info-desc{color:var(--ink)}
.graph .info-action a{border-color:var(--hair);color:var(--seth);text-transform:none;letter-spacing:0;font-size:.8rem}
.graph #hint{color:var(--ink-3)}

/* Russian words are longer than a quarter of a phone: the four reactions go two by two below 35rem (14 Nov 2026) */
@media(max-width:35rem){html[lang="ru"] .chapter .react-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media print{
  .site-bar,.site-foot,#popup-overlay,#sn-consent{display:none!important}
  body.sheet{background:#fff;color:#111}
  .sheet main{display:block;padding:0}
  .sheet h1,.sheet h2,.sheet h3,.sheet p,.sheet li,.sheet .task h2 a,.sheet .time{color:#111}
  .sheet h2,.sheet .task,.sheet .block{border-color:#bbb}
  .sheet main>ol,.sheet main>ul{columns:1}
  .sheet .back,.sheet .note{display:none}
  .sheet pre.copy{background:#fff;color:#111;border-color:#bbb}
}
