/* matthewlaird.com. Generated by research/_build/build_matthewlaird_site_v06.py: edit the script, not this file.
   Palette and type from The OG Investor cover. Plain CSS, mobile first. */
:root {
  --navy: #101c2c; --navy-deep: #0b1522; --panel: #14233a; --panel-2: #1a2c46;
  --line: #22344e; --line-2: #314a6b;
  --amber: #e0a526; --amber-hi: #efb73c; --amber-ink: #101c2c; --amber-dk: #7a5306; --amber-mid: #9a6a0c;
  --cream: #f4f1ea; --paper: #f4f1ea; --paper-2: #ebe5d7; --card: #faf8f3;
  --ink: #101c2c; --ink-2: #44506a; --rule-ink: rgba(16, 28, 44, .16);
  --steel: #9fb0c4; --mist: #cdd6e0;
  --display: "Barlow Condensed", "Bahnschrift", "Arial Narrow", sans-serif;
  --serif: "Source Serif 4", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --wrap: 1200px; --gutter: 16px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--navy); color: var(--cream);
  font-family: var(--serif); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
@media (min-width: 720px) { body { font-size: 19px; } }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--amber); color: var(--amber-ink); padding: 10px 14px;
  font-family: var(--display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  line-height: .92; letter-spacing: .005em; margin: 0;
}
h2 { font-size: clamp(42px, 6vw, 76px); }
h3 { font-size: clamp(28px, 3vw, 34px); line-height: 1; letter-spacing: .02em; }
h1, h2, h3, .tagline-head, .lede, .bt-sub, .subtitle, .stand { text-wrap: balance; }
.kicker {
  font-family: var(--display); font-weight: 600; font-size: 14px;
  letter-spacing: .26em; text-transform: uppercase; color: var(--amber); margin: 0 0 16px;
}
.rule { display: block; width: 72px; height: 4px; background: var(--amber); border: 0; margin: 26px 0; }
.amber { color: var(--amber); }
.fine { font-size: 15px; line-height: 1.5; color: var(--steel); }
.prose p { max-width: 62ch; }
.prose-lg { font-size: clamp(20px, 2vw, 23px); line-height: 1.55; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 14px 26px;
  font-family: var(--display); font-weight: 700; font-size: 19px;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none; text-align: center; line-height: 1.15;
  border: 2px solid var(--amber); border-radius: 2px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-amber { background: var(--amber); color: var(--amber-ink); }
.btn-amber:hover { background: var(--amber-hi); border-color: var(--amber-hi); }
.btn-line { color: var(--cream); border-color: var(--line-2); background: transparent; }
.btn-line:hover { border-color: var(--amber); color: var(--amber); }
.btn-navy { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-block { display: flex; width: 100%; }
@media (max-width: 559px) { .btn { padding: 14px 16px; font-size: 18px; letter-spacing: .1em; } }
.textlink {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 18px;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--amber); padding: 6px 0; border-bottom: 2px solid transparent;
}
.textlink svg { width: 18px; height: 18px; flex: none; }
.textlink:hover { border-bottom-color: var(--amber); }
.links-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px; padding-top: 14px; padding-bottom: 10px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 600; font-size: 16px;
  letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  color: var(--cream); white-space: nowrap; min-height: 40px;
}
.wordmark::before { content: ""; width: 22px; height: 4px; background: var(--amber); flex: none; }
.nav-cta {
  order: 2; margin-left: auto;
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px;
  background: var(--amber); color: var(--amber-ink); border-radius: 2px;
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.nav-cta:hover { background: var(--amber-hi); }
.nav-cta[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--amber-ink); }
.nav { order: 3; width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 14px; }
.nav a {
  font-family: var(--display); font-weight: 500; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--steel); padding: 8px 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--amber); }
.book-header .nav { justify-content: flex-start; gap: 0 22px; }
@media (max-width: 719px) { .nav .hide-sm { display: none; } }
@media (min-width: 720px) {
  .wordmark { font-size: 19px; letter-spacing: .32em; gap: 14px; }
  .wordmark::before { width: 26px; }
  .nav { justify-content: flex-start; gap: 0 28px; }
  .nav a { font-size: 14px; letter-spacing: .16em; }
  .nav-cta { font-size: 14px; padding: 9px 16px; }
}
@media (min-width: 1024px) {
  .site-header .wrap { min-height: 80px; flex-wrap: nowrap; padding-top: 12px; padding-bottom: 12px; }
  .nav { order: 1; width: auto; margin-left: auto; justify-content: flex-end; gap: 0 26px; }
  .nav a { font-size: 15px; letter-spacing: .18em; }
  .nav-cta { order: 2; margin-left: 10px; font-size: 15px; letter-spacing: .14em; padding: 10px 18px; min-height: 44px; }
}

/* ---------- Heroes ---------- */
.hero { padding: 40px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.hero h1 { font-size: min(25vw, 150px); line-height: .82; letter-spacing: 0; }
.hero h1 span { display: block; }
.hero h1 .l2 { color: var(--amber); }
.hero .rule { width: 96px; height: 5px; margin: 32px 0 28px; }
@media (max-width: 559px) { .hero .kicker, .afe-hero .kicker { font-size: 13px; letter-spacing: .18em; } }
.lede {
  font-style: italic; font-size: clamp(23px, 2.3vw, 30px); line-height: 1.35;
  color: var(--cream); max-width: 28ch; margin: 0 0 36px;
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
@media (max-width: 559px) { .cta-row .btn { width: 100%; } }
.portrait {
  width: 100%; max-width: 260px; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  background: var(--panel); border: 1px solid var(--line-2); border-bottom: 5px solid var(--amber);
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 104px; }
  .hero h1 { font-size: min(13.4vw, 196px); }
  .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); align-items: start; gap: 64px; }
  .portrait { max-width: 300px; justify-self: end; }
  .hero-grid.fc-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}

/* ---------- Facts strip ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--navy-deep); }
.facts ul {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line);
}
.facts li { background: var(--navy-deep); padding: 26px 14px 28px; }
@media (max-width: 899px) { .facts li:nth-child(odd) { padding-left: 0; } }
.fact-num {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(50px, 6vw, 80px); line-height: .9; color: var(--amber); white-space: nowrap;
}
.fact-num.sm { font-size: clamp(40px, 4.6vw, 62px); line-height: 1.03; }
.fact-label {
  display: block; margin-top: 12px;
  font-family: var(--display); font-weight: 500; font-size: 15px;
  letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; color: var(--steel);
}
@media (min-width: 900px) {
  .facts ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts li { padding: 40px 28px 42px; }
  .facts li:first-child { padding-left: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.paper + .section, .section + .paper, .band-amber + .section, .section + .band-amber { border-top: 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } }

/* ---------- Cream paper (long reading, graft from B) ---------- */
.paper { background: var(--paper); color: var(--ink); color-scheme: light; }
.paper .kicker { color: var(--amber-dk); }
.paper h2, .paper h3 { color: var(--ink); }
.paper .fine { color: var(--ink-2); }
.paper a:where(:not(.btn, .textlink, .nav-cta)) { color: var(--amber-dk); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.paper .textlink { color: var(--amber-dk); }
.paper .textlink:hover { border-bottom-color: var(--amber-dk); }
.paper .btn-line { color: var(--ink); border-color: var(--ink); }
.paper .btn-line:hover { color: var(--amber-dk); border-color: var(--amber-dk); }
.paper :focus-visible { outline-color: var(--ink); }
.dropcap > p:first-child::first-letter {
  float: left; font-family: var(--display); font-weight: 700; font-size: 4.3em;
  line-height: .8; margin: .08em .1em 0 0; color: var(--amber-mid);
}

/* ---------- Home: about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; grid-template-areas: "head" "body" "glance"; }
.about-grid .split-head { grid-area: head; }
.about-body { grid-area: body; }
.glance-wrap { grid-area: glance; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head body" "glance body"; grid-template-rows: auto 1fr; column-gap: 72px; row-gap: 6px; }
}
.glance-h { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 10px; }
.glance { margin: 0; border-top: 2px solid var(--ink); }
.glance > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px 0 13px; border-bottom: 1px solid var(--rule-ink); }
.glance dt { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
.glance dd { margin: 0; font-size: 17px; line-height: 1.45; }
.family { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 18px; align-items: center; margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--rule-ink); }
.family img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rule-ink); }
.family p { margin: 0; }
@media (min-width: 720px) { .family { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; } }

/* ---------- Amber band (AFE call to action) ---------- */
.band-amber { background: var(--amber); color: var(--amber-ink); }
.band-amber .kicker { color: var(--amber-ink); opacity: .78; }
.band-amber h2 { color: var(--amber-ink); }
.band-amber .rule { background: var(--amber-ink); }
.band-amber .prose-lg { color: var(--amber-ink); }
.band-amber .textlink { color: var(--amber-ink); }
.band-amber .textlink:hover { border-bottom-color: var(--amber-ink); }
.band-amber :focus-visible { outline-color: var(--navy); }
.band-amber .who {
  font-family: var(--display); font-weight: 600; font-size: 16px;
  letter-spacing: .14em; text-transform: uppercase; margin: 0 0 24px;
}
.disclaimer {
  margin: 30px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--amber);
  font-size: 16px; line-height: 1.5; color: var(--mist); max-width: 54ch;
}
.band-amber .disclaimer { border-left-color: var(--amber-ink); color: rgba(16, 28, 44, .88); }
.mail-note { font-size: 15px; line-height: 1.45; color: var(--steel); margin: 12px 0 0; }
.band-amber .mail-note { color: rgba(16, 28, 44, .82); }
.band-amber .mail-note a { color: var(--amber-ink); }

/* ---------- Card header strips (graft from C) ---------- */
.strip {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--steel);
  padding: 0 0 12px; margin: 0 0 26px; border-bottom: 1px solid var(--line-2);
}
.strip span + span { color: var(--amber); text-align: right; }

/* ---------- Book feature (home) ---------- */
.book-feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 900px) { .book-feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 88px; } }
.cover {
  container-type: inline-size;
  width: 100%; max-width: 380px; aspect-ratio: 5 / 8; background: #0f1928;
  border: 1px solid var(--line-2);
  box-shadow: 0 34px 70px rgba(0, 0, 0, .5), inset 7px 0 0 rgba(255, 255, 255, .04);
  font-family: var(--display); text-transform: uppercase; line-height: 1;
}
.cover-in { height: 100%; padding: 13cqw 9cqw 9cqw; display: flex; flex-direction: column; }
.cover .c-the { font-weight: 600; font-size: 6.4cqw; letter-spacing: .5em; }
.cover .c-og { font-weight: 700; font-size: 38cqw; line-height: .78; color: var(--amber); margin: 2.5cqw 0 0 -1.2cqw; }
.cover .c-inv { font-weight: 700; font-size: 18cqw; line-height: .9; margin-top: 5cqw; letter-spacing: .01em; }
.cover .c-rule { width: 18cqw; height: 1.1cqw; background: var(--amber); margin: 8cqw 0 6cqw; }
.cover .c-sub { font-family: var(--serif); font-style: italic; text-transform: none; font-size: 5cqw; line-height: 1.3; }
.cover .c-jack { margin-top: auto; width: 112%; max-width: none; margin-left: -6cqw; color: var(--amber); }
.cover .c-by { font-weight: 600; font-size: 5.6cqw; letter-spacing: .32em; margin-top: 6cqw; white-space: nowrap; }
.status {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 700; font-size: 17px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--amber);
  border: 1.5px solid var(--amber); padding: 10px 18px;
}
.status::before { content: ""; width: 9px; height: 9px; background: var(--amber); border-radius: 50%; }
.subtitle { font-style: italic; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; margin: 0 0 24px; color: var(--mist); }

/* ---------- Panels and cards ---------- */
.panel { background: var(--panel); border-left: 5px solid var(--amber); padding: 26px 20px 32px; }
@media (min-width: 720px) { .panel { padding: 40px 56px 56px; } }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 900px) { .panel-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
.live {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mist);
}
.live svg { width: 20px; height: 20px; color: var(--amber); }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 900px) { .cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--amber);
  padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 6px;
}
@media (min-width: 720px) { .card { padding: 26px 34px 34px; } }
.card .strip { margin: 0 0 22px; }
.card .rule { width: 48px; height: 3px; margin: 18px 0; }
.card p { color: var(--mist); }
.card .card-foot { margin-top: auto; padding-top: 10px; }
.card .num { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .2em; color: var(--amber); margin: 6px 0 16px; }
a.card { text-decoration: none; color: inherit; transition: background-color .15s ease; }
a.card:hover { background: var(--panel-2); }
a.card:hover .textlink { border-bottom-color: var(--amber); }

/* ---------- Chips ---------- */
.chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chip {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 14px;
  border: 1px solid var(--line-2); background: rgba(20, 35, 58, .6);
  font-family: var(--display); font-weight: 600; font-size: 16px;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--cream);
  transition: border-color .15s ease, color .15s ease;
}
.chip svg { width: 22px; height: 22px; color: var(--amber); flex: none; }
a.chip:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- Contact ---------- */
.contact h2 { font-size: clamp(46px, 7vw, 96px); }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 8px; }
.mail-addr { font-size: 18px; color: var(--mist); }
.mail-addr a { color: var(--cream); text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); border-top: 1px solid var(--line); padding: 56px 0 36px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 56px; } }
.foot-label {
  font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: .26em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px;
}
.foot-note { color: var(--steel); font-size: 16px; margin: 14px 0 0; max-width: 34ch; }
.socials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 8px; }
.social {
  display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 8px 12px;
  border: 1px solid var(--line-2); text-decoration: none; color: var(--cream);
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
}
.social svg { width: 20px; height: 20px; color: var(--amber); flex: none; }
a.social:hover { border-color: var(--amber); color: var(--amber); }
.foot-mail { margin: 12px 0 0; font-size: 16px; color: var(--steel); }
.foot-mail a { color: var(--mist); }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-links a {
  display: inline-block; padding: 6px 0;
  font-family: var(--display); font-weight: 500; font-size: 16px;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--mist);
}
.foot-links a:hover { color: var(--amber); }
.foot-base {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
  font-size: 14px; color: var(--steel);
}
.book-footer { padding: 30px 0 34px; }
.book-footer .foot-base { margin: 0; padding: 0; border: 0; }

/* ---------- Link-in-bio page ---------- */
.links-page { background: radial-gradient(ellipse 900px 640px at 50% 0%, #182a43 0%, rgba(16, 28, 44, 0) 72%), var(--navy); min-height: 100vh; }
.links-page .site-header { border-bottom-color: transparent; }
.lib-top .nav-cta { margin-left: auto; }
.lib { max-width: 540px; margin: 0 auto; padding: 26px 16px 48px; }
.lib-head { text-align: center; }
.avatar {
  width: 132px; height: 132px; border-radius: 50%; margin: 0 auto 22px;
  object-fit: cover; object-position: 50% 28%; border: 3px solid var(--amber); background: var(--panel);
}
.lib h1 { font-size: 48px; letter-spacing: .03em; line-height: .95; }
.lib .tagline { font-style: italic; font-size: 19px; color: var(--mist); margin: 14px auto 0; max-width: 30ch; line-height: 1.4; }
.lib .tagline em { font-style: normal; color: var(--cream); }
.lib .rule { margin: 24px auto 0; width: 64px; }
.lib-group {
  font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: .28em; text-transform: uppercase; color: var(--amber);
  margin: 34px 0 12px; display: flex; align-items: center; gap: 14px;
}
.lib-group::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.lib-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lib-btn {
  display: grid; grid-template-columns: 50px minmax(0, 1fr) 22px; align-items: center; gap: 16px;
  min-height: 78px; padding: 13px 18px 13px 14px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 3px;
  text-decoration: none; color: var(--cream); transition: border-color .15s ease, background-color .15s ease;
}
a.lib-btn:hover { border-color: var(--amber); background: var(--panel-2); }
.lib-btn .code {
  width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid var(--line-2);
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .04em; color: var(--amber);
}
.lib-btn .t { display: block; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .07em; text-transform: uppercase; line-height: 1.05; }
.lib-btn .s { display: block; font-size: 15px; color: var(--steel); line-height: 1.35; margin-top: 4px; }
.lib-btn .go { width: 20px; height: 20px; color: var(--amber); }
.lib-btn.primary { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
a.lib-btn.primary:hover { background: var(--amber-hi); border-color: var(--amber-hi); }
.lib-btn.primary .s { color: rgba(16, 28, 44, .8); }
.lib-btn.primary .code { border-color: rgba(16, 28, 44, .4); color: var(--amber-ink); }
.lib-btn.primary .go { color: var(--amber-ink); }
.lib-btn.navy { background: #0c1626; }
.lib-jack { width: 200px; margin: 48px auto 0; color: var(--amber); opacity: .9; }
.lib-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--steel); }
.lib-foot a { color: var(--mist); }

/* ---------- Book page ---------- */
.book-hero { padding: 48px 0 72px; overflow: hidden; }
.book-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 960px) {
  .book-hero { padding: 88px 0 104px; }
  .book-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 56px; }
}
.bt-the { display: block; font-weight: 600; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: .55em; line-height: 1; }
.bt-og { display: block; font-weight: 700; font-size: min(50vw, 330px); line-height: .78; color: var(--amber); margin: 14px 0 0 -.03em; }
.bt-inv { display: block; font-weight: 700; font-size: min(22vw, 146px); line-height: .9; margin-top: .14em; letter-spacing: .01em; white-space: nowrap; }
@media (min-width: 960px) { .bt-inv { font-size: min(10.2vw, 146px); } .bt-og { font-size: min(23vw, 330px); } }
.bt-rule { display: block; width: 140px; height: 6px; background: var(--amber); margin: 36px 0 30px; }
.bt-sub { font-style: italic; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.3; margin: 0; max-width: 22ch; }
.bt-by { font-family: var(--display); font-weight: 600; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: .38em; text-transform: uppercase; margin: 34px 0 0; }
.book-hero .jack { color: var(--amber); width: 100%; }
.book-hero .jack-col { display: grid; gap: 34px; justify-items: start; }
.cover-img { display: block; width: 100%; max-width: 360px; height: auto; aspect-ratio: 2 / 3; border: 1px solid var(--line-2);
  box-shadow: 0 34px 70px rgba(0, 0, 0, .5); }
.book-hero .cover-img { max-width: 320px; }
.tagline-head {
  font-family: var(--display); font-weight: 700; text-transform: none;
  font-size: clamp(36px, 4.4vw, 58px); line-height: 1.02; color: var(--amber); margin: 0;
  letter-spacing: .005em;
}
.paper .tagline-head { color: var(--ink); }
.book-copy p { font-size: clamp(19px, 1.65vw, 21px); line-height: 1.6; max-width: 60ch; }
.each { list-style: none; margin: 0; padding: 0; counter-reset: each; border-top: 1px solid var(--line-2); }
.each li {
  counter-increment: each; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line-2);
  font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.4vw, 30px);
  text-transform: uppercase; letter-spacing: .03em; line-height: 1.1;
}
.each li::before { content: counter(each, decimal-leading-zero); font-size: 16px; letter-spacing: .1em; color: var(--amber); }
.kinds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 600px) { .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .kinds { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.kinds li {
  background: var(--navy); padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 14px;
  font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1;
}
.kinds li::before { content: ""; width: 22px; height: 4px; background: var(--amber); }
@media (max-width: 599px) { .kinds li { padding: 16px 14px 18px; font-size: 18px; gap: 10px; } }
.kinds-head { margin-top: 88px; }
.disclaimer-strip {
  margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--navy-deep); padding: 26px var(--gutter); text-align: center;
  font-family: var(--display); font-weight: 600; font-size: 16px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--mist);
}

/* ---------- AFE page ---------- */
.afe-hero { padding: 40px 0 72px; }
.afe-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 960px) {
  .afe-hero { padding: 88px 0 104px; }
  .afe-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end; gap: 72px; }
}
.afe-hero h1 { font-size: min(23vw, 140px); line-height: .84; }
@media (min-width: 960px) { .afe-hero h1 { font-size: min(10.5vw, 156px); } }
.afe-hero h1 span { display: block; }
.afe-hero .rule { width: 96px; height: 5px; margin: 32px 0 28px; }
.afe-hero .lede { max-width: 30ch; }
.define { border: 1px solid var(--line-2); background: var(--panel); padding: 30px 26px 32px; }
@media (min-width: 720px) { .define { padding: 40px 40px 42px; } }
.define .term { font-family: var(--display); font-weight: 700; font-size: clamp(96px, 10vw, 140px); line-height: .8; color: var(--amber); margin: 0; }
.define .say { font-style: italic; color: var(--mist); font-size: 20px; margin: 18px 0; }
.define .rule { margin: 0 0 18px; width: 48px; height: 3px; }
.define p.def { font-size: 21px; line-height: 1.45; margin: 0; }
.afe-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 960px) { .afe-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 80px; align-items: start; } }
.h-sm { font-size: clamp(28px, 2.6vw, 34px); letter-spacing: .05em; line-height: 1; margin: 56px 0 18px; }
.afe-main > .h-sm:first-child { margin-top: 0; }
.afe-main .prose-lg { max-width: 40ch; }
.who-t { margin: 0; border-top: 2px solid var(--ink); }
.who-t > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 24px; padding: 16px 0 18px; border-bottom: 1px solid var(--rule-ink); }
@media (min-width: 600px) { .who-t > div { grid-template-columns: 180px minmax(0, 1fr); align-items: baseline; } }
.who-t dt { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; }
.who-t dd { margin: 0; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 20px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: baseline; }
.steps li::before {
  content: counter(step, decimal-leading-zero); font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1;
  color: var(--ink); border-bottom: 3px solid var(--amber); padding-bottom: 4px; justify-self: start;
}
.steps strong { font-weight: 600; }
.book-card { background: var(--card); color: var(--ink); border: 1px solid var(--rule-ink); border-top: 5px solid var(--amber); padding: 30px 24px 28px; }
@media (min-width: 720px) { .book-card { padding: 34px 30px 30px; } }
@media (min-width: 960px) { .book-card { position: sticky; top: 24px; } }
.book-card h2 { font-size: clamp(34px, 3vw, 42px); margin: 0 0 14px; }
.book-card .btn { margin-top: 8px; font-size: 17px; letter-spacing: .08em; padding: 14px 12px; gap: 10px; }
.book-card .mail-note { color: var(--ink-2); }
.note-box { margin-top: 24px; padding: 18px 20px 20px; background: var(--paper); border-left: 5px solid var(--amber); }
.note-box .kicker { margin-bottom: 8px; font-size: 13px; }
.note-box p:last-child { margin: 0; font-size: 16px; line-height: 1.5; }

/* ---------- Book companion pages (notes, cases, updates) ---------- */
.doc-hero { padding: 44px 0 52px; }
.doc-hero h1 { font-size: clamp(52px, 10vw, 112px); line-height: .88; }
.doc-hero .rule { width: 96px; height: 5px; margin: 26px 0 22px; }
.doc-sub { font-style: italic; font-size: clamp(19px, 2vw, 24px); line-height: 1.4; color: var(--mist); margin: 0 0 16px; max-width: 44ch; }
.doc-meta { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); margin: 0; }
@media (min-width: 960px) { .doc-hero { padding: 72px 0 80px; } }
.doc { padding: 36px 0 72px; }
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1024px) { .doc { padding: 64px 0 112px; } .doc-grid { grid-template-columns: 270px minmax(0, 1fr); gap: 64px; } }
.toc-side { display: none; }
@media (min-width: 1024px) {
  .toc-side { display: block; position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; padding-right: 10px; }
  .toc-mobile { display: none; }
}
.toc-label { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--amber-dk); margin: 0 0 10px; }
.toc-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.toc-list a {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; padding: 7px 0;
  border-bottom: 1px solid var(--rule-ink); text-decoration: none; color: var(--ink);
  font-family: var(--display); font-weight: 500; font-size: 16px; line-height: 1.2; letter-spacing: .02em;
}
.paper .toc-list a { color: var(--ink); text-decoration: none; }
.paper .toc-list a:hover { color: var(--amber-dk); }
.toc-list .n { color: var(--amber-dk); font-weight: 700; }
.toc-mobile { border: 1px solid var(--rule-ink); background: var(--card); }
.toc-mobile summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 54px; padding: 12px 16px;
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .16em; text-transform: uppercase;
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--amber-dk); }
.toc-mobile[open] summary::after { content: "\2212"; }
.toc-mobile .toc-list { margin: 0 16px 16px; border-top-width: 1px; }
.doc-main { min-width: 0; }
.doc-intro { font-size: clamp(19px, 1.7vw, 21px); line-height: 1.6; max-width: 64ch; }
.doc-intro p { margin: 0 0 .9em; }
.doc-count { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
/* Anchor landings (the print book points at sections, notes and cases): each scroll margin stops in a gap or exactly on a line
   boundary, so nothing is cut off at the top edge of the window. */
.doc-h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.02; margin: 0 0 6px; scroll-margin-top: 56px; }
.h2-kick { display: block; font-family: var(--display); text-transform: uppercase; font-weight: 600; font-size: 14px; letter-spacing: .24em; color: var(--amber-dk); margin: 0 0 10px; line-height: 1.2; }
.sec { margin-top: 52px; padding-top: 40px; border-top: 2px solid var(--ink); }
.sec-count { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin: 8px 0 0; }
.sec-supp { font-style: italic; color: var(--ink-2); margin: 12px 0 0; }
ol.notes { margin: 20px 0 0; padding: 0 0 0 3.4em; font-size: 16.5px; line-height: 1.55; }
ol.notes li { padding: 5px 8px 5px 4px; margin: 0 0 3px; overflow-wrap: anywhere; scroll-margin-top: 34px; }   /* 8px gap + one 25.6px line of the note above */
ol.notes > li:first-child { scroll-margin-top: 46px; }                                                        /* the "N notes" line above it */
ol.notes li::marker { font-family: var(--display); font-weight: 700; color: var(--amber-dk); }
.backtop { margin: 18px 0 0; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; }
.paper .backtop a { text-decoration: none; }
li:target, .upd-item:target { background: rgba(224, 165, 38, .2); box-shadow: -6px 0 0 var(--amber); }
ol.notes li:target, ol.src li:target { box-shadow: inset 4px 0 0 var(--amber); padding-left: 12px; }   /* bar inside, clear of the number */
.case { margin-top: 56px; padding-top: 44px; border-top: 2px solid var(--ink); scroll-margin-top: 40px; }
.case:target > h2 { background: none; box-shadow: -6px 0 0 var(--amber); padding-left: 10px; }   /* same cue as a targeted note */
.case h2 { text-transform: none; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.04; margin: 0 0 16px; max-width: 26ch; }
.stand { font-style: italic; font-size: clamp(20px, 1.9vw, 23px); line-height: 1.45; color: var(--ink-2); margin: 0 0 22px; max-width: 58ch; }
.case-body, .upd-body { font-size: 18.5px; line-height: 1.62; max-width: 68ch; }
.case-body h3 {
  display: flex; align-items: center; gap: 12px; font-size: 22px; letter-spacing: .06em; line-height: 1.15; margin: 34px 0 12px;
}
.case-body h3::before { content: ""; width: 22px; height: 4px; background: var(--amber); flex: none; }
.case-body ul, .upd-body ul { padding-left: 1.25em; margin: 0 0 1em; }
.case-body li, .upd-body li { margin: 0 0 .45em; }
.numbers { background: var(--card); border: 1px solid var(--rule-ink); border-left: 5px solid var(--amber); padding: 4px 22px 8px; margin: 30px 0; }
.numbers h3 { margin-top: 20px; }
sup.cite { font-size: .64em; line-height: 0; font-family: var(--display); font-weight: 700; letter-spacing: .02em; }
.paper sup.cite a { text-decoration: none; padding: 0 1px; }
.src-h { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .2em; font-size: 14px; color: var(--ink-2); margin: 26px 0 8px; }
ol.src { font-size: 15px; line-height: 1.5; color: var(--ink-2); padding-left: 2.2em; margin: 0; max-width: 80ch; }
ol.src li { margin: 0 0 6px; overflow-wrap: anywhere; scroll-margin-top: 28px; }                               /* 6px gap + one 22.5px line above */
.upd-item { padding: 26px 0 20px; border-bottom: 1px solid var(--rule-ink); scroll-margin-top: 21px; }          /* blank space and the rule above */
.doc-h2 + .upd-item, .doc-h2 + ol.src > li:first-child { scroll-margin-top: 100px; }                           /* first under a heading: show the heading */
.upd-item:target { padding-left: 14px; padding-right: 14px; }
.upd-item h3 { text-transform: none; font-size: clamp(25px, 2.4vw, 30px); line-height: 1.08; letter-spacing: .01em; margin: 0 0 12px; }
.upd-body p { margin: 0 0 .7em; }
.upd-body p > strong:first-child { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 15px; color: var(--amber-dk); margin-right: 4px; }
.inbook { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 6px 0 0; }
.doc-legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--rule-ink); font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 70ch; }

/* ---------- 404 ---------- */
.nf { padding: 64px 0 96px; }
.nf h1 { font-size: clamp(60px, 11vw, 140px); line-height: .86; }
.nf-links { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 4px; }

/* ---------- v05: blueprint theme (the book cover's drawing sheet), from the design panel ---------- */
/* Blueprint theme, final (design panel wf_3c3e2e30-0e2, 2026-10-07). Fonts load through the page head (Google Fonts link). */
/* =====================================================================================================================
   BLUEPRINT THEME, final. Appended after the base stylesheet; everything below overrides it.
   The site reads as one engineering sheet in the book cover's design system: cyanotype paper with the fine drafting grid
   and a slight mottle on every dark section, a double drawing border with zone markers framing each hero, dimension-line
   rules and overall dimension lines between sections, IBM Plex Mono drafting labels, amber hand notes used sparingly,
   the revision cloud around OG on the book page, and a title-block footer. Light reading sections are flat vellum.
   ===================================================================================================================== */
/* latin */
/* latin */
/* latin */
/* latin */
/* latin */
/* latin */
/* latin */
/* latin */
/* latin */
/* latin */
/* latin */
/* latin */
/* latin */
/* latin */
/* latin */
/* latin */
/* latin */
:root {
  --bp: #0e4780; --bp-hi: #11508c; --bp-lo: #0a3b6c; --bp-deep: #082f57;
  --navy: #0e4780; --navy-deep: #0a3b6c;
  --panel: rgba(6, 36, 70, .46); --panel-2: rgba(6, 36, 70, .68);
  --line: rgba(191, 225, 251, .26); --line-2: rgba(191, 225, 251, .46);
  --amber: #f0aa2c; --amber-hi: #f7bb4b; --amber-ink: #0b2340; --amber-dk: #7a5306; --amber-mid: #8d6008;
  --ink: #0b2440; --ink-2: #3a5272; --rule-ink: rgba(11, 36, 64, .22);
  --cream: #f3f9ff; --mist: #dbeefc; --steel: #bfe1fb;
  --ink-bp: #f3f9ff; --ink2-bp: #bfe1fb;
  --paper: #f1f5f9; --paper-2: #e4eaf1; --card: #fafcfe;
  --display: "Barlow Condensed", "Bahnschrift", "Arial Narrow", sans-serif;
  --serif: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sub: "Barlow Semi Condensed", "Barlow", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, Menlo, "Courier New", monospace;
  --hand: "Architects Daughter", "Segoe Print", "Comic Sans MS", cursive;
  --cloud: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-3%20-3%20134%20106'%20preserveAspectRatio='none'%3E%3Cpath%20d='M16.0%200.0A6.8%206.8%200%200%201%2027.0%200.0A6.8%206.8%200%200%201%2038.0%200.0A6.8%206.8%200%200%201%2049.0%200.0A6.8%206.8%200%200%201%2060.0%200.0A6.8%206.8%200%200%201%2070.9%200.0A6.8%206.8%200%200%201%2081.9%200.0A6.8%206.8%200%200%201%2092.9%200.0A6.8%206.8%200%200%201%20103.9%200.0A6.8%206.8%200%200%201%20114.9%200.3A6.8%206.8%200%200%201%20124.2%205.7A6.8%206.8%200%200%201%20128.0%2015.7A6.8%206.8%200%200%201%20128.0%2026.7A6.8%206.8%200%200%201%20128.0%2037.7A6.8%206.8%200%200%201%20128.0%2048.7A6.8%206.8%200%200%201%20128.0%2059.7A6.8%206.8%200%200%201%20128.0%2070.7A6.8%206.8%200%200%201%20128.0%2081.7A6.8%206.8%200%200%201%20125.7%2092.2A6.8%206.8%200%200%201%20117.4%2099.1A6.8%206.8%200%200%201%20106.5%20100.0A6.8%206.8%200%200%201%2095.5%20100.0A6.8%206.8%200%200%201%2084.5%20100.0A6.8%206.8%200%200%201%2073.5%20100.0A6.8%206.8%200%200%201%2062.6%20100.0A6.8%206.8%200%200%201%2051.6%20100.0A6.8%206.8%200%200%201%2040.6%20100.0A6.8%206.8%200%200%201%2029.6%20100.0A6.8%206.8%200%200%201%2018.6%20100.0A6.8%206.8%200%200%201%208.0%2097.9A6.8%206.8%200%200%201%201.0%2089.6A6.8%206.8%200%200%201%200.0%2078.8A6.8%206.8%200%200%201%200.0%2067.8A6.8%206.8%200%200%201%200.0%2056.8A6.8%206.8%200%200%201%200.0%2045.8A6.8%206.8%200%200%201%200.0%2034.8A6.8%206.8%200%200%201%200.0%2023.8A6.8%206.8%200%200%201%200.3%2012.9A6.8%206.8%200%200%201%205.9%203.6A6.8%206.8%200%200%201%2016.0%200.0Z'%20fill='none'%20stroke='%23f0aa2c'%20stroke-width='2.4'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  --arr-l-ink2: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2012'%3E%3Cpath%20d='M.6%200v12'%20fill='none'%20stroke='%23bfe1fb'%20stroke-width='1.2'/%3E%3Cpath%20fill='%23bfe1fb'%20d='M.6%206l10.4-3.6v7.2z'/%3E%3C/svg%3E"); --arr-r-ink2: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2012'%3E%3Cpath%20d='M13.4%200v12'%20fill='none'%20stroke='%23bfe1fb'%20stroke-width='1.2'/%3E%3Cpath%20fill='%23bfe1fb'%20d='M13.4%206l-10.4-3.6v7.2z'/%3E%3C/svg%3E"); --arr-l-navy: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2012'%3E%3Cpath%20d='M.6%200v12'%20fill='none'%20stroke='%230b2440'%20stroke-width='1.2'/%3E%3Cpath%20fill='%230b2440'%20d='M.6%206l10.4-3.6v7.2z'/%3E%3C/svg%3E"); --arr-r-navy: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2012'%3E%3Cpath%20d='M13.4%200v12'%20fill='none'%20stroke='%230b2440'%20stroke-width='1.2'/%3E%3Cpath%20fill='%230b2440'%20d='M13.4%206l-10.4-3.6v7.2z'/%3E%3C/svg%3E");
}

/* ---------- Paper: cyanotype with the drafting grid (minor 16 px at 6 %, major 80 px at 13 %) and a slight mottle ---------- */
body, body.links-page {
  background-color: var(--bp);
  background-image:
    linear-gradient(90deg, rgba(8, 47, 87, .75), rgba(8, 47, 87, 0) 16%, rgba(8, 47, 87, 0) 84%, rgba(8, 47, 87, .75)),
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='260'%20height='260'%3E%20%3Cfilter%20id='n'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='.7'%20numOctaves='3'%20stitchTiles='stitch'%20seed='7'/%3E%20%3CfeColorMatrix%20values='0%200%200%200%20.78%200%200%200%200%20.9%200%200%200%200%201%200%200%200%20.1%200'/%3E%3C/filter%3E%3Crect%20width='260'%20height='260'%20filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(rgba(191, 225, 251, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 225, 251, .13) 1px, transparent 1px),
    linear-gradient(rgba(191, 225, 251, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 225, 251, .06) 1px, transparent 1px);
  background-size: 100% 100%, 260px 260px, 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  background-attachment: scroll;
  color: var(--cream); font-family: var(--serif); font-weight: 400;
}
:is(.hero, .book-hero, .afe-hero, .doc-hero) {
  background: radial-gradient(ellipse 58% 70% at 50% 46%, rgba(40, 112, 180, .26), rgba(40, 112, 180, 0) 72%);
}

/* ---------- Vellum: the light reading sections, flat and calm (no grid under running text) ---------- */
.paper, .doc.paper {
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='260'%20height='260'%3E%20%3Cfilter%20id='n'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='.7'%20numOctaves='3'%20stitchTiles='stitch'%20seed='3'/%3E%20%3CfeColorMatrix%20values='0%200%200%200%20.05%200%200%200%200%20.28%200%200%200%200%20.5%200%200%200%20.05%200'/%3E%3C/filter%3E%3Crect%20width='260'%20height='260'%20filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 260px 260px;
  border-top: 1px solid rgba(191, 225, 251, .55); border-bottom: 1px solid rgba(191, 225, 251, .55);
}
.paper .kicker, .paper .glance-h, .paper .toc-label, .paper .h2-kick, .paper .doc-count, .paper .sec-count, .paper .src-h { color: var(--bp); }
.paper .rule { --rl: var(--ink); }
.paper h2, .paper h3, .paper .tagline-head { color: var(--ink); }

/* ---------- Type ---------- */
h1, h2, h3, .display { font-weight: 800; letter-spacing: .01em; }
h2 { font-size: clamp(40px, 5.6vw, 72px); }
h3 { font-weight: 700; }
.kicker, .foot-label, .glance-h, .toc-label, .h2-kick, .doc-count, .sec-count, .src-h, .doc-meta, .inbook, .lib-group, .fact-label, .strip, .who, .live {
  font-family: var(--mono); font-weight: 600; text-transform: uppercase;
}
.kicker { font-size: 12px; letter-spacing: .2em; line-height: 1.5; color: var(--ink2-bp); margin: 0 0 18px; }
.kicker { display: inline-block; padding-bottom: 5px; border-bottom: 1px solid var(--line-2); }
.paper .kicker { border-bottom-color: rgba(11, 36, 64, .4); }
.band-amber .kicker { border-bottom-color: rgba(11, 35, 64, .45); }
.kinds-head { display: inline-block; }
@media (max-width: 559px) { .hero .kicker, .afe-hero .kicker { font-size: 11px; letter-spacing: .14em; } }
.lede { font-family: var(--sub); font-style: normal; font-weight: 500; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.3; color: var(--cream); max-width: 30ch; }
.prose-lg { font-family: var(--sub); font-weight: 400; font-size: clamp(20px, 1.9vw, 23px); line-height: 1.5; }
.fine { color: var(--ink2-bp); }
.paper .fine { color: var(--ink-2); }
.subtitle, .bt-sub, .doc-sub, .stand, .define .say, .lib .tagline { font-family: var(--sub); font-style: normal; font-weight: 500; }
.subtitle, .doc-sub { color: var(--mist); }
.mail-note { font-size: 14.5px; color: var(--ink2-bp); }
.paper .mail-note, .book-card .mail-note { color: var(--ink-2); }

/* Hand notes in amber (sparingly): the pencil markup on the sheet */
.strip span + span, .status, .who, .live {
  font-family: var(--hand); font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--amber);
}
.strip span + span { font-size: 16px; }
.who { font-size: 20px; margin: 0 0 20px; line-height: 1.3; }
.who::before { content: ""; display: inline-block; width: 30px; height: 11px; margin-right: 10px; vertical-align: -1px; background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2040%2014'%20fill='none'%20stroke='%23f0aa2c'%20stroke-width='1.6'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M39%202C30%202%2016%204%203%2011M3%2011l7-1M3%2011l4-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.band-amber .who { color: var(--amber-ink); }
.band-amber .who::before { display: none; }
.live { font-size: 18px; color: var(--amber); }
.live svg { color: var(--amber); }
.lib .tagline em { font-style: normal; font-weight: 600; color: var(--cream); }

/* Dimension-line rules: thin ink line between extension ticks, arrowheads pointing out to the ticks (SVG heads, so any width) */
.rule, .bt-rule { --rl: var(--ink2-bp); --al: var(--arr-l-ink2); --ar: var(--arr-r-ink2);
  --dim: var(--al) left center / 14px 12px no-repeat, var(--ar) right center / 14px 12px no-repeat,
         linear-gradient(var(--rl), var(--rl)) center / calc(100% - 4px) 1px no-repeat;
  display: block; position: relative; width: 112px; height: 12px; margin: 24px 0; border: 0; background: var(--dim);
}
.rule::before, .rule::after, .bt-rule::before, .bt-rule::after { content: none; }
.hero .rule, .afe-hero .rule, .doc-hero .rule { width: 140px; height: 12px; margin: 30px 0 26px; }
.bt-rule { width: 160px; height: 12px; margin: 34px 0 28px; }
.card .rule, .define .rule { width: 72px; height: 12px; margin: 16px 0; }
.lib .rule { margin: 22px auto 0; width: 96px; height: 12px; }
/* the base sheet paints .band-amber .rule with a background shorthand, so the image set is re-declared here */
.band-amber .rule { --rl: var(--amber-ink); --al: var(--arr-l-navy); --ar: var(--arr-r-navy); background: var(--dim); }
.paper .rule { --rl: var(--ink); --al: var(--arr-l-navy); --ar: var(--arr-r-navy); background: var(--dim); }

/* Section boundaries: an overall dimension line across the content width, instead of a border */
.section { position: relative; }
.section + .section, .paper + .section, .section + .paper, .band-amber + .section, .section + .band-amber { border-top: 0; }
.section::before {
  content: ""; position: absolute; top: 18px; left: var(--gutter); right: var(--gutter); height: 12px;
  max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto; pointer-events: none;
  background: var(--arr-l-ink2) left center / 14px 12px no-repeat, var(--arr-r-ink2) right center / 14px 12px no-repeat,
              linear-gradient(rgba(191, 225, 251, .42), rgba(191, 225, 251, .42)) center / calc(100% - 20px) 1px no-repeat;
}
.section.paper::before { background-image: var(--arr-l-navy), var(--arr-r-navy), linear-gradient(rgba(11, 36, 64, .36), rgba(11, 36, 64, .36)); }
.section.band-amber::before { background-image: var(--arr-l-navy), var(--arr-r-navy), linear-gradient(rgba(11, 35, 64, .5), rgba(11, 35, 64, .5)); }

/* ---------- Buttons and links ---------- */
.btn { border-radius: 0; font-weight: 700; letter-spacing: .1em; }
.btn-amber { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.btn-line { color: var(--cream); border-color: var(--ink2-bp); }
.btn-line:hover { color: var(--amber); border-color: var(--amber); }
.btn-navy { background: var(--bp); color: var(--cream); border-color: var(--bp); }
.btn-navy:hover { background: var(--bp-deep); border-color: var(--bp-deep); }
.paper .btn-line { color: var(--ink); border-color: var(--ink); }
.textlink { color: var(--amber); }
.paper .textlink { color: var(--amber-dk); }
.nav-cta { border-radius: 0; font-weight: 700; }
.nav-cta[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--amber-ink); }
:focus-visible { outline-color: var(--amber); }
.paper :focus-visible { outline-color: var(--bp); }
.band-amber :focus-visible { outline-color: var(--amber-ink); }

/* ---------- Header: the sheet's top margin ---------- */
.site-header { border-bottom: 1px solid var(--line-2); background: rgba(8, 47, 87, .25); }
.wordmark { color: var(--cream); font-weight: 700; }
.wordmark::before { background: var(--amber); height: 3px; }
.nav a { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; color: var(--ink2-bp); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--amber); }
@media (min-width: 720px) { .nav a { font-size: 12px; letter-spacing: .12em; } }
@media (min-width: 1024px) { .nav a { font-size: 12.5px; letter-spacing: .14em; } }

/* ---------- Drawing border with zone markers, framing every hero ---------- */
:is(.hero, .book-hero, .afe-hero, .doc-hero) { position: relative; isolation: isolate; }
:is(.hero, .book-hero, .afe-hero, .doc-hero)::before {
  content: ""; position: absolute; z-index: -1; inset: 24px; pointer-events: none;
  border: 1px solid var(--line-2); outline: 1px solid var(--line-2); outline-offset: 14px;
}
:is(.hero, .book-hero, .afe-hero, .doc-hero)::after {
  content: ""; position: absolute; z-index: -1; inset: 10px; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100%25'%20height='100%25'%3E%20%3Cg%20fill='%23bfe1fb'%20fill-opacity='.8'%20font-family='Consolas,Menlo,Courier%20New,monospace'%20font-size='9'%20font-weight='bold'%20text-anchor='middle'%3E%3Ctext%20x='12.5%25'%20y='50%25'%20dy='.36em'%3E4%3C/text%3E%3Ctext%20x='37.5%25'%20y='50%25'%20dy='.36em'%3E3%3C/text%3E%3Ctext%20x='62.5%25'%20y='50%25'%20dy='.36em'%3E2%3C/text%3E%3Ctext%20x='87.5%25'%20y='50%25'%20dy='.36em'%3E1%3C/text%3E%3C/g%3E%20%3Cg%20stroke='%23bfe1fb'%20stroke-opacity='.55'%3E%3Cline%20x1='25%25'%20y1='0'%20x2='25%25'%20y2='100%25'/%3E%3Cline%20x1='50%25'%20y1='0'%20x2='50%25'%20y2='100%25'/%3E%3Cline%20x1='75%25'%20y1='0'%20x2='75%25'%20y2='100%25'/%3E%3C/g%3E%3C/svg%3E") 50% 0 / calc(100% - 28px) 14px no-repeat,
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100%25'%20height='100%25'%3E%20%3Cg%20fill='%23bfe1fb'%20fill-opacity='.8'%20font-family='Consolas,Menlo,Courier%20New,monospace'%20font-size='9'%20font-weight='bold'%20text-anchor='middle'%3E%3Ctext%20x='12.5%25'%20y='50%25'%20dy='.36em'%3E4%3C/text%3E%3Ctext%20x='37.5%25'%20y='50%25'%20dy='.36em'%3E3%3C/text%3E%3Ctext%20x='62.5%25'%20y='50%25'%20dy='.36em'%3E2%3C/text%3E%3Ctext%20x='87.5%25'%20y='50%25'%20dy='.36em'%3E1%3C/text%3E%3C/g%3E%20%3Cg%20stroke='%23bfe1fb'%20stroke-opacity='.55'%3E%3Cline%20x1='25%25'%20y1='0'%20x2='25%25'%20y2='100%25'/%3E%3Cline%20x1='50%25'%20y1='0'%20x2='50%25'%20y2='100%25'/%3E%3Cline%20x1='75%25'%20y1='0'%20x2='75%25'%20y2='100%25'/%3E%3C/g%3E%3C/svg%3E") 50% 100% / calc(100% - 28px) 14px no-repeat,
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100%25'%20height='100%25'%3E%20%3Cg%20fill='%23bfe1fb'%20fill-opacity='.8'%20font-family='Consolas,Menlo,Courier%20New,monospace'%20font-size='9'%20font-weight='bold'%20text-anchor='middle'%3E%3Ctext%20x='50%25'%20y='16.667%25'%20dy='.36em'%3EC%3C/text%3E%3Ctext%20x='50%25'%20y='50%25'%20dy='.36em'%3EB%3C/text%3E%3Ctext%20x='50%25'%20y='83.333%25'%20dy='.36em'%3EA%3C/text%3E%3C/g%3E%20%3Cg%20stroke='%23bfe1fb'%20stroke-opacity='.55'%3E%3Cline%20x1='0'%20y1='33.333%25'%20x2='100%25'%20y2='33.333%25'/%3E%3Cline%20x1='0'%20y1='66.667%25'%20x2='100%25'%20y2='66.667%25'/%3E%3C/g%3E%3C/svg%3E") 0 50% / 14px calc(100% - 28px) no-repeat,
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100%25'%20height='100%25'%3E%20%3Cg%20fill='%23bfe1fb'%20fill-opacity='.8'%20font-family='Consolas,Menlo,Courier%20New,monospace'%20font-size='9'%20font-weight='bold'%20text-anchor='middle'%3E%3Ctext%20x='50%25'%20y='16.667%25'%20dy='.36em'%3EC%3C/text%3E%3Ctext%20x='50%25'%20y='50%25'%20dy='.36em'%3EB%3C/text%3E%3Ctext%20x='50%25'%20y='83.333%25'%20dy='.36em'%3EA%3C/text%3E%3C/g%3E%20%3Cg%20stroke='%23bfe1fb'%20stroke-opacity='.55'%3E%3Cline%20x1='0'%20y1='33.333%25'%20x2='100%25'%20y2='33.333%25'/%3E%3Cline%20x1='0'%20y1='66.667%25'%20x2='100%25'%20y2='66.667%25'/%3E%3C/g%3E%3C/svg%3E") 100% 50% / 14px calc(100% - 28px) no-repeat;
}
.hero { padding: 56px 0 72px; }
.book-hero, .afe-hero { padding: 56px 0 72px; }
.doc-hero { padding: 56px 0 60px; }
@media (min-width: 900px) { .hero { padding: 84px 0 96px; } }
@media (min-width: 960px) { .book-hero, .afe-hero { padding: 96px 0 104px; } .doc-hero { padding: 80px 0 84px; } }
@media (max-width: 719px) {
  :is(.hero, .book-hero, .afe-hero, .doc-hero)::before { inset: 6px; outline: 0; }
  :is(.hero, .book-hero, .afe-hero, .doc-hero)::after { display: none; }
  .hero, .book-hero, .afe-hero { padding: 40px 0 48px; }
  .doc-hero { padding: 40px 0 44px; }
}

/* ---------- Home hero: name, photo, and the unit elevation drawn large across the sheet ---------- */
.hero h1 { font-weight: 800; }
.hero h1 .l2 { color: var(--amber); }
.hero .rule { --rl: var(--ink2-bp); }
.portrait { border: 1px solid var(--ink2-bp); outline: 1px solid var(--line); outline-offset: 7px; background: var(--panel); }
.hero-art { grid-column: 1 / -1; margin: 36px 0 0; padding: 0; overflow: hidden; }
.hero-art img { display: block; width: 100%; height: auto; }
@media (min-width: 900px) { .hero-art { margin-top: 44px; } }
/* phones: crop the sheet to the pumping unit so the drawing still reads */
@media (max-width: 599px) {
  .hero-art { margin-top: 30px; }
  .hero-art img { width: 230%; max-width: none; margin-left: -130%; }
}

/* ---------- Facts strip: the dimension row under the drawing ---------- */
.facts { background: rgba(8, 47, 87, .35); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.facts ul { background: transparent; gap: 0; }
.facts li { background: transparent; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
@media (max-width: 899px) { .facts li:nth-child(odd) { border-left: 0; } .facts li:nth-child(n + 3) { border-top: 1px solid var(--line); } }
.fact-num { color: var(--cream); font-weight: 800; }
.fact-num::after { content: ""; display: inline-block; width: .34em; height: .34em; margin-left: .12em; vertical-align: .08em; background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23f0aa2c'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%2013.5l5%205L20%206'/%3E%3C/svg%3E") center / contain no-repeat; }
.fact-label { font-size: 11.5px; font-weight: 500; letter-spacing: .14em; color: var(--ink2-bp); line-height: 1.5; }

/* ---------- General notes block: the at-a-glance list ---------- */
.glance-h { font-size: 12px; letter-spacing: .2em; color: var(--bp); display: inline-block; padding-bottom: 5px; border-bottom: 1px solid var(--ink); margin: 0 0 12px; }
.glance { border-top: 1px solid var(--ink); }
.glance > div { border-bottom: 1px solid var(--rule-ink); grid-template-columns: 104px minmax(0, 1fr); }
.glance dt { font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: .14em; color: var(--bp); padding-top: 4px; }
.glance dd { font-size: 16.5px; }
.dropcap > p:first-child::first-letter { color: var(--bp); font-weight: 800; }
.family img { border: 1px solid rgba(11, 36, 64, .4); outline: 1px solid var(--rule-ink); outline-offset: 5px; }

/* ---------- Amber band: the markup block ---------- */
.band-amber { background: var(--amber); color: var(--amber-ink); border-top: 1px solid rgba(11, 35, 64, .25); border-bottom: 1px solid rgba(11, 35, 64, .25); }
.band-amber .kicker { color: var(--amber-ink); opacity: 1; }
.band-amber .disclaimer { border-left-color: var(--amber-ink); }
.disclaimer { font-family: var(--mono); font-weight: 500; font-size: 13.5px; line-height: 1.55; color: var(--ink2-bp); border-left: 1px solid var(--ink2-bp); padding-left: 16px; max-width: 58ch; }
.band-amber .disclaimer { color: var(--amber-ink); }
.note-box .kicker { color: var(--bp); }

/* ---------- Strips, panels, cards: detail boxes with ink borders ---------- */
.strip { font-size: 11px; letter-spacing: .18em; color: var(--ink2-bp); border-bottom: 1px solid var(--line-2); padding-bottom: 10px; }
.panel { background: var(--panel); border: 1px solid var(--line-2); border-left-width: 1px; }
.card { background: var(--panel); border: 1px solid var(--line-2); border-top-width: 1px; }
.card p { color: var(--mist); }
a.card:hover { background: var(--panel-2); border-color: var(--ink2-bp); }
.card .num { font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .18em; color: var(--ink2-bp); }
.define { background: var(--panel); border: 1px solid var(--line-2); outline: 1px solid var(--line); outline-offset: 4px; }
.define .term { font-weight: 800; }
.define .say { color: var(--mist); }
.chip, .social { border-color: var(--line-2); background: var(--panel); color: var(--cream); font-weight: 600; }
a.chip:hover, a.social:hover { border-color: var(--amber); color: var(--amber); }
.kinds { background: var(--line); border-color: var(--line-2); }
.kinds li { background: var(--panel); font-weight: 600; }
.kinds li::before { width: 22px; height: 1px; background: var(--ink2-bp); }
.each { border-top: 1px solid var(--line-2); }
.each li { border-bottom: 1px solid var(--line-2); font-weight: 700; }
.each li::before { font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .1em; color: var(--ink2-bp); }
.disclaimer-strip { background: rgba(8, 47, 87, .35); border-color: var(--line-2); font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .16em; color: var(--mist); }
.status { font-size: 20px; border: 0; padding: 0; gap: 10px; letter-spacing: 0; }
.status::before { width: 20px; height: 20px; border-radius: 0; background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23f0aa2c'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%2013.5l5%205L20%206'/%3E%3C/svg%3E") center / contain no-repeat; }
.cover-img { border: 1px solid rgba(243, 249, 255, .55); box-shadow: 0 30px 60px rgba(3, 20, 45, .6), 0 0 0 10px rgba(232, 237, 243, .06); }

/* Book page: the title set as on the cover, with the revision cloud around OG */
.bt-the { font-weight: 600; }
.bt-og { position: relative; width: fit-content; max-width: 100%; font-weight: 800; color: var(--amber); padding: 0 .04em; margin: .12em 0 0 -.02em; }
.bt-og::before { content: ""; position: absolute; inset: -.06em -.1em -.1em -.1em; background: var(--cloud) center / 100% 100% no-repeat; pointer-events: none; }
.bt-inv { font-weight: 800; margin-top: .16em; }
.bt-sub { color: var(--cream); }
.bt-by { font-weight: 600; letter-spacing: .34em; }
.tagline-head { font-weight: 800; color: var(--amber); }
.paper .tagline-head { color: var(--ink); }

/* ---------- AFE page, vellum tables ---------- */
.who-t { border-top: 1px solid var(--ink); }
.who-t dt { font-weight: 700; }
.steps li::before { color: var(--bp); border-bottom-color: var(--amber); font-family: var(--mono); font-weight: 600; font-size: 20px; letter-spacing: .06em; }
.book-card { background: var(--card); border: 1px solid rgba(11, 36, 64, .35); border-top-width: 1px; box-shadow: 0 18px 40px rgba(11, 36, 64, .12); }
.book-card h2 { font-weight: 800; }
.note-box { background: var(--paper-2); border-left: 3px solid var(--amber); }
.h-sm { font-weight: 800; }

/* ---------- Book companion pages (notes, cases, updates) on vellum ---------- */
.doc-meta { font-size: 12px; letter-spacing: .16em; color: var(--ink2-bp); }
.toc-list, .sec, .case { border-top-color: var(--ink); }
.toc-list .n, ol.notes li::marker, .upd-body p > strong:first-child { color: var(--bp); }
.toc-list .n { font-family: var(--mono); font-size: 13px; }
.toc-mobile { background: var(--card); border-color: rgba(11, 36, 64, .35); }
.toc-mobile summary::after { color: var(--bp); }
.doc-h2 { font-weight: 800; }
.case-body h3::before { background: var(--bp); height: 1px; }
.numbers { background: var(--card); border: 1px solid rgba(11, 36, 64, .35); border-left: 3px solid var(--amber); }
li:target, .upd-item:target { background: rgba(240, 170, 44, .22); box-shadow: -6px 0 0 var(--amber); }
.backtop { font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .14em; }

/* ---------- Contact ---------- */
.mail-addr { color: var(--mist); }
.mail-addr a { color: var(--cream); }

/* ---------- Footer: the title block, inside a double drawing border ---------- */
.site-footer { background: rgba(8, 47, 87, .35); border-top: 1px solid var(--line-2); padding: 44px 0 40px; }
.site-footer .wrap {
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter)); padding: 0;
  border: 1px solid var(--line-2); outline: 1px solid var(--line); outline-offset: 5px;
}
.foot-grid { gap: 0; border: 0; }
.foot-grid > div { padding: 24px 22px 28px; border-top: 1px solid var(--line-2); }
.foot-grid > div:first-child { border-top: 0; }
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); }
  .foot-grid > div { border-top: 0; border-left: 1px solid var(--line-2); padding: 30px 30px 34px; }
  .foot-grid > div:first-child { border-left: 0; }
}
.site-footer .wordmark { font-size: 34px; letter-spacing: .14em; font-weight: 800; gap: 0; min-height: 0; line-height: 1; }
.site-footer .wordmark::before { display: none; }
.foot-note { color: var(--ink2-bp); font-size: 15px; margin-top: 14px; }
.foot-label { font-size: 11px; letter-spacing: .18em; color: var(--ink2-bp); display: inline-block; padding-bottom: 4px; border-bottom: 1px solid var(--line-2); margin-bottom: 14px; }
.foot-mail { color: var(--ink2-bp); font-size: 15px; }
.foot-mail a { color: var(--cream); }
.foot-links a { font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: .1em; color: var(--mist); padding: 5px 0; }
.foot-links a:hover { color: var(--amber); }
.foot-base {
  margin: 0; padding: 0; border: 0; border-top: 1px solid var(--line-2);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; align-items: stretch;
  font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2-bp);
}
.foot-base > span { display: flex; align-items: center; padding: 12px 22px; }
.foot-base > span + span { border-left: 1px solid var(--line-2); justify-content: flex-end; text-align: right; }
@media (min-width: 900px) { .foot-base > span { padding: 12px 30px; } }
@media (max-width: 719px) { .foot-base { font-size: 11px; letter-spacing: .08em; } .foot-base > span { padding: 12px 14px; } }
.book-footer { padding: 30px 0 34px; }
.book-footer .wrap { padding: 0; }
.book-footer .foot-base { margin: 0; border-top: 0; }
.book-footer .foot-base > span { padding: 14px 22px; }
.book-footer .wordmark { font-size: 16px; letter-spacing: .24em; font-weight: 700; }
.book-footer .wordmark::before { display: inline-block; background: var(--amber); }

/* ---------- Links page ---------- */
.links-page .site-header { border-bottom-color: var(--line-2); }
.lib h1 { font-weight: 800; }
.lib .tagline { color: var(--mist); font-size: 19px; }
.avatar { border: 2px solid var(--ink2-bp); outline: 1px solid var(--line); outline-offset: 6px; background: var(--panel); }
.lib-group { font-size: 11.5px; letter-spacing: .22em; color: var(--ink2-bp); gap: 12px; }
.lib-group::after { background: var(--line-2); position: relative; }
.lib-btn { background: var(--panel); border: 1px solid var(--line-2); border-radius: 0; }
a.lib-btn:hover { background: var(--panel-2); border-color: var(--ink2-bp); }
.lib-btn.navy { background: var(--panel-2); }
.lib-btn .code { border: 1px solid var(--ink2-bp); border-radius: 50%; font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .02em; color: var(--cream); }
.lib-btn .t { font-weight: 700; }
.lib-btn .s { color: var(--ink2-bp); }
.lib-btn.primary .code { border-color: var(--amber-ink); color: var(--amber-ink); }
.lib-btn.primary .s { color: rgba(11, 35, 64, .85); }
svg.lib-jack { display: none; }
.lib-art { display: block; width: min(100%, 360px); height: auto; margin: 48px auto 0; }
.lib-foot { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2-bp); margin-top: 22px; }

/* ---------- 404 ---------- */
.nf h1 { font-weight: 800; }
