/* ========== tokens (light, warm — navy/brass finance palette) ========== */
:root{
  --bg:        #faf9f5;
  --paper:     #ffffff;
  --ink:       #14140f;
  --ink-2:     #2a2a23;
  --muted:     #6b6b60;
  --muted-2:   #9a9a8e;
  --rule:      #e5e2d6;
  --rule-2:    #ecead0;

  --accent:    #a9822f;
  --accent-2:  #16355e;
  --highlight: #f3ecb4;

  --font-display: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-body:    "Newsreader", ui-serif, Georgia, serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --maxw: 760px;
  --maxw-wide: 1120px;
}

*,*::before,*::after{ box-sizing:border-box; }
html, body { margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  font-variation-settings: "opsz" 16;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection{ background: var(--highlight); color: var(--ink); }
a{ color: inherit; }
a:hover{ color: var(--accent); }

/* ========== sticky nav ========== */
.nav{
  position:sticky; top:0; z-index:60;
  background: rgba(250,249,245,0.88);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid var(--rule);
}
.nav-inner{
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 14px 28px;
  display:flex; align-items:center; justify-content:space-between;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.crumbs{
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crumbs a{ color: var(--muted); text-decoration: none; }
.crumbs a:hover{ color: var(--ink); }
.crumbs .sep{ color: var(--muted-2); margin: 0 4px; }
.crumbs .here{ color: var(--ink); }
.nav-right{
  flex-shrink: 0;
  display:flex; align-items:center; gap: 18px;
  white-space: nowrap;
}
.nav-right .dot{
  display:inline-block; width:6px; height:6px; border-radius:50%;
  background: var(--accent); margin-right: 6px; vertical-align: middle;
}
@media (max-width: 760px){
  .nav-right > span{ display:none; }
}
@media (max-width: 498px){
  .nav-inner{ flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 16px; }
}

/* ========== layout ========== */
.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.container-wide{
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 28px;
}

/* ========== hero ========== */
.hero{
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--rule);
}
.hero .kicker{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display:flex; align-items:center; gap: 12px;
}
.hero .kicker::before{
  content:""; width: 28px; height: 1.5px; background: var(--accent);
}
.hero h1{
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(42px, 6.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  margin: 0 0 28px;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 em{
  font-style: normal;
  color: var(--accent);
}
.hero .standfirst{
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0 0 36px;
  font-variation-settings: "opsz" 20;
}
.meta-row{
  display:flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  padding-bottom: 8px;
}
.meta-row b{ color: var(--ink); font-weight: 500; }
.meta-row .key{ color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.14em; margin-right: 6px; }

/* ========== photo figures ========== */
/* Sized as supporting evidence, not full-bleed hero banners — eye-tracking
   research (NN/g) finds large top-of-article cover images get scrolled past
   without engagement; a smaller inline figure reads as part of the argument. */
.fig-photo{
  max-width: 480px;
  margin: 40px auto;
}
.fig-photo img{
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.fig-photo figcaption{
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}
.fig-photo figcaption .cap{ max-width: 48ch; margin: 0 auto; display: block; }

/* ========== quick answer ========== */
.quick{
  margin: 56px 0 40px;
  padding: 28px 32px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  position: relative;
}
.quick .tag{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.quick p{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* ========== TOC ========== */
.toc{
  margin: 40px 0 64px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.toc h2{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 500;
}
.toc ol{
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
  column-count: 2;
  column-gap: 32px;
}
.toc li{
  counter-increment: toc;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  break-inside: avoid;
}
.toc li a{
  color: var(--ink-2);
  text-decoration: none;
  display: flex;
  gap: 14px;
  padding: 2px 0;
}
.toc li a:hover{ color: var(--accent); }
.toc li a::before{
  content: counter(toc, decimal-leading-zero);
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  width: 22px;
}
@media (max-width: 640px){
  .toc ol{ column-count: 1; }
}

/* ========== article body ========== */
article p{
  margin: 0 0 22px;
  max-width: 68ch;
}
article p b{ font-weight: 600; color: var(--ink); }
article p i, article p em{ font-style: italic; color: var(--ink-2); }
article p .hl{
  background: linear-gradient(180deg, transparent 62%, var(--highlight) 62%);
  padding: 0 2px;
}
article p .term{
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(0,0,0,0.04);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--ink);
}

section.chapter{
  padding: 56px 0 16px;
  scroll-margin-top: 80px;
}
section.chapter + section.chapter{
  border-top: 1px solid var(--rule);
}
section.chapter > .container > .num{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
section.chapter h2{
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 18px;
  color: var(--ink);
  text-wrap: balance;
}
section.chapter .summary{
  font-family: var(--font-body);
  font-size: 17px;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--rule);
  max-width: 65ch;
  line-height: 1.6;
}

article ul, article ol{
  padding-left: 24px;
  margin: 0 0 22px;
}
article ul li, article ol li{
  margin-bottom: 8px;
  max-width: 64ch;
}
article ul li::marker{ color: var(--accent); }
article ol li::marker{ color: var(--muted-2); font-family: var(--font-mono); font-size: 0.9em; }

/* inline code / terms */
p code, li code{
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(0,0,0,0.05);
  padding: 1.5px 6px;
  border-radius: 3px;
  color: var(--ink);
  border: 1px solid var(--rule);
}

/* ========== callouts ========== */
.callout{
  margin: 40px 0;
  padding: 24px 0 4px;
  background: transparent;
  display: block;
  position: relative;
  border-top: 1.5px solid var(--accent);
}
.callout > .lbl{
  position: absolute;
  top: -9px;
  left: 0;
  background: var(--bg);
  padding: 0 12px 0 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.callout.warn > .lbl{ color: var(--accent-2); }
.callout p{
  margin: 0 !important;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  line-height: 1.45;
  color: var(--ink);
  max-width: 56ch;
  letter-spacing: -0.005em;
  font-weight: 400;
}
.callout p + p{ margin-top: 14px !important; }
.callout p b{
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.88em;
}
@media (max-width: 640px){
  .callout p{ font-size: 18px; }
}

/* ========== FAQ ========== */
.faq{
  padding: 64px 0 32px;
  border-top: 1px solid var(--rule);
}
.faq h2{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 42px;
  margin: 0 0 28px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.faq details{
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}
.faq details summary{
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  display:flex; justify-content:space-between; align-items: center;
  gap: 16px;
  padding: 6px 0;
}
.faq details summary::-webkit-details-marker{ display: none; }
.faq details summary::after{
  content: "+";
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 22px;
  color: var(--accent);
  transition: transform .25s;
  flex-shrink: 0;
}
.faq details[open] summary::after{ transform: rotate(45deg); }
.faq details p{
  margin: 12px 0 6px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.75;
  max-width: 68ch;
}

/* ========== footer ========== */
footer.site{
  margin-top: 80px;
  padding: 56px 0 40px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
footer.site .ft{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display:flex; justify-content:space-between; gap: 24px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
footer.site .ft a{
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
footer.site .ft a:hover{ color: var(--accent); border-color: var(--accent); }
footer.site .ft .col{ display:flex; flex-direction:column; gap: 6px; }
footer.site .ft .col .k{ color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; }

/* related card */
.related{
  margin: 56px 0 0;
  padding: 24px 28px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  text-decoration: none; color: inherit;
  transition: border-color .2s, transform .15s;
}
.related:hover{ border-color: var(--accent); transform: translateY(-1px); }
.related .lbl{
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.related .ttl{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}
.related .arrow{
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

/* reading progress bar */
.progress{
  position: fixed; left: 0; top: 0; height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 70;
  transition: width .1s linear;
}

@media (max-width: 640px){
  body{ font-size: 16px; line-height: 1.8; }
  .hero{ padding: 56px 0 40px; }
  section.chapter{ padding: 44px 0 8px; }
  .quick{ padding: 22px 20px; }
  .quick p{ font-size: 18px; }
  .related{ flex-direction: column; align-items: flex-start; }
}

/* ========== language toggle ========== */
.lang-toggle{
  display:flex;
  align-items:center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
}
.lang-toggle a{
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.lang-toggle a:hover{ color: var(--ink); }
.lang-toggle a.active{
  background: var(--ink);
  color: var(--paper);
}

@media print{
  .nav, .progress, footer.site{ display: none !important; }
  body{ background: white; color: black; }
}
