/* JSM Strategies — V4
   Inter carries everything. Courier Prime is for the asides; Caveat is for margin notes only. */

:root {
  --paper: #FBFAF7;
  --paper-2: #F3F1EC;
  --ink: #14213D;
  --ink-2: #2A3448;
  --muted: #5A6275;
  --rule: #E4E1DA;
  --navy: #1E3354;
  --rust: #A84A22;          /* text-safe accent */
  --fox: #E86A1A;           /* illustration only */
  --on-navy: #E3E7EF;
  --on-navy-muted: #C9D1E0;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --mono: 'Courier Prime', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --hand: 'Caveat', 'Bradley Hand', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--rust); }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* pencil margin rule */
.page { position: relative; }
.page::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: max(10px, calc(50% - var(--max) / 2));
  width: 1px; background: var(--rust); opacity: .22; pointer-events: none;
}

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { border-top: 1px solid var(--rule); }
.section > .wrap { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }

.kicker { font-family: var(--mono); font-size: 15px; color: var(--muted); margin-bottom: 20px; letter-spacing: .01em; }
.h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.lede { font-size: 19px; line-height: 1.55; color: #3A4458; max-width: 620px; margin-top: 24px; }
.hand { font-family: var(--hand); color: var(--rust); line-height: 1.05; }
.fig { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.fn { font-family: var(--mono); font-size: 13px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 24px; border: 0; border-radius: 2px;
  background: var(--navy); color: var(--paper); font: inherit; font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: #13243F; color: var(--paper); }

/* header */
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding-top: 20px; padding-bottom: 20px;
}
.site-header { border-bottom: 1px solid var(--rule); }
.logo img { height: 48px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }
@media (max-width: 760px) {
  .nav { gap: 6px 18px; font-size: 14px; }
  .nav .btn { display: none; }
}

/* hero — Jasper sits beside the question and points at it */
.hero .wrap { padding-top: clamp(48px, 7vw, 104px); padding-bottom: clamp(56px, 8vw, 112px); }
.hero-top { display: flex; align-items: center; gap: 12px 8px; }
.hero-head { flex: none; }
.hero h1 { font-size: clamp(54px, 8.6vw, 128px); line-height: .92; font-weight: 850; letter-spacing: -0.045em; }
.hero-fox { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 0; }
.pointer { flex: none; width: 170px; display: flex; flex-direction: column; align-items: center; color: var(--rust); margin-top: 40px; }
.pointer .hand { font-size: 27px; transform: rotate(-4deg); text-align: center; margin-bottom: 2px; }
.pointer .arrow { display: block; }
.pointer .arrow-narrow { display: none; }
.jasper { margin: 0; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
@media (min-width: 1041px) { .jasper { margin-left: -60px; } .pointer { position: relative; z-index: 1; } }
.jasper img { width: clamp(200px, 21vw, 300px); }
.hero .sub { margin-top: 28px; max-width: 680px; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; }
.hero .cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero .cta .fn { font-size: 15px; }
@media (max-width: 1100px) {
  .pointer { width: 130px; }
  .pointer .hand { font-size: 23px; }
  .pointer .arrow-wide { width: 116px; height: 44px; }
}
/* narrow: Jasper above the question, arrow points down at it */
@media (max-width: 1040px) {
  .hero-top { flex-direction: column-reverse; align-items: flex-start; gap: 4px; }
  .hero-fox { flex-direction: row-reverse; justify-content: flex-end; align-items: flex-end; gap: 6px; }
  .pointer { width: auto; max-width: 170px; margin: 0 0 4px; align-items: flex-start; }
  .pointer .hand { text-align: left; font-size: 24px; }
  .pointer .arrow-wide { display: none; }
  .pointer .arrow-narrow { display: block; margin-left: 6px; }
  .jasper img { width: 190px; }
  .jasper .fig { display: none; }
}
@media (max-width: 420px) {
  .jasper img { width: 160px; }
  .pointer .hand { font-size: 22px; max-width: 150px; }
}

/* the list */
.list {
  margin-top: 56px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  border-top: 2px solid var(--ink); counter-reset: item;
  list-style: none; padding: 0;
}
.list li { display: flex; gap: 22px; padding: 30px 32px 38px 0; border-bottom: 1px solid var(--rule); }
.list .num { font-family: var(--mono); font-size: 15px; color: var(--rust); padding-top: 5px; flex: none; }
.list h3 { font-size: 24px; line-height: 1.2; font-weight: 750; letter-spacing: -0.015em; }
.list p { margin-top: 12px; color: #3A4458; }
.list .hand { margin-top: 14px; font-size: 25px; transform: rotate(-2deg); transform-origin: left; }

.list li.group { align-items: flex-start; }
.list li.group > div { padding-top: 4px; }
.group-label { font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rust); margin: 0 0 10px; }
.list li.group p:not(.group-label) { margin: 0; font-size: 19px; line-height: 1.45; color: var(--ink); font-weight: 600; max-width: 300px; }
.at-table { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; padding: 30px 0 38px; border-bottom: 2px solid var(--ink); }
.at-table .group-label { flex: 0 0 auto; width: min(100%, 330px); margin: 0; }
.at-item { display: flex; gap: 22px; flex: 1 1 560px; min-width: 0; }
.at-item .num { font-family: var(--mono); font-size: 15px; color: var(--rust); padding-top: 5px; flex: none; }
.at-item h3 { font-size: 24px; line-height: 1.2; font-weight: 750; letter-spacing: -0.015em; }
.at-item p { margin-top: 12px; color: #3A4458; }
.at-item > div { min-width: 0; }
.at-points { margin: 24px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px 32px; }
.at-points li { font-size: 16px; line-height: 1.5; color: #3A4458; padding-top: 14px; border-top: 1px solid var(--rule); }
.at-points b { display: block; color: var(--ink); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.practice { margin-top: 56px; }
.practice h3 { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.practice ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px 40px; }
.practice li { font-size: 18px; line-height: 1.5; color: #3A4458; padding-left: 18px; position: relative; }
.practice li::before { content: "→"; position: absolute; left: 0; color: var(--rust); font-family: var(--mono); }
.practice b { color: var(--ink); font-weight: 700; }

/* who we work with */
.split { display: flex; flex-wrap: wrap; gap: 44px 80px; }
.split > :first-child { flex: 1 1 340px; min-width: 0; }
.split > :last-child { flex: 1.4 1 420px; min-width: 0; }
.facts { display: flex; flex-direction: column; gap: 34px; padding-top: 6px; }
.facts h3 { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.facts p { font-size: 20px; line-height: 1.5; }
.strike { text-decoration: line-through; text-decoration-color: var(--rust); text-decoration-thickness: 2px; margin-right: 6px; }

.situations { margin: 48px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 2px solid var(--ink); }
@media (max-width: 759px) { .situations { grid-template-columns: minmax(0, 1fr); } }
.situations li { padding: 28px 0 34px; border-bottom: 1px solid var(--rule); }
.situations .num { font-family: var(--mono); font-size: 15px; color: var(--rust); }
.situations h3 { margin-top: 10px; font-size: 24px; line-height: 1.2; font-weight: 750; letter-spacing: -0.015em; }
.situations p { margin-top: 12px; color: #3A4458; }
.facts-row { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; padding-top: 0; }
@media (max-width: 759px) { .facts-row { grid-template-columns: minmax(0, 1fr); } }
.facts-row p { font-size: 18px; }

/* scarcity band */
.band { background: var(--navy); color: var(--paper); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px; padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }
.band .kicker { color: var(--on-navy-muted); }
.band h2 { font-size: clamp(40px, 6vw, 84px); line-height: .98; font-weight: 850; letter-spacing: -0.04em; }
.band p.body { margin-top: 30px; max-width: 620px; font-size: 20px; color: var(--on-navy); }
.band-copy { flex: 999 1 520px; min-width: 0; }
.taped { flex: 1 1 220px; display: flex; flex-direction: column; align-items: flex-start; }
.taped .scrap { position: relative; padding-top: 14px; transform: rotate(3deg); }
.taped .scrap::before {
  content: ""; position: absolute; top: 2px; left: 50%; width: 92px; height: 26px; margin-left: -46px;
  background: rgba(240, 232, 214, .78); transform: rotate(-4deg); z-index: 1;
}
.taped img { width: 210px; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.taped .fig { color: var(--on-navy-muted); margin-top: 14px; }

/* tombstones */
.tx-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; }
.tx-head .fn { flex: 0 1 360px; font-size: 14px; }
/* 18 tombstones: 6 x 3 on wider screens, 3 x 6 on phones. Always full rows. */
.tombs { --cols: 6; margin: 48px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 16px; }
@media (max-width: 899px) { .tombs { gap: 10px; } }
@media (max-width: 759px) { .tombs { --cols: 3; gap: 8px; } .tombs li { padding: 6px; } }
.tombs li { background: #fff; border: 1px solid var(--rule); padding: 10px; aspect-ratio: 247 / 316; display: flex; align-items: center; justify-content: center; }
.tombs img { width: 100%; height: 100%; object-fit: contain; }


/* who we are */
.about { display: flex; flex-wrap: wrap; gap: 44px 72px; }
.about-side { flex: 1 1 300px; min-width: 0; max-width: 380px; }
.about-side .photo { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.about-side .fn { margin-top: 12px; }
.shelf { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); }
.shelf h3 { font-family: var(--mono); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.shelf ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-style: italic; }
.shelf a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.shelf a:hover { border-bottom-color: var(--rust); }
.about-main { flex: 2 1 480px; min-width: 0; }
.about-main h2 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; }
.about-main .bio { margin-top: 34px; display: flex; flex-direction: column; gap: 20px; font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 720px; }
.about-main .edu { margin-top: 30px; font-size: 15px; color: var(--muted); }
.about-main .fn { margin-top: 20px; }

/* notes */
.notes-list .feature { display: block; text-decoration: none; padding: 28px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.notes-list .feature .fn { color: var(--rust); }
.notes-list .feature .t { display: block; margin-top: 10px; font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.notes-list .feature .d { display: block; margin-top: 10px; color: #3A4458; }
.notes-list .feature:hover .t { color: var(--rust); }
.queue h3 { margin: 28px 0 10px; font-family: var(--mono); font-size: 14px; font-weight: 700; }
.queue ul { margin: 0; padding: 0; list-style: none; }
.queue li { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 19px; font-weight: 600; }

/* contact */
.contact { background: var(--paper-2); }
.contact h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; font-weight: 850; letter-spacing: -0.035em; }
.contact .lede { font-size: 18px; max-width: 520px; }
.form { display: flex; flex-direction: column; gap: 20px; }
.form .row { display: flex; flex-wrap: wrap; gap: 20px; }
.form .row > label { flex: 1 1 220px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.form input, .form textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  padding: 14px; border: 1px solid #C9C5BC; border-radius: 2px; width: 100%;
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--rust); outline-offset: 0; border-color: transparent; }
.form .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form .actions .hand { font-size: 24px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 16px; min-height: 1.5em; }
.form-status.ok { color: #1E5B3A; font-weight: 600; }
.form-status.err { color: #8A2A12; font-weight: 600; }

/* footer */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; padding-top: 48px; padding-bottom: 56px; }
.site-footer .addr { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.site-footer .addr b { font-weight: 700; }
.site-footer .colophon { max-width: 460px; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--muted); }
.site-footer .fox-out { width: 96px; }

/* ---------- essay ---------- */
.essay-head .wrap { padding-top: clamp(56px, 8vw, 104px); padding-bottom: 32px; }
.essay-head h1 { font-size: clamp(44px, 7vw, 96px); line-height: .95; font-weight: 850; letter-spacing: -0.04em; max-width: 900px; }
.essay-head .meta { margin-top: 24px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.essay-head .meta a { color: var(--muted); }

.essay { padding-bottom: clamp(64px, 8vw, 112px); }
.essay .wrap { display: grid; grid-template-columns: minmax(0, 660px) minmax(0, 1fr); column-gap: 64px; }
.prose { grid-column: 1; font-size: 19px; line-height: 1.68; color: var(--ink-2); counter-reset: sidenote; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .5em; }
.prose .opener { font-size: 26px; line-height: 1.3; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }

/* Sidenotes: margin on wide screens, tap-to-open below. No JS. */
.sn-ref { counter-increment: sidenote; }
.sn-toggle { display: none; }
label.sn-ref {
  cursor: pointer; font-family: var(--mono); font-size: .62em; font-weight: 700;
  color: var(--rust); vertical-align: super; line-height: 0; padding: 0 2px;
}
label.sn-ref::after { content: counter(sidenote); }
.sn {
  float: right; clear: right; width: 300px; margin-right: -364px; margin-top: .2em; margin-bottom: 1em;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.5; color: var(--muted); position: relative;
  font-weight: 400; letter-spacing: 0; font-style: normal; text-transform: none;
}
.sn::before { content: counter(sidenote) ". "; color: var(--rust); font-weight: 700; }
@media (max-width: 1100px) {
  .essay .wrap { grid-template-columns: minmax(0, 1fr); }
  .prose { max-width: 680px; }
  .sn { display: none; float: none; width: auto; margin: 10px 0 14px; padding: 12px 14px; background: var(--paper-2); border-left: 2px solid var(--rust); }
  .sn-toggle:checked + .sn { display: block; }
  label.sn-ref { font-size: .7em; padding: 0 4px; text-decoration: underline dotted; }
}
.essay-end { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule); display: flex; align-items: flex-end; gap: 24px; }
.essay-end img { width: 88px; }
.essay-end p { font-family: var(--mono); font-size: 14px; color: var(--muted); }

/* notes index */
.notes-index .item { display: block; text-decoration: none; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.notes-index .item:first-child { border-top: 2px solid var(--ink); }
.notes-index .item .t { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.notes-index .item .d { display: block; margin-top: 8px; color: #3A4458; }
.notes-index .item .fn { display: block; margin-bottom: 8px; }
.notes-index .item:hover .t { color: var(--rust); }

/* 404 */
.lost .wrap { min-height: 70vh; display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; padding-top: 64px; padding-bottom: 64px; }
.lost h1 { font-size: clamp(44px, 7vw, 96px); line-height: .95; font-weight: 850; letter-spacing: -0.04em; }
.lost p { margin-top: 24px; font-size: 19px; max-width: 520px; }
.lost img { width: 220px; }
